/* SkyTec – ITM · estilo oscuro inspirado en demos técnicas tipo HUD */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg2: #0e1013;
  --panel: #111317;
  --panel2: #15181d;
  --line: rgba(255, 255, 255, .085);
  --line2: rgba(255, 255, 255, .16);
  --text: #e8eaed;
  --dim: #8b9199;
  --dim2: #5a6068;
  --acc: #35d0f0;
  --acc2: #2790d6;
  --ok: #8ee6a8;
  --warn: #ffd479;
  --maxw: 1600px;
  --gut: clamp(16px, 3.2vw, 44px);
  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --plus: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'><path d='M4.5 0v9M0 4.5h9' stroke='%238b9199' stroke-width='1'/></svg>");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--acc); color: #000; }
main { position: relative; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 2; }
.section { padding: clamp(80px, 11vw, 170px) 0; position: relative; }
.section--alt { background: transparent; }
.section--line { border-top: 1px solid var(--line); }
.mono, .eyebrow { font-family: var(--mono); }
.eyebrow { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: 22px; display: block; }
.eyebrow::before { content: "[ "; color: var(--dim2); }
.eyebrow::after { content: " ]"; color: var(--dim2); }
.eyebrow:empty::before, .eyebrow:empty::after { content: none; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.045em; line-height: 1; }
h1 { font-size: clamp(3rem, 9vw, 9rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); margin-bottom: 22px; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: -.025em; line-height: 1.15; }
.grad { color: var(--dim2); }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.3; letter-spacing: -.02em; color: var(--dim); max-width: 880px; font-weight: 300; }
.dim { color: var(--dim); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* texto que rueda al pasar el cursor */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.2; height: 1.2em; }
.roll > span { display: block; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-t); display: block; }
a:hover .roll > span, button:hover .roll > span, .roll:hover > span { transform: translateY(-50%); }

/* cruces en las esquinas */
.hud { position: relative; background-image: var(--plus), var(--plus), var(--plus), var(--plus); background-repeat: no-repeat; background-size: 9px 9px; background-position: left 10px top 10px, right 10px top 10px, left 10px bottom 10px, right 10px bottom 10px; }

/* ---------- barra superior ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, backdrop-filter .4s; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .4s; }
.nav.scrolled { background: rgba(10, 11, 13, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.nav.scrolled::after { opacity: 1; }
.nav__in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-size: .88rem; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.brand img { height: 26px; width: auto; }
.brand b { font-weight: 500; font-size: 1.02rem; }
.brand i { font-style: normal; color: var(--dim); display: flex; align-items: center; gap: 12px; }
.brand i::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--dim2); }
.nav__mid { color: var(--dim); text-align: center; }
.nav__mid a:hover { color: var(--text); }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: clamp(16px, 4vw, 70px); }
.nav__clock { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav__clock b { color: var(--text); font-weight: 400; }
.menu-btn { height: 34px; padding: 0 16px; border-radius: 3px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: background .25s, border-color .25s; }
.menu-btn:hover { background: rgba(255, 255, 255, .12); border-color: var(--line2); }
.menu-btn .bars { width: 14px; height: 8px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 6.5px; }
.menu-open .menu-btn .bars::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 3.25px; transform: rotate(-45deg); }
@media (max-width: 1000px) { .nav__mid { display: none; } .nav__in { grid-template-columns: 1fr auto; } }
@media (max-width: 640px) { .nav__clock, .brand i { display: none; } .nav__in { height: 62px; } }

/* menú a pantalla completa */
.menu { position: fixed; inset: 0; z-index: 90; background: rgba(8, 9, 11, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); overflow-y: auto; }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__in { max-width: var(--maxw); margin: 0 auto; padding: 120px var(--gut) 40px; min-height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-content: space-between; }
.menu__links { list-style: none; counter-reset: m; }
.menu__links li { border-top: 1px solid var(--line); overflow: hidden; }
.menu__links li:last-child { border-bottom: 1px solid var(--line); }
.menu__links a { display: flex; align-items: baseline; gap: 22px; padding: 12px 0; font-size: clamp(1.9rem, 4.6vw, 3.6rem); letter-spacing: -.045em; line-height: 1.05; color: var(--dim); transition: color .3s; transform: translateY(100%); }
.menu-open .menu__links a { transform: none; transition: transform .8s var(--ease), color .3s; }
.menu__links li:nth-child(2) a { transition-delay: .04s; } .menu__links li:nth-child(3) a { transition-delay: .08s; } .menu__links li:nth-child(4) a { transition-delay: .12s; }
.menu__links li:nth-child(5) a { transition-delay: .16s; } .menu__links li:nth-child(6) a { transition-delay: .2s; } .menu__links li:nth-child(7) a { transition-delay: .24s; }
.menu__links a small { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--dim2); min-width: 26px; }
.menu__links a:hover, .menu__links a.on { color: var(--text); }
.menu__side { display: flex; flex-direction: column; gap: 26px; align-self: end; font-size: .95rem; color: var(--dim); }
.menu__side h4 { font-family: var(--mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim2); margin-bottom: 8px; }
.menu__side a:hover { color: var(--text); }
@media (max-width: 820px) { .menu__in { grid-template-columns: 1fr; padding-top: 96px; } .menu__side { align-self: start; } }

