@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }

:root {
  --black: #121110;
  --black-2: #1a1917;
  --sillar: #f2eee6;
  --muted: rgba(242, 238, 230, .62);
  --line: rgba(242, 238, 230, .14);
  --amber: #ffb000;
  --orange: #ff7a00;
  --magenta: #ff1f6e;
  --violet: #9b3bff;
  --grad: linear-gradient(90deg, var(--amber), var(--orange) 35%, var(--magenta) 70%, var(--violet));
  --ring: conic-gradient(from 210deg, var(--amber), var(--orange), var(--magenta), var(--violet), var(--amber));
  --display: "Outfit", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 48px);
  --head: 64px;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--black); color: var(--sillar); font: 300 16px/1.55 var(--display); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; } /* siempre, como el resto de la animación (decisión del dueño) */
body { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b { font-weight: 800; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 14px; background: var(--sillar); color: var(--black); }
.skip:focus { left: 8px; }
html.has-cursor, html.has-cursor * { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }

/* ---------- Carga ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--black);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  transition: --hole 1.05s cubic-bezier(.7, 0, .2, 1);
}
.loader.open { --hole: 150vmax; }
.loader-ring { position: absolute; width: 120px; height: 120px; transform: rotate(-90deg); }
.loader-ring circle { fill: none; stroke-width: 2; }
.loader-ring .track { stroke: var(--line); }
.loader-ring .progress { stroke: url(#grad); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .35s; }
.loader-lens { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--sillar); filter: blur(14px); transition: filter .35s, transform .35s; }
.loader-lens::after { content: ""; position: absolute; inset: 17%; border-radius: 50%; border: 3px solid var(--black); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-25deg); }
.loader.focused .loader-lens { filter: blur(0); transform: scale(1.06); }
.loader-label { position: absolute; top: calc(50% + 82px); font: 400 11px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--head); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); border-bottom: 1px solid transparent; transition: background-color .45s, border-color .45s, -webkit-backdrop-filter .45s, backdrop-filter .45s; }
.site-header.solid { background: rgba(18, 17, 16, .86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* Logotipo: trazos del maestro de marca (assets/logo-dron.svg); escala siempre como un todo. */
.brand { display: inline-flex; color: var(--sillar); }
.logo { display: block; height: 34px; width: auto; aspect-ratio: 610.8 / 272; fill: currentColor; overflow: visible; }
.logo-o { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.brand:hover .logo-o { transform: rotate(180deg); } /* el lente "enfoca" */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav { position: relative; display: none; margin-left: auto; gap: 30px; font: 400 15px/1 var(--display); }
.roll { position: relative; display: inline-block; overflow: hidden; padding: 4px 0; }
.roll span { position: relative; display: inline-block; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: calc(100% + 4px); font-weight: 600; color: var(--sillar); }
.roll:hover span, .roll:focus-visible span { transform: translateY(calc(-100% - 4px)); }
.nav-dot { position: absolute; left: 0; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--grad); opacity: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.cta { display: none; padding: 12px 22px; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--orange), var(--magenta), var(--violet), var(--magenta), var(--orange)); background-size: 220% 100%; color: #fff; font: 600 14px/1 var(--display); transition: background-position .8s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.cta:hover { background-position: 100% 0; box-shadow: 0 6px 28px rgba(255, 31, 110, .35); }
[data-magnetic] { transition: translate .35s cubic-bezier(.2, .7, .2, 1); }
.cta[data-magnetic] { transition: background-position .8s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, translate .35s cubic-bezier(.2, .7, .2, 1); }
@media (min-width: 900px) { .nav, .cta { display: inline-flex; } }

/* Lenis (scroll suave en escritorio) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Vuelo ---------- */
.flight { position: relative; height: 560svh; }
.inicio-altura .flight { height: 400svh; } /* variante de prueba sin ascenso: menos recorrido */
.stage { --extra: 0px; position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000; }
/* En celulares la escena ocupa también el espacio que deja la barra del navegador al ocultarse (sin franja negra
   abajo); lo anclado abajo sube esa misma diferencia para seguir visible con la barra a la vista. */
@supports (height: 100lvh) { .stage { height: 100lvh; --extra: calc(100lvh - 100svh); } .reduce .flight { height: 100lvh; } }
.stage::before, .stage::after { content: ""; position: absolute; left: 0; right: 0; z-index: 6; pointer-events: none; }
.stage::before { top: 0; height: 24svh; background: linear-gradient(rgba(18, 17, 16, .6), transparent); }
.stage::after { bottom: 0; height: 40svh; background: linear-gradient(transparent, rgba(18, 17, 16, .78)); }
.seq, .planet, .photo, .fg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq { z-index: 1; }
.photo, .fg { object-fit: cover; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.photo { z-index: 2; }
.fg { z-index: 4; }
.planet { z-index: 5; opacity: 0; visibility: hidden; touch-action: pan-y; }
.title {
  position: absolute; left: 0; right: 0; top: var(--tb, 34%); z-index: 3; padding: 0 var(--pad);
  font: 900 10.6vw/.84 var(--display); letter-spacing: -.02em; text-transform: uppercase; text-align: center;
  opacity: 0; transform: translateY(-100%); will-change: transform, opacity; pointer-events: none;
}
.title span { display: inline-block; }
@media (max-aspect-ratio: 1/1) { .title { font-size: 19.5vw; } .title span { display: block; } }
/* Los textos van por encima del botón de despegue (15svh desde abajo). */
.line { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(15svh + 130px + var(--extra, 0px)); z-index: 8; font: 200 clamp(2.2rem, 6.4vw, 5.6rem)/1 var(--display); opacity: 0; pointer-events: none; }
.line-center { text-align: center; top: calc(var(--head) + 9svh); bottom: auto; }
.lede { position: absolute; left: var(--pad); bottom: calc(15svh + 130px + var(--extra, 0px)); z-index: 8; max-width: 30ch; font: 300 clamp(1.05rem, 1.7vw, 1.35rem)/1.4 var(--display); opacity: 0; pointer-events: none; }
.wordmark { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.wm-logo { width: clamp(280px, 54vw, 740px); height: auto; aspect-ratio: 610.8 / 272; fill: var(--sillar); overflow: visible; }
@media (max-aspect-ratio: 1/1) { .wm-logo { width: min(82vw, 540px); } }
.wm-slot { fill: none; }

/* HUD de cámara */
.hud { position: absolute; inset: 0; z-index: 9; pointer-events: none; font: 400 clamp(10px, 1vw, 12px)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud b { font-weight: 500; color: var(--sillar); }
.corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(242, 238, 230, .55); }
.tl { top: calc(var(--head) + 8px); left: var(--pad); border-right: 0; border-bottom: 0; }
.tr { top: calc(var(--head) + 8px); right: var(--pad); border-left: 0; border-bottom: 0; }
.bl { bottom: calc(var(--pad) + var(--extra, 0px)); left: var(--pad); border-right: 0; border-top: 0; }
.br { bottom: calc(var(--pad) + var(--extra, 0px)); right: var(--pad); border-left: 0; border-top: 0; }
.hud-top, .hud-bottom { position: absolute; left: calc(var(--pad) + 34px); right: calc(var(--pad) + 34px); display: flex; justify-content: space-between; gap: 16px; }
.hud-top { top: calc(var(--head) + 14px); }
.hud-bottom { bottom: calc(var(--pad) + 6px + var(--extra, 0px)); justify-content: flex-end; gap: clamp(14px, 3vw, 36px); }
/* REC solo mientras el vuelo se mueve; quieto, la cámara queda en espera. */
.rec i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: rgba(242, 238, 230, .45); vertical-align: 1px; }
.rec.live i { background: var(--magenta); animation: blink 1.2s steps(2, jump-none) infinite; }
.rec-state::after { content: "STBY"; }
.rec.live .rec-state::after { content: "REC"; }
@keyframes blink { 50% { opacity: .2; } }
/* Botón de despegue: visible, animado y también funciona con un toque. */
.hint { position: absolute; left: 50%; bottom: calc(15svh + var(--extra, 0px)); z-index: 9; display: grid; justify-items: center; gap: 14px; padding: 8px 12px; border: 0; background: none; color: var(--sillar); transform: translateX(-50%); transition: opacity .4s; }
.hint-text { font: 500 12px/1.3 var(--mono); letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 1px 14px rgba(0, 0, 0, .7); }
.hint-arrow { width: 28px; height: 28px; fill: none; stroke: var(--sillar); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .5)); animation: nudge 1.6s cubic-bezier(.5, 0, .3, 1) infinite; }
.hint-text span { display: inline-block; animation: wave 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * 45ms); }
@keyframes wave { 0%, 55%, 100% { opacity: .72; translate: 0 0; } 25% { opacity: 1; translate: 0 -3px; } }
@keyframes nudge { 0%, 100% { translate: 0 -3px; opacity: .6; } 50% { translate: 0 5px; opacity: 1; } }
.touring .hint-arrow { animation: none; opacity: 0; }
@media (max-width: 899px) {
  .hud-bottom { left: calc(var(--pad) + 30px); justify-content: space-between; bottom: calc(var(--pad) + 76px + var(--extra, 0px)); }
  .bl, .br { bottom: calc(var(--pad) + 70px + var(--extra, 0px)); }
  .hint { bottom: calc(var(--pad) + 112px); }
  .hint-text { font-size: 11px; letter-spacing: .2em; }
  .line, .lede { bottom: calc(var(--pad) + 236px); }
  .line-center { font-size: clamp(2rem, 10vw, 3rem); }
  #msnm { display: none; }
}

