/* =========================================================
   IMPORTACIÓN DE FUENTES Y RESETEO
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;560;650&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 8.125rem;
}

/* =========================================================
   NAVBAR COMPORTAMIENTO SCROLL (SMART NAVBAR)
========================================================= */
.smart-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Clase que añadiremos con JS para esconder la navbar */
.smart-navbar.nav-hidden {
    transform: translateY(-100%);
}

/* =========================================================
   SECCIÓN GENERAL 1 (ARRIBA)
========================================================= */
.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Margen izquierdo y derecho de separación del borde */
    padding: 0.9375rem 4vw; 
}

/* Logos Izquierda */
.nav-logos-left {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Separación interna entre imágenes y líneas */
    height: 2.8125rem; /* Altura fija para el contenedor */
}

.nav-logos-left img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.vertical-divider {
    width: 2px;
    height: 70%;
    background-color: #e8e8e8;
}

/* Logo Skillnova Derecha */
.nav-logo-right {
    height: 2.8125rem;
    display: flex;
    align-items: center;
}

.nav-logo-right img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* =========================================================
   DIVISOR HORIZONTAL
========================================================= */
.nav-divider {
    border: none;
    border-top: 2px solid #e8e8e8;
    width: 100%;
}

/* =========================================================
   SECCIÓN GENERAL 2 (ABAJO)
========================================================= */
.navbar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9375rem 4vw;
    /* Reducimos ligeramente el margen derecho del botón en comparación al logo superior */
    padding-right: 3vw; 
    background-color: #ffffff;
}

/* Pestañas (Links) */
.nav-tabs {
    display: flex;
    gap: 2.5rem;
}

.nav-tab {
    font-weight: 650;
    color: #1e2a52;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.3125rem;
}

/* Animación de la línea azul inferior */
.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0.3125rem;
    background-color: #147fd5;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-tab:hover::after {
    width: 100%;
}

/* Botón WhatsApp */
.nav-whatsapp-container {
    display: flex;
    align-items: center;
}

.btn-whatsapp-nav {
    display: inline-block;
    border: 2px solid #30b360;
    background-color: transparent;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-text {
    color: #1e2a52;
    font-weight: 560;
    font-size: 0.95rem;
    line-height: 1; /* Permite medir exactamente la altura de la letra */
}

/* Círculo verde calcando la altura de la fuente */
.btn-dot {
    display: inline-block;
    width: 1em; /* 1em equivale exactamente a la altura actual de la letra */
    height: 1em;
    background-color: #30b360;
    border-radius: 50%;
}

.btn-whatsapp-nav:hover {
    background-color: #f0fdf4;
}

/* =========================================================
   RESPONSIVIDAD MÓVIL (Menú Sándwich)
========================================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 0.3125rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.625rem;
}

.hamburger-btn .bar {
    width: 1.5625rem;
    height: 0.1875rem;
    background-color: #1e2a52;
    border-radius: 0.1875rem;
    transition: 0.3s;
}

/* Contenedor extra para mover los logos en móvil */
.mobile-logos-container {
    display: none; 
}

@media (max-width: 900px) {
    /* Mostramos el sándwich y ocultamos logos de la izquierda en top */
    body {
        padding-top: 4.625rem;
    }
    .hamburger-btn {
        display: flex;
    }
    
    .nav-logos-left {
        display: none;
    }

    /* Convertimos la parte de abajo en el menú desplegable */
    .navbar-bottom {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 4vw;
        gap: 2rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Oculto por defecto en móvil */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

    /* Clase activa para desplegar vía JS */
    .navbar-bottom.menu-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-tabs {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .mobile-logos-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
        align-items: center;
    }
}

/* =========================================================
   SECCIÓN HERO (BANNER PRINCIPAL)
========================================================= */
.hero-section {
    position: relative;
    width: 100%;
    /* La altura se determina automáticamente por el tamaño y proporciones de la imagen de fondo */
    background-image: url('imgs/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Centra verticalmente el contenido dentro de la sección */
    padding: clamp(3rem, 6vw, 6rem) 0;
}

/* Contenedor interno que agrupa los 5 elementos en pila alineados a la izquierda */
.hero-container {
    width: 100%;
    max-width: 650px;
    /* Margen izquierdo para separar el contenido del borde de la sección de manera proporcional */
    margin-left: clamp(2rem, 4vw, 4rem);
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea todos los elementos a la izquierda dentro del contenedor */
}

/* 1. Logo Skillnova dentro del Hero */
.hero-logo {
    height: clamp(2.5rem, 3.5vw, 4rem);
    width: auto;
    object-fit: contain;
    margin-bottom: clamp(1rem, 2vw, 2rem);
    /* Margen izquierdo interno para que no toque exactamente el borde */
    margin-left: 0.5rem; 
}

/* 2. Título H1 */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    color: #ffffff; /* Blanco solicitado */
    line-height: 1.15;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    text-align: left;
}

/* 3. Párrafo descriptivo */
.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.95rem, 1.25vw, 1.3rem);
    font-weight: 500;
    color: #ffffff; /* Blanco solicitado */
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    text-align: left;
    max-width: 36rem;
}

