* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul: #003b71;
    --azul-claro: #0077be;
    --gris: #f4f6f8;
    --gris-texto: #4a5568;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a2a3a;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primario {
    background: var(--azul-claro);
    color: #fff;
}

.btn-primario:hover {
    background: #005f99;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.35);
}

.btn-secundario {
    background: transparent;
    color: var(--azul);
    border: 2px solid var(--azul);
}

.btn-secundario:hover {
    background: var(--azul);
    color: #fff;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul);
    text-decoration: none;
}

.logo span {
    color: var(--azul-claro);
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
}

.logo-name {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--azul);
    line-height: 1.2;
}

.logo-sub {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.68rem;
    color: rgba(26, 42, 58, 0.58);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--azul-claro);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--azul);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-top: 60px;
    padding: 40px 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    isolation: isolate;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 37, 76, 0.8);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

body.home-page .hero {
    height: 100vh;
}

body.home-page .hero-overlay {
    background: rgba(0, 37, 76, 0.75);
}

.seccion {
    padding: 100px 0;
}

.seccion-gris {
    background: var(--gris);
}

.seccion-con-fondo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.seccion-con-fondo .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.seccion-con-fondo .container {
    position: relative;
    z-index: 2;
}

.seccion-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 1rem;
    text-align: center;
}

.seccion-subtitulo {
    font-size: 1.15rem;
    color: var(--gris-texto);
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.servicios-grid,
.grid-3,
.cursos-grid,
.etapas-grid,
.grid-equipo,
.testimonios-grid {
    display: grid;
    gap: 30px;
}

.servicios-grid,
.cursos-grid,
.etapas-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3,
.testimonios-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-equipo {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.servicios-grid,
.cursos-grid {
    margin-top: 40px;
}

.servicio-card,
.card,
.etapa-card,
.miembro,
.testimonio-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.servicio-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-card:hover,
.curso-card:hover {
    transform: translateY(-5px);
}

.servicio-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.servicio-icono {
    font-size: 2.5rem;
    color: var(--azul-claro);
    margin-bottom: 20px;
}

.servicio-card h3,
.card h3,
.etapa-card h3,
.curso-card h3 {
    color: var(--azul);
}

.servicio-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.servicio-card p,
.curso-card p {
    color: var(--gris-texto);
}

.sobre-nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-nosotros img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonio-card {
    padding: 30px;
    border-left: 4px solid var(--azul-claro);
}

.testimonio-texto {
    font-style: italic;
    margin-bottom: 20px;
    color: #2d3748;
}

.testimonio-autor {
    font-weight: 600;
    color: var(--azul);
}

.testimonio-card--perfil {
    padding: 28px;
    border-left: none;
}

.testimonio-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.testimonio-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 119, 190, 0.18);
    flex-shrink: 0;
}

.testimonio-avatar--iniciales {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
    color: var(--azul);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    box-shadow: inset 0 0 0 1px rgba(0, 59, 113, 0.08);
}

.testimonio-cargo {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.92rem;
}

.testimonio-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.testimonio-stars small {
    color: #8a5a00;
    background: #fff4d6;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.76rem;
    letter-spacing: normal;
}

.cta-final {
    background: var(--azul);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.card {
    padding: 40px 30px;
}

.card h3 {
    margin-bottom: 15px;
}

.curso-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.curso-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.curso-info {
    padding: 20px;
}

.curso-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.curso-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.precio {
    font-weight: 700;
    color: var(--azul-claro);
    font-size: 1.1rem;
}

.etapa-card {
    padding: 40px 30px;
    text-align: center;
    border-top: 4px solid var(--azul-claro);
    color: #1a2a3a;
}

.etapa-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.numero {
    font-size: 3rem;
    font-weight: 700;
    color: var(--azul-claro);
    margin-bottom: 10px;
}

.miembro {
    padding: 30px;
    text-align: center;
    color: #1a2a3a;
}

.miembro img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.historia-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.historia-media {
    order: 1;
    justify-self: start;
    width: 100%;
}

.historia-media img {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.historia-texto {
    max-width: 680px;
    order: 2;
    justify-self: end;
}

.contacto-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 2px rgba(0, 119, 190, 0.2);
}

.conditional-field {
    display: none;
}

.conditional-field.is-visible {
    display: block;
}

.curso-actions {
    margin-top: 20px;
}

.contacto-form .btn-primario {
    width: 100%;
}

.como-trabajamos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.estado-formulario {
    max-width: 760px;
    margin: 0 auto 30px;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.estado-formulario__detalle {
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.92;
    word-break: break-word;
}

.estado-formulario.exito {
    background: rgba(34, 197, 94, 0.15);
    color: #d1fae5;
    border: 1px solid rgba(187, 247, 208, 0.35);
}

.estado-formulario.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fee2e2;
    border: 1px solid rgba(254, 202, 202, 0.35);
}

.redirect-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.redirect-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 15, 31, 0.72);
    backdrop-filter: blur(6px);
}

.redirect-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 31, 63, 0.28);
    text-align: center;
}

.redirect-modal__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 119, 190, 0.1);
    color: var(--azul);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.redirect-modal__card h3 {
    margin: 18px 0 12px;
    color: var(--azul);
    font-size: 2rem;
    line-height: 1.2;
}

.redirect-modal__card p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

.redirect-modal__countdown {
    margin: 22px 0 26px;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 600;
}

.redirect-modal__cta {
    width: 100%;
    max-width: 320px;
}

.footer {
    background: #001f3f;
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        min-height: 460px;
        height: 62vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .seccion {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo-brand {
        gap: 10px;
        max-width: calc(100% - 56px);
    }

    .logo-name {
        font-size: 0.98rem;
    }

    .logo-sub {
        font-size: 0.62rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        min-height: 400px;
        height: auto;
        padding: 110px 0 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .sobre-nosotros,
    .historia-grid,
    .como-trabajamos-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .seccion {
        padding: 60px 0;
    }

    .seccion-titulo {
        font-size: 2rem;
    }

    .contacto-form {
        padding: 28px 22px;
    }

    .redirect-modal__card {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .redirect-modal__card h3 {
        font-size: 1.75rem;
    }

    .testimonio-top {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-icon-img {
        width: 36px;
        height: 36px;
    }

    .logo-name {
        font-size: 0.9rem;
    }

    .logo-sub {
        font-size: 0.58rem;
        letter-spacing: 0.4px;
    }

    .hero {
        min-height: 340px;
        padding: 96px 0 56px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .card,
    .servicio-card,
    .etapa-card,
    .miembro {
        padding: 24px 20px;
    }

    .contacto-form {
        padding: 24px 18px;
    }

    .redirect-modal {
        padding: 16px;
    }

    .redirect-modal__card {
        padding: 26px 18px;
    }

    .redirect-modal__card h3 {
        font-size: 1.5rem;
    }

    .redirect-modal__countdown {
        font-size: 0.92rem;
    }
}
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 32px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }
        .footer-links a {
            color: var(--texto-gris);
            text-decoration: none;
            font-size: 0.9rem;
        }
                .social-links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 24px;
        }
        .social-links a {
            color: var(--texto-gris);
            text-decoration: none;
            font-size: 1.3rem;
        }