/* ---------- Servicios: tarjetas con foto que se apilan al hacer scroll ---------- */
.services, .contact { position: relative; z-index: 2; padding: clamp(96px, 16vh, 180px) var(--pad); }
.eyebrow { margin-bottom: 22px; font: 400 11px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.services h2, .contact h2 { max-width: 15ch; font: 200 clamp(2.5rem, 6.4vw, 6rem)/1 var(--display); }
.svc-stack { display: grid; gap: 5vh; margin-top: clamp(40px, 8vh, 80px); }
.svc-card { position: sticky; top: calc(var(--head) + 16px + var(--i) * 12px); height: min(74svh, 640px); overflow: hidden; border-radius: 10px; background: #000; transform-origin: 50% 0; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(18, 17, 16, .7) 0%, rgba(18, 17, 16, 0) 38%), linear-gradient(90deg, rgba(18, 17, 16, .9) 0%, rgba(18, 17, 16, .55) 45%, rgba(18, 17, 16, .05) 100%); }
.svc-name { position: absolute; top: clamp(20px, 3.5vw, 44px); right: clamp(20px, 3.5vw, 48px); z-index: 1; max-width: 9ch; text-align: right; font: 200 clamp(2.4rem, 5.2vw, 5.4rem)/.95 var(--display); text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.svc-name b { display: block; font-weight: 800; }
@media (max-width: 899px) { .svc-name { left: 20px; right: auto; text-align: left; max-width: none; font-size: clamp(2rem, 9vw, 2.8rem); } .svc-name b { display: inline; } }
.svc-body { position: absolute; left: 0; bottom: 0; z-index: 1; display: grid; gap: 14px; max-width: 600px; padding: clamp(24px, 4vw, 52px); }
.svc-body .svc-title { max-width: none; font: 200 clamp(2.1rem, 4.8vw, 4.4rem)/1 var(--display); color: var(--sillar); }
.svc-body p { max-width: 44ch; color: rgba(242, 238, 230, .86); }
.svc-body ul { list-style: none; padding: 0; display: grid; gap: 6px; font: 400 13px/1.4 var(--mono); letter-spacing: .03em; color: rgba(242, 238, 230, .8); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 6px; }
.svc-cta { padding: 13px 22px; border-radius: 999px; background: var(--sillar); color: var(--black); font: 600 14px/1 var(--display); transition: background-color .3s; }
.svc-quote { padding: 6px 0; border-bottom: 1px solid rgba(242, 238, 230, .45); font: 500 14px/1 var(--display); transition: border-color .3s; }
.svc-quote:hover, .svc-quote:focus-visible { border-color: var(--amber); }
@media (max-width: 899px) {
  .svc-card { height: min(78svh, 640px); }
  .svc-card::after { background: linear-gradient(0deg, rgba(18, 17, 16, .94) 12%, rgba(18, 17, 16, .45) 60%, rgba(18, 17, 16, .1)); }
}

/* ---------- Contacto + dron ---------- */
.contact { min-height: 100svh; display: grid; align-content: center; overflow: hidden; border-top: 1px solid var(--line);
  background: repeating-radial-gradient(circle at 78% 115%, transparent 0 46px, rgba(242, 238, 230, .045) 46px 47px), var(--black-2); }
.contact-inner { position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.chip { padding: 15px 24px; border: 1px solid var(--line); border-radius: 999px; font: 400 16px/1 var(--display); transition: background-color .3s, border-color .3s, color .3s; }
.chip:hover, .chip:focus-visible { border-color: transparent; background: var(--grad); color: var(--black); font-weight: 600; }
.note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.zone { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* Cierre de la academia con el dron 3D: espacio a la derecha para que patrulle. */
.a-cierre { min-height: 72svh; align-content: center; overflow: hidden; }
.a-cierre > div:first-child { position: relative; z-index: 1; }
.drone3d { width: 100%; height: 100%; display: block; }

/* ---------- Portafolio ---------- */
.work { position: relative; z-index: 2; padding: clamp(96px, 16vh, 180px) var(--pad) clamp(64px, 10vh, 120px); border-top: 1px solid var(--line); }
.work h2 { font: 200 clamp(2.5rem, 6.4vw, 6rem)/1 var(--display); }
.work-head { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .work-head { grid-template-columns: 1fr auto; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: 400 14px/1 var(--display); transition: color .3s, border-color .3s, background-color .3s; }
.filter:hover { color: var(--sillar); border-color: rgba(242, 238, 230, .4); }
.filter.on { color: var(--black); background: var(--sillar); border-color: var(--sillar); }
.work-list { list-style: none; padding: 0; margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--line); }
.work-item[hidden] { display: none; }
.work-more { display: flex; justify-content: center; margin-top: clamp(28px, 5vh, 48px); }
.work-more:has(> [hidden]) { display: none; }
.work-link { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.work-link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work-link:hover::after, .work-link:focus-visible::after { transform: scaleX(1); }
.work-n { display: none; font: 400 12px/1 var(--mono); color: var(--muted); }
.work-thumb { grid-row: span 2; width: 76px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.work-thumb.is-planet { aspect-ratio: 1; border-radius: 50%; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-title { font: 300 clamp(1.5rem, 4vw, 3.4rem)/1.05 var(--display); transition: transform .5s cubic-bezier(.2, .7, .2, 1), color .3s; }
.work-meta { font-size: 14px; color: var(--muted); }
.work-meta i { font-style: normal; margin-left: 8px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; font: 400 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.work-year { display: none; font: 400 12px/1 var(--mono); color: var(--muted); }
@media (min-width: 900px) {
  .work-link { grid-template-columns: 64px 1.3fr 1fr 64px; padding: clamp(22px, 3vw, 34px) 0; }
  .work-n, .work-year { display: block; }
  .work-year { text-align: right; }
  .work-thumb { display: none; }
  .work-link:hover .work-title { transform: translateX(14px); }
}
.work-preview { position: fixed; left: 0; top: 0; z-index: 3; width: 340px; aspect-ratio: 3 / 2; margin: -113px 0 0 -170px; overflow: hidden; border-radius: 4px; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1), border-radius .45s, aspect-ratio .45s; }
.work-preview.on { opacity: 1; transform: scale(1); }
.work-preview.is-planet { aspect-ratio: 1; border-radius: 50%; margin-top: -170px; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px), (hover: none) { .work-preview { display: none; } }

/* ---------- Clientes ---------- */
.clients { position: relative; z-index: 2; padding: clamp(56px, 9vh, 96px) 0; border-top: 1px solid var(--line); text-align: center; }
.clients .eyebrow { margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee img { height: clamp(48px, 6vw, 72px); width: auto; margin: 0 clamp(20px, 3vw, 44px); opacity: .72; transition: opacity .3s; }
.marquee img:hover { opacity: 1; }
.reduce .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
.reduce .marquee img[aria-hidden] { display: none; }
/* Experiencia: el «+» con contorno degradado de la gráfica de marca, junto a cifras legibles. */
.proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(40px, 7vw, 112px); margin: 0 auto clamp(48px, 8vh, 80px); padding: 0 var(--pad); }
.proof-item { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); font-size: clamp(4.6rem, 10vw, 9rem); text-align: left; }
.proof-item b { font: 800 1em/.78 var(--display); letter-spacing: -.035em; }
.proof-plus { flex: none; width: .74em; height: .74em; overflow: visible; fill: none; stroke: url(#plusGrad); stroke-width: 2.2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.proof-label { font: 300 clamp(1.05rem, 1.35vw, 1.2rem)/1.3 var(--display); color: rgba(242, 238, 230, .84); }
@media (max-width: 599px) { .proof-plus { stroke-width: 1.8px; } }

.footer { position: relative; z-index: 2; padding: clamp(56px, 10vh, 96px) var(--pad) calc(28px + 76px); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .footer { padding-bottom: 32px; } }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.foot-brand { display: grid; gap: 14px; align-content: start; max-width: 34ch; }
.foot-brand .logo { height: 54px; }
.foot-claim { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); color: var(--sillar); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .eyebrow { margin-bottom: 6px; }
.foot-col a { color: rgba(242, 238, 230, .86); transition: color .2s; }
.foot-col a:hover { color: var(--sillar); }
.foot-brand .brand { color: var(--sillar); }
.libro { display: inline-flex; align-items: center; gap: 8px; }
.libro svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-legal { display: flex; gap: 20px; }
.foot-note { margin-top: 18px; font-size: 12px; opacity: .7; }
.rth { flex: none; display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .2em; color: var(--sillar); }
.rth span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font: 700 14px/1 var(--display); }

/* ---------- Altímetro ---------- */
/* Vive en su propia franja: con espacio suficiente, las secciones reservan el mismo margen a
   ambos lados (la composición sigue centrada) y las etiquetas caben a la derecha sin tocar nada.
   Sin ese ancho se oculta; en el celular, el dock da acceso a las secciones. */
.altimeter { position: fixed; right: 24px; top: 50%; z-index: 55; display: none; height: 46vh; transform: translateY(-50%); transition: opacity .5s, visibility .5s; }
.altimeter.away { opacity: 0; visibility: hidden; }
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  :root { --rail: 132px; }
  .altimeter { display: block; }
  #top > section:not(.flight), body:has(#altimeter) .footer { padding-inline: calc(var(--pad) + var(--rail)); }
}
/* Visible sobre cielo claro y sobre negro: línea clara con un borde oscuro sutil. */
.alt-track { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(242, 238, 230, .5); box-shadow: 0 0 0 1px rgba(18, 17, 16, .18); }
.alt-marker { position: absolute; right: -4px; top: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--grad); outline: 2px solid rgba(18, 17, 16, .55); }
.alt-marks { list-style: none; padding: 0; position: absolute; inset: 0; }
.alt-marks li { position: absolute; right: 16px; transform: translateY(-50%); }
.alt-marks button { padding: 4px 0; border: 0; background: none; font: 400 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: transparent; transition: color .3s; }
.alt-marks button::after { content: ""; display: inline-block; width: 8px; height: 1px; margin-left: 8px; vertical-align: middle; background: var(--muted); }
/* Solo se lee la cota activa; las demás aparecen al acercarse al altímetro. */
.alt-marks button.on, .altimeter:hover .alt-marks button { color: rgba(242, 238, 230, .78); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.alt-marks button.on { color: var(--sillar); }

/* Con el altímetro como guía, en escritorio se oculta la barra de scroll del navegador. */
@media (hover: hover) and (pointer: fine) { html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; } }

/* Selección con el color de la marca; lo decorativo no se selecciona. */
::selection { background: var(--magenta); color: #fff; }
.hud, .altimeter, .title, .line, .wordmark, .hint, .loader, .dock, .brand, .marquee { -webkit-user-select: none; user-select: none; }

/* ---------- Dock móvil ---------- */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(26, 25, 23, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.dock a { display: grid; place-items: center; padding: 13px 4px; border-radius: 999px; font: 500 13px/1 var(--display); }
.dock .dock-cta { background: var(--grad); color: #fff; font-weight: 600; }
.dock.hide { transform: translateY(150%); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot, .aura { position: fixed; left: 0; top: 0; pointer-events: none; display: none; }
html.has-cursor .cursor, html.has-cursor .cursor-dot, html.has-cursor .aura { display: block; }
.cursor { z-index: 180; }
.cursor-dot { z-index: 181; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--sillar); transition: opacity .2s; }
.c-ring { position: absolute; width: 34px; height: 34px; left: -17px; top: -17px; border-radius: 50%; background: var(--ring);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1px));
  transition: width .35s cubic-bezier(.2, .7, .2, 1), height .35s cubic-bezier(.2, .7, .2, 1), left .35s cubic-bezier(.2, .7, .2, 1), top .35s cubic-bezier(.2, .7, .2, 1), opacity .25s; }
/* Retícula de cámara: discreta, sin texto (el REC está en el HUD). */
.c-frame { --c: rgba(242, 238, 230, .72); position: absolute; width: 60px; height: 40px; left: -30px; top: -20px; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s cubic-bezier(.2, .7, .2, 1);
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 9px 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px 9px no-repeat; }
.c-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor.is-link .c-ring { width: 76px; height: 76px; left: -38px; top: -38px; }
.cursor.is-link .c-label, .cursor.is-drag .c-label { opacity: 1; }
.cursor.is-media .c-ring { opacity: 0; }
.cursor.is-media .c-frame { opacity: 1; transform: scale(1); }
.cursor.is-drag .c-ring { width: 104px; height: 104px; left: -52px; top: -52px; }
html.cursor-hide-dot .cursor-dot { opacity: 0; }
.aura { z-index: 1; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, rgba(255, 31, 110, .16), rgba(255, 122, 0, .08) 38%, rgba(155, 59, 255, .05) 55%, transparent 70%); filter: blur(24px); }
.aura.on { opacity: 1; }
/* Páginas interiores: el contenido va por encima del brillo que sigue al mouse. */
.page main > *, .project-page main > * { position: relative; z-index: 2; }

/* ---------- Cobertura: mapa del sur ---------- */
.coverage { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; padding: clamp(96px, 16vh, 180px) var(--pad); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .coverage { grid-template-columns: 1fr 1.1fr; } }
.coverage h2 { font: 200 clamp(2.5rem, 6.4vw, 6rem)/1 var(--display); }
.coverage-lede { max-width: 44ch; margin-top: 20px; color: var(--muted); }
/* «Desde Arequipa, llegamos a…» y la lista completa la frase. */
.coverage-list { list-style: none; padding: 0; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--line); }
.coverage-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 clamp(1.15rem, 1.6vw, 1.4rem)/1.2 var(--display); transition: color .3s; }
.coverage-list li.on { color: var(--amber); }
.coverage-list li.is-base { font-weight: 800; color: var(--sillar); }
.coverage-map { width: 100%; max-height: 86svh; margin: 0; aspect-ratio: 600 / 878; justify-self: center; overflow: hidden; }
.coverage-map svg { display: block; width: 100%; height: 100%; }
.map-zoom { transform-box: view-box; transform-origin: 0 0; transition: transform 1.8s cubic-bezier(.6, 0, .2, 1); }
.coverage.in .map-zoom { transform: var(--zoom); }
.dep { fill: rgba(242, 238, 230, .035); stroke: rgba(242, 238, 230, .2); stroke-width: .8; vector-effect: non-scaling-stroke; transition: fill .4s, stroke .4s; }
.dep.is-served { fill: rgba(242, 238, 230, .1); stroke: rgba(242, 238, 230, .5); }
.dep.hl { fill: rgba(255, 122, 0, .2); stroke: var(--amber); }
/* Arequipa, punto de partida, con el degradado de la marca. */
.dep.is-base { fill: url(#mapaGrad); fill-opacity: .42; stroke: url(#mapaGrad); }
.dep.is-base.hl { fill-opacity: .65; }
.map-overlay { opacity: 0; transition: opacity .6s 1.2s; }
.coverage.in .map-overlay { opacity: 1; }
.map-route { fill: none; stroke: rgba(255, 122, 0, .75); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; pointer-events: none; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1), stroke .3s; }
.coverage.in .map-route { stroke-dashoffset: 0; transition-delay: var(--d, 1.4s), 0s; }
.map-route.hl { stroke: var(--amber); stroke-width: 2.4; }
.flyer { fill: var(--sillar); opacity: 0; pointer-events: none; transition: opacity .5s 3.4s; }
.coverage.in .flyer { opacity: .85; }
.pin text { fill: var(--sillar); font: 600 19px/1 var(--display); paint-order: stroke; stroke: rgba(18, 17, 16, .55); stroke-width: 3px; stroke-linejoin: round; transition: fill .3s; }
.pin-hit { fill: transparent; }
.pin-dot { fill: var(--sillar); }
.pin-ring { fill: none; stroke: rgba(242, 238, 230, .35); stroke-width: 1; }
.pin.is-base .pin-dot { fill: url(#mapaGrad); }
.pin.is-base .pin-ring { stroke: url(#mapaGrad); stroke-width: 1.8; }
.pin.hl text { fill: var(--amber); }
.pin.hl .pin-ring { stroke: var(--amber); stroke-width: 2; }
@media (max-width: 899px) { .pin text { font-size: 25px; } }
.reduce .map-zoom, .reduce .map-route, .reduce .map-overlay, .reduce .flyer { transition: none; }

/* ---------- Academia ---------- */
.academy { position: relative; z-index: 2; padding: clamp(96px, 16vh, 180px) var(--pad); border-top: 1px solid var(--line); }
.academy h2 { max-width: 13ch; font: 200 clamp(2.5rem, 6.4vw, 6rem)/1 var(--display); }
.academy-lede { max-width: 54ch; margin-top: 24px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); }
.route { list-style: none; padding: 0; margin: clamp(48px, 8vh, 88px) 0; display: grid; border-top: 1px solid var(--line); }
.route li { position: relative; display: grid; gap: 6px; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.route-n { font: 400 11px/1 var(--mono); letter-spacing: .16em; color: var(--muted); }
.route b { font: 600 1.15rem/1.2 var(--display); }
.route li > span:last-child { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(5, 1fr); }
  .route li { padding: 28px 20px 0 0; border-bottom: 0; }
  .route li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sillar); }
  .route li:last-child::before { background: var(--grad); }
}
/* Resumen en la portada: el detalle vive en academia.html. */
.academy-sum { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1100px) { .academy-sum { grid-template-columns: 1.15fr 1fr auto; gap: 40px; } }
.academy-price { display: grid; gap: 10px; font: 300 clamp(1.8rem, 3.2vw, 2.6rem)/1.05 var(--display); }
.academy-price b { font-weight: 800; }
.academy-price span { max-width: 40ch; font: 400 13px/1.5 var(--mono); letter-spacing: .03em; color: var(--muted); }
.academy-inst { display: flex; align-items: center; gap: 20px; }
.academy-inst p { display: grid; gap: 4px; }
.academy-inst span { font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.academy-inst b { font: 600 1.1rem/1.2 var(--display); }
.academy-inst em { font: 400 12px/1.4 var(--mono); font-style: normal; color: var(--muted); }
.academy-inst img { flex: none; width: 116px; height: auto; }
.academy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-solid, .btn-line { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px; font: 600 15px/1 var(--display); transition: background-color .3s, border-color .3s, color .3s; }
.btn-solid { background: var(--sillar); color: var(--black); }
.btn-line { border: 1px solid rgba(242, 238, 230, .3); font-weight: 500; }
.btn-line:hover, .btn-line:focus-visible { border-color: transparent; background: var(--grad); color: var(--black); }
.academy-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .academy-grid { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: grid; gap: 10px; align-content: start; padding: 22px 18px; border: 1px solid var(--line); border-radius: 6px; transition: border-color .3s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.plan:hover { border-color: rgba(242, 238, 230, .42); transform: translateY(-4px); }
.plan-name { font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.plan-price { font: 800 clamp(2.2rem, 4vw, 3.1rem)/1 var(--display); }
.plan-price small { margin-right: 4px; font-size: 16px; font-weight: 300; vertical-align: .95em; }
.plan-detail { font-size: 14px; color: var(--muted); }
.plan-cta { justify-self: start; margin-top: 4px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1 var(--display); transition: background-color .3s, color .3s, border-color .3s; }
.plan-cta:hover, .plan-cta:focus-visible { border-color: transparent; background: var(--grad); color: var(--black); }
.plans-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.plan.is-featured { position: relative; border-color: transparent; background: var(--black-2); }
/* Borde degradado de 1px dibujado aparte, para que el texto quede siempre sobre fondo oscuro. */
.plan.is-featured::before { content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan.is-featured .plan-cta { border-color: transparent; background: var(--sillar); color: var(--black); font-weight: 600; }
.plan-tag { justify-self: start; padding: 6px 10px; border-radius: 999px; background: var(--grad); color: var(--black); font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan-detail b { font-weight: 600; color: var(--sillar); }
.plan-unit { font: 400 12px/1.3 var(--mono); color: var(--muted); }
.plans-note b { color: var(--sillar); font-weight: 600; }
@media (max-width: 699px) { .plan.is-featured { grid-column: 1 / -1; } }
.instructor { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--black-2); }
.inst-name { font: 600 1.5rem/1.15 var(--display); }
.inst-role { color: var(--muted); }
.inst-id { display: grid; gap: 6px; margin-top: 6px; padding: 14px 0; border-block: 1px solid var(--line); font: 400 12px/1.45 var(--mono); letter-spacing: .02em; color: var(--muted); }
.inst-id b { font: 500 1.7rem/1 var(--mono); letter-spacing: .04em; color: var(--sillar); }
.partner { display: grid; gap: 12px; margin-top: 8px; font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partner img { width: min(220px, 72%); height: auto; }
.syllabus { margin-top: clamp(40px, 7vh, 64px); }
.syllabus ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.syllabus li { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: rgba(242, 238, 230, .82); }

/* ---------- Transición entre páginas (View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-group(project-hero) { animation-duration: .75s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* ---------- Ficha de proyecto ---------- */
.project-page .site-header { background: rgba(18, 17, 16, .86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.back { margin-left: auto; font: 400 15px/1 var(--display); opacity: .85; }
.back:hover { opacity: 1; }
.project-hero { position: relative; height: 100svh; margin: 0; overflow: hidden; background: #000; }
.project-hero img, .project-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero canvas { opacity: 0; transition: opacity .8s; touch-action: pan-y; cursor: grab; }
.project-hero canvas.on { opacity: 1; }
.viewer-ui { position: absolute; left: 50%; bottom: 20px; z-index: 2; display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 17, 16, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateX(-50%); }
.viewer-ui button { padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1 var(--display); }
.viewer-ui button.on { background: var(--sillar); color: var(--black); }
.project-info { display: grid; gap: 18px; padding: clamp(40px, 8vh, 80px) var(--pad); }
@media (min-width: 900px) { .project-info { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; } }
.project-info h1 { font: 800 clamp(2.6rem, 7vw, 6.5rem)/.95 var(--display); }
.p-meta { margin-top: 14px; font: 400 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-desc { max-width: 52ch; font-size: 1.1rem; color: rgba(242, 238, 230, .84); }
.project-info .cta { display: inline-flex; justify-self: start; margin-top: 12px; }
.p-gallery { display: grid; gap: 12px; padding: 0 var(--pad); }
@media (min-width: 900px) { .p-gallery { grid-template-columns: 1fr 1fr; } }
.p-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.p-next { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(48px, 8vh, 96px); padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); }
.p-next a { font: 300 clamp(1.5rem, 4vw, 3rem)/1.1 var(--display); }
.p-next a b { font-weight: 800; }

/* ---------- Páginas interiores (servicios y academia) ---------- */
.page .site-header { background: rgba(18, 17, 16, .86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.page .nav a[aria-current] span { font-weight: 600; }
.wrap { padding: clamp(72px, 12vh, 140px) max(var(--pad), calc((100vw - 1320px) / 2)); border-top: 1px solid var(--line); }
.wrap h2 { max-width: 18ch; font: 200 clamp(2.2rem, 5vw, 4.4rem)/1.02 var(--display); }
.wrap-lede { max-width: 56ch; margin-top: 20px; font-size: clamp(1rem, 1.3vw, 1.12rem); color: rgba(242, 238, 230, .78); }
.crumbs { display: flex; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: rgba(242, 238, 230, .86); border-bottom: 1px solid var(--line); }
.crumbs a:hover { border-color: var(--amber); }
.note-s { margin-top: 18px; font: 400 12px/1.5 var(--mono); letter-spacing: .02em; color: var(--muted); }

/* Portada de servicio: la foto llena la pantalla y el nombre manda. */
.s-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: #000; }
.s-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 17, 16, .95) 6%, rgba(18, 17, 16, .4) 55%, rgba(18, 17, 16, .25)); }
.s-hero-text { position: relative; z-index: 1; display: grid; gap: 20px; padding: calc(var(--head) + 48px) max(var(--pad), calc((100vw - 1320px) / 2)) clamp(40px, 8vh, 80px); }
.s-hero h1 { font: 200 clamp(3rem, 9vw, 8.5rem)/.92 var(--display); }
.s-hero h1 b { font-weight: 800; }
.s-tag { font: 300 clamp(1.3rem, 2.4vw, 2rem)/1.2 var(--display); }
.s-tag b { font-weight: 700; }
.s-lede { max-width: 52ch; color: rgba(242, 238, 230, .84); }
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.s-actions .cta { display: inline-flex; padding: 15px 24px; font-size: 15px; }
.uses { list-style: none; padding: 0; display: grid; margin-top: clamp(32px, 6vh, 56px); border-top: 1px solid var(--line); }
@media (min-width: 800px) { .uses { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); } }
.uses li { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.uses b { font: 600 1.3rem/1.2 var(--display); }
.uses span { color: var(--muted); }
.gets { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 5vh, 44px); }
.gets li { padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px; font: 400 1.05rem/1.2 var(--display); }
.route.is-4 { margin-bottom: 0; }
@media (min-width: 900px) { .route.is-4 { grid-template-columns: repeat(4, 1fr); } }
.s-media { margin-top: clamp(32px, 6vh, 56px); }
.s-viewer { position: relative; height: min(76svh, 720px); overflow: hidden; border-radius: 8px; background: #000; }
.s-viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; touch-action: pan-y; cursor: grab; }
.s-viewer canvas.on { opacity: 1; }
.s-gallery { display: grid; gap: 12px; }
@media (min-width: 800px) { .s-gallery { grid-template-columns: repeat(3, 1fr); } }
.s-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.s-gallery .is-planet { aspect-ratio: 1; border-radius: 50%; }
.s-pending { margin-bottom: 18px; padding: 16px 20px; border: 1px dashed rgba(242, 238, 230, .28); border-radius: 6px; color: rgba(242, 238, 230, .8); }
.s-cta { display: grid; gap: 28px; }
@media (min-width: 1000px) { .s-cta { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.others { display: grid; border-top: 1px solid var(--line); }
.others a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font: 300 1.35rem/1.2 var(--display); transition: color .3s, padding .4s cubic-bezier(.2, .7, .2, 1); }
.others a span { font: 400 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: center; }
.others a:hover { color: var(--amber); padding-left: 10px; }

/* Academia */
.a-hero { display: grid; gap: 40px; align-items: end; padding: calc(var(--head) + clamp(56px, 12vh, 120px)) max(var(--pad), calc((100vw - 1320px) / 2)) clamp(56px, 10vh, 96px); }
@media (min-width: 1000px) { .a-hero { grid-template-columns: 1.4fr 1fr; } }
.a-hero h1 { max-width: 12ch; font: 200 clamp(3rem, 8vw, 7.4rem)/.95 var(--display); }
.a-hero h1 b { font-weight: 800; }
.a-hero .s-lede { margin-top: 24px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.a-hero .s-actions { margin-top: 28px; }
.a-split { display: grid; gap: 36px; }
@media (min-width: 1000px) { .a-split { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); } }
.facts { list-style: none; padding: 0; display: grid; margin-top: 32px; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 600 1.2rem/1.25 var(--display); }
.facts span { color: var(--muted); }
.a-photo { margin: 0; }
.a-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.a-photo figcaption, .sim figcaption { margin-top: 10px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
/* Simulacro: muestra ilustrativa del formato, marcada como tal. */
.sim { margin: 0; }
.sim-card { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 8px; background: var(--black-2); }
.sim-top { display: flex; justify-content: space-between; gap: 12px; font: 400 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sim-top b { padding: 5px 9px; border-radius: 999px; background: var(--grad); color: var(--black); font-weight: 600; letter-spacing: .06em; }
.sim-q { font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.35 var(--display); }
.sim-opts { display: grid; gap: 8px; }
.sim-opts button { padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--sillar); font: 400 1rem/1.35 var(--display); text-align: left; transition: border-color .3s, background-color .3s; }
.sim-opts button:hover { border-color: rgba(242, 238, 230, .45); }
.sim-opts button.is-right { border-color: #3ccf8e; background: rgba(60, 207, 142, .1); }
.sim-opts button.is-wrong { border-color: var(--magenta); background: rgba(255, 31, 110, .08); }
.sim-why { min-height: 1.5em; font-size: 14px; color: rgba(242, 238, 230, .78); }
/* Simulacro de cinco preguntas: barra de avance, respuesta bloqueada y botón para seguir. */
.sim-card { align-content: start; }
@media (min-width: 960px) { .sim-card { min-height: 500px; } }
.sim-barra { height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.sim-barra span { display: block; width: 20%; height: 100%; background: var(--grad); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.sim-opts button[aria-disabled="true"] { cursor: default; }
.sim-opts button[aria-disabled="true"]:not(.is-right):not(.is-wrong) { opacity: .5; }
.sim-acciones:has(> [hidden]) { display: none; }
.shared { display: grid; gap: 14px; margin: clamp(28px, 5vh, 44px) 0 clamp(36px, 6vh, 56px); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 8px; }
.shared ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.shared li { padding: 11px 16px; border-radius: 999px; background: rgba(242, 238, 230, .07); font-size: 15px; }
.diff { margin-bottom: 18px; font: 300 clamp(1.3rem, 2.2vw, 1.8rem)/1.25 var(--display); }
.diff b { font-weight: 700; }
.more { margin-top: clamp(28px, 5vh, 40px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; list-style: none; font: 300 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--display); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font: 200 2rem/1 var(--display); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.more[open] summary::after { transform: rotate(45deg); }
.more .syllabus { margin: 0 0 28px; }

/* Panel de comparación de fotogramas (solo con ?fps=12 o ?fps=24) */
.fps-panel { position: fixed; left: 12px; top: calc(var(--head) + 12px); z-index: 120; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 17, 16, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 400 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.fps-panel a { padding: 7px 10px; border-radius: 999px; color: var(--sillar); }
.fps-panel a.on { background: var(--sillar); color: var(--black); }
.fps-panel output { padding: 0 6px; }
@media (max-width: 599px) {
  .fps-panel output { display: none; }
  /* Selector de pruebas compacto en el celular: dos filas, sin tapar el título. */
  .fps-panel { right: 12px; flex-wrap: wrap; gap: 2px 4px; border-radius: 14px; font-size: 10px; }
  .fps-panel a { padding: 6px 8px; white-space: nowrap; }
}

/* ---------- Movimiento reducido ---------- */
.reduce .flight { height: 100svh; }
.reduce .hint { opacity: 1 !important; pointer-events: auto; }
.reduce .hint a { color: var(--sillar); text-decoration: underline; text-underline-offset: 3px; }
.reduce .loader { transition: none; }

/* Codex: el número pasa por delante del contorno, como en la referencia de marca. */
.proof-clients { position: relative; isolation: isolate; padding-left: .43em; min-height: 1.18em; }
.proof-clients .proof-plus { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 1.05em; height: 1.05em; z-index: -1; }
.proof-clients > b { position: relative; text-shadow: 0 0 3px var(--black); }
.cursor.is-media .c-label { opacity: 1; top: 33px; font-size: 9px; }
.cursor.is-media .c-label::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--magenta); }
/* Jerarquía: el servicio identifica; la promesa lo explica. */
.svc-body .svc-title { font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.12; }
@media (min-width: 900px) {
  .svc-name { left: clamp(24px,4vw,52px); right: auto; text-align: left; max-width: 45%; font-size: clamp(3rem,5vw,5.4rem); }
  .svc-body { left: auto; right: 0; width: 48%; max-width: 680px; }
}
.gyro-toggle { position: absolute; z-index: 12; right: 16px; top: calc(var(--head) + 44px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--black); color: var(--sillar); font: 400 11px/1 var(--display); }
/* Sombra en las zonas de lectura; centro de la fotografía despejado. */
.svc-card::after { background: linear-gradient(180deg, rgba(18,17,16,.72), rgba(18,17,16,.12) 35%), linear-gradient(0deg, rgba(18,17,16,.93), rgba(18,17,16,.12) 76%); }
@media (min-width: 900px) { .svc-card::after { background: linear-gradient(135deg, rgba(18,17,16,.62), rgba(18,17,16,.1) 43%), linear-gradient(315deg, rgba(18,17,16,.92), rgba(18,17,16,.3) 70%); } }
/* Línea continua: extremos exactos, misma escala de color en todo el recorrido. */
.route.motion-route { position: relative; border-top: 0; }
.route.motion-route li { padding: 20px 8px 24px 28px; border-bottom: 0; }
.route.motion-route li::before, .route.motion-route li::after { display: none; }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-track { stroke: var(--line); }
@media (min-width: 900px) {
  .route.motion-route { column-gap: 24px; }
  .route.motion-route li { padding: 32px 4px 0; text-align: center; }
}
/* Pasos: la línea viaja hasta el punto actual y ese paso se resalta; los siguientes esperan atenuados. */
.route-progress { transition: stroke-dashoffset .9s cubic-bezier(.65, 0, .35, 1); }
.route-line circle { transition: r .4s cubic-bezier(.2, .7, .2, 1); }
.route-line circle.on { r: 6px; }
.route.is-pasos li { opacity: .36; transition: opacity .5s cubic-bezier(.2, .7, .2, 1); }
.route.is-pasos li.is-past { opacity: .7; }
.route.is-pasos li.is-on { opacity: 1; }
.route.is-pasos li.is-on .route-n { color: var(--amber); }
/* Principales: reproducen el CTA original de navegación, sin modificarlo. */
.svc-cta, .btn-solid, .plan.is-featured .plan-cta, .dock .dock-cta {
  border: 0; color: #fff; font-weight: 600;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--magenta), var(--violet), var(--magenta), var(--orange));
  background-size: 220% 100%;
  transition: background-position .8s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.svc-cta:hover, .svc-cta:focus-visible, .btn-solid:hover, .btn-solid:focus-visible,
.plan.is-featured .plan-cta:hover, .plan.is-featured .plan-cta:focus-visible,
.dock .dock-cta:hover, .dock .dock-cta:focus-visible, .cta:focus-visible {
  background-position: 100% 0; box-shadow: 0 6px 28px rgba(255,31,110,.35);
}
/* Secundarios: contorno discreto; el color aparece solo al interactuar. */
.btn-line, .plan:not(.is-featured) .plan-cta {
  border: 1px solid rgba(242,238,230,.3); color: var(--sillar); font-weight: 500;
  background: transparent;
  transition: border-color .25s, background-position .8s cubic-bezier(.2,.7,.2,1);
}
.btn-line:hover, .btn-line:focus-visible,
.plan:not(.is-featured) .plan-cta:hover, .plan:not(.is-featured) .plan-cta:focus-visible {
  border-color: transparent; color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--magenta), var(--violet), var(--magenta), var(--orange));
  background-size: 220% 100%; background-position: 100% 0;
}
/* Contacto: opciones de consulta, no cuatro CTA principales en competencia. */
.chip { background: transparent; border-color: var(--line); color: var(--sillar); font-weight: 400; }
.chip:hover, .chip:focus-visible { background: var(--black-2); border-color: var(--sillar); color: var(--sillar); font-weight: 400; }
:is(.cta,.svc-cta,.btn-solid,.btn-line,.plan-cta,.chip,.dock-cta):focus-visible { outline: 2px solid var(--sillar); outline-offset: 4px; }
.plan.is-featured .plan-cta:focus-visible { outline-color: var(--black); }
.cursor.is-action .c-label { display: none; }
.cursor.is-action .c-ring { width: 32px; height: 32px; left: -16px; top: -16px; }
/* Precios: lectura vertical en teléfono, comparación alineada en pantallas amplias. */
#planes { scroll-margin-top: calc(var(--head) + 24px); }
.plans { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; align-items: stretch; }
.plan { padding: clamp(26px,3vw,40px); border-radius: 14px; gap: 18px; align-content: start; background: var(--black-2); }
.plan.is-featured { background: var(--sillar); color: var(--black); border-color: var(--sillar); }
.plan.is-featured::before { display: none; }
.plan.is-featured :is(.plan-name,.plan-unit,.plan-detail,.plan-detail b) { color: #34302b; }
.plan.is-featured .plan-price { color: var(--black); }
.plan-tag { background: none; padding: 0; border-radius: 0; color: #5b3b20; font-family: var(--display); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.plan-name { font-size: 13px; }
.plan-price { font-size: clamp(3.8rem,5.4vw,5.6rem); letter-spacing: -.035em; }
.plan-price small { font-size: 20px; vertical-align: .65em; }
.plan-detail { font: 400 18px/1.4 var(--display); color: var(--sillar); }
.plan-detail b { font-weight: 700; }
.plan-unit { font-size: 13px; }
.plan-cta { justify-self: stretch; text-align: center; padding: 16px 20px; margin-top: 10px; font-size: 16px; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2,minmax(0,1fr)); } .plan.is-featured { grid-column: auto; } }
@media (min-width: 1320px) { .plans { grid-template-columns: repeat(4,minmax(0,1fr)); } .plan { padding: 28px 22px; } .plan-tag { min-height: 22px; } .plan:not(.is-featured)::before { content: ''; height: 22px; } }
.academy-price { gap: 16px; }
.academy-price b { font-size: clamp(4.8rem,8vw,7rem); line-height: .95; letter-spacing: -.04em; }
.academy-price span { font: 400 16px/1.5 var(--display); max-width: 36ch; }
.institution-strip { display: grid; gap: 28px; padding: 36px 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.institution { display: grid; gap: 14px; align-content: start; }
.institution img { height: 66px; max-width: 240px; width: auto; object-fit: contain; object-position: left center; }
.institution h3 { font: 600 18px/1.3 var(--display); }
.institution p { font-size: 15px; color: var(--muted); max-width: 40ch; }
.institution a { text-underline-offset: 4px; }
@media (min-width: 760px) { .institution-strip { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (max-width: 759px) {
  .institution { justify-items: center; text-align: center; }
  .institution img { object-position: center; }
  .institution p { margin-inline: auto; }
}
@media (min-width: 680px) { .plan:not(.is-featured)::before { content: ''; height: 22.5px; } }

.models-note{max-width:70ch;font-size:15px;line-height:1.6;color:#aaa79f}

/* ---------- Ajustes 9 de octubre ---------- */
/* Portada · Academia: precio en una línea; instructor junto al precio y acciones debajo. */
.academy-price b { white-space: nowrap; font-size: clamp(3.4rem, 6vw, 5.6rem); }
@media (min-width: 1100px) {
  .academy-sum { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); row-gap: 36px; align-items: end; }
  .academy-actions { grid-column: 1 / -1; }
}

/* Tarjetas de servicios: tras apilarse, cada tarjeta queda completa (con sus botones) durante un
   tramo de scroll antes de que llegue la siguiente; así nunca se queda tapada a medias. */
.svc-stack { gap: 34vh; }
@media (max-width: 899px) { .svc-stack { gap: 26vh; } }
/* El texto y los botones van arriba: la siguiente tarjeta entra desde abajo y tapa primero la foto. */
@media (min-width: 900px) {
  .svc-body { top: 0; bottom: auto; }
  .svc-card::after { background: linear-gradient(180deg, rgba(18, 17, 16, .86) 0%, rgba(18, 17, 16, .5) 38%, rgba(18, 17, 16, .06) 72%); }
}
@media (max-width: 899px) {
  .svc-card { display: flex; flex-direction: column; }
  .svc-name { position: relative; inset: auto; margin: 22px 20px 0; }
  .svc-body { position: relative; inset: auto; padding: 14px 20px 20px; }
  .svc-card::after { background: linear-gradient(180deg, rgba(18, 17, 16, .94) 0%, rgba(18, 17, 16, .72) 52%, rgba(18, 17, 16, .08) 88%); }
}

/* Temario desplegable: apertura suave y lista numerada en columnas. */
details.more { interpolate-size: allow-keywords; }
details.more::details-content { block-size: 0; overflow: hidden; transition: block-size .55s cubic-bezier(.2, .7, .2, 1), content-visibility .55s allow-discrete; }
details.more[open]::details-content { block-size: auto; }
.more summary { cursor: pointer; }
.more .syllabus ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); counter-reset: tema; }
.more .syllabus li { counter-increment: tema; display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; font: 400 clamp(1.05rem, 1.4vw, 1.25rem)/1.3 var(--display); color: var(--sillar); }
.more .syllabus li::before { content: counter(tema, decimal-leading-zero); flex: none; width: 2.2em; font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }

/* Academia: portada con foto real y la tarjeta del instructor sobre ella. */
.a-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; }
.a-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.a-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 17, 16, .94) 0%, rgba(18, 17, 16, .78) 42%, rgba(18, 17, 16, .32) 100%), linear-gradient(0deg, #121110 0%, rgba(18, 17, 16, 0) 32%); }
@media (max-width: 999px) { .a-hero::before { background: linear-gradient(0deg, #121110 8%, rgba(18, 17, 16, .82) 55%, rgba(18, 17, 16, .55)); } }
.a-hero .instructor { background: rgba(26, 25, 23, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.a-band { display: grid; gap: 12px; margin: 0; }
@media (min-width: 800px) { .a-band { grid-template-columns: 1.3fr .8fr 1.3fr; align-items: center; } }
.a-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.a-band .is-planet { aspect-ratio: 1; border-radius: 50%; }
.a-band figcaption { grid-column: 1 / -1; font: 400 12px/1.5 var(--mono); color: var(--muted); }

/* Academia: modelos certificables en pestañas compactas, junto a los planes. */
.models { display: grid; gap: 20px; margin-top: clamp(40px, 7vh, 64px); padding-top: clamp(28px, 5vh, 40px); border-top: 1px solid var(--line); }
.models h3 { font: 200 clamp(1.8rem, 3.4vw, 2.8rem)/1.05 var(--display); }
.models h3 b { font-weight: 800; }
.models > p { max-width: 60ch; color: rgba(242, 238, 230, .78); }
.models-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.models-tabs button { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: 500 15px/1 var(--display); transition: color .3s, border-color .3s, background-color .3s; }
.models-tabs button:hover { color: var(--sillar); border-color: rgba(242, 238, 230, .4); }
.models-tabs button[aria-selected="true"] { background: var(--sillar); border-color: var(--sillar); color: var(--black); }
.models-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; min-height: 96px; align-content: flex-start; }
.models-list li { padding: 8px 14px; border-radius: 999px; background: rgba(242, 238, 230, .07); font-size: 15px; color: rgba(242, 238, 230, .9); }
.models-list[hidden] { display: none; }

/* Página de servicio: precio, modalidades, demo en vivo, equipo y preguntas frecuentes. */
.s-precio { font: 300 clamp(1.2rem, 1.8vw, 1.5rem)/1.2 var(--display); color: rgba(242, 238, 230, .86); }
.s-precio b { font-weight: 800; color: var(--sillar); }
.mods { display: grid; gap: 14px; margin-top: clamp(28px, 5vh, 44px); }
@media (min-width: 800px) { .mods { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
/* Tarjetas de servicios: foto arriba, precio que manda y el botón siempre al pie (alineados entre tarjetas). */
.mod { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--black-2); transition: border-color .4s; }
.mod:hover { border-color: rgba(242, 238, 230, .3); }
.mod-foto { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.mod-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.mod:hover .mod-foto img { transform: scale(1.04); }
.mod-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--black-2), rgba(26, 25, 23, 0) 45%); }
.mod-n { position: absolute; left: 18px; top: 16px; z-index: 1; font: 500 12px/1 var(--mono); letter-spacing: .16em; color: var(--sillar); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.mod-cuerpo { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 30px); }
.mod-foto + .mod-cuerpo { padding-top: 6px; }
.mod-precio { font: 300 1.1rem/1.2 var(--display); color: var(--muted); }
.mod-precio b { display: block; margin-top: 4px; font: 800 clamp(2.4rem, 3.6vw, 3.2rem)/1 var(--display); letter-spacing: -.02em; color: var(--sillar); }
.mod h3 { font: 600 1.3rem/1.2 var(--display); }
.mod p { color: rgba(242, 238, 230, .82); }
.mod .mod-cond { padding-top: 12px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--muted); }
.mod .btn-line { align-self: flex-start; margin-top: auto; }
.mod-cuerpo > :nth-last-child(2) { margin-bottom: 8px; }
.demo { position: relative; margin-top: clamp(28px, 5vh, 44px); overflow: hidden; border-radius: 8px; background: #000; aspect-ratio: 16 / 9; max-height: 78svh; width: 100%; }
.demo img, .demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.demo img { opacity: .78; }
.demo-ui { position: absolute; left: 50%; bottom: 20px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; transform: translateX(-50%); }
.demo:not(.is-live) .demo-ui { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.demo .btn-line { background: rgba(18, 17, 16, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.demo.is-live .demo-ui { left: auto; right: 14px; bottom: 14px; transform: none; }
@media (max-width: 699px) { .demo { aspect-ratio: 3 / 4; } }
.equipo { display: grid; gap: 14px; margin-top: clamp(28px, 5vh, 44px); }
@media (min-width: 800px) { .equipo { grid-template-columns: 1fr 1fr; } }
.equipo article { display: grid; gap: 10px; padding: clamp(22px, 2.6vw, 30px) 0 0; border-top: 1px solid var(--line); }
.equipo h3 { font: 200 clamp(1.8rem, 3vw, 2.6rem)/1.05 var(--display); }
.equipo p { max-width: 52ch; color: rgba(242, 238, 230, .82); }
.faq { margin-top: clamp(28px, 5vh, 44px); border-top: 1px solid var(--line); }
.faq .more { margin-top: 0; border-top: 0; }
.faq .more summary { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.faq .more p { max-width: 70ch; padding: 0 0 24px; color: rgba(242, 238, 230, .82); }

/* Libro de Reclamaciones virtual (formato de hoja de INDECOPI). */
.libro-head { padding-top: calc(var(--head) + clamp(48px, 9vh, 96px)); border-top: 0; }
.libro-head h1 { font: 200 clamp(2.8rem, 7vw, 6rem)/.95 var(--display); }
.libro-head h1 b { font-weight: 800; }
.libro-proveedor { margin-top: 20px; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.hoja { display: grid; gap: 28px; max-width: 920px; }
.hoja fieldset { margin: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 8px; }
.hoja legend { padding: 0 10px; font: 600 1.05rem/1.2 var(--display); }
.campos { display: grid; gap: 16px; }
@media (min-width: 700px) { .campos { grid-template-columns: 1fr 1fr; } .campos .ancho { grid-column: 1 / -1; } }
.hoja label { display: grid; gap: 8px; font-size: 14px; color: rgba(242, 238, 230, .86); }
.hoja input:not([type="checkbox"]):not([type="radio"]), .hoja textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(242, 238, 230, .22); border-radius: 6px; background: var(--black); color: var(--sillar); font: 400 16px/1.4 var(--display); }
.hoja textarea { resize: vertical; }
.hoja input:focus-visible, .hoja textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.hoja .check { display: flex; align-items: flex-start; gap: 10px; }
.hoja .check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber); }
.opciones { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.hoja .tipo { flex: 1 1 260px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; }
.hoja .tipo:has(input:checked) { border-color: var(--amber); }
.hoja .tipo b { display: block; margin-bottom: 4px; color: var(--sillar); }
.hoja .acepta { font-size: 14px; line-height: 1.5; }
.hoja .acepta a { color: var(--sillar); text-decoration: underline; text-underline-offset: 3px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hoja-errores { padding: 16px 20px; border: 1px solid var(--magenta); border-radius: 6px; background: rgba(255, 31, 110, .08); }
.hoja-errores ul { margin: 8px 0 0; padding-left: 20px; }
.constancia { display: grid; gap: 18px; max-width: 920px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 8px; background: var(--black-2); outline: none; }
.constancia h2 { font: 200 clamp(2rem, 4vw, 3.2rem)/1.05 var(--display); }
.constancia h2 b { font-weight: 800; }
.constancia-aviso { color: rgba(242, 238, 230, .86); }
.constancia-datos { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.constancia-datos div { display: grid; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .constancia-datos div { grid-template-columns: 200px 1fr; } }
.constancia-datos dt { font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.constancia-datos dd { margin: 0; white-space: pre-wrap; }
@media print {
  .site-header, .footer, .cursor, .cursor-dot, .dock, .libro-head .wrap-lede, .constancia .s-actions, .skip { display: none !important; }
  html, body, .constancia { background: #fff !important; color: #111 !important; }
  .constancia { border-color: #bbb; }
  .constancia-datos dt, .libro-proveedor, .eyebrow { color: #555 !important; }
  .constancia-datos div, .constancia-datos { border-color: #ccc !important; }
}

/* Política de privacidad: índice fijo a la izquierda y texto a lectura cómoda. */
.priv { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .priv { grid-template-columns: 220px minmax(0, 1fr); } .priv-toc { position: sticky; top: calc(var(--head) + 32px); align-self: start; } }
.priv-toc ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.priv-toc li { counter-increment: toc; }
.priv-toc a { display: flex; gap: 12px; font-size: 14px; color: rgba(242, 238, 230, .78); text-decoration: none; }
.priv-toc a::before { content: counter(toc, decimal-leading-zero); font: 400 12px/1.6 var(--mono); color: var(--muted); }
.priv-toc a:hover, .priv-toc a:focus-visible { color: var(--sillar); }
@media (max-width: 959px) { .priv-toc ol { grid-template-columns: 1fr 1fr; } }
.priv-doc { display: grid; gap: clamp(44px, 7vh, 72px); max-width: 74ch; }
.priv-doc section { display: grid; gap: 16px; scroll-margin-top: calc(var(--head) + 24px); }
.priv-doc h2 { font: 300 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--display); }
.priv-doc p, .priv-doc li { color: rgba(242, 238, 230, .84); }
.priv-doc b { color: var(--sillar); }
.priv-doc ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.priv-doc a { color: var(--sillar); text-decoration: underline; text-underline-offset: 3px; }
.priv-tabla { margin: 0; border-top: 1px solid var(--line); }
.priv-tabla div { display: grid; gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .priv-tabla div { grid-template-columns: 190px 1fr; } }
.priv-tabla dt { font: 400 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.priv-tabla dd { display: grid; gap: 10px; margin: 0; }
.priv-plazos dd { font: 400 15px/1.5 var(--mono); color: var(--sillar); }

/* Guías: lista, artículo (texto del editor del CMS) y guías relacionadas en servicios y academia. */
.g-aviso { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: var(--amber); color: var(--black); font: 500 12px/1.4 var(--mono); }
.g-head .eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; font: 400 12px/1.6 var(--mono); letter-spacing: .02em; color: var(--muted); }
.g-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1; }
/* Portada de las guías: a pantalla completa, con títulos más largos que los de un servicio. */
.g-hero h1 { max-width: 20ch; font-size: clamp(2.5rem, 5.8vw, 5.6rem); line-height: .98; }
.g-hero .s-lede { max-width: 58ch; }
.g-hero .g-meta { margin-top: 4px; color: rgba(242, 238, 230, .7); }
.g-indice-guias .filters { margin-bottom: 8px; }
.g-indice-guias .work-meta { max-width: 52ch; }
.g-body { display: grid; gap: 0 48px; align-items: start; border-top: 0; }
.g-indice { display: none; }
@media (min-width: 1100px) {
  .g-body { grid-template-columns: minmax(0, 68ch) 240px; justify-content: space-between; }
  .g-indice { display: block; grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--head) + 32px); }
}
.g-cuerpo h2 { scroll-margin-top: calc(var(--head) + 24px); }
.g-cuerpo { max-width: 68ch; font-size: clamp(1.04rem, 1.15vw, 1.14rem); line-height: 1.72; color: rgba(242, 238, 230, .86); }
.g-cuerpo > * + * { margin-top: 1.15em; }
.g-cuerpo h2 { max-width: none; margin-top: 2.1em; font: 300 clamp(1.7rem, 2.8vw, 2.4rem)/1.12 var(--display); color: var(--sillar); }
.g-cuerpo h2 strong { font-weight: 800; }
.g-cuerpo h3 { margin-top: 1.8em; font: 600 1.2rem/1.3 var(--display); color: var(--sillar); }
.g-cuerpo strong { font-weight: 600; color: var(--sillar); }
.g-cuerpo a { color: var(--sillar); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 238, 230, .4); }
.g-cuerpo a:hover { text-decoration-color: var(--amber); }
.g-cuerpo ul, .g-cuerpo ol { padding-left: 1.3em; }
.g-cuerpo li + li { margin-top: .3em; }
.g-cuerpo li::marker { color: var(--muted); font-family: var(--mono); font-size: .85em; }
.g-cuerpo blockquote { margin: 2em 0; padding: 22px 0; border-block: 1px solid var(--line); font: 300 clamp(1.25rem, 2vw, 1.55rem)/1.4 var(--display); color: var(--sillar); }
.g-cuerpo hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--line); }
.g-foto { margin: 2em 0 0; }
.g-foto img { display: block; width: 100%; height: auto; border-radius: 6px; }
.g-foto figcaption { margin-top: 10px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.g-foto.is-grande { width: min(1100px, calc(100vw - 2 * var(--pad))); }
.g-galeria { display: grid; gap: 12px; margin-top: 2em; }
@media (min-width: 700px) { .g-galeria { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); } }
.g-galeria .g-foto { margin: 0; }
.g-galeria img { aspect-ratio: 4 / 3; object-fit: cover; }
.g-destacado { padding: 20px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--black-2); }
.g-destacado p { margin: 0; }
.g-destacado-t { margin-bottom: 8px !important; font: 400 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.g-boton { margin-top: 2em; }
.g-fuentes { max-width: 68ch; margin-top: clamp(48px, 7vh, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.g-fuentes ol { display: grid; gap: 10px; margin: 0; padding-left: 1.4em; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.g-fuentes a { color: rgba(242, 238, 230, .8); text-decoration: underline; text-underline-offset: 3px; }
.g-rel .others, .g-mas .others { margin-top: clamp(24px, 4vh, 40px); }
.g-rel .others a span, .g-mas .others a span { white-space: nowrap; }

/* Franja de guías al final de la academia: tres tarjetas con foto; en el celular se desliza de lado. */
.g-franja-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 32px; }
.g-franja-lista { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 16px; margin-top: clamp(28px, 5vh, 48px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-franja-lista::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .g-franja-lista { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.g-card { display: grid; align-content: start; gap: 12px; scroll-snap-align: start; }
.g-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; transition: opacity .3s; }
.g-card-m { font: 400 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.g-card-t { font: 300 clamp(1.3rem, 1.9vw, 1.6rem)/1.2 var(--display); color: var(--sillar); transition: color .3s; }
.g-card-t b { font-weight: 800; }
.g-card:hover .g-card-t, .g-card:focus-visible .g-card-t { color: var(--amber); }
.g-card:hover img { opacity: .85; }

/* Próxima apertura de la academia (CMS): la fecha manda; los datos van en una tabla corta. */
.apertura { display: grid; gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
@media (min-width: 960px) { .apertura { grid-template-columns: 1.1fr 1fr; } }
.apertura .ap-fecha { max-width: none; font: 200 clamp(2.8rem, 6.4vw, 5.6rem)/.98 var(--display); }
.apertura .ap-fecha b { font-weight: 800; }
.ap-cuenta { margin-top: 20px; font: 400 13px/1.5 var(--mono); letter-spacing: .06em; color: var(--amber); }
.ap-datos { margin: 0; border-top: 1px solid var(--line); }
.ap-datos div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ap-datos dt { font: 400 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ap-datos dd { margin: 0; color: var(--sillar); }
.ap-nota { margin-top: 18px; max-width: 52ch; color: rgba(242, 238, 230, .78); }
.ap-detalle .s-actions { margin-top: 28px; }

/* Portadas con foto (academia y servicios): la barra empieza transparente sobre la foto y se vuelve sólida al
   bajar, como en la portada principal (comun.js pone y quita .clear). */
.page .site-header.clear { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.a-hero::after, .s-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--head) + 120px); background: linear-gradient(rgba(18, 17, 16, .6), transparent); pointer-events: none; }
.a-hero::after { z-index: -1; }
.s-hero::before { z-index: 1; }