/* ---------- botones ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 3px; font-weight: 500; font-size: .92rem; border: 1px solid transparent; transition: background .25s, border-color .25s, color .25s; }
.btn--primary { background: var(--text); color: #0a0b0d; }
.btn--primary:hover { background: #fff; }
.btn--ghost { border-color: var(--line2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn--acc { background: var(--acc); color: #04161b; }
.btn--acc:hover { background: #6fe3f6; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.blink { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); display: inline-flex; gap: 6px; align-items: center; transition: color .25s; }
.blink::before { content: "["; color: var(--dim2); }
.blink::after { content: "]"; color: var(--dim2); }
.blink:hover { color: var(--text); }

/* ---------- lienzo 3D ---------- */
#drone-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .2s linear; }
.no-webgl #drone-canvas { display: none; }
.hero__poster { display: none; }
.no-webgl .hero__poster { display: block; position: absolute; inset: 15% 10% 22%; z-index: 1; background: url("../assets/hero/dron-poster.jpg") center / contain no-repeat; mix-blend-mode: screen; opacity: .9; }

/* ---------- portada ---------- */
.hero { height: 100vh; height: 100svh; min-height: 560px; position: relative; overflow: hidden; }
.hero__word { position: absolute; left: var(--gut); right: var(--gut); top: 15vh; z-index: 0; pointer-events: none; }
.hero__word svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero__word text { font-family: var(--font); font-weight: 300; letter-spacing: -.02em; fill: url(#wfill); stroke: rgba(255, 255, 255, .11); stroke-width: 1.2; }
.hero__glow { position: absolute; left: 50%; top: 52%; width: 90vw; height: 70vh; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(39, 144, 214, .13), rgba(39, 144, 214, 0) 62%); pointer-events: none; z-index: 0; }
.hero__hud { position: absolute; z-index: 2; top: 92px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--dim2); text-transform: uppercase; pointer-events: none; }
.hero__bot { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(22px, 4vh, 44px); }
.hero__bot .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hero .hero__title { font-size: clamp(1.45rem, 2.5vw, 2.35rem); letter-spacing: -.035em; line-height: 1.15; font-weight: 400; max-width: 760px; }
.hero .hero__title span { display: block; color: var(--dim); }
.hero__links { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero__links nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.scroll-hint { display: inline-flex; align-items: center; gap: 14px; font-size: .9rem; font-weight: 500; }
.scroll-hint i { width: 5px; height: 5px; border-radius: 50%; background: var(--text); animation: dot 2.2s var(--ease) infinite; }
@keyframes dot { 0%, 100% { transform: translateY(-5px); opacity: .3; } 50% { transform: translateY(5px); opacity: 1; } }
@media (max-width: 820px) {
  .hero__word { top: 13vh; }
  .hero__bot .wrap { flex-direction: column; align-items: flex-start; }
  .hero__links { align-items: flex-start; }
  .hero__links nav { justify-content: flex-start; }
  .scroll-hint { display: none; }
}

/* manifiesto: las palabras se encienden con el scroll */
.manifesto { min-height: 120vh; display: flex; align-items: center; padding: 20vh 0; }
.manifesto p { font-size: clamp(1.9rem, 4.4vw, 4.4rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 400; max-width: 1180px; }
.has-3d .manifesto p { max-width: min(1180px, 62%); }
.manifesto .w { opacity: .14; transition: opacity .35s linear; }
.manifesto .w.on { opacity: 1; }
.hl { display: inline-flex; flex-direction: column; height: 1.06em; overflow: hidden; vertical-align: bottom; color: var(--text); }
.hl > span { display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.hl > span > b { font-weight: inherit; display: block; height: 1.06em; }
.hl > span > b:nth-child(2) { color: var(--acc); }
.hl.on > span { transform: translateY(-66.666%); }
@media (max-width: 820px) { .has-3d .manifesto p { max-width: none; } .manifesto { min-height: 110vh; align-items: flex-start; padding: 16vh 0 10vh; } }

/* encabezado de sección (título + número) */
.shead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: clamp(28px, 4vw, 56px); }
.shead h2 { margin: 0; }
.shead sup { font-family: var(--mono); font-size: .78rem; color: var(--dim); position: relative; top: .3em; letter-spacing: 0; }
.shead--split { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Qué hacemos (fijo mientras haces scroll) ---------- */
.caps { height: 340vh; position: relative; }
.caps__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.caps__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; height: 100%; padding-top: 72px; }
.caps__copy h2 { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.caps__copy .lead { font-size: clamp(1.05rem, 1.5vw, 1.35rem); max-width: 560px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 34px 0 22px; }
.tab { height: 38px; padding: 0 16px; border-radius: 3px; border: 1px solid var(--line); font-size: .88rem; color: var(--dim); transition: color .25s, border-color .25s, background .25s; }
.tab:hover { color: var(--text); border-color: var(--line2); }
.tab.on { color: #0a0b0d; background: var(--text); border-color: var(--text); }
.panes { position: relative; min-height: 200px; max-width: 560px; }
.pane { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.pane.on { opacity: 1; transform: none; pointer-events: auto; }
.pane .icon { margin-bottom: 18px; }
.pane h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 10px; }
.pane p { color: var(--dim); font-size: 1.05rem; max-width: 460px; }
.caps__bar { display: flex; gap: 6px; margin-top: 26px; max-width: 560px; }
.caps__bar i { flex: 1; height: 2px; background: var(--line2); position: relative; overflow: hidden; }
.caps__bar i b { position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(0); }
.caps__frame { position: relative; height: min(64vh, 560px); border: 1px solid var(--line); pointer-events: none; }
.caps__frame span { position: absolute; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim2); }
.caps__frame .fa { top: 14px; left: 16px; } .caps__frame .fb { top: 14px; right: 16px; } .caps__frame .fc { bottom: 14px; left: 16px; } .caps__frame .fd { bottom: 14px; right: 16px; color: var(--acc); }
@media (max-width: 820px) {
  .caps { height: 330vh; }
  .caps__grid { grid-template-columns: 1fr; align-content: end; padding: 0 var(--gut) 34px; }
  .caps__frame { display: none; }
  .caps__copy h2 { font-size: 2rem; margin-bottom: 12px; }
  .caps__copy .lead { display: none; }
  .tabs { margin: 16px 0 14px; }
  .panes { min-height: 170px; }
}

/* ---------- cifras ---------- */
.gear { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; }
.gear__txt { font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 300; max-width: 720px; }
.gear__txt span { color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(50px, 8vw, 110px); }
.stat { padding: 26px 22px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(2.6rem, 6.5vw, 6.4rem); font-weight: 300; letter-spacing: -.06em; line-height: .95; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 900px) { .gear { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 26px; } }

/* ---------- proyectos destacados (pestañas) ---------- */
.sol { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(26px, 4vw, 64px); align-items: start; }
.sol__media { aspect-ratio: 16 / 11; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.sol__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.88); transition: transform 1.2s var(--ease), opacity .5s; }
.sol__media .ph { position: absolute; }
.sol__media::after { content: ""; position: absolute; inset: 0; background-image: var(--plus), var(--plus), var(--plus), var(--plus); background-repeat: no-repeat; background-size: 9px; background-position: left 12px top 12px, right 12px top 12px, left 12px bottom 12px, right 12px bottom 12px; pointer-events: none; }
.sol__tag { position: absolute; z-index: 2; left: 14px; bottom: 14px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(10, 11, 13, .75); padding: 6px 10px; backdrop-filter: blur(6px); }
.sol__body p.big { font-size: clamp(1.2rem, 1.9vw, 1.65rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 300; margin-bottom: 30px; }
.sol__body h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 14px 0 18px; letter-spacing: -.045em; }
.spec { border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec dt { color: var(--dim); }
.spec dd { text-align: right; }
.uses { list-style: none; margin-top: 26px; display: grid; gap: 8px; }
.uses li { font-size: .95rem; color: var(--dim); padding-left: 20px; position: relative; }
.uses li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--acc); }
.fade-swap { animation: fadeIn .7s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .sol { grid-template-columns: 1fr; } }

/* ---------- tarjetas ---------- */
.grid { display: grid; gap: 14px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: clamp(24px, 2.6vw, 34px); position: relative; overflow: hidden; transition: border-color .35s, background .35s; }
a.card:hover, .card--hover:hover { border-color: var(--line2); background: var(--panel2); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--dim); font-size: .97rem; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--acc); margin-bottom: 26px; border: 1px solid var(--line); border-radius: 2px; }
.icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* tarjeta tipo HUD (áreas) */
.acard { display: flex; flex-direction: column; min-height: 330px; padding: 30px; }
.acard .hudtop { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--dim2); text-transform: uppercase; margin-bottom: 40px; }
.acard .hudtop .icon { margin: 0; }
.acard h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -.035em; }
.acard p { margin-bottom: 26px; }
.acard .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); padding-top: 16px; border-top: 1px solid var(--line); }
.acard .foot b { color: var(--text); font-weight: 400; }

