/* ==========================================================================
   TopoTech v6 — Sitio público
   Paleta de marca: azul #004466, ámbar #ffaa00 (sin cambios)
   Tipografía: Archivo (variable, ancho + peso) / IBM Plex Mono solo para datos
   ========================================================================== */

:root {
    --navy:      #004466;
    --navy-700:  #003651;
    --navy-900:  #032536;
    --amber:     #ffaa00;
    --amber-600: #e69500;
    --paper:     #f4f7f6;
    --white:     #ffffff;
    --ink:       #10222c;
    --muted:     #51636d;
    --line:      rgba(0, 68, 102, .14);
    --line-dark: rgba(255, 255, 255, .14);

    --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

    /* Escala tipográfica (razón ~1.25) */
    --t-sm:   .875rem;
    --t-base: 1.0625rem;
    --t-md:   1.25rem;
    --t-lg:   clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
    --t-xl:   clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
    --t-2xl:  clamp(2.5rem, 1.5rem + 3.9vw, 4.6rem);

    --wrap: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --sec-y: clamp(4.5rem, 9vw, 8rem);
    --r-sm: 6px;
    --r: 14px;
    --head-h: 72px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-sans);
    font-size: var(--t-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: 750; text-wrap: balance; }
p { text-wrap: pretty; }
.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--amber); color: var(--navy-900); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px; padding: .75rem 1.4rem;
    font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
    border-radius: 999px; border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.7rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--amber { background: var(--amber); color: var(--navy-900); }
.btn--amber:hover { background: #ffbb33; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; color: var(--navy); text-decoration: none;
    border-bottom: 2px solid var(--amber); padding-bottom: 2px;
    white-space: nowrap;
}
.link-arrow:hover { color: var(--navy-700); border-color: var(--navy); }