/* 4. Botón de acción hacia la sección de cursos */
.hero-btn {
    display: inline-block;
    background-color: #ff7900; /* Naranja sólido solicitado */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    padding: clamp(0.9rem, 1.2vw, 1.2rem) clamp(2rem, 3vw, 3rem);
    border-radius: 50px; /* Laterales totalmente redondeados */
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 121, 0, 0.3);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.hero-btn:hover {
    background-color: #e06800;
    transform: translateY(-2px);
}

.hero-btn:active {
    transform: scale(0.98);
}

/* 5. Texto aclaratorio final del pago */
.hero-note {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    font-weight: 400;
    color: #ffffff; /* Blanco solicitado */
    text-align: left;
    opacity: 0.95;
}

/* =========================================================
   RESPONSIVIDAD MÓVIL (Hero)
========================================================= */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1rem;
        background-position: center;
        /* NUEVO: Capa azul al 60% de opacidad SOLO en móvil */
        background-image: linear-gradient(rgba(0, 14, 52, 0.7), rgba(0, 14, 52, 0.6)), url('imgs/hero.webp');
    }

    .hero-container {
        margin-left: 0;
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .hero-logo {
        margin-left: 0;
    }
    
    /* NUEVO: Sombras añadidas a los textos SOLO en móvil para mejorar legibilidad */
    .hero-title {
        text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.7);
    }
    
    .hero-subtitle {
        text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
    }
    
    .hero-note {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    }
}

/* =========================================================
   SECCIÓN CURSOS (FONDO CLARO)
========================================================= */
.cursos-section {
    background-color: #ffffff;
    padding: clamp(3rem, 1vw, 1rem) 0;
    width: 100%;
}

.cursos-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Margen izquierdo para alinear con el hero y no tocar el borde */
    margin-left: clamp(2rem, 8vw, 8rem);
    padding: 0rem;
    gap: 0.2rem;
}

.cursos-subtitle {
    color: #2879cc;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    text-align: left;
}

.cursos-title {
    color: #1e2a52;
    /* Tamaño 1.5 veces el subtítulo */
    font-size: clamp(2.8rem, 3vw, 2.8rem); 
    font-weight: 700;
    text-align: left;
}

.cursos-desc {
    color: #1e2a52;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 500;
    text-align: left;
}

/* =========================================================
   CONTENEDOR DE CARDS
========================================================= */
.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 2vw, 2.5rem);
    padding: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 4vw, 4rem);
}

.curso-card {
    background-color: #ffffff;
    border-radius: 1rem;
    /* Sombra blanca/gris difuminada para efecto de recuadro flotante en fondo negro */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    flex: 1 1 0;
    min-width: 0;
    max-width: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-5px);
}

.curso-card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-title-wrapper {
    padding: 1.5rem 1.25rem 0.5rem;
    flex-grow: 1;
    display: flex;
    /* Centra el contenedor horizontalmente dentro de la card */
    justify-content: center; 
}

