/* NCORP Instituto de Capacitación — estilos del sitio */

:root {
    --navy: #102C56;
    --navy-deep: #0B2042;
    --blue: #1763B1;
    --gold: #E5A11A;
    --gold-hover: #F0B235;
    --paper: #F7F5EF;
    --white: #FFFFFF;
    --text: #1B2A41;
    --muted: #526176;
    --line: #E0DDD3;

    --font-title: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-accent: "Instrument Serif", Georgia, serif;
    --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1280px;
    --gutter: 32px;
    --radius: 20px;
    --radius-lg: 32px;
    --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--navy);
}
h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.03; letter-spacing: -.022em; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1100;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-sm { min-height: 44px; padding: 8px 22px; font-size: .95rem; }
.btn-lg { min-height: 60px; padding: 8px 26px; font-size: 1.08rem; }
.btn:has(.btn-ico) { padding-right: 8px; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: .9rem;
    transition: transform .25s;
}
.btn:not(.btn-lg) .btn-ico { width: 34px; height: 34px; font-size: .78rem; }
.btn:hover .btn-ico { transform: rotate(-35deg); }
.btn-link {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: text-underline-offset .2s;
}
.btn-link:hover { text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Header: barra flotante ---------- */

.site-header { position: sticky; top: 0; z-index: 1000; padding: 10px 16px 6px; }
.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
    height: 76px;
    padding: 0 12px 0 20px;
}
/* El fondo va en un pseudoelemento: un backdrop-filter en la barra misma atraparía al menú móvil (position: fixed) */
.header-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(16, 44, 86, .08);
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: box-shadow .25s, background .25s;
}
.site-header.is-scrolled .header-inner::before { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 32px rgba(16, 44, 86, .14); }
.nav-open .header-inner::before { background: var(--white); }
.brand, .header-actions { position: relative; z-index: 2; flex: none; }
.brand img { width: 62px; height: 62px; transition: transform .25s; }
.brand:hover img { transform: scale(1.05); }

.main-nav { position: relative; z-index: 2; }
.nav-list { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(16, 44, 86, .05); }
.nav-list > li { position: relative; z-index: 1; display: flex; align-items: center; }
.nav-list a {
    display: block;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: .98rem;
    font-weight: 500;
    color: var(--navy);
    transition: color .25s;
}
.nav-list > li > a.en-pastilla { color: var(--white); }
.nav-list > .nav-pastilla {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    z-index: 0;
    width: 0;
    border-radius: 999px;
    background: var(--navy);
    opacity: 0;
    transition: transform .32s cubic-bezier(.3, .8, .3, 1), width .32s cubic-bezier(.3, .8, .3, 1), opacity .2s;
    pointer-events: none;
}

.sub-toggle {
    width: 30px;
    height: 34px;
    margin-left: -8px;
    border: 0;
    background: none;
    color: var(--navy);
    font-size: .7rem;
    cursor: pointer;
}
.sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 230px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 16px 40px rgba(16, 44, 86, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { border-radius: 10px; }
.sub-menu a:hover { background: var(--paper); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cta-corto { display: none; }
.header-cta { min-height: 52px; padding-left: 22px; }
.btn-gold .btn-ico { background: var(--navy); color: var(--white); }
.nav-cta-mobile { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 13px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform .2s, opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
    .nav-list a { padding: 9px 13px; font-size: .94rem; }
}

@media (max-width: 960px) {
    .site-header { padding: 8px 8px 4px; }
    .header-inner { gap: 10px; height: 68px; padding: 0 10px 0 12px; }
    .brand img { width: 56px; height: 56px; }
    .nav-toggle { display: flex; }
    .cta-largo { display: none; }
    .cta-corto { display: inline; }
    .header-cta { min-height: 46px; padding-left: 16px; font-size: .9rem; gap: 8px; }
    .header-cta .btn-ico { width: 32px; height: 32px; }

    /* Menú a pantalla completa, detrás de la barra */
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 24px;
        padding: 96px 20px 28px;
        overflow-y: auto;
        background: var(--navy);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .22s, transform .22s, visibility .22s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: none; }
    .nav-list > .nav-pastilla { display: none; }
    .nav-list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .16); }
    .nav-list > li > a,
    .nav-list > li > a.en-pastilla {
        flex: 1;
        padding: 16px 0;
        border-radius: 0;
        font-size: 2rem;
        font-weight: 600;
        letter-spacing: -.02em;
        color: var(--white);
    }
    .nav-list > li > a.is-active { color: var(--gold); }
    .sub-toggle { width: 46px; height: 46px; margin: 0; color: var(--white); font-size: .9rem; }
    .sub-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 0 0 12px;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .sub-menu::before { display: none; }
    .has-sub.is-open .sub-menu { display: block; }
    .sub-menu a { padding-left: 0; font-size: 1.1rem; color: rgba(255, 255, 255, .85); }
    .sub-menu a:hover { background: none; color: var(--gold); }
    .nav-cta-mobile { display: flex; flex: none; min-height: 58px; font-size: 1.1rem; }
}