.pcard { padding: 0; display: flex; flex-direction: column; }
.pcard__img { aspect-ratio: 16 / 10; background: #0d0f12; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); transition: transform 1s var(--ease), filter .5s; }
a.pcard:hover .pcard__img img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.pcard__img::after { content: ""; position: absolute; inset: 0; background-image: var(--plus), var(--plus); background-repeat: no-repeat; background-size: 9px; background-position: left 10px top 10px, right 10px top 10px; pointer-events: none; }
.pcard__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__body h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.pcard__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard__meta small { font-family: var(--mono); font-size: .7rem; color: var(--dim2); letter-spacing: .05em; }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--mono); font-size: .7rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; border: 1px solid var(--line2); color: var(--text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--desarrollo { color: var(--acc); border-color: rgba(53, 208, 240, .3); }
.badge--proximo { color: var(--warn); border-color: rgba(255, 212, 121, .3); }
.badge--concluido { color: var(--ok); border-color: rgba(142, 230, 168, .3); }
.more { font-size: .9rem; font-weight: 500; margin-top: auto; padding-top: 10px; display: inline-flex; gap: 8px; color: var(--text); }

/* marcador de foto (cuando aún no hay imagen) */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .1) 1px, transparent 1.4px) 0 0 / 16px 16px, linear-gradient(135deg, #10161d, #0b0c0f); color: var(--dim2); text-align: center; font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; }
.ph img { width: 44px; opacity: .4; margin: 0 auto 10px; }
.ph small { display: block; }

/* filtros */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 34px; }
.chip { height: 38px; padding: 0 16px; border-radius: 3px; border: 1px solid var(--line); background: transparent; font-size: .88rem; color: var(--dim); transition: all .25s; }
.chip:hover { border-color: var(--line2); color: var(--text); }
.chip.on { background: var(--text); color: #0a0b0d; border-color: var(--text); }
select.chip { max-width: 100%; color: var(--text); background: var(--panel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%238b9199'/></svg>") right 14px center / 10px no-repeat; appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
select.chip option { background: #111; color: #fff; }

/* ---------- trayectoria (filas) ---------- */
.tl { border-top: 1px solid var(--line); }
.tl__item { display: grid; grid-template-columns: 190px minmax(0, 1fr) 200px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: background .3s; }
.tl__item:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .025), transparent); }
.tl__year { font-family: var(--mono); font-size: .78rem; letter-spacing: .05em; color: var(--dim); text-transform: uppercase; padding-top: 6px; }
.tl__year:empty::before { content: "—"; color: var(--dim2); }
.tl__item h3 { font-size: clamp(1.15rem, 1.8vw, 1.6rem); margin-bottom: 6px; display: flex; gap: 12px; align-items: baseline; }
.tl__item.star h3::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(53, 208, 240, .15); position: relative; top: -.2em; }
.tl__item p { color: var(--dim); max-width: 760px; }
.tl__side { text-align: right; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dim2); padding-top: 6px; }
.tl__item .tag { display: inline-block; margin-top: 8px; color: var(--warn); font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 820px) { .tl__item { grid-template-columns: 1fr; gap: 6px; } .tl__side { text-align: left; padding: 0; } .tl__year { padding: 0; } }

