/* Estabilidad del layout al redimensionar: sin márgenes por defecto ni desbordes */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    scroll-padding-top: 100px;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
    background-color: #fafafa;
    color: #333333;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    box-sizing: border-box;
}

a {
    color: #03658C;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 80px 16px 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #0a5587;
    color: #F2F2F2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.logo-enlace {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.logo-enlace:hover {
    color: #ffffff;
    text-decoration: none;
}

.logo-img {
    width: 120px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.main-nav .nav-list a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    padding: 10px 18px;
    border-radius: 12px;
    background-color: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.main-nav .nav-list a:hover {
    color: #ffffff;
    text-decoration: none;
}

.main-nav .nav-list a.active {
    color: #ffffff;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.main-nav .nav-list a.active:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

@keyframes whatsapp-pulso {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 3px rgba(37, 211, 102, 0.35),
            0 2px 6px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.06);
        box-shadow:
            0 0 0 6px rgba(37, 211, 102, 0.25),
            0 2px 12px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
}

.header-whatsapp {
    position: absolute;
    right: 80px;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5ee66e, #25D366 45%, #1da851);
    box-shadow:
        0 0 0 3px rgba(37, 211, 102, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    animation: whatsapp-pulso 2s ease-in-out infinite;
}

.header-whatsapp:hover {
    text-decoration: none;
    animation: none;
    transform: scale(1.05);
}

.header-whatsapp-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.header-whatsapp-label {
    position: absolute;
    right: 136px;
    top: 20px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.92);
    color: #25d366;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-whatsapp-label--visible {
    opacity: 1;
    transform: translateX(0);
}

.header-whatsapp:hover + .header-whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

.site-main {
    padding: 0 16px 48px;
    max-width: 1120px;
    margin: 0 auto;
}

.section {
    margin-bottom: 48px;
}

.section-titulo,
.section-subtitulo,
.titulo-principal {
    color: #03658C;
}

.section-titulo {
    font-size: 1.875rem;
}

.titulo-principal {
    font-size: 2rem;
    margin-bottom: 8px;
}

.subtitulo-principal {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 16px;
}

.texto-destacado {
    max-width: 640px;
    margin-bottom: 24px;
}

.boton-primario {
    display: inline-block;
    padding: 14px 32px;
    background-color: #4EA65B;
    color: #ffffff;
    border: 1px solid #4EA65B;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.boton-primario:hover {
    background-color: #3d8448;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
    text-decoration: none;
}

.boton-secundario {
    display: inline-block;
    padding: 14px 32px;
    background-color: #0a5587;
    color: #ffffff;
    border: 1px solid #4EA65B;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.boton-secundario:hover {
    background-color: #003b69;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
    text-decoration: none;
}

.section-encabezado {
    margin-bottom: 24px;
}

.section-cursos {
    background-color: #fafafa;
}

.section-cursos .section-encabezado {
    text-align: center;
}

.section-cursos .section-encabezado .section-descripcion {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Línea del tiempo: carrera hacia la licencia ===== */
.timeline-certificacion {
    margin-top: 48px;
    margin-bottom: 24px;
}

.timeline-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #03658C;
    text-align: center;
    margin: 0 0 32px;
}

/* Tarjeta contenedora: fondo claro, bordes redondeados, borde punteado */
.timeline-tarjeta {
    background-color: #f5f7f9;
    border: 2px dashed rgba(10, 86, 135, 0.2);
    border-radius: 16px;
    padding: 28px 20px 32px;
    position: relative;
}

/* Si la fila de pasos no cabe, se oculta la pista para no desalinear el coche */
.timeline--sin-pista .timeline-pista {
    display: none;
}

/* Contenedor de la pista: se alinea por JS con el centro real de los números */
.timeline-pista {
    position: absolute;
    top: var(--timeline-pista-top, 66px);
    left: 0;
    right: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

/* Línea base de la pista (dashed, gris claro): del primer número a la meta */
.timeline-pista-fondo {
    position: absolute;
    left: var(--timeline-pista-inicio, 24px);
    width: var(--timeline-pista-largo, 0px);
    top: -4px;
    height: 8px;
    border-top: 2px dashed rgba(10, 86, 135, 0.25);
    border-bottom: 2px dashed rgba(10, 86, 135, 0.25);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

/* Línea de progreso: avanza junto al coche, tramo a tramo */
.timeline-pista-progreso {
    position: absolute;
    left: var(--timeline-pista-inicio, 24px);
    top: -4px;
    height: 8px;
    width: 0;
    background: linear-gradient(90deg, #0a5587 0%, #43A4C4 100%);
    border-radius: 3px;
    transition: width var(--timeline-tramo, 700ms) cubic-bezier(0.45, 0.05, 0.3, 1);
}

/* Coche: arranca y frena en cada número; va por detrás de los círculos */
.timeline-pista-coche {
    position: absolute;
    left: var(--timeline-pista-inicio, 24px);
    top: 0;
    transform: translate(-50%, -50%) scaleX(-1);
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    transition: left var(--timeline-tramo, 700ms) cubic-bezier(0.45, 0.05, 0.3, 1);
}

/* Contenedor flex de los pasos (números por delante del coche) */
.timeline-linea {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 2;
    overflow-x: auto;
    padding-top: 8px;
    scrollbar-width: thin;
}

.timeline-paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 140px;
    max-width: 200px;
    position: relative;
    z-index: 2;
}

/* Círculos numerados: grises por defecto; se encienden en verde cuando el coche está justo en el número */
.timeline-nodo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #9ca3af;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Se encienden cuando el coche se detiene en el número (lo marca el JS) */
.timeline-paso--activo .timeline-nodo {
    background-color: #4EA65B;
    box-shadow: 0 2px 10px rgba(78, 166, 91, 0.5);
}

/* Destello en el instante en que el coche llega */
.timeline-paso--encendiendo .timeline-nodo {
    animation: timeline-nodo-destello 0.55s ease-out;
}

@keyframes timeline-nodo-destello {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(78, 166, 91, 0.55); }
    45% { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(78, 166, 91, 0); }
    100% { transform: scale(1); box-shadow: 0 2px 10px rgba(78, 166, 91, 0.5); }
}

.timeline-texto {
    margin: 14px 4px 0;
    font-size: 0.8125rem;
    color: #333;
    line-height: 1.4;
    text-align: center;
    transition: color 0.25s ease;
}

.timeline-paso--activo .timeline-texto {
    color: #14304a;
}

/* Meta al final: bandera 🏁 */
.timeline-meta {
    flex: 0 0 auto;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
}

/* Banderín de meta: forma de bandera con poste, sin círculo */
.timeline-meta-bandera {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    line-height: 1;
    padding: 4px 0 4px 10px;
    border-left: 4px solid #2d5a34;
    background: linear-gradient(90deg, rgba(78, 166, 91, 0.15) 0%, transparent 100%);
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform-origin: left center;
}

/* Ondea cuando el coche cruza la meta */
.timeline-meta--activo .timeline-meta-bandera {
    animation: timeline-bandera 0.7s ease-in-out 3;
}

@keyframes timeline-bandera {
    0%, 100% { transform: rotate(0deg); }
    35% { transform: rotate(-9deg); }
    70% { transform: rotate(5deg); }
}

.timeline-meta-texto {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #4EA65B;
    text-align: center;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}

.timeline-meta--activo .timeline-meta-texto {
    transform: scale(1.08);
}

/* Accesibilidad: sin movimiento si el sistema lo pide */
@media (prefers-reduced-motion: reduce) {
    .timeline-pista-coche,
    .timeline-pista-progreso {
        transition: none;
    }

    .timeline-paso--encendiendo .timeline-nodo,
    .timeline-meta--activo .timeline-meta-bandera {
        animation: none;
    }
}

/* Banner importante: 90 días */
.timeline-importante {
    margin-top: 2rem;
    padding: 1rem 1.25rem 1rem 3rem;
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d4 100%);
    border: 1px solid #e6c84a;
    border-radius: 12px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-importante-icono {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.timeline-importante p {
    margin: 0;
    font-size: 1rem;
    color: #5c4a00;
}

.timeline-importante-dias {
    font-weight: 700;
    color: #3d3200;
}

.timeline-importante strong {
    color: #3d3200;
}

/* Responsive: timeline vertical cuando la pista horizontal no cabe */
@media (max-width: 1100px) {
    .timeline-tarjeta {
        padding: 24px 16px 28px;
    }

    .timeline-pista {
        display: none;
    }

    .timeline-linea {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-x: visible;
        padding-top: 0;
    }

    .timeline-paso {
        flex: none;
        min-width: 0;
        max-width: none;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 12px 0;
        border-bottom: 1px dashed rgba(10, 86, 135, 0.2);
    }

    .timeline-paso:last-of-type {
        border-bottom: none;
    }

    .timeline-nodo {
        flex-shrink: 0;
    }

    .timeline-texto {
        margin: 0;
        text-align: left;
        flex: 1;
    }

    .timeline-meta {
        flex-direction: row;
        gap: 12px;
        padding: 16px 0 0;
        border-top: 1px dashed rgba(10, 86, 135, 0.25);
        margin-top: 8px;
    }

    .timeline-meta-texto {
        margin-top: 0;
    }

    .timeline-importante {
        padding-left: 3rem;
    }
}

.section-nosotros,
.aprende-wrapper-nosotros,
.proposito-wrapper-nosotros {
    background-color: #43A4C4;
    padding: 32px 24px 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Lo que aprenderás: 4 tarjetas en la misma línea (especificidad mayor que .nosotros-porque-columnas) */
.aprende-wrapper-nosotros .nosotros-porque-columnas.nosotros-porque-columnas--aprende {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

@media (max-width: 900px) {
    .aprende-wrapper-nosotros .nosotros-porque-columnas.nosotros-porque-columnas--aprende {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .aprende-wrapper-nosotros .nosotros-porque-columnas.nosotros-porque-columnas--aprende {
        grid-template-columns: 1fr;
    }
}

.aprende-wrapper-nosotros .nosotros-check {
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.25s ease;
}

.aprende-wrapper-nosotros .nosotros-col:hover .nosotros-check {
    color: #43A4C4;
}

.section-nosotros .section-titulo,
.section-nosotros .section-subtitulo,
.section-nosotros .nosotros-porque-titulo,
.section-nosotros .nosotros-col-titulo,
.section-mision-vision .section-subtitulo {
    text-align: center;
}

.section-nosotros .section-titulo {
    margin-bottom: 16px;
}

.section-nosotros .section-subtitulo {
    margin-top: 0;
    margin-bottom: 16px;
}

.section-nosotros .lista-simple {
    max-width: 720px;
}

/* ¿Por qué elegir a INNOVAR? — layout 3 columnas con iconos y checks */
.nosotros-porque {
    text-align: center;
    margin-bottom: 32px;
}

/* Centrar todo el bloque en la sección Nosotros */
.section-nosotros > .nosotros-porque {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

.nosotros-porque-titulo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.3;
}

.nosotros-porque-descripcion {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.nosotros-porque-columnas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.nosotros-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(126, 200, 220, 0.5);
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nosotros-col:hover {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.nosotros-col:hover .nosotros-col-titulo,
.nosotros-col:hover .nosotros-col-lista {
    color: #1a1a1a;
}

.nosotros-col:hover .nosotros-col-icon {
    color: #0a5587;
}

.nosotros-col:hover .nosotros-check {
    color: #43A4C4;
}

.nosotros-col-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.25s ease;
}

.nosotros-col-icon svg {
    width: 48px;
    height: 48px;
}

.nosotros-col-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.nosotros-col-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.55;
    transition: color 0.25s ease;
}

.nosotros-col-lista li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.section-nosotros .nosotros-check {
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.25s ease;
}

@media (max-width: 900px) {
    .nosotros-porque-columnas {
        grid-template-columns: 1fr;
    }
}

.section-descripcion {
    max-width: 640px;
}

.section-faq .section-encabezado {
    text-align: center;
}

.section-faq .section-descripcion {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.faq-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    max-width: 1120px;
    margin: 0 auto;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-faq strong {
    font-weight: 400;
}

.faq-item {
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item-encabezado {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.faq-item-pregunta {
    font-weight: 400;
    color: #03658C;
}

.faq-item-icon::before {
    content: '▾';
    display: inline-block;
    font-size: 1rem;
    color: #03658C;
    transition: transform 0.2s ease;
}

.faq-item-cuerpo {
    padding: 0 20px 16px;
    font-size: 0.9375rem;
}

.faq-item-cuerpo p {
    margin-top: 0;
    margin-bottom: 8px;
}

.faq-item-cuerpo .lista-simple {
    margin-top: 4px;
}

.faq-item--activo {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.faq-item--activo .faq-item-encabezado {
    background-color: #ffffff;
}

.faq-item--activo .faq-item-pregunta {
    color: #03658C;
}

.faq-item--activo .faq-item-icon::before {
    color: #03658C;
    transform: rotate(180deg);
}

.rejilla-cursos,
.rejilla-herramientas,
.rejilla-inscripciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.rejilla-cursos {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Galería de herramientas: una tarjeta visible a la vez, carrusel infinito con flechas */
.galeria-herramientas-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-herramientas {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 4px 0;
}

.galeria-herramientas .rejilla-herramientas {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    grid-template-columns: unset;
    padding: 0;
    transition: transform 0.35s ease-out;
}

.galeria-herramientas .tarjeta-herramienta {
    flex: 0 0 calc(50% - 6px);
    min-width: 0;
    box-sizing: border-box;
}

.galeria-herramientas-flecha {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    align-self: center;
    border: none;
    border-radius: 50%;
    background: #0a5587;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(10, 85, 135, 0.3);
}

.galeria-herramientas-flecha:hover {
    background: #084670;
    transform: scale(1.05);
}

.galeria-herramientas-flecha:active {
    transform: scale(0.98);
}

.galeria-herramientas-flecha:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.galeria-herramientas-flecha svg {
    width: 24px;
    height: 24px;
}

/* En computador: rejilla fija de 3 tarjetas, sin carrusel ni flechas */
@media (min-width: 1025px) {
    .galeria-herramientas-wrapper {
        display: block;
    }
    .galeria-herramientas-flecha {
        display: none;
    }
    .galeria-herramientas {
        overflow: visible;
        padding: 0;
    }
    .galeria-herramientas .rejilla-herramientas {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        transform: none !important;
        transition: none;
        flex-wrap: unset;
    }
    .galeria-herramientas .tarjeta-herramienta {
        flex: none;
        min-width: 0;
    }
    /* Ocultar tarjetas clonadas (solo se muestran las 3 originales) */
    .galeria-herramientas .rejilla-herramientas .tarjeta-herramienta:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 900px) {
    .galeria-herramientas-flecha {
        width: 40px;
        height: 40px;
    }
    .galeria-herramientas-flecha svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .galeria-herramientas-wrapper {
        padding: 0 4px;
    }
    .galeria-herramientas .rejilla-herramientas {
        gap: 0;
    }
    .galeria-herramientas .tarjeta-herramienta {
        flex: 0 0 100%;
    }
    .galeria-herramientas-flecha {
        width: 36px;
        height: 36px;
    }
    .galeria-herramientas-flecha svg {
        width: 18px;
        height: 18px;
    }
}

/* Galería de cursos: carrusel 3 visibles con flechas */
.galeria-cursos-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    --galeria-gap: 20px;
    background-color: #fafafa;
}

.galeria-cursos {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    background-color: #fafafa;
}

.galeria-cursos-flecha {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #0a5587;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(10, 85, 135, 0.3);
}

.galeria-cursos-flecha:hover {
    background: #084670;
    transform: scale(1.05);
}

.galeria-cursos-flecha:active {
    transform: scale(0.98);
}

.galeria-cursos-flecha:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.galeria-cursos-flecha svg {
    width: 24px;
    height: 24px;
}

.galeria-cursos .rejilla-cursos {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--galeria-gap);
    grid-template-columns: unset;
    transition: transform 0.35s ease-out;
    padding: 4px 0;
}

.galeria-cursos .tarjeta-curso {
    flex: 0 0 var(--galeria-card-width, 280px);
    scroll-snap-align: none;
}

@media (max-width: 900px) {
    .rejilla-cursos {
        grid-template-columns: 1fr;
    }

    .galeria-cursos-wrapper {
        --galeria-gap: 16px;
    }

    .galeria-cursos-flecha {
        width: 40px;
        height: 40px;
    }

    .galeria-cursos-flecha svg {
        width: 20px;
        height: 20px;
    }

    .faq-lista {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .galeria-cursos-wrapper {
        padding: 0 4px;
    }

    .galeria-cursos-flecha {
        width: 36px;
        height: 36px;
    }

    .galeria-cursos-flecha svg {
        width: 18px;
        height: 18px;
    }
}

.tarjeta-curso,
.tarjeta-herramienta,
.tarjeta-inscripcion,
.tarjeta-texto {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    text-align: center;
}

.section-cursos .tarjeta-curso {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-cursos .tarjeta-curso-cuadro {
    background-color: #ffffff;
    padding: 24px 20px 20px;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
}

.section-cursos .tarjeta-curso-circulo {
    width: 100px;
    height: 100px;
    border-radius: 0;
    margin: 0 auto 14px;
    overflow: hidden;
    background-color: transparent;
}

.section-cursos .tarjeta-curso-circulo--placeholder {
    background-color: rgba(10, 85, 135, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-cursos .tarjeta-curso-circulo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-cursos .tarjeta-curso-cuadro .tarjeta-titulo {
    margin: 0;
    color: #0a5587;
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
}

.section-cursos .tarjeta-curso > .tarjeta-texto,
.section-cursos .tarjeta-curso > .tarjeta-lista,
.section-cursos .tarjeta-curso > .boton-primario {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 40px);
    max-width: 100%;
    box-sizing: border-box;
}

.section-cursos .tarjeta-curso > .tarjeta-texto {
    color: #0a5587;
    font-size: 0.9375rem;
    margin-top: 20px;
    margin-bottom: 12px;
    text-align: center;
}

.section-cursos .tarjeta-curso .tarjeta-lista {
    color: #555;
    font-size: 0.875rem;
    margin-bottom: 12px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    list-style-type: disc;
    list-style-position: outside;
    text-align: justify;
}

.section-cursos .tarjeta-curso-cuadro .tarjeta-precio {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.section-cursos .tarjeta-curso-cuadro .tarjeta-inicio {
    font-size: 0.875rem;
    color: #0a5587;
    margin: 0 0 8px;
    text-align: center;
}

.section-cursos .tarjeta-curso-cuadro .tarjeta-cuadro-descripcion {
    font-size: 0.8125rem;
    color: #0a5587;
    margin: 0 0 8px;
    text-align: center;
    line-height: 1.4;
}

.section-cursos .tarjeta-curso > .boton-primario {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    text-align: center;
    width: calc(100% - 40px);
    max-width: 280px;
    box-sizing: border-box;
}

.section-cursos .tarjeta-curso > .boton-primario:hover {
    background-color: #0a5587;
    border-color: #0a5587;
}

.section-cursos .tarjeta-curso:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tarjeta-curso:hover,
.tarjeta-herramienta:hover,
.tarjeta-inscripcion:hover,
.tarjeta-texto:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}

.section-cursos .tarjeta-curso:hover {
    transform: translateY(-4px);
    background-color: #ffffff;
}

/* Tarjeta Combo B1 - A2 */
.tarjeta-combo .tarjeta-combo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a5587 0%, #43A4C4 100%);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.tarjeta-combo .tarjeta-combo-badge span {
    display: block;
}

.tarjeta-combo .tarjeta-nota {
    font-size: 0.8125rem;
    color: #777;
    margin: 0 20px 16px;
    text-align: center;
}

/* Matices de color por sección */
.section-herramientas .section-encabezado {
    text-align: center;
    margin-bottom: 56px;
}

.section-herramientas .section-descripcion {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
}

.section-herramientas .tarjeta-herramienta {
    border-color: rgba(78, 166, 91, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    text-align: center;
}

.section-herramientas .tarjeta-herramienta .tarjeta-titulo {
    text-align: center;
}

.section-herramientas .tarjeta-herramienta .tarjeta-texto {
    flex: 1;
    margin-bottom: 16px;
    text-align: center;
}

.section-herramientas .tarjeta-herramienta .boton-primario,
.section-herramientas .tarjeta-herramienta .boton-consultar-material {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Guías descargables: lista y botón azul centrado */
.section-herramientas .tarjeta-guias {
    text-align: center;
}

.section-herramientas .tarjeta-guias .tarjeta-titulo {
    text-align: center;
}

.boton-consultar-material {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 32px;
    width: 260px;
    max-width: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #0a5587;
    border: 1px solid #0a5587;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(10, 85, 135, 0.35);
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.boton-consultar-material:hover {
    background-color: #064770;
    border-color: #064770;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(10, 85, 135, 0.45);
}

.btn-consultar-icono {
    display: inline-flex;
    flex-shrink: 0;
}

.btn-consultar-icono svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* Popup Guías: Consulta próximamente */
.guias-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.guias-modal-overlay.guias-modal--abierto {
    opacity: 1;
    visibility: visible;
}

.guias-modal-ventana {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.2);
    padding: 28px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.guias-modal-overlay.guias-modal--abierto .guias-modal-ventana {
    transform: scale(1);
}

.guias-modal-mensaje {
    margin: 0 0 16px;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.guias-modal-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
}

.guias-modal-lista li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.guias-modal-lista li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0a5587;
    font-weight: 700;
}

.guias-modal-lista li:last-child {
    margin-bottom: 0;
}

.guias-modal-lista li a {
    color: #0a5587;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guias-modal-lista li a:hover {
    color: #084a73;
}

.guias-modal-cerrar {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: #0a5587;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.guias-modal-cerrar:hover {
    background: #064770;
}

.section-inscripciones .tarjeta-inscripcion {
    border-color: rgba(3, 101, 140, 0.25);
}

.section-inscripciones .tarjeta-inscripcion .contacto-maps {
    margin-top: 16px;
}

/* Mismo ancho y centrados para los botones de Inscripciones y contacto */
.section-inscripciones .tarjeta-inscripcion .boton-primario,
.section-inscripciones .tarjeta-inscripcion .boton-secundario {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.contacto-maps-icono {
    display: inline-flex;
    flex-shrink: 0;
}

.contacto-maps-icono svg {
    display: block;
    width: 22px;
    height: 22px;
}

.section-inscripciones .tarjeta-inscripcion {
    text-align: center;
}

.section-inscripciones .tarjeta-inscripcion .lista-simple {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

/* Tipografía adaptativa en tarjetas de inscripción (375x667 y similares) */
.section-inscripciones .tarjeta-inscripcion .section-subtitulo {
    font-size: clamp(1rem, 0.5rem + 2.2vw, 1.375rem);
    line-height: 1.3;
}

/* Checklist animado – Requisitos para Matrícula */
.lista-requisitos-animada {
    list-style: none;
    padding-left: 0;
}

.requisito-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    list-style: none;
    transition: opacity 0.25s ease;
}

.requisito-item:last-child {
    margin-bottom: 0;
}

.requisito-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #4EA65B;
    border-radius: 50%;
    background: transparent;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.requisito-check::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: scale(0) rotate(45deg);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.requisito-item--hecho .requisito-check {
    background-color: #4EA65B;
    border-color: #4EA65B;
}

.requisito-item--hecho .requisito-check::after {
    transform: scale(1) rotate(45deg);
    opacity: 1;
}

.requisito-texto {
    flex: 1;
    /* Fuente adaptativa: en 375px ~0.85rem, en pantallas grandes 1rem */
    font-size: clamp(0.8125rem, 0.5rem + 1.4vw, 1rem);
    line-height: 1.4;
}

/* Checklist Contáctanos – mismo estilo que Requisitos pero en azul */
.lista-contacto-animada {
    list-style: none;
    padding-left: 0;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    list-style: none;
    transition: opacity 0.25s ease;
}

.contacto-item:last-child {
    margin-bottom: 0;
}

.contacto-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #0a5587;
    border-radius: 50%;
    background: transparent;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.contacto-check::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: scale(0) rotate(45deg);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.contacto-item--hecho .contacto-check {
    background-color: #0a5587;
    border-color: #0a5587;
}

.contacto-item--hecho .contacto-check::after {
    transform: scale(1) rotate(45deg);
    opacity: 1;
}

.contacto-texto {
    flex: 1;
    font-size: clamp(0.8125rem, 0.5rem + 1.4vw, 1rem);
    line-height: 1.4;
}

.boton-asesor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.boton-asesor-icono {
    display: inline-flex;
    flex-shrink: 0;
}

.boton-asesor .boton-asesor-icono svg {
    display: block;
    width: 22px;
    height: 22px;
}

.tarjeta-titulo {
    margin-top: 0;
    margin-bottom: 8px;
    color: #03658C;
}

.tarjeta-texto {
    margin-top: 0;
    margin-bottom: 16px;
}

.tarjeta-lista,
.lista-simple,
.lista-ordenada {
    padding-left: 20px;
}

/* Lo que aprenderás: bloques con icono, título y lista con check verde (estilo referente) */
.aprende-block {
    margin-top: 32px;
}

.aprende-titulo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a5587;
    text-align: center;
    margin: 0 0 12px;
}

.aprende-intro {
    font-size: 1rem;
    color: #555;
    text-align: center;
    margin: 0 auto 32px;
    max-width: 560px;
    line-height: 1.5;
}

.aprende-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.aprende-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.aprende-icono {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: #6b7280;
}

.aprende-icono svg {
    width: 100%;
    height: 100%;
}

.aprende-item-titulo {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    text-align: center;
}

.aprende-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aprende-lista li {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.aprende-lista li:last-child {
    margin-bottom: 0;
}

.aprende-check {
    position: absolute;
    left: 0;
    color: #4EA65B;
    font-weight: bold;
}

/* Propósito (Misión y Visión): 2 columnas, mismo estilo que ¿Por qué elegir? */
.proposito-wrapper-nosotros .nosotros-porque-columnas.nosotros-porque-columnas--proposito {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
}

.nosotros-col-texto {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.55;
    text-align: center;
    transition: color 0.25s ease;
}

.nosotros-col:hover .nosotros-col-texto {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .proposito-wrapper-nosotros .nosotros-porque-columnas.nosotros-porque-columnas--proposito {
        grid-template-columns: 1fr;
    }
}

.section-inicio {
    background-color: #0a5587;
    color: #F2F2F2;
    padding: 105px 0 75px;
    margin-left: -16px;
    margin-right: -16px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
}

.section-inicio .titulo-principal,
.section-inicio .section-titulo,
.section-inicio .section-subtitulo,
.section-inicio .subtitulo-principal {
    color: #F2F2F2;
    margin-top: 1.25rem;
    font-style: italic;
}

.section-inicio .titulo-principal {
    font-size: 3rem;
}

.section-inicio .texto-destacado {
    font-weight: 100;
    font-size: 1.0625rem;
}

.hero-contenedor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;
    min-height: 0;
}

.hero-contenido {
    max-width: 540px;
    min-width: 0;
}

.hero-contenido h2:empty {
    display: none;
}

.hero-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

/* Botones hero: mismo ancho y altura para que se vean simétricos */
.hero-botones .boton-primario,
.hero-botones .boton-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    box-sizing: border-box;
    text-align: center;
}

/* Botones hero: mismo estilo (transparente, borde y texto azul claro) */
.section-inicio .boton-primario {
    background-color: transparent;
    color: #a8d4f0;
    border: 2px solid #a8d4f0;
    box-shadow: none;
}

.section-inicio .boton-primario:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #b8dff5;
    border-color: #b8dff5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-inicio .boton-secundario {
    background-color: transparent;
    color: #a8d4f0;
    border: 2px solid #a8d4f0;
}

.section-inicio .boton-secundario:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #b8dff5;
    border-color: #b8dff5;
}

.boton-primario-whatsapp {
    position: relative;
    padding-left: 56px;
    padding-right: 32px;
}

.whatsapp-badge {
    position: absolute;
    left: -6px;
    top: 48%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5ee66e, #25D366 45%, #1da851);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    box-shadow:
        0 0 0 4px rgba(37, 211, 102, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 16px;
}

.whatsapp-badge-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    filter: brightness(1.05);
}

.hero-imagen-vehiculos {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: flex-end;
    align-self: end;
    margin-top: 12px;
    min-width: 0;
    overflow: hidden;
}

.hero-vehiculo {
    flex: 1;
    min-height: 280px;
    max-height: 420px;
    max-width: 92%;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-vehiculo-imagen {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 18px;
    display: block;
}

.section-contenido-principal {
    max-width: 720px;
}

.site-footer {
    padding: 28px 24px 32px;
    background-color: #1A1A36;
}

.footer-contenido {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-eslogan {
    text-align: center;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 400;
}

.footer-rejilla {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 32px 40px;
    align-items: start;
}

.footer-marca {
    max-width: 320px;
    min-width: 0;
}

.footer-marca-texto {
    min-width: 0;
    overflow-wrap: break-word;
}

.footer-logo {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-logo img {
    width: 100px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-marca-texto h3 {
    margin: 0 0 2px;
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
}

.footer-marca-texto p.footer-marca-subtitulo {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.3;
}

.footer-marca-texto p.footer-marca-miembros {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.footer-marca-texto p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
}

.footer-marca-texto a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-marca-texto a:hover {
    text-decoration: underline;
}

.footer-social {
    text-align: center;
}

.footer-social h4,
.footer-contacto h4 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-social-enlaces {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4EA65B;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(78, 166, 91, 0.4);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-btn:hover {
    background-color: #5eb86b;
    box-shadow: 0 6px 20px rgba(78, 166, 91, 0.5);
    text-decoration: none;
    color: #ffffff;
}

.footer-social-btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-copy {
    margin: 24px 0 0;
    padding-top: 16px;
    color: #ffffff;
    font-size: 0.875rem;
    text-align: center;
}

.footer-contacto {
    text-align: center;
}

.footer-contacto-botones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-contacto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    padding: 10px 20px;
    border-radius: 999px;
    background-color: #4EA65B;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 14px rgba(78, 166, 91, 0.4);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-contacto-btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-contacto-btn:hover {
    background-color: #5eb86b;
    box-shadow: 0 6px 20px rgba(78, 166, 91, 0.5);
    text-decoration: none;
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-rejilla {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
}

/* ========== Simulador teórico: botón Iniciar en tarjeta ========== */
/* Botón INICIAR: mismo estilo que "Hablar con un asesor" para buena legibilidad */
/* INICIAR y Hablar con un asesor: mismo ancho y centrados */
.section-herramientas .tarjeta-herramienta .boton-primario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 32px;
    width: 260px;
    max-width: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #4EA65B;
    border: 1px solid #4EA65B;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.section-herramientas .tarjeta-herramienta .boton-primario:hover {
    background-color: #3d8448;
    border-color: #3d8448;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* Icono bandera en botón INICIAR */
.btn-iniciar-examen {
    gap: 14px;
    animation: examenBtnPulso 2s ease-in-out infinite;
}

.btn-iniciar-icono {
    display: inline-flex;
    flex-shrink: 0;
}

.btn-iniciar-icono svg {
    display: block;
    width: 22px;
    height: 22px;
    transform: rotate(-25deg);
}

@keyframes examenBtnPulso {
    0%, 100% { opacity: 1; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
    50% { box-shadow: 0 14px 32px rgba(78, 166, 91, 0.45); }
}

/* ========== Popup modal: examen teórico interactivo ========== */
.examen-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.examen-modal-overlay.examen-modal--abierto {
    opacity: 1;
    visibility: visible;
}

.examen-modal-ventana {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.examen-modal-overlay.examen-modal--abierto .examen-modal-ventana {
    transform: scale(1);
}

.examen-modal-contenido {
    padding: 28px 24px 32px;
}

/* Barra de progreso */
.examen-progreso-wrap {
    margin-bottom: 24px;
}

.examen-progreso-texto {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a5587;
    margin-bottom: 8px;
}

.examen-progreso-barra {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.examen-progreso-fill {
    height: 100%;
    width: 5%;
    min-width: 5%;
    background: linear-gradient(90deg, #4EA65B, #5eb86b);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Título y pregunta */
.examen-modal-titulo {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.examen-pregunta-texto {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
}

/* Opciones (botones tipo radio) */
.examen-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.examen-opcion {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.9375rem;
    color: #374151;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.examen-opcion:hover {
    background: #f3f4f6;
    border-color: #0a5587;
}

.examen-opcion.examen-opcion--seleccionada {
    border-color: #0a5587;
    background: rgba(10, 85, 135, 0.08);
    color: #0a5587;
    font-weight: 600;
}

/* Botón Siguiente */
.examen-btn-siguiente {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #4EA65B;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.examen-btn-siguiente:hover:not(:disabled) {
    background: #3d8448;
}

.examen-btn-siguiente:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pantalla de resultado */
.examen-pantalla-resultado {
    text-align: center;
    padding: 16px 0 0;
}

.examen-pantalla-resultado.examen-resultado--aprobado {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
    margin: -28px -24px -32px;
    padding: 32px 24px 36px;
    border-radius: 16px;
}

.examen-pantalla-resultado.examen-resultado--reprobado {
    background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%);
    margin: -28px -24px -32px;
    padding: 32px 24px 36px;
    border-radius: 16px;
}

.examen-resultado-titulo {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.examen-resultado--aprobado .examen-resultado-titulo {
    color: #166534;
}

.examen-resultado--reprobado .examen-resultado-titulo {
    color: #9f1239;
}

.examen-resultado-puntaje {
    margin: 0 0 24px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.examen-btn-reintentar,
.examen-btn-cerrar {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 6px 8px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.examen-btn-reintentar {
    color: #fff;
    background: #0a5587;
    border: none;
}

.examen-btn-reintentar:hover {
    background: #064770;
}

.examen-btn-cerrar {
    color: #0a5587;
    background: transparent;
    border: 2px solid #0a5587;
}

.examen-btn-cerrar:hover {
    background: rgba(10, 85, 135, 0.1);
}

/* Ocultar pantalla de resultado hasta que corresponda */
.examen-pantalla.hidden {
    display: none !important;
}

/* Animación de transición entre preguntas */
.examen-pantalla-pregunta.examen-pregunta--entrando {
    animation: examenFadeIn 0.35s ease forwards;
}

@keyframes examenFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 520px) {
    .examen-modal-contenido {
        padding: 20px 16px 24px;
    }
    .examen-modal-titulo {
        font-size: 1.125rem;
    }
    .examen-pregunta-texto {
        font-size: 0.9375rem;
    }
    .examen-opcion {
        padding: 12px 14px;
        font-size: 0.875rem;
    }
}

/* ========== Responsive móvil (celular) ========== */

/* Botón hamburguesa: oculto en desktop */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}
.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease;
}
.nav-toggle-icon {
    position: relative;
    display: block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
}
.nav-toggle-icon::before { transform: translateY(-6px); }
.nav-toggle-icon::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg); }

/* Tablet y menores: menú hamburguesa (no solo móvil) */
@media (max-width: 1024px) {
    .site-header {
        padding: 14px 20px;
        gap: 12px;
    }
    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 16px;
    }
    .header-whatsapp {
        order: 3;
        position: static;
    }
    .header-whatsapp-label {
        display: none;
    }
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        background: rgba(10, 85, 135, 0.98);
        z-index: 999;
        padding: 72px 24px 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .main-nav.nav-abierto {
        opacity: 1;
        visibility: visible;
    }
    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        max-height: 100%;
        overflow: auto;
    }
    .main-nav .nav-list a {
        padding: 14px 16px;
        font-size: 1.0625rem;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    /* Hero más compacto en tablet (iPad mini, etc.): imagen contenida sin recortes */
    .hero-contenedor {
        padding: 0 40px;
        gap: 24px;
    }
    .section-inicio .titulo-principal {
        font-size: 2.25rem;
    }
    .section-inicio {
        padding: 88px 0 56px;
    }
    .hero-imagen-vehiculos {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        overflow: visible;
    }
    .hero-vehiculo {
        min-height: 0;
        max-height: none;
        max-width: 100%;
        width: 100%;
    }
    .hero-vehiculo-imagen {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: center bottom;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    .site-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        box-sizing: border-box;
        width: 100%;
        gap: 12px;
    }
    .logo-img {
        width: 100px;
        max-height: 48px;
    }
    .site-main {
        padding: 0 16px 48px;
    }
    /* Hero a ancho completo en móvil (fondo azul de borde a borde, sin usar 100vw para evitar franja blanca) */
    .section-inicio {
        padding: 72px 0 40px;
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        left: auto;
        right: auto;
        box-sizing: border-box;
    }
    .hero-contenedor {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        text-align: center;
        max-width: 100%;
    }
    .hero-contenido {
        order: 1;
        max-width: none;
    }
    .hero-imagen-vehiculos {
        order: 2;
        justify-content: center;
        margin-top: 0;
        max-width: 100%;
        min-width: 0;
    }
    .section-inicio .titulo-principal {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .section-inicio .subtitulo-principal {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .section-inicio .texto-destacado {
        font-size: 0.9375rem;
    }
    .section-inicio .texto-destacado br {
        display: none;
    }
    .hero-botones {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }
    .hero-botones .boton-primario,
    .hero-botones .boton-secundario {
        width: 100%;
        min-width: 0;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        justify-content: center;
    }
    .hero-imagen-vehiculos {
        overflow: visible;
    }
    .hero-vehiculo {
        min-height: 0;
        max-height: none;
        max-width: 100%;
    }
    .hero-vehiculo-imagen {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: center bottom;
    }
    .rejilla-herramientas,
    .rejilla-inscripciones {
        grid-template-columns: 1fr;
    }
    .section-herramientas .tarjeta-herramienta .boton-primario,
    .section-herramientas .tarjeta-herramienta .boton-consultar-material {
        width: 100%;
        max-width: 260px;
    }
    .bloque-mision-vision {
        grid-template-columns: 1fr;
    }
    .section-descripcion {
        padding: 0 8px;
    }
    .aprende-wrapper-nosotros .nosotros-porque-columnas.nosotros-porque-columnas--aprende,
    .proposito-wrapper-nosotros .nosotros-porque-columnas.nosotros-porque-columnas--proposito {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 12px;
    }
    .nav-toggle {
        margin-right: 12px;
    }
    .logo-img {
        width: 88px;
    }
    .section-inicio .titulo-principal {
        font-size: 1.375rem;
        line-height: 1.35;
    }
    .section-inicio .subtitulo-principal {
        font-size: 0.9375rem;
    }
    .section-titulo {
        font-size: 1.5rem;
    }
    .section-inicio {
        padding: 64px 0 32px;
    }
    .hero-contenedor {
        padding: 0 16px;
        gap: 16px;
    }
    .hero-vehiculo {
        min-height: 0;
        max-height: none;
    }
    .hero-vehiculo-imagen {
        width: 100%;
        height: auto;
        min-height: 0;
    }
    .hero-botones .boton-primario,
    .hero-botones .boton-secundario {
        max-width: 100%;
        padding: 12px 20px;
    }
    .tarjeta-herramienta,
    .tarjeta-inscripcion,
    .tarjeta-texto {
        padding: 16px;
    }
    .examen-modal-ventana,
    .guias-modal-ventana {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
    .footer-contenido {
        padding: 0 8px;
    }
}