/* ---------- Cabecera ---------- */
.site-head {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--head-h);
    background: rgba(3, 37, 54, .0);
    transition: background .3s, box-shadow .3s;
}
.site-head.is-solid, body:not(.is-home) .site-head {
    background: rgba(3, 37, 54, .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line-dark);
}
.site-head__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { position: relative; z-index: 2; }
.brand img { width: 152px; height: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
    display: block; padding: .5rem .8rem; border-radius: 999px;
    color: rgba(255,255,255,.82); text-decoration: none; font-weight: 550; font-size: .975rem;
    transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-current { color: var(--white); background: rgba(255,255,255,.08); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__aula { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 550; font-size: .975rem; white-space: nowrap; }
.nav__aula:hover { color: var(--amber); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .menu-btn { display: block; z-index: 2; }
    .nav {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
        padding: calc(var(--head-h) + 1.5rem) var(--gutter) 2rem;
        background: var(--navy-900);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
        overflow-y: auto;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { font-size: 1.6rem; font-weight: 700; font-stretch: 110%; padding: .7rem 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); background: none !important; }
    .nav__actions { flex-direction: column; align-items: stretch; }
    .nav__actions .btn { min-height: 52px; font-size: 1.05rem; }
    .nav__aula { padding: .5rem 0; font-size: 1.05rem; }
    body.menu-open { overflow: hidden; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--sec-y); }
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.section__head--row > div { max-width: 700px; }
.h-section { font-size: var(--t-xl); font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; color: var(--navy-900); }
.section__intro { margin-top: 1rem; font-size: var(--t-md); line-height: 1.5; color: var(--muted); max-width: 62ch; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(100svh, 980px);
    padding: calc(var(--head-h) + clamp(2rem, 6vh, 4.5rem)) 0 clamp(3rem, 7vh, 5rem);
    background: radial-gradient(120% 90% at 80% 20%, var(--navy) 0%, var(--navy-900) 62%);
    color: var(--white);
    display: flex; align-items: center;
}
.hero__terrain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.contours path { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.contours path.c-major { stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.contours path:nth-child(7) { stroke: rgba(255,170,0,.55); stroke-width: 1.6; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__place { font-weight: 600; color: var(--amber); margin-bottom: 1.25rem; font-size: 1rem; }
.hero__title { font-size: var(--t-2xl); font-weight: 850; font-stretch: 112%; letter-spacing: -.035em; line-height: .98; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line + .line > span { color: rgba(255,255,255,.62); }
.hero__lead { margin-top: 1.6rem; font-size: var(--t-md); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero__kit { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); color: rgba(255,255,255,.7); font-size: .9375rem; }
.hero__kit li { display: flex; align-items: center; gap: .55rem; }
.hero__kit li::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--amber); transform: rotate(45deg); }

.hero__photo { position: relative; margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero__photo::before { /* marcas de esquina tipo visor */
    content: ""; position: absolute; inset: -12px; pointer-events: none;
    background:
        linear-gradient(var(--amber),var(--amber)) top left / 26px 2px,
        linear-gradient(var(--amber),var(--amber)) top left / 2px 26px,
        linear-gradient(var(--amber),var(--amber)) bottom right / 26px 2px,
        linear-gradient(var(--amber),var(--amber)) bottom right / 2px 26px;
    background-repeat: no-repeat;
}
.hero__photo figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .9rem; font-size: .875rem; color: rgba(255,255,255,.7); }

/* Retícula interactiva (estación total) */
.reticle { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.hero.is-aiming .reticle { opacity: 1; }
.reticle__x, .reticle__y { position: absolute; background: rgba(255,170,0,.45); }
.reticle__x { width: 200vw; height: 1px; left: -100vw; top: 0; }
.reticle__y { height: 200vh; width: 1px; top: -100vh; left: 0; }
.reticle__ring { position: absolute; width: 38px; height: 38px; left: -19px; top: -19px; border: 1.5px solid var(--amber); border-radius: 50%; }
.reticle__read {
    position: absolute; left: 26px; top: 22px; display: grid; gap: 1px;
    padding: .45rem .65rem; border-radius: 6px;
    background: rgba(3,37,54,.82); border: 1px solid rgba(255,170,0,.4);
    font-family: var(--f-mono); font-size: .75rem; color: var(--white); white-space: nowrap;
}
.reticle__read [data-z] { color: var(--amber); }

/* Animación de entrada (un único momento orquestado) */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__place, .js .hero__lead, .js .hero__cta, .js .hero__kit, .js .hero__photo { opacity: 0; }
.js .contours path { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); }
.is-ready .contours path { animation: draw 2.6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
.is-ready .hero__title .line > span { animation: rise .9s var(--ease) forwards; }
.is-ready .hero__title .line + .line > span { animation-delay: .12s; }
.is-ready .hero__place { animation: fade .6s ease forwards; }
.is-ready .hero__lead { animation: fade .7s ease .35s forwards; }
.is-ready .hero__cta { animation: fade .7s ease .5s forwards; }
.is-ready .hero__kit { animation: fade .7s ease .65s forwards; }
.is-ready .hero__photo { animation: photo 1.1s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes photo { from { opacity: 0; clip-path: inset(0 0 100% 0 round var(--r)); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--r)); } }

.flash {
    position: fixed; z-index: 200; top: calc(var(--head-h) + 12px); left: 50%; transform: translateX(-50%);
    background: #0f7a55; color: var(--white); padding: .8rem 1.2rem; border-radius: 999px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: fade .4s ease, fadeout .5s ease 5s forwards; width: max-content; max-width: calc(100% - 2rem);
}
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }

/* ---------- Clientes ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; align-items: center; gap: 1rem 2.5rem; padding-block: 1.6rem; flex-wrap: wrap; }
.trust p { color: var(--muted); font-size: .9375rem; }
.trust ul { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; }
.trust li { font-weight: 800; font-stretch: 116%; font-size: 1.1rem; color: var(--navy); opacity: .78; letter-spacing: -.01em; }

/* ---------- Servicios ---------- */
.services { background: var(--white); }
.services__layout { display: grid; grid-template-columns: minmax(260px, .8fr) 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.services__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); position: sticky; top: calc(var(--head-h) + 24px); }
.svc-tab {
    display: flex; align-items: center; gap: 1rem; text-align: left;
    padding: 1.05rem .25rem; border-bottom: 1px solid var(--line);
    font-size: 1.0625rem; font-weight: 650; color: var(--muted);
    transition: color .2s, padding .3s var(--ease);
}
.svc-tab i { width: 1.4rem; text-align: center; color: var(--line); transition: color .2s; font-size: 1.05rem; }
.svc-tab:hover { color: var(--navy-900); }
.svc-tab[aria-selected="true"] { color: var(--navy-900); padding-left: .9rem; box-shadow: inset 3px 0 0 var(--amber); }
.svc-tab[aria-selected="true"] i, .svc-tab:hover i { color: var(--navy); }
.svc-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.svc-panel:not([hidden]) { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.svc-panel__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r); }
.svc-panel__body h3 { font-size: var(--t-lg); font-weight: 800; font-stretch: 106%; color: var(--navy-900); letter-spacing: -.015em; }
.svc-panel__body > p { margin-top: .9rem; color: var(--muted); }
.svc-panel__body h4 { margin-top: 1.6rem; font-size: 1rem; color: var(--navy); }
.ticks { margin: .7rem 0 1.8rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }

/* ---------- Proceso (poligonal) ---------- */
.process { background: var(--paper); }
.traverse { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding-top: 120px; }
.traverse__line { position: absolute; top: 0; left: 0; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.traverse__line path { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 1200; stroke-dashoffset: 1200; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.8s var(--ease); }
.traverse.is-drawn .traverse__line path { stroke-dashoffset: 0; }
.traverse li { position: relative; }
.traverse__st {
    position: absolute; top: -66px; left: 0;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--navy);
    font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--navy);
}
.traverse li:nth-child(2) .traverse__st { top: -52px; }  /* sigue la quebrada de la poligonal */
.traverse li:nth-child(3) .traverse__st { top: -112px; }
.traverse li:nth-child(4) .traverse__st { top: -57px; }
.traverse li:nth-child(5) .traverse__st { top: -117px; }
.traverse h3 { font-size: var(--t-md); font-weight: 800; color: var(--navy-900); margin-bottom: .5rem; }
.traverse p { color: var(--muted); font-size: 1rem; }