/* ---------- Hero: carrusel ---------- */

.hero { padding: 0 16px; }
.hero-carrusel {
    position: relative;
    height: clamp(560px, calc(100vh - var(--header-h) - 76px), 760px);
    height: clamp(560px, calc(100svh - var(--header-h) - 76px), 760px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--navy);
    color: var(--white);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
}
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 75% 35%;
    transform: scale(1.05);
    transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-bg { transform: none; }
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 32, 66, .94) 0%, rgba(11, 32, 66, .82) 36%, rgba(11, 32, 66, .2) 66%, rgba(11, 32, 66, 0) 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding-bottom: 56px; }
.hero-text { width: 100%; max-width: 660px; }
.hero-text > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease .2s, transform .6s ease .2s; }
.hero-slide.is-active .hero-text > * { opacity: 1; transform: none; }
.hero-etiqueta { margin-bottom: 14px; font-family: var(--font-title); font-weight: 600; color: var(--gold); }
.hero-title {
    margin: 0 0 20px;
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.025em;
    color: var(--white);
}
.hero-title em {
    display: block;
    margin-top: .06em;
    font-family: var(--font-accent);
    font-size: 1.1em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.015em;
    color: var(--gold);
}
.hero-lead { max-width: 33em; margin-bottom: 30px; font-size: 1.14rem; color: rgba(255, 255, 255, .88); }
.hero-apoyo { margin-top: 16px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.hero .btn-gold .btn-ico { background: var(--navy); color: var(--white); }
.btn-outline-light { border: 2px solid rgba(255, 255, 255, .6); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: var(--white); color: var(--navy); }

.hero-controles { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; }
.hero-controles .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 52px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot span { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { animation: heroLlenar 6.5s linear forwards; }
.hero-carrusel.is-paused .hero-dot.is-active span::after { animation-play-state: paused; }
@keyframes heroLlenar { to { transform: scaleX(1); } }
.hero-flechas { display: flex; gap: 8px; }
.hero-flecha {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(11, 32, 66, .35);
    color: var(--white);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.hero-flecha:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
.hero :focus-visible { outline-color: var(--gold); }

@media (max-width: 680px) {
    .hero { padding: 0 8px; }
    .hero-carrusel {
        height: clamp(560px, calc(100vh - var(--header-h) - 56px), 720px);
        height: clamp(560px, calc(100svh - var(--header-h) - 56px), 720px);
        border-radius: 26px;
    }
    .hero-bg { object-position: 60% 0; }
    .hero-slide::after { background: linear-gradient(0deg, rgba(11, 32, 66, .97) 0%, rgba(11, 32, 66, .9) 48%, rgba(11, 32, 66, .15) 74%, rgba(11, 32, 66, 0) 100%); }
    .hero-inner { align-items: flex-end; padding-bottom: 64px; }
    .hero-title { margin-bottom: 12px; font-size: clamp(2.1rem, 9.6vw, 2.75rem); }
    .hero-lead { margin-bottom: 20px; font-size: 1rem; line-height: 1.45; }
    .hero .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero .btn-lg { min-height: 54px; }
    .hero-controles { bottom: 14px; }
    .hero-flechas { display: none; }
    .hero-dot { width: 40px; }
}

/* ---------- Cinta ---------- */

.cinta { overflow: hidden; padding: 16px 0; background: var(--gold); color: var(--navy-deep); }
.cinta-pista { display: flex; width: max-content; animation: cinta 40s linear infinite; }
.cinta span {
    display: flex;
    align-items: center;
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.cinta span::after {
    content: "";
    width: 10px;
    height: 10px;
    margin: 0 28px;
    border-radius: 50%;
    background: var(--navy);
}
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */

.section { padding: 120px 0; }
.section-blanca { background: var(--white); }
.sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px 64px;
    margin-bottom: 64px;
}
.sec-head p { font-size: 1.16rem; color: var(--muted); }
.sec-head-dark h2 { color: var(--white); }
.sec-head-dark p { color: rgba(255, 255, 255, .78); }

/* Aparición suave: solo con JS activo (main.js pone .anim) */
.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Áreas: índice interactivo ---------- */

.areas { padding: 112px 0 120px; background: var(--navy); color: var(--white); }
.area-lista { border-top: 1px solid rgba(255, 255, 255, .22); }
.area-lista li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.area-fila {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto 56px;
    align-items: center;
    gap: 24px;
    min-height: 118px;
    padding: 16px 20px 16px 12px;
    border-radius: 0;
    transition: background .25s, color .25s, padding .25s, border-radius .25s;
}
.area-num { font-family: var(--font-accent); font-size: 1.5rem; font-style: italic; color: var(--gold); transition: color .25s; }
.area-texto { display: block; min-width: 0; }
.area-texto h3 {
    font-size: clamp(1.5rem, 3.2vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.08;
    color: inherit;
}
.area-bajada { display: block; margin-top: 6px; font-size: 1rem; color: rgba(255, 255, 255, .72); transition: color .25s; }
.area-foto {
    display: grid;
    place-items: center;
    width: 148px;
    height: 84px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: var(--gold);
    font-size: 1.5rem;
    transition: width .35s ease;
}
.area-foto img { width: 100%; height: 100%; object-fit: cover; }
.area-flecha {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    transition: transform .25s, background .25s, border-color .25s, color .25s;
}
@media (hover: hover) {
    .area-fila:hover { padding-left: 28px; border-radius: var(--radius); background: var(--gold); color: var(--navy-deep); }
    .area-fila:hover .area-num,
    .area-fila:hover .area-bajada { color: var(--navy-deep); }
    .area-fila:hover .area-foto { width: 220px; }
    .area-fila:hover .area-flecha { border-color: var(--navy); background: var(--navy); color: var(--white); transform: rotate(-35deg); }
}

/* ---------- Cursos ---------- */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
    gap: 28px;
}
.course-grid:empty { display: none; }
.course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform .3s ease, box-shadow .3s ease;
}
.course-card:only-child { max-width: 520px; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(16, 44, 86, .12); }
.course-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: var(--navy); }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course-card:hover .course-img img { transform: scale(1.05); }
.course-img-empty { display: grid; place-items: center; color: var(--gold); font-size: 2.8rem; }
.course-body { display: flex; flex: 1; flex-direction: column; padding: 22px 16px 16px; }
.course-tag { margin-bottom: 6px; font-family: var(--font-accent); font-size: 1.15rem; font-style: italic; color: var(--blue); }
.course-body h3 { margin-bottom: 14px; font-size: 1.5rem; line-height: 1.12; letter-spacing: -.02em; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.course-meta li {
    min-width: 0;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--navy);
}
.course-meta i { margin-right: 4px; color: var(--blue); }
.course-text { margin-bottom: 20px; color: var(--muted); font-size: 1rem; }
.course-body .btn { align-self: flex-start; margin-top: auto; }
.course-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 48px;
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    background: var(--white);
}
.course-empty p { font-family: var(--font-title); font-size: 1.35rem; font-weight: 500; line-height: 1.25; color: var(--navy); }
@media (min-width: 1081px) {
    .course-card:nth-child(3n+2) { margin-top: 48px; margin-bottom: -48px; }
    .course-grid { padding-bottom: 48px; }
}

