/* =========================================
   1. VARIABLES Y FUENTES
   ========================================= */

/* Definimos la tipografía */
@font-face {
    font-family: 'AmsiPro';
    src: url('../data/fonts/AmsiProCond-Regular.otf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Mejora la carga visual */
}

@font-face {
    font-family: 'AmsiPro';
    src: url('../data/fonts/AmsiProCond-Bold.otf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Variables Globales: Cambiá los colores acá y se aplican en todo el sitio */
:root {
    --color-azul: #023A55;
    --color-violeta: #6752C1;
    --color-naranja: #EA5B0C;
    --color-oscuro: #212529;
    --color-blanco: #ffffff;
    --fuente-principal: 'AmsiPro', 'Segoe UI', sans-serif;
    --altura-header: 15px; /* Espacio para que el header fijo no tape contenido */
}

/* =========================================
   2. ESTILOS GENERALES (BASE)
   ========================================= */

html {
    height: 100%;
}

#global-footer-container {
    margin-top: auto; /* La magia: empuja el contenedor al final del flex */
    width: 100%;      /* Asegura que ocupe el ancho total */
}

body {
    font-family: var(--fuente-principal);
    background-color: #f8f9fa; /* Gris muy suave de fondo general */
    color: var(--color-oscuro);
    padding-top: var(--altura-header); /* IMPORTANTE: Compensa el header fijo */
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Altura mínima: 100% de la ventana (Viewport Height) */
}

h1, h2, h3, h4, h5, h6, .hero-title {
    font-weight: bold;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
}

/* Clases de utilidad personalizadas */
.section-padding {
    padding: 80px 0;
}

.img-rounded-custom {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================
   3. HEADER (PERSONALIZACIÓN BOOTSTRAP)
   ========================================= */



.navbar {
    background-color: var(--color-azul);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    
    /* 1. Definimos la altura mínima de la barra completa */
    min-height: 70px; 
    
    /* 2. Le damos muy poquito aire arriba y abajo */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* El contenedor del logo (el link) */
.navbar-brand {
    padding: 10 !important;   /* Le sacamos el relleno extra de Bootstrap */
    margin: 10 !important;
    display: flex;           /* Para centrar la imagen perfectamente */
    align-items: center;
}

/* LA IMAGEN DEL LOGO */
.navbar-brand img {
    /* 3. ACÁ ESTÁ LA CLAVE: Forzamos la altura */
    height: 60px !important; /* Tamaño fijo, bien grande */
    width: auto;             /* Que el ancho se acomode solo */
    
    /* Opcional: si el logo tiene mucho espacio vacío alrededor en el diseño,
       podés usar "transform: scale(1.2);" para agrandarlo visualmente sin mover nada */
    
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}


        /* =========================================
           3. SECCIÓN BANNER (HERO)
           ========================================= */
        .hero-banner {
            height: 60vh;
            min-height: 400px;
            background: linear-gradient(#02395570, #012435de), url('../data/imagenes/pabe_2.jpg');
            background-color: #023A55; 
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            padding: 0 20px;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 20px;
            text-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }

        /* =========================================
           4. CONTENEDOR Y RESPONSIVE
           ========================================= */
        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .section-padding {
            padding: 80px 0;
        }

        @media (max-width: 767px) {
            .container {
                padding-left: 30px !important;
                padding-right: 30px !important;
            }
            .hero-title {
                font-size: 2.5rem !important; 
            }
            .section-padding {
                padding: 60px 0 !important;
            }
            .hero-banner {
                height: 50vh;
            }
        }

        /* =========================================
           5. ESTILOS ESPECÍFICOS DEL CONTENIDO
           ========================================= */
        .instruction-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            padding: 40px;
            margin-top: -60px;
            position: relative;
            z-index: 10;
        }

        h2.step-title {
            color: #023A55;
            border-bottom: 3px solid #6752C1;
            padding-bottom: 15px;
            margin-bottom: 30px;
            font-size: 2rem;
        }

        ol.steps-list {
            counter-reset: step-counter;
            list-style: none;
            padding: 0;
        }

        ol.steps-list > li {
            position: relative;
            margin-bottom: 30px;
            padding-left: 50px;
        }

        ol.steps-list > li::before {
            content: counter(step-counter);
            counter-increment: step-counter;
            position: absolute;
            left: 0;
            top: 0;
            background-color: #6752C1;
            color: white;
            font-weight: bold;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            text-align: center;
            line-height: 35px;
            font-family: 'AmsiPro', sans-serif;
        }

        ol.steps-list > li p, ol.steps-list > li span {
            font-size: 1.05rem;
            line-height: 1.6;
        }

        ul.requirements {
            background-color: #f0f4f8;
            border-left: 4px solid #023A55;
            padding: 15px 15px 15px 30px;
            margin-top: 10px;
            border-radius: 0 8px 8px 0;
        }

        ul.requirements li {
            margin-bottom: 8px;
            color: #444;
        }

        .highlight-box {
            background-color: #e3f2fd;
            color: #0d47a1;
            padding: 20px;
            border-radius: 10px;
            margin-top: 30px;
            font-weight: bold;
            text-align: center;
            border: 1px solid #bbdefb;
        }

/* =========================================
7. FOOTER
 ========================================= */

footer {
    background-color: var(--color-oscuro);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 50px;
    border-top: 4px solid var(--color-naranja);
}

.footer-logo {
    max-width: 140px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Vuelve el logo blanco automáticamente si es SVG/PNG */
    opacity: 0.9;
}

/* Efecto hover suave para el link del footer */
.hover-effect:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-naranja) !important; /* Se pone naranja al pasar el mouse */
    transition: all 0.3s ease;
}

/* =========================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

@media (max-width: 768px) {
    :root {
        --altura-header: 66px; /* Header un poco más chico en móvil */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* En móvil las tarjetas ocupan todo el ancho para verse bien grandes */
    .flip-card {
        flex: 1 1 100%; 
        max-width: 100%;
    }
}