/* ---------- personas ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.person { text-align: center; border: 1px solid var(--line); background: var(--panel); padding: 22px 16px 22px; transition: border-color .3s; }
.person:hover { border-color: var(--line2); }
.avatar { width: 132px; height: 132px; aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; position: relative; overflow: hidden; background: #0d0f12; border: 1px solid var(--line2); }
.avatar .ph { border-radius: 50%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05) brightness(.9); transition: filter .6s, transform 1s var(--ease); }
.person:hover .avatar img { filter: none; transform: scale(1.03); }
.avatar .ph { font-size: 0; }
.avatar .ph::after { content: ""; width: 34%; height: 34%; background: rgba(255, 255, 255, .16); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/></svg>") center / contain no-repeat; }
.person h3 { font-size: 1.05rem; letter-spacing: -.015em; margin: 0 0 6px; }
.person .role { color: var(--acc); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.person .sub { color: var(--dim); font-size: .82rem; margin: 6px 0 0; }
.ghost .avatar { border: 1px dashed var(--line2); background: transparent; }
.people:has(.person) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 640px) {
  .people:has(.person) { grid-template-columns: 1fr; gap: 10px; }
  .person { display: grid; grid-template-columns: 88px 1fr; column-gap: 16px; align-content: center; align-items: center; text-align: left; padding: 14px 16px; }
  .person > .avatar { width: 88px; height: 88px; margin: 0; grid-row: 1 / span 4; }
  .person > :not(.avatar) { grid-column: 2; }
}
.ghost h3 { color: var(--dim); font-weight: 400; }
.slot { border: 1px solid var(--line); background: var(--panel); padding: clamp(24px, 3vw, 38px); position: relative; }
.slot h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 10px; }
.mcard { border: 1px solid var(--line); padding: 20px 22px; background: var(--panel); text-align: left; transition: border-color .3s; }
.mcard:hover { border-color: var(--line2); }
.mcard h3 { font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: 8px; }
.mcard .car { color: var(--text); font-size: .9rem; opacity: .85; }
.mcard .sem { color: var(--dim); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.mcard .role { color: var(--acc); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin-top: 10px; }
.mcard .sub { color: var(--dim); font-size: .8rem; margin-top: 6px; }
.mcard.ghost { background: transparent; border: 1px dashed var(--line2); }
.mcard.ghost h3 { color: var(--dim); }
.mcard.ghost .car, .mcard.ghost .sem { opacity: .5; }
.people:has(.mcard) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: start; }

/* ---------- páginas interiores ---------- */
.page-hero { padding: clamp(130px, 16vw, 210px) 0 clamp(50px, 7vw, 90px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; width: 1100px; height: 700px; right: -260px; top: -260px; background: radial-gradient(ellipse, rgba(39, 144, 214, .12), rgba(39, 144, 214, 0) 62%); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; opacity: .35; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.page-hero h1 { font-size: clamp(2.8rem, 8.4vw, 8rem); margin-bottom: 26px; letter-spacing: -.055em; line-height: .95; }
.page-hero .wrap > .eyebrow { margin-bottom: 30px; }
.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.hero-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #0d0f12; border: 1px solid var(--line); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after { content: ""; position: absolute; inset: 0; background-image: var(--plus), var(--plus), var(--plus), var(--plus); background-repeat: no-repeat; background-size: 9px; background-position: left 10px top 10px, right 10px top 10px, left 10px bottom 10px, right 10px bottom 10px; pointer-events: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tag-a { padding: 7px 12px; border: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); transition: border-color .25s, color .25s; }
a.tag-a:hover { border-color: var(--line2); color: var(--text); }
ul.list { list-style: none; display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
ul.list li { position: relative; padding: 14px 0 14px 28px; color: #d3d6da; border-bottom: 1px solid var(--line); }
ul.list li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 10px; height: 1px; background: var(--acc); }
.crumb { font-family: var(--mono); color: var(--dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 26px; display: inline-block; transition: color .25s; }
.crumb:hover { color: var(--text); }
.stack { display: grid; gap: 22px; }
.sep { height: 1px; background: var(--line); margin: 34px 0; }
h3.lbl, .lbl { font-family: var(--mono); font-size: .76rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.page-hero .badge { margin-bottom: 4px; }

/* ---------- aliados ---------- */
.allies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.ally { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: clamp(24px, 4vw, 54px); border-right: 1px solid var(--line); position: relative; transition: background .4s; }
.ally:last-child { border-right: 0; }
.ally img { width: auto; height: auto; max-height: min(150px, 100%); max-width: 62%; object-fit: contain; opacity: .7; filter: grayscale(1); transition: opacity .4s, filter .4s, transform .6s var(--ease); }
.ally:hover { background: rgba(255, 255, 255, .025); }
.ally:hover img { opacity: 1; filter: none; transform: scale(1.04); }
.ally small { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: .68rem; color: var(--dim2); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 700px) { .allies { grid-template-columns: minmax(0, 1fr); } .ally img { max-height: 96px; } .ally { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 7; } .ally:last-child { border-bottom: 0; } }

/* ---------- llamada final ---------- */
.cta { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 clamp(50px, 8vw, 100px); position: relative; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 7rem); letter-spacing: -.055em; line-height: .95; margin-bottom: 18px; }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }
.cta__row p { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--dim); max-width: 520px; }
.cta__row .btns { margin: 0; }

/* ---------- pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; font-size: .9rem; color: var(--dim); position: relative; z-index: 2; background: var(--bg); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--mono); color: var(--dim2); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--text); }
.footer .brand b { color: var(--text); font-size: 1.15rem; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .25s, background .25s, color .25s; }
.social a:hover { border-color: var(--line2); background: rgba(255, 255, 255, .05); color: var(--text); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.footer__word { margin: 70px 0 0; pointer-events: none; user-select: none; }
.footer__word svg { width: 100%; height: auto; display: block; }
.footer__word text { font-family: var(--font); font-weight: 300; fill: rgba(255, 255, 255, .025); stroke: rgba(255, 255, 255, .09); stroke-width: 1; letter-spacing: -.03em; }
.footer__bot { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- animaciones de entrada ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
.split .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.in .ln > span { transform: none; }
.split.in .ln:nth-child(2) > span { transition-delay: .08s; } .split.in .ln:nth-child(3) > span { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .rv, .split .ln > span { opacity: 1; transform: none; transition: none; }
  .manifesto .w { opacity: 1; } .hl > span { transition: none; } .scroll-hint i { animation: none; }
}
.noscript { padding: 140px var(--gut) 40px; text-align: center; color: var(--dim); }
.hero-img .ph img, .pcard__img .ph img { width: 44px; height: auto; object-fit: contain; }
.hero-img .ph, .pcard__img .ph { position: absolute; }

/* video */
.vid { position: relative; display: block; margin: 24px 0; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .8s var(--ease), opacity .3s; }
.vid:hover img { transform: scale(1.03); opacity: 1; }
.vid .play, .art-video .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(10, 11, 13, .6); border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.vid .play::after, .art-video .play::after { content: ""; position: absolute; left: 28px; top: 22px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vid em { position: absolute; left: 14px; bottom: 12px; font-style: normal; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: rgba(10, 11, 13, .7); padding: 5px 9px; }

/* texto largo */
.prose { max-width: 780px; }
.prose h3 { margin: 44px 0 12px; font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.03em; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: #c9cdd2; margin: 0 0 16px; font-size: 1.04rem; line-height: 1.65; }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.prose ul.list { margin: 8px 0 24px; }
.prose code { font-family: var(--mono); background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 3px; font-size: .88em; }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------- Aprende ---------- */
.serie-h { margin: 70px 0 22px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); display: flex; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 22px; }
.serie-h:first-child { margin-top: 0; }
.serie-sub { color: var(--dim); margin-bottom: 22px; max-width: 640px; }
.acard__top { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 30px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px, radial-gradient(ellipse at 30% 0%, rgba(39, 144, 214, .22), rgba(39, 144, 214, 0) 65%), #0d0f12; }
.acard__top b { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 400; max-width: 90%; }
.acard__top small { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.acard__top .vflag { position: absolute; right: 16px; top: 13px; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--dim2); }
.acard__top .vflag.on { color: var(--acc); }
.page-hero .art-title { font-size: clamp(1.9rem, 4.2vw, 3.6rem); max-width: 1000px; line-height: 1.05; letter-spacing: -.045em; }
.art-detail { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.art-detail > * { min-width: 0; }
@media (max-width: 860px) { .art-detail { grid-template-columns: minmax(0, 1fr); } .art-side { order: -1; } }
.art-side { position: sticky; top: 100px; align-self: start; }
@media (max-width: 860px) { .art-side { position: static; } }
.art-video { position: relative; aspect-ratio: 9 / 16; max-width: 340px; overflow: hidden; border: 1px solid var(--line); background: #000; margin: 0 auto; }
.art-video img, .art-video iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.art-video button { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; padding: 0; }
.art-video img { opacity: .78; transition: opacity .3s; }
.art-video button:hover img { opacity: 1; }
.art-video--soon { display: grid; place-items: center; text-align: center; padding: 28px; color: var(--dim); background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px, #0d0f12; }
.art-video--soon strong { display: block; color: var(--text); font-weight: 500; font-size: 1.1rem; margin-bottom: 8px; }
.art-video--soon a { color: var(--acc); text-decoration: underline; }
.art-yt { display: block; text-align: center; margin: 14px auto 0; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--acc); max-width: 340px; }
.formula { margin: 18px 0 26px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--acc); color: #e8f4ff; overflow-x: auto; overflow-y: hidden; text-align: center; }
.formula .katex-display { margin: .3em 0; }
.formula .katex { font-size: 1.15em; }
.prose .katex { font-size: 1.05em; }
.callout { margin: 26px 0; padding: 18px 22px; border: 1px solid rgba(53, 208, 240, .25); background: rgba(53, 208, 240, .06); color: #dcebf0; }
.art-nav { margin: 26px auto 0; max-width: 340px; display: grid; gap: 8px; }
.art-nav a { display: block; padding: 12px 16px; border: 1px solid var(--line); font-size: .92rem; color: var(--text); transition: border-color .25s; }
.art-nav a:hover { border-color: var(--line2); }
.art-nav small { display: block; font-family: var(--mono); color: var(--dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
@media (max-width: 860px) { .art-video--soon { aspect-ratio: auto; max-width: none; padding: 26px 20px; } }
.a-search { width: 100%; max-width: 440px; margin: 0 0 14px; display: block; color: var(--text); cursor: text; background: var(--panel); height: 46px; }
.a-search::placeholder { color: var(--dim2); }

/* ---------- animación de cada área ---------- */
.page-hero--fx { min-height: clamp(560px, 80vh, 760px); display: flex; align-items: center; }
.page-hero--fx .wrap { position: static; }
.page-hero--fx .wrap > * { position: relative; z-index: 1; max-width: min(47%, 640px); }
.page-hero--fx h1 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1; }
.page-hero--fx .wrap > .area-fx { position: absolute; z-index: 0; top: 64px; bottom: 0; right: -3%; width: 66%; max-width: none; height: calc(100% - 64px); pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 56% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 62% 66% at 56% 50%, #000 50%, transparent 100%); }
@media (max-width: 820px) {
  .page-hero--fx { display: block; min-height: 0; }
  .page-hero--fx .wrap > * { max-width: none; }
  .page-hero--fx .wrap > .area-fx { position: relative; display: block; width: 112%; height: 300px; right: auto; margin: 22px -6% 0; top: auto; bottom: auto;
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 55%, transparent 100%); }
}
.wrap.prose { max-width: var(--maxw); } .wrap.prose > * { max-width: 780px; }

/* ---------- laboratorio ---------- */
.labcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.labcard { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); padding: 26px; min-height: 340px; transition: border-color .3s, transform .5s var(--ease); }
a.labcard:hover { border-color: rgba(53, 208, 240, .5); transform: translateY(-3px); }
.labcard.soon { background: transparent; border-style: dashed; }
.labcard.soon h3, .labcard.soon p { opacity: .55; }
.labcard__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; color: var(--dim); letter-spacing: .06em; }
.labtag { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border: 1px solid var(--line2); color: var(--dim); }
.labtag.on { color: #0a0b0d; background: var(--acc); border-color: var(--acc); }
.labcard__viz { margin: 26px 0 22px; height: 80px; }
.labcard__viz svg { width: 100%; height: 100%; }
.labcard h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.03em; margin-bottom: 10px; }
.labcard p { color: var(--dim); font-size: .95rem; margin-bottom: 18px; }

.lab-hero { padding-bottom: clamp(30px, 4vw, 50px); }
.lab-hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
.section.lab { padding-top: clamp(20px, 3vw, 40px); }
.lab__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lab__stage { position: relative; border: 1px solid var(--line); background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(39, 144, 214, .12), rgba(10, 11, 13, 0) 70%), var(--panel); aspect-ratio: 4 / 3.4; overflow: hidden; position: sticky; top: 84px; }
.lab__stage > #pid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lab__hud { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: var(--dim); text-transform: uppercase; pointer-events: none; }
.lab__hud b { color: var(--text); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.lab__hud span:first-child { color: var(--acc); }
.lab__scope { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; border-top: 1px solid var(--line); background: rgba(10, 11, 13, .72); backdrop-filter: blur(4px); }
.lab__scope canvas { width: 100%; height: 100%; display: block; }
.lab__legend { position: absolute; right: 12px; top: 8px; display: flex; gap: 14px; font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; color: var(--dim); text-transform: uppercase; }
.lab__legend span::before { content: ""; display: inline-block; width: 14px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px solid var(--acc); }
.lab__legend .lg-sp::before { border-top: 1px dashed rgba(255, 255, 255, .6); }
.lab__crash { position: absolute; inset: 0 0 34% 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(120, 20, 20, .18); opacity: 0; pointer-events: none; transition: opacity .2s; }
.lab__crash.on { opacity: 1; }
.lab__crash b { font-size: clamp(1.4rem, 3vw, 2rem); color: #ffb4a8; letter-spacing: -.02em; }
.lab__crash span { font-family: var(--mono); font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.lab__no3d { display: none; position: absolute; inset: 0 0 34% 0; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--dim); font-size: .9rem; }
.lab__stage.no3d .lab__no3d { display: flex; }

.lab__panel { border: 1px solid var(--line); background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lab__hint { border-left: 2px solid var(--acc); background: rgba(53, 208, 240, .06); padding: 12px 14px; font-size: .92rem; line-height: 1.45; min-height: 66px; }
.knob__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.knob label { font-size: .95rem; color: var(--dim); }
.knob label b { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.knob output { font-family: var(--mono); font-size: 1rem; color: var(--acc); font-variant-numeric: tabular-nums; }
.knob small { display: block; color: var(--dim); font-size: .8rem; margin-top: 6px; line-height: 1.4; }
.knob input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; touch-action: pan-y; }
.knob input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--line2); border-radius: 2px; }
.knob input[type=range]::-moz-range-track { height: 4px; background: var(--line2); border-radius: 2px; }
.knob input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--acc); border: 3px solid #0a0b0d; box-shadow: 0 0 0 1px var(--acc); }
.knob input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--acc); border: 3px solid #0a0b0d; box-shadow: 0 0 0 1px var(--acc); }
.knob input[type=range]:focus-visible { outline: 1px solid var(--acc); outline-offset: 4px; }
.lab__meters { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.lab__meters small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.lab__meters b { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.vibm i { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.vibm i b { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s, background .3s; }
.vibm i b.hot { background: #ff8a6a; }
.lab__group > small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.lab__group .chips { margin: 0; }
.lab__group .chip { height: 34px; padding: 0 12px; font-size: .84rem; }
.chip.tg[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); background: rgba(53, 208, 240, .08); }
.chip.act { border-color: var(--line2); color: var(--text); }
.chip.act:active { transform: scale(.96); }
.lab__reset { align-self: flex-start; }
.lab__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 30px; }
.lab__notes h3 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -.02em; }
.lab__notes p { color: var(--dim); font-size: .95rem; line-height: 1.6; }
.lab-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid rgba(53, 208, 240, .35); background: rgba(53, 208, 240, .06); padding: 18px 22px; margin: 36px 0 10px; }
.lab-cta b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.lab-cta span { color: var(--dim); font-size: .9rem; }
@media (max-width: 900px) {
  .lab__grid { grid-template-columns: 1fr; }
  .lab__stage { top: 62px; aspect-ratio: auto; height: 46vh; min-height: 300px; z-index: 5; }
  .lab__panel { padding: 16px; }
}
a.lab-cta, a.lab-cta * { text-decoration: none !important; border-bottom: 0 !important; }
a.lab-cta b { color: var(--text) !important; }
a.lab-cta span { color: var(--dim) !important; }
a.lab-cta .more { color: var(--acc) !important; white-space: nowrap; }
a.lab-cta:hover { border-color: var(--acc); }
/* accesos rápidos del hero, más visibles */
.hero__links nav { gap: 8px; }
.hero__links .blink { color: var(--text); font-size: .8rem; padding: 11px 16px; border: 1px solid var(--line2); background: rgba(17, 19, 23, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); gap: 8px; position: relative; overflow: hidden; transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease); }
.hero__links .blink::before, .hero__links .blink::after { color: var(--acc); transition: transform .3s var(--ease); }
.hero__links .blink:hover { border-color: var(--acc); background: rgba(53, 208, 240, .12); color: #fff; transform: translateY(-2px); }
.hero__links .blink:hover::before { transform: translateX(-3px); }
.hero__links .blink:hover::after { transform: translateX(3px); }
.hero__links .blink.hot { background: var(--acc); border-color: var(--acc); color: #0a0b0d; font-weight: 500; }
.hero__links .blink.hot::before, .hero__links .blink.hot::after { color: rgba(10, 11, 13, .55); }
.hero__links .blink.hot:hover { background: #6fe3f6; color: #0a0b0d; }
.hero__links .blink.hot i { font-style: normal; font-size: .6rem; padding: 2px 5px; margin-left: 2px; background: #0a0b0d; color: var(--acc); letter-spacing: .08em; }
@media (max-width: 640px) { .hero__links .blink { padding: 10px 12px; font-size: .74rem; } }

/* ---------- motor + hélice ---------- */
.mot-stage { aspect-ratio: auto; display: flex; flex-direction: column; }
.mot-stage > #mot-canvas { position: relative; display: block; width: 100%; flex: 1 1 auto; min-height: 0; height: 420px; }
.mot-live { position: relative; padding: 14px 16px 12px; border-top: 1px solid var(--line); background: rgba(10, 11, 13, .78); display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; }
.mot-bar { grid-column: 1 / -1; }
.mot-bar i { display: block; position: relative; height: 10px; background: var(--line); border-radius: 5px; overflow: visible; }
.mot-bar i b { display: block; height: 100%; width: 0; background: #ffb46a; border-radius: 5px; transition: width .08s linear; }
.mot-bar i b.up { background: var(--acc); }
.mot-bar i em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; margin-left: -1px; }
.mot-bar__lbl { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.mot-nums { display: flex; gap: 18px; grid-column: 1 / -1; }
.mot-nums small { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.mot-nums b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.mot-thr { grid-column: 1 / -1; }
.mot-thr .chips { margin: 6px 0 0; }
.mot-thr .chip { height: 32px; padding: 0 12px; font-size: .82rem; }
.mot-stage .lab__no3d { inset: 0 0 auto 0; height: 420px; }
.mot-verdict { border: 1px solid rgba(53, 208, 240, .35); background: rgba(53, 208, 240, .06); padding: 18px 22px; margin-bottom: 14px; color: var(--dim); }
.mot-verdict b { display: block; color: var(--text); font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.02em; margin-bottom: 4px; font-weight: 500; }
.mres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mres > div { background: var(--panel); padding: 16px 18px; }
.mres small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.mres b { font-family: var(--mono); font-weight: 500; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.mres > div.warn b { color: #ffd166; }
.mres > div.bad b { color: #ff8a6a; }
.mot-warn { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.mot-warn li { border-left: 2px solid #ff8a6a; background: rgba(255, 138, 106, .07); padding: 10px 14px; font-size: .9rem; color: var(--text); }
.mot-warn li::before { content: "⚠ "; color: #ff8a6a; }
@media (max-width: 900px) { .mot-stage { height: auto; min-height: 0; } .mot-stage > #mot-canvas { height: 30vh; min-height: 200px; } .mot-stage .lab__no3d { height: 30vh; } .mot-live { padding: 10px 14px; gap: 8px 14px; } .mot-thr .knob__row { margin-bottom: 0; } }
.mot-foot { color: var(--dim); font-size: .8rem; margin-top: 10px; }
.chip.tg.on { border-color: var(--acc); color: var(--acc); background: rgba(53, 208, 240, .08); }

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