/* ---------- Beneficios: bloques de color ---------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento-titulo { grid-column: span 2; align-self: center; padding: 0 48px 24px 0; }
.bento-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 44px;
    min-width: 0;
    min-height: 300px;
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: transform .3s ease;
}
.bento-tile:hover { transform: translateY(-5px) rotate(-.6deg); }
.bento-tile > i { font-size: 2.5rem; }
.bento-tile h3 { margin-bottom: 8px; font-size: 1.45rem; line-height: 1.14; letter-spacing: -.02em; color: inherit; }
.bento-tile p { font-size: 1rem; }
.bento-tile:nth-of-type(4n+1) { background: var(--navy); color: var(--white); }
.bento-tile:nth-of-type(4n+1) > i { color: var(--gold); }
.bento-tile:nth-of-type(4n+2) { background: var(--gold); color: var(--navy-deep); }
.bento-tile:nth-of-type(4n+3) { background: var(--paper); color: var(--navy); }
.bento-tile:nth-of-type(4n+3) > i { color: var(--blue); }
.bento-tile:nth-of-type(4n+4) { background: var(--blue); color: var(--white); }

/* ---------- Experiencia ---------- */

.exp {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 88px;
}
.exp-foto { position: relative; min-width: 0; }
.exp-foto::before {
    content: "";
    position: absolute;
    inset: -18px -18px 18px 18px;
    border: 2.5px solid var(--gold);
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.exp-foto img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 42% 50%;
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.exp-texto { min-width: 0; }
.exp-texto h2 { margin-bottom: 28px; }
.exp-texto p { max-width: 34em; margin-bottom: 36px; font-size: 1.2rem; color: var(--muted); }

/* ---------- Orientación: cierre dorado ---------- */

.orient { position: relative; padding: 120px 0; overflow: hidden; background: var(--gold); color: var(--navy-deep); }
.orient::before {
    content: "";
    position: absolute;
    right: -220px;
    top: -260px;
    width: 760px;
    height: 760px;
    border: 2px solid rgba(16, 44, 86, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(255, 255, 255, .1);
}
.orient-grid { position: relative; }
.orient h2 { max-width: 13em; margin-bottom: 24px; font-size: clamp(2.7rem, 7vw, 6rem); line-height: 1; letter-spacing: -.028em; color: var(--navy-deep); }
.orient-text > p { max-width: 34em; margin-bottom: 36px; font-size: 1.2rem; }
.orient .btn-link { color: var(--navy-deep); text-decoration-color: var(--navy-deep); }
.orient :focus-visible { outline-color: var(--navy-deep); }
.orient-form .orient-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
}
.orient-form .orient h2,
.orient-form h2 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); }
.orient-card {
    min-width: 0;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
}