/* ---------- Proyectos ---------- */
.projects { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9375rem; color: var(--muted); transition: all .2s; }
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); grid-auto-flow: dense; }
.proj { grid-column: span 4; position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; text-align: left; background: var(--navy-900); }
.proj:nth-child(6n+1) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; opacity: .92; }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,37,54,0) 35%, rgba(3,37,54,.7) 62%, rgba(3,37,54,.96) 100%); }
.proj__meta { text-shadow: 0 1px 12px rgba(0,0,0,.35); position: absolute; inset: auto 0 0 0; z-index: 1; padding: clamp(1rem, 2vw, 1.5rem); color: var(--white); display: grid; gap: .3rem; }
.proj__cat { font-size: .8125rem; font-weight: 700; color: var(--amber); }
.proj__title { font-size: 1.125rem; font-weight: 750; line-height: 1.2; }
.proj:nth-child(6n+1) .proj__title { font-size: var(--t-lg); font-stretch: 106%; }
.proj__count { font-size: .8125rem; color: rgba(255,255,255,.7); }
.proj:hover img, .proj:focus-visible img { transform: scale(1.05); opacity: 1; }
.proj.is-hidden { display: none; }
.more-proj { display: none; margin: 1.5rem auto 0; }

/* ---------- Nosotros ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__photo { margin: 0; position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); }
.about__lead { margin-top: 1.4rem; font-size: var(--t-md); line-height: 1.5; color: var(--ink); }
.about__copy > p:not(.about__lead) { margin-top: 1rem; color: var(--muted); max-width: 62ch; }
.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.2rem 0; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.about__facts dt { font-size: var(--t-lg); font-weight: 850; font-stretch: 110%; color: var(--navy); letter-spacing: -.02em; }
.about__facts dd { margin: .25rem 0 0; font-size: .9375rem; color: var(--muted); line-height: 1.4; }

/* ---------- Gabinete ---------- */
.desk { background: var(--white); }
.desk__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.desk__list { margin-top: 2rem; display: grid; gap: 0; }
.desk__list > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.desk__list dt { font-weight: 750; color: var(--navy-900); }
.desk__list dd { margin: 0; color: var(--muted); }
.desk__img { margin: 0; }
.desk__img img { width: 100%; border-radius: var(--r); aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Planner ---------- */
.planner { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.planner::before { /* grilla de vuelo */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(80% 70% at 85% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 85% 30%, #000 0%, transparent 75%);
}
.planner__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.planner__tag { color: var(--amber); font-weight: 700; margin-bottom: 1rem; }
.planner .h-section { color: var(--white); }
.planner__copy > p:not(.planner__tag) { margin-top: 1.2rem; color: rgba(255,255,255,.78); font-size: var(--t-md); line-height: 1.5; max-width: 52ch; }
.planner__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.planner__shot { margin: 0; }
.planner__shot img { border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.planner__features { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); margin-top: 1rem; }
.planner__features > div { padding: 1.4rem 0; border-top: 1px solid var(--line-dark); }
.planner__features dt { font-weight: 750; font-size: 1.0625rem; color: var(--white); display: flex; align-items: center; gap: .6rem; }
.planner__features dt::before { content: ""; width: 9px; height: 9px; background: var(--amber); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.planner__features dd { margin: .45rem 0 0; color: rgba(255,255,255,.68); font-size: .975rem; }

/* ---------- Cursos ---------- */
.courses { background: var(--paper); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.course { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.course:hover { border-color: var(--navy); transform: translateY(-3px); }
.course img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-900); }
.course__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.3rem 1.3rem; flex: 1; }
.course__meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.course__title { font-size: 1.15rem; font-weight: 750; color: var(--navy-900); line-height: 1.25; }
.course__foot { margin-top: auto; padding-top: .8rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.course__price { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.courses__empty { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r); }
.courses__empty p { flex: 1 1 420px; color: var(--muted); }

/* ---------- Videos ---------- */
.videos { background: var(--white); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--navy-900); font-size: 1.2rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Noticias ---------- */
.news { background: var(--paper); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); }
.post { text-decoration: none; display: flex; flex-direction: column; gap: .6rem; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: .4rem; background: var(--line); }
.post time { font-size: .875rem; color: var(--muted); }
.post h3 { font-size: 1.15rem; font-weight: 750; color: var(--navy-900); line-height: 1.3; }
.post p { color: var(--muted); font-size: .975rem; }
.post:hover h3 { color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* ---------- Contacto y formularios ---------- */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.channels { margin-top: 2rem; display: grid; gap: .75rem; }
.channels a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .2s, background .2s; }
.channels a:hover { border-color: var(--navy); background: var(--paper); }
.channels i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 1.15rem; flex: none; }
.channels .fa-whatsapp { background: #25d366; color: var(--white); }
.channels span { display: grid; color: var(--muted); font-size: .9375rem; }
.channels strong { color: var(--navy-900); font-size: 1rem; }

.contact__form, .sheet__form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-size: .9375rem; font-weight: 650; color: var(--navy-900); padding: 0; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .75rem .95rem;
    background: var(--paper); border: 1.5px solid transparent; border-radius: 10px;
    transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c2410c; }
.form-status { font-size: .9375rem; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok { color: #0f7a55; }
.form-status.is-error { color: #b42318; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 550; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Diálogos ---------- */
dialog { margin: auto; border: 0; padding: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(3, 25, 38, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: dlgIn .35s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
body.dlg-open { overflow: hidden; }

.sheet { width: min(640px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border-radius: 18px; background: var(--white); overflow: auto; }
.sheet__form { padding: clamp(1.4rem, 4vw, 2.2rem); }
.sheet__head { position: relative; padding-right: 2.5rem; }
.sheet__head h2 { font-size: var(--t-lg); font-weight: 800; color: var(--navy-900); font-stretch: 106%; }
.sheet__head p { margin-top: .4rem; color: var(--muted); }
.sheet__close, .viewer__close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--navy-900); font-size: 1.1rem; }
.sheet__close:hover, .viewer__close:hover { background: var(--amber); }
.sheet__alt { font-size: .9375rem; color: var(--muted); text-align: center; }
.sheet__alt a { color: var(--navy); font-weight: 700; }
.sheet__foot { display: grid; gap: .6rem; margin-top: .4rem; }

.viewer { width: min(1280px, calc(100% - 2rem)); height: min(820px, calc(100dvh - 2rem)); border-radius: 18px; overflow: hidden; background: var(--white); }
.viewer[open] { display: grid; grid-template-columns: 1fr 380px; }
.viewer__stage { position: relative; background: #061a25; display: grid; place-items: center; min-height: 0; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--white); display: grid; place-items: center; }
.viewer__nav:hover { background: var(--amber); color: var(--navy-900); }
.viewer__nav--prev { left: 1rem; }
.viewer__nav--next { right: 1rem; }
.viewer__count { position: absolute; bottom: 1rem; left: 1rem; color: rgba(255,255,255,.8); background: rgba(0,0,0,.4); padding: .25rem .6rem; border-radius: 999px; }
.viewer__info { position: relative; padding: 1.6rem 1.6rem 1.4rem; overflow: auto; display: flex; flex-direction: column; gap: 1rem; }
.viewer__info .viewer__close { top: 1rem; right: 1rem; }
.viewer__cat { color: var(--amber-600); font-weight: 700; font-size: .875rem; padding-right: 3rem; }
.viewer__info h2 { font-size: 1.4rem; color: var(--navy-900); font-weight: 800; }
.viewer__desc { color: var(--muted); font-size: .975rem; display: grid; gap: .8rem; }
.viewer__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.viewer__thumbs button { aspect-ratio: 1; border-radius: 6px; overflow: hidden; opacity: .55; outline-offset: 1px; }
.viewer__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--amber); }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer__info .btn { margin-top: auto; }

.video-dialog { width: min(1100px, calc(100% - 2rem)); background: #000; border-radius: 14px; overflow: visible; }
.video-dialog video { width: 100%; border-radius: 14px; }
.video-dialog .viewer__close { top: -54px; right: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: var(--white); font-size: 1.75rem; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Pie ---------- */
.site-foot { background: var(--navy-900); color: rgba(255,255,255,.72); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .975rem; }
.site-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-foot__brand img { width: 168px; }
.site-foot__brand p { margin-top: 1.1rem; max-width: 36ch; }
.site-foot__h { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.site-foot ul { display: grid; gap: .55rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--amber); }
.site-foot li i { width: 1.2rem; color: var(--amber); }
.social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: all .2s; }
.social a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy-900); }
.site-foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.site-foot__base p:last-child { display: flex; gap: 1.5rem; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: var(--white); padding: calc(var(--head-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero .hero__terrain { opacity: .8; }
.page-hero h1 { font-size: var(--t-2xl); font-weight: 850; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; max-width: 16ch; }
.page-hero p { margin-top: 1.2rem; font-size: var(--t-md); color: rgba(255,255,255,.8); max-width: 56ch; }
.page-hero .js-anchors { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.page-hero .js-anchors a { padding: .5rem 1rem; border: 1px solid var(--line-dark); border-radius: 999px; text-decoration: none; color: rgba(255,255,255,.85); font-weight: 600; font-size: .9375rem; }
.page-hero .js-anchors a:hover { border-color: var(--amber); color: var(--amber); }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-lg); color: var(--navy-900); margin: 2.4rem 0 .8rem; }
.prose p, .prose li { color: var(--ink); margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose a { color: var(--navy); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .services__layout { grid-template-columns: 1fr; }
    .services__list { position: static; flex-direction: row; overflow-x: auto; border-top: 0; gap: .5rem; padding-bottom: .5rem; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
    .services__list::-webkit-scrollbar { display: none; }
    .svc-tab { flex: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1rem; font-size: .95rem; white-space: nowrap; }
    .svc-tab[aria-selected="true"] { padding-left: 1rem; box-shadow: none; background: var(--navy); border-color: var(--navy); color: var(--white); }
    .svc-tab[aria-selected="true"] i { color: var(--amber); }
    .planner__features { grid-template-columns: repeat(2, 1fr); }
    .site-foot__grid { grid-template-columns: 1fr 1fr; }
    .viewer[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .hero { min-height: auto; }
    .hero__grid, .about__grid, .desk__grid, .planner__grid, .contact__grid { grid-template-columns: 1fr; }
    .hero__photo { max-width: 520px; }
    .hero__photo img { aspect-ratio: 4 / 3; }
    .svc-panel { grid-template-columns: 1fr; }
    .svc-panel__media img { aspect-ratio: 16 / 10; }
    .traverse { grid-template-columns: 1fr 1fr; padding-top: 0; row-gap: 2rem; }
    .traverse__line { display: none; }
    .traverse li { padding-left: 3.75rem; }
    .traverse li .traverse__st { top: -4px !important; }
    .proj, .proj:nth-child(6n+1) { grid-column: span 6; grid-row: auto; aspect-ratio: 4 / 3; }
    .course-grid, .video-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .about__photo { max-width: 460px; }
    .desk__img { order: -1; }
    .desk__img img { aspect-ratio: 16 / 9; }
    .reticle { display: none; }
}
@media (max-width: 620px) {
    :root { --head-h: 64px; }
    .brand img { width: 128px; }
    .hero__title { font-stretch: 100%; }
    .hero__cta .btn { width: 100%; }
    .field-row, .traverse, .course-grid, .video-grid, .news-grid, .planner__features, .about__facts { grid-template-columns: 1fr; }
    .about__facts { gap: 1.1rem; }
    .proj, .proj:nth-child(6n+1) { grid-column: span 12; }
    .proj-grid.is-collapsed .proj:nth-child(n+6) { display: none; }
    .proj-grid.is-collapsed ~ .more-proj { display: flex; }
    .desk__list > div { grid-template-columns: 1fr; gap: .3rem; }
    .site-foot__grid { grid-template-columns: 1fr; }
    .viewer { width: 100%; height: 100dvh; border-radius: 0; }
    .viewer__thumbs { grid-template-columns: repeat(4, 1fr); }
    .wa-float { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .contours path { stroke-dasharray: none; stroke-dashoffset: 0; }
    .js .hero__title .line > span { transform: none; }
    .js .hero__place, .js .hero__lead, .js .hero__cta, .js .hero__kit, .js .hero__photo { opacity: 1; }
    .traverse__line path { stroke-dashoffset: 0; }
    .reticle { display: none; }
}

/* ---------- Recursos (topografia.php) ---------- */
.res-manuals { background: var(--white); }
.res-manuals .filters { margin-bottom: 1.5rem; }
.manuals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.manual { display: grid; grid-template-columns: 72px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.manual img { width: 72px; height: 72px; object-fit: contain; background: var(--paper); border-radius: 10px; padding: 6px; }
.manual__ph { width: 72px; height: 72px; display: grid; place-items: center; background: var(--paper); border-radius: 10px; color: var(--navy); font-size: 1.6rem; }
.manual__type { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.manual h3 { font-size: 1.1rem; font-weight: 750; color: var(--navy-900); }
.manual__desc { font-size: .9375rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }
.manual__dl { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: all .2s; }
.manual__dl:hover { background: var(--navy); color: var(--white); }
.res-soft { background: var(--paper); }
.soft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.soft { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); align-items: start; }
.soft img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--paper); }
.soft h3 { font-size: 1.1rem; color: var(--navy-900); font-weight: 750; }
.soft details { margin: .5rem 0 1rem; color: var(--muted); font-size: .9375rem; }
.soft summary { cursor: pointer; list-style: none; }
.soft summary::-webkit-details-marker { display: none; }
.soft summary::after { content: " Leer más"; color: var(--navy); font-weight: 700; }
.soft details[open] summary { display: none; }
.res-codes { background: var(--navy-900); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem); }
.res-codes__box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.res-codes .h-section { color: var(--white); font-size: var(--t-lg); }
.res-codes .section__intro { color: rgba(255,255,255,.75); }
.res-flow { background: var(--white); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.flow img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: 1.1rem; }
.flow h3 { font-size: var(--t-md); font-weight: 800; color: var(--navy-900); margin-bottom: .4rem; }
.flow p { color: var(--muted); }
.res-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.75rem; border-radius: var(--r); background: var(--paper); border-left: 4px solid var(--amber); }
.res-cta p { font-size: var(--t-md); color: var(--navy-900); font-weight: 600; }
@media (max-width: 900px) {
    .manuals, .soft-grid, .flow { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .manual { grid-template-columns: 56px 1fr; }
    .manual img { width: 56px; height: 56px; }
    .manual__dl { grid-column: 2; justify-self: start; }
    .soft { grid-template-columns: 1fr; }
}

/* ---------- Noticias y legales ---------- */
.page-hero--plain { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero--plain h1 { font-size: var(--t-xl); max-width: 26ch; }
.post-date { display: flex; gap: 1rem; margin: 0 0 1rem !important; font-size: .95rem !important; }
.post-date a { color: var(--amber); font-weight: 700; text-decoration: none; }
.post-cover { width: 100%; border-radius: var(--r); margin-bottom: 2rem; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body p { font-size: 1.125rem; line-height: 1.7; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 72ch; }
.wrap.prose > .post-cover { max-width: 900px; }

/* ---------- Cursos (inscripciones.php) ---------- */
.page-hero .hero__cta { margin-top: 2rem; }
.course-why { background: var(--white); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); }
.why dt { display: flex; align-items: center; gap: .6rem; font-weight: 750; color: var(--navy-900); font-size: 1.05rem; }
.why dt i { color: var(--amber-600); width: 1.2rem; }
.why dd { margin: .4rem 0 0; color: var(--muted); font-size: .975rem; }
.why--compact { grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.courses--list { background: var(--paper); }
.sort { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--muted); font-size: .9375rem; }
.sort select { min-height: 44px; padding: .5rem 2rem .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); }
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ccard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .3s; }
.ccard:hover { border-color: rgba(0,68,102,.35); box-shadow: 0 18px 40px rgba(3,37,54,.08); }
.ccard__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-900); overflow: hidden; }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ccard:hover .ccard__img img { transform: scale(1.04); }
.ccard__mode { position: absolute; left: .8rem; top: .8rem; background: rgba(3,37,54,.85); color: var(--white); font-size: .8125rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.ccard__body { display: flex; flex-direction: column; gap: .85rem; padding: 1.25rem 1.3rem 1.35rem; flex: 1; }
.ccard h3 { font-size: 1.15rem; font-weight: 750; line-height: 1.25; }
.ccard h3 a { text-decoration: none; color: var(--navy-900); }
.ccard h3 a:hover { color: var(--navy); }
.ccard__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .875rem; color: var(--muted); }
.ccard__meta i { color: var(--navy); margin-right: .2rem; }
.ticks--sm { margin: 0; gap: .35rem; font-size: .9375rem; }
.ticks--sm li { padding-left: 1.5rem; }
.ccard__price { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; font-size: .875rem; color: var(--muted); }
.ccard__price strong { font-size: 1.5rem; font-weight: 850; color: var(--navy); letter-spacing: -.01em; }
.ccard__price .save { flex-basis: 100%; color: #0f7a55; font-weight: 700; }
.quota { display: grid; gap: .35rem; }
.quota__bar { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.quota__bar > span { display: block; height: 100%; background: var(--amber); border-radius: inherit; transition: width .8s var(--ease); }
.quota__txt { font-size: .8125rem; color: var(--muted); }
.ccard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.aula-demo { background: var(--white); }
.aula-demo__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.aula-demo .link-arrow { margin-top: 1.5rem; }
.quotes { background: var(--paper); }
.quotes .h-section { margin-bottom: 2rem; }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { margin: 0; padding: 1.5rem; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.quote__stars { color: var(--amber); letter-spacing: 2px; }
.quote__stars span { color: var(--line); }
.quote blockquote { margin: 0; color: var(--ink); }
.quote figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); display: grid; }
.quote figcaption strong { color: var(--navy-900); }
.faq-sec { background: var(--white); }
.faq-sec__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; font-weight: 700; color: var(--navy-900); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--navy); font-weight: 700; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--amber); }
.faq details p { padding: 0 0 1.2rem; color: var(--muted); max-width: 65ch; }
.faq details[open] p { animation: fade .3s ease; }
.teach { background: var(--white); padding-top: 0; }

/* ---------- Programa de curso (detalle_curso.php) ---------- */
.course-hero { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.course-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.course-hero h1 { font-size: var(--t-xl); max-width: 22ch; }
.course-hero__img { margin: 0; }
.course-hero__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.crumbs { display: flex; gap: .5rem; font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumbs a + a::before { content: "/"; margin-right: .5rem; color: rgba(255,255,255,.35); }
.crumbs a:hover { color: var(--amber); }
.course-hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; color: rgba(255,255,255,.82); }
.course-hero__facts i { color: var(--amber); margin-right: .35rem; }
.course-body { background: var(--white); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.course-benefits { padding: 1.4rem 1.6rem; background: var(--paper); border-radius: var(--r); border-left: 4px solid var(--amber); margin-bottom: 2rem; }
.course-benefits .ticks { margin: 0; }
.toc { position: sticky; top: calc(var(--head-h) + 8px); z-index: 5; display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0; margin-bottom: 1rem; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: .45rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--muted); }
.toc a:hover { color: var(--navy); }
.toc a.is-on { background: var(--navy); color: var(--white); }
.cblock { padding-block: 1.8rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 70px); }
.cblock:last-child { border-bottom: 0; }
.cblock h2 { font-size: var(--t-lg); font-weight: 800; color: var(--navy-900); margin-bottom: .9rem; font-stretch: 104%; }
.cblock > p { color: var(--ink); max-width: 70ch; }
.syllabus { counter-reset: mod; display: grid; gap: 0; }
.syllabus li { counter-increment: mod; position: relative; padding: .9rem 0 .9rem 3.2rem; border-top: 1px solid var(--line); color: var(--muted); }
.syllabus li::before { content: counter(mod, decimal-leading-zero); position: absolute; left: 0; top: .85rem; font-family: var(--f-mono); font-size: .875rem; color: var(--amber-600); font-weight: 500; }
.syllabus strong { display: block; color: var(--navy-900); }
.prof__card { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: start; }
.prof__card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.prof__card h3 { font-size: 1.2rem; color: var(--navy-900); }
.prof__card p { margin-top: .5rem; color: var(--muted); }
.prof__links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 1rem; }
.cgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.cgallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.buybox { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 1rem; }
.buybox__card { padding: 1.6rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(3,37,54,.1); display: grid; gap: 1rem; }
.buybox__price { font-size: 2.2rem; font-weight: 850; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.buybox__price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.buybox__note, .buybox__safe { font-size: .875rem; color: var(--muted); margin-top: -.4rem; }
.buybox__safe { margin-top: 0; text-align: center; }
.buybox__safe i { color: #0f7a55; }
.buybox__facts { display: grid; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.buybox__facts dt { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.buybox__facts dd { margin: .1rem 0 0; font-size: .9375rem; color: var(--ink); }
.buybox__seals { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: .5rem; }
.buybox__seals img { max-height: 54px; width: auto; filter: grayscale(.2); }
.buybar { display: none; }

@media (max-width: 1080px) {
    .cgrid, .quotes__grid { grid-template-columns: 1fr 1fr; }
    .why { grid-template-columns: 1fr 1fr; }
    .course-layout { grid-template-columns: 1fr; }
    .buybox { position: static; }
}
@media (max-width: 900px) {
    .aula-demo__grid, .faq-sec__grid, .course-hero__grid { grid-template-columns: 1fr; }
    .course-hero__img { max-width: 520px; }
    .why--compact { grid-template-columns: 1fr; }
    .buybar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        align-items: center; justify-content: space-between; gap: 1rem;
        padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
        background: rgba(3,37,54,.96); color: rgba(255,255,255,.8); font-size: .9rem;
        box-shadow: 0 -8px 30px rgba(0,0,0,.2);
    }
    .buybar strong { color: var(--white); font-size: 1.15rem; margin-right: .5rem; }
    .has-buybar .wa-float { bottom: 5.5rem; }
}
@media (max-width: 620px) {
    .cgrid, .quotes__grid, .why { grid-template-columns: 1fr; }
    .ccard__actions { grid-template-columns: 1fr; }
    .prof__card { grid-template-columns: 1fr; }
    .cgallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) { .has-buybar .site-foot__base { padding-bottom: 5.5rem; } }