.card-title {
    /* Alineación interna a la izquierda */
    text-align: left; 
    width: 100%;
    color: #1e2a52;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

.card-btn-wrapper {
    padding: 1rem 1.25rem 1.5rem;
}

.btn-preinscribir {
    width: 100%;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
    font-size: 1rem;
    padding: 0.875rem;
    border-radius: 2rem; /* Laterales totalmente redondeados */
    border: none;
    cursor: pointer;
    text-align: center;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-preinscribir:hover {
    filter: brightness(1.1);
}

.btn-preinscribir:active {
    transform: scale(0.98);
}

/* Colores específicos por card */
.btn-c1 { background-color: #007eef; }
.btn-c2 { background-color: #7537e0; }
.btn-c3 { background-color: #f87303; }
.btn-c4 { background-color: #b51434; }
.btn-c5 { background-color: #06894a; }

.cursos-footer-text {
    text-align: center;
    color: #1e2a52;
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding-bottom: 2rem;
}

/* =========================================================
   VENTANAS FLOTANTES (MODALS)
========================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(3px);
}

.modal-box {
    background-color: #ffffff;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-cerrar {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #000000;
    cursor: pointer;
    line-height: 1;
}

/* Textos Modales (Nota: Se usó #7a7a7a en lugar de #e8e8e8 para los subtítulos grises dentro del modal blanco, ya que #e8e8e8 es casi blanco y sería invisible). */
.modal-header-texts {
    text-align: left;
    margin-bottom: 1.5rem;
}

.modal-title {
    color: #000000;
    font-weight: 650;
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    color: #7a7a7a; 
    font-weight: 450;
    font-size: 0.95rem;
}

/* Recuadro Azul de Curso */
.curso-seleccionado-box {
    background-color: #e4f2fe;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    text-align: left;
}

.box-label {
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.box-curso-title {
    color: #1e2a52;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.box-link {
    color: #147fd5;
    font-size: 0.85rem;
    text-decoration: underline;
    font-weight: 500;
}

/* Formulario Modal */
.registro-form-modal {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.full-width { width: 100%; }
.half-width { width: 50%; }

.input-group label {
    display: block;
    color: #000000;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    text-align: left;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #1e2a52;
    background-color: #ffffff;
}

/* Clase de error que activaremos con JS para campos vacíos/inválidos */
.input-error {
    border-color: red !important;
}

.privacidad-text {
    text-align: left;
    color: #7a7a7a;
    font-size: 0.85rem;
}

.privacidad-text a {
    color: #147fd5;
    text-decoration: underline;
}

.btn-naranja-modal {
    background-color: #ff7900;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-naranja-modal:hover {
    background-color: #e06800;
}

.pago-nota-footer {
    text-align: center;
    color: #7a7a7a;
    font-size: 0.85rem;
}

/* Estilos específicos Modal 2 (Éxito) */
.text-center { text-align: center; }
.text-left { text-align: left; }

.icon-check {
    width: clamp(4rem, 6vw, 5rem);
    height: auto;
    margin: 0.5rem auto 1rem;
    display: block;
}

.exito-title {
    color: #1e2a52;
    font-weight: 700;
    font-size: clamp(1.4rem, 1.8vw, 1.7rem);
    margin-bottom: 0.25rem;
}

.exito-subtitle, .exito-instruccion {
    color: #1e2a52;
    font-weight: 550;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.aviso-naranja-box {
    background-color: rgba(255, 121, 0, 0.15); /* Naranja con opacidad */
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.aviso-naranja-box p {
    color: #ff7900;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
}

.btn-clip {
    display: block;
    text-decoration: none;
    margin-bottom: 1rem;
}

.btn-azul-borde {
    display: block;
    width: 100%;
    border: 2px solid #147fd5;
    background-color: transparent;
    color: #147fd5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
    font-size: 1.1rem;
    padding: 0.875rem;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.btn-azul-borde:hover {
    background-color: #1e2a52;
    color: #ffffff;
}

/* =========================================================
   RESPONSIVIDAD MÓVIL
========================================================= */
@media (max-width: 900px) {
    /* Centrado de textos en la sección de cursos */
    .cursos-header {
        margin-left: 0;
        align-items: center;
        text-align: center;
    }
    
    .cursos-subtitle, 
    .cursos-title, 
    .cursos-desc {
        text-align: center;
    }

    /* Cards en pila vertical */
    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .curso-card {
        flex: none;
        width: 100%;
        max-width: 350px;
    }

    /* Modal Formulario a una columna */
    .input-row {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .half-width {
        width: 100%;
    }
}

/* =========================================================
   UTILIDADES
========================================================= */
.hidden {
    display: none !important;
}

/* =========================================================
   SUB-SECCIÓN EXTRA DE CURSOS (COMPACTA)
========================================================= */
.cursos-extra {
    width: 100%;
    margin-top: clamp(1rem, 2vw, 2rem);
}

/* Línea divisora horizontal de borde a borde */
.cursos-extra-divider {
    border: none;
    border-top: 2px solid #7a7a7a;
    width: 100%;
    margin: 0 0 clamp(0.75rem, 1.5vw, 1.25rem) 0;
}

/* Contenedor principal: 3 bloques en fila, cada uno 1/3 */
.cursos-extra-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

/* Cada bloque (textos + imagen) */
.cursos-extra-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;              /* Centrado vertical de textos e imagen */
    justify-content: center;
    gap: clamp(0.4rem, 0.8vw, 0.75rem);
    padding: clamp(0.5rem, 1vw, 1rem) clamp(0.5rem, 1.2vw, 1.25rem);
}

/* Bloque de textos (título encima del subtítulo, ambos a la izquierda) */
.extra-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.extra-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
    color: #000e34;
    font-size: clamp(0.8rem, 0.95vw, 1.05rem);
    line-height: 1.2;
    margin-bottom: clamp(0.1rem, 0.25vw, 0.25rem);
    text-align: left;
}

.extra-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #7a7a7a;
    font-size: clamp(1rem, 1vw, 1rem);
    line-height: 1.25;
    text-align: left;
}

/* Imagen (10% más alta que el bloque de textos, centrada verticalmente) */
/* Imagen (más pequeña, a la izquierda de los textos) */
.extra-icon {
    order: -1;                        /* La mueve al inicio del flexbox */
    height: 110%;
    width: auto;
    max-width: 17%;                   /* Antes 22% */
    object-fit: contain;
    flex-shrink: 0;
}

/* Divisores verticales entre los 3 bloques (estilo navbar) */
.cursos-extra-container .vertical-divider {
    width: 2px;
    height: auto;
    background-color: #e8e8e8;
    align-self: stretch;
    flex-shrink: 0;
}

/* =========================================================
   RESPONSIVIDAD MÓVIL (Sub-sección Extra)
========================================================= */
@media (max-width: 900px) {
    .cursos-extra-container {
        flex-direction: column;
        align-items: center;              /* Centra horizontalmente cada item */
        gap: clamp(0.75rem, 2.5vw, 1.25rem);
        width: 100%;
    }

    .cursos-extra-item {
        flex: none;
        width: 100%;                      /* Mismo ancho para los 3 */
        max-width: 380px;                 /* Ancho tope para que no se estiren */
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;      /* Imagen + textos alineados a la izquierda */
        gap: clamp(0.5rem, 2vw, 0.875rem);
        padding: 0.5rem 1rem;
    }

    /* Ocultamos los divisores verticales al apilarse */
    .cursos-extra-container .vertical-divider {
        display: none;
    }

    /* Imagen: misma proporción y posición (izquierda) que en escritorio */
    .extra-icon {
        order: -1;
        height: clamp(2rem, 9vw, 2.75rem);
        width: auto;
        max-width: 17%;
        flex-shrink: 0;
    }

    /* Textos: se mantienen a la izquierda y del mismo tamaño entre items */
    .extra-texts {
        flex: 1;
        align-items: flex-start;
        text-align: left;
    }

        .extra-title {
        font-size: clamp(1rem, 3.6vw, 1.2rem);
        text-align: left;
    }

    .extra-subtitle {
        font-size: clamp(0.85rem, 3.1vw, 1.05rem);
        text-align: left;
    }
}

/* =========================================================
   SECCIÓN CÓMO INSCRIBIRTE
========================================================= */
.inscribirte-section {
    background-color: #eef7fe;
    width: 100%;
    padding: clamp(2.5rem, 5vw, 5rem) 0;
}

/* Contenedor con margen lateral reducido para aprovechar el ancho */
.inscribirte-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.5vw, 2.5rem);   /* Antes: clamp(1.5rem, 5vw, 5rem) */
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 3.5vw, 3.5rem);         /* Antes: clamp(1.5rem, 2.5vw, 2.5rem) */
}

/* Título principal */
.inscribirte-title {
    color: #070a66;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3rem);     /* Antes: clamp(1.75rem, 4vw, 2.5rem) */
    line-height: 1.15;
    text-align: left;
    margin: 0;
}

/* =========================================================
   MATRIZ 2x2 DE PASOS
========================================================= */
.pasos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 1.75vw, 1.75rem);       /* Antes: clamp(0.875rem, 1.5vw, 1.5rem) */
    width: 100%;
}

/* Card individual */
.paso-card {
    background-color: #ffffff;
    border-radius: 0.875rem;
    box-shadow: 0 5px 18px rgba(7, 10, 102, 0.09);
    padding: clamp(1.25rem, 1.8vw, 1.875rem) clamp(1.5rem, 2.2vw, 2.25rem);  /* Más padding interno */
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.5vw, 1.75rem);        /* Antes: clamp(0.75rem, 1.2vw, 1.25rem) */
    min-height: clamp(5rem, 6.5vw, 8rem);    /* Antes: clamp(3rem, 4vw, 5rem) — casi el doble */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.paso-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(7, 10, 102, 0.14);
}

/* Círculo con número */
.paso-circle {
    flex-shrink: 0;
    width: clamp(2.75rem, 3.5vw, 4rem);      /* Antes: clamp(2rem, 2.5vw, 2.75rem) */
    height: clamp(2.75rem, 3.5vw, 4rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 1.5vw, 1.6rem); /* Antes: clamp(0.9rem, 1.1vw, 1.15rem) */
    line-height: 1;
}

.paso-circle-naranja { background-color: #f87303; }
.paso-circle-azul    { background-color: #017dea; }

/* Bloque de textos */
.paso-texts {
    display: flex;
    flex-direction: column;
    gap: clamp(0.2rem, 0.35vw, 0.4rem);
    min-width: 0;
}

.paso-title {
    color: #070a66;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.35vw, 1.4rem);   /* Antes: clamp(0.9rem, 1.05vw, 1.1rem) */
    line-height: 1.25;
    text-align: left;
    margin: 0;
    max-width: 20rem;                            /* Ajuste manual del ancho máximo */
}

.paso-subtitle {
    color: #7a7a7a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 450;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);   /* Antes: clamp(0.78rem, 0.9vw, 0.95rem) */
    line-height: 1.35;
    text-align: left;
    margin: 0;
    max-width: 26rem;                            /* Ajuste manual del ancho máximo */
}

/* =========================================================
   AVISO NARANJA FINAL
========================================================= */
.aviso-preinscripcion {
    background-color: rgba(248, 115, 3, 0.2);
    border: 2px solid #f87303;
    border-radius: 0.875rem;
    padding: clamp(0.875rem, 1.4vw, 1.375rem) clamp(1.5rem, 2vw, 2rem);   /* Más alto */
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.3vw, 1.5rem);
    min-height: clamp(3.5rem, 4.5vw, 5.5rem);    /* Antes: clamp(1.75rem, 2.5vw, 2.75rem) */
    width: 100%;
}

/* Círculo naranja con "!" */
.aviso-circle {
    flex-shrink: 0;
    width: clamp(2.25rem, 2.75vw, 3rem);         /* Antes: clamp(1.75rem, 2vw, 2.25rem) */
    height: clamp(2.25rem, 2.75vw, 3rem);
    border-radius: 50%;
    background-color: #f87303;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 1.4vw, 1.5rem);    /* Antes: clamp(0.9rem, 1.1vw, 1.15rem) */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto del aviso */
.aviso-text {
    color: #f87303;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.2vw, 1.2rem);       /* Antes: clamp(0.85rem, 1vw, 1rem) */
    line-height: 1.3;
    text-align: left;
    margin: 0;
}

@media (max-width: 900px) {
    .inscribirte-container {
        padding: 0 clamp(0.875rem, 4vw, 1.5rem);   /* Menos margen lateral en móvil */
        gap: clamp(1.5rem, 5vw, 2.25rem);
    }

    .inscribirte-title {
        text-align: center;
    }

    .pasos-grid {
        grid-template-columns: 1fr;
        gap: clamp(0.875rem, 3vw, 1.125rem);
    }

    /* Los max-width se anulan en móvil para que el texto use todo el espacio */
    .paso-title,
    .paso-subtitle {
        max-width: 100%;
    }

    .aviso-preinscripcion {
        width: 100%;
        padding: 0.875rem 1.125rem;
        min-height: auto;
        align-items: flex-start;
    }

    .aviso-circle {
        margin-top: 0.1rem;
    }
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background-color: #000e34;
    width: 100%;
    padding: clamp(2rem, 3.5vw, 3.5rem) 0 clamp(1.5rem, 2vw, 2rem);
}

.footer-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 3rem);   /* Margen lateral de los grupos */
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

/* =========================================================
   FILA SUPERIOR (2 GRUPOS)
========================================================= */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 3rem);
}

/* -------- Grupo izquierda -------- */
.footer-group-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.5rem, 0.8vw, 0.75rem);
}

.footer-logo {
    height: clamp(2rem, 2.5vw, 3rem);
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-legal-link {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(0.65rem, 0.72vw, 0.8rem);  /* ~0.7rem en monitor grande */
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-legal-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* -------- Grupo derecha -------- */
.footer-group-right {
    display: flex;
    align-items: center;                        /* Centrado vertical entre textos y botón */
    justify-content: flex-end;
}

/* Wrapper que permite que el botón tome el ancho del subtítulo de arriba */
.footer-right-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;                       /* El botón se estira al ancho del subtítulo */
    gap: clamp(0.5rem, 0.8vw, 0.75rem);
    text-align: center;
}

.footer-dudas-text {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 0.95vw, 1rem);
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;                        /* Evita que se rompa y marque el ancho del botón */
}

.footer-whatsapp-btn {
    display: block;
    background-color: #ffffff;
    color: #017dea;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
    text-align: center;
    text-decoration: none;
    padding: clamp(0.5rem, 0.7vw, 0.7rem) clamp(0.875rem, 1.2vw, 1.25rem);
    border-radius: 2rem;                        /* Laterales redondeados */
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.footer-whatsapp-btn:hover {
    background-color: #eef7fe;
    transform: translateY(-1px);
}

/* =========================================================
   LÍNEA DIVISORA
   (No toca los bordes de la sección, pero sobresale del padding del contenedor)
========================================================= */
.footer-divider {
    border: none;
    border-top: 2px solid #ffffff;
    /* Menos margen lateral que el contenedor → sobresale visualmente */
    margin: 0 calc(-1 * clamp(0.5rem, 1.5vw, 1.5rem));
    width: auto;
}

/* =========================================================
   FILA INFERIOR (2 TEXTOS)
========================================================= */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.footer-bottom-text {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(0.65rem, 0.72vw, 0.8rem);  /* Igual que el link legal */
    line-height: 1.3;
    margin: 0;
}

.footer-bottom-left  { text-align: left;  }
.footer-bottom-right { text-align: right; }

/* =========================================================
   RESPONSIVIDAD MÓVIL — FOOTER
========================================================= */
@media (max-width: 900px) {
    .footer-container {
        padding: 0 clamp(1rem, 5vw, 1.5rem);
        gap: clamp(1.25rem, 4vw, 1.75rem);
        align-items: center;                    /* Todo el contenido centrado */
    }

    /* Fila superior apilada y centrada */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: clamp(1.25rem, 4vw, 1.75rem);
        width: 100%;
    }

    /* Grupo izquierda centrado */
    .footer-group-left {
        align-items: center;
        text-align: center;
    }

    /* Grupo derecha centrado */
    .footer-group-right {
        justify-content: center;
        width: 100%;
    }

    .footer-right-inner {
        align-items: center;                    /* El botón ya no necesita estirarse; centrado */
    }

    .footer-dudas-text {
        white-space: normal;                    /* Permitimos wrap en móvil */
        text-align: center;
    }

    .footer-whatsapp-btn {
        white-space: normal;
    }

    /* El divisor en móvil ocupa un ancho cómodo */
    .footer-divider {
        margin: 0;
        width: 100%;
    }

    /* Fila inferior apilada y centrada */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
        width: 100%;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        text-align: center;
    }
}

/* =========================================================
   ENLACE "CONSULTA TU CURP AQUÍ"
========================================================= */
.curp-link-text {
    text-align: left;
    margin-top: -0.5rem;      /* Lo acerca visualmente al aviso de privacidad */
    margin-bottom: 0.25rem;
    font-size: 0.75rem;        /* Letras chiquitas */
    line-height: 1.3;
}

.curp-link-text a {
    color: #a0a0a0;            /* Gris sutil */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.curp-link-text a:hover {
    color: #147fd5;            /* Azul del tema al pasar el cursor */
}