/* Formulario de consultas (ids de consulta-web-2.0.js) */
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row, .campos-motivo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.campos-motivo[hidden] { display: none; }
.field-ancho { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 600; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    font: inherit;
    font-size: 1rem;
    color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: var(--white); }
.input-prefix { display: flex; min-width: 0; }
.input-prefix span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    color: var(--muted);
}
.input-prefix input { border-radius: 0 14px 14px 0; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: #C0392B; }
.field-error { color: #C0392B; font-size: .84rem; }
.form-message:empty { display: none; }

/* ---------- Testimonios ---------- */

.testi-grid { columns: 3; column-gap: 24px; }
.testi-card {
    position: relative;
    margin-bottom: 24px;
    padding: 32px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper);
    break-inside: avoid;
}
.testi-comilla { display: block; height: 52px; font-family: var(--font-accent); font-size: 6rem; line-height: 1; color: var(--gold); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--gold); font-size: .85rem; }
.testi-card blockquote { margin: 0 0 24px; font-family: var(--font-title); font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--navy); }
.testi-autor { display: flex; align-items: center; gap: 12px; }
.testi-autor img, .testi-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi-avatar { display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.testi-autor p { line-height: 1.3; }
.testi-autor strong { display: block; color: var(--navy); }
.testi-autor span { font-size: .9rem; color: var(--muted); }

/* ---------- Preguntas frecuentes ---------- */

.faq {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 64px;
}
.faq-list { min-width: 0; border-top: 1.5px solid var(--navy); }
.faq-item { border-bottom: 1.5px solid var(--navy); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mas {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: .85rem;
    transition: transform .25s, background .25s, color .25s;
}
.faq-item[open] .faq-mas { background: var(--gold); color: var(--navy-deep); transform: rotate(45deg); }
.faq-resp { padding: 0 60px 26px 0; color: var(--muted); }
.faq-resp > :last-child { margin-bottom: 0; }
.faq-resp img, .faq-resp iframe { max-width: 100%; }

/* ---------- Footer ---------- */

.site-footer { padding: 16px; font-size: 1rem; }
.footer-caja {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 72px);
    border-radius: var(--radius-lg);
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .74);
}
.site-footer a { transition: color .2s; }

.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(40px, 5vw, 64px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-cta p {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--white);
}
.footer-cta em { font-family: var(--font-accent); font-size: 1.1em; font-weight: 400; color: var(--gold); }
.site-footer .btn-gold { color: var(--navy-deep); }
.site-footer .btn-gold .btn-ico { background: var(--navy); color: var(--white); }

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
    gap: 48px clamp(40px, 6vw, 96px);
    padding: clamp(40px, 5vw, 64px) 0;
}
.footer-brand { min-width: 0; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 104px; height: 104px; }
.footer-brand p { max-width: 24em; margin-bottom: 22px; font-size: .98rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: var(--white);
    transition: background .2s, border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }

.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 48px; min-width: 0; }
.footer-col { flex: 1 1 140px; min-width: 0; }
.footer-col-contacto { flex: 1.7 1 260px; }
.footer-title {
    margin-bottom: 18px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.footer-links { display: grid; gap: 4px; }
.footer-links a {
    display: inline-block;
    padding: 4px 0;
    color: var(--white);
    transition: color .2s, transform .2s;
}
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }

.footer-contact { display: grid; gap: 16px; }
.footer-contact a, .fc-static { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.fc-icono {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: var(--gold);
    transition: background .2s, color .2s;
}
.footer-contact a:hover .fc-icono { background: var(--gold); color: var(--navy-deep); }
.fc-dato { min-width: 0; line-height: 1.35; color: var(--white); overflow-wrap: anywhere; }
.fc-dato small { display: block; margin-bottom: 2px; font-size: .8rem; color: rgba(255, 255, 255, .55); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 28px;
    padding: 20px 56px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .9rem;
}
.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { color: var(--gold); }
.footer-arriba { margin-left: auto; font-weight: 500; }
.footer-arriba i { margin-left: 6px; font-size: .8em; }

@media (max-width: 960px) {
    .footer-main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
    .site-footer { padding: 8px; }
    .footer-caja { border-radius: 26px; }
    .footer-cta .btn { width: 100%; }
    .footer-col { flex-basis: 130px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding-right: 0; padding-bottom: 76px; }
    .footer-arriba { margin-left: 0; margin-top: 6px; }
}

/* ---------- WhatsApp flotante ---------- */

.float-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    transition: transform .2s;
}
.float-whatsapp:hover { color: var(--white); transform: scale(1.08); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .section, .areas, .orient { padding: 88px 0; }
    .exp, .orient-form .orient-grid { gap: 56px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-titulo { padding-right: 0; }
    .testi-grid { columns: 2; }
    .faq { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 960px) {
    :root { --header-h: 80px; }

    .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
    .exp, .orient-form .orient-grid { grid-template-columns: minmax(0, 1fr); }
    .exp-foto { max-width: 480px; margin: 18px auto 0; width: 100%; }
}

@media (max-width: 680px) {
    :root { --gutter: 18px; }

    body { font-size: 1rem; }
    .section, .areas, .orient { padding: 68px 0; }
    .sec-head p, .exp-texto p, .orient-text > p { font-size: 1.08rem; }
    .orient-text .btn-row { flex-direction: column; align-items: stretch; text-align: center; }
    .btn { white-space: normal; }
    .btn:has(.btn-ico) { justify-content: space-between; padding-left: 24px; }

    /* Áreas: filas compactas con foto a la izquierda */
    .area-fila { grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 14px; min-height: 96px; padding: 14px 0; }
    .area-num { display: none; }
    .area-foto { order: -1; width: 72px; height: 72px; border-radius: 22px; }
    .area-flecha { width: 40px; height: 40px; font-size: .85rem; }
    .area-texto h3 { font-size: 1.32rem; }
    .area-bajada { font-size: .92rem; line-height: 1.35; }

    /* Cursos: se deslizan de lado */
    .course-grid {
        display: flex;
        gap: 14px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter) 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--gutter);
        scrollbar-width: none;
    }
    .course-grid::-webkit-scrollbar { display: none; }
    .course-card { flex: 0 0 84%; scroll-snap-align: start; }
    .course-card:only-child { flex-basis: 100%; }
    .course-empty { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }

    .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .bento-titulo { grid-column: auto; padding-bottom: 14px; }
    .bento-tile { min-height: 0; gap: 28px; padding: 26px; }
    .bento-tile > i { font-size: 2.1rem; }
    .field-row, .campos-motivo { grid-template-columns: minmax(0, 1fr); }
    .orient-card { padding: 24px 20px; }
    .testi-grid { columns: 1; }
    .faq-item summary { padding: 20px 0; font-size: 1.14rem; }
    .faq-resp { padding-right: 0; }
    .cinta { padding: 12px 0; }
    .cinta span { font-size: 1.1rem; }
    .cinta span::after { margin: 0 18px; }
    .float-whatsapp { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
