/* ==========================================================================
   AULAS.DEV — Engineering & Innovation
   Sistema visual basado en el concepto AULAS LATAM (v0): fondo cálido claro,
   tipografía ligera, bento cards, cristal iridiscente y revelado con desenfoque.
   ========================================================================== */

/* ---------- Fuentes (self-hosted, OFL-1.1) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #F5F4F0;
  --bg-2: #F0EEE8;
  --card: #FFFFFF;
  --card-hover: #FAFAF8;
  --ink: #111111;
  --ink-2: rgba(0, 0, 0, .72);
  --muted: rgba(0, 0, 0, .64);
  --faint: rgba(0, 0, 0, .55);
  --ghost: rgba(0, 0, 0, .22);
  --line: rgba(0, 0, 0, .07);
  --line-2: rgba(0, 0, 0, .13);
  --fill: rgba(0, 0, 0, .04);
  --fill-2: rgba(0, 0, 0, .07);
  --ok: #10B981;
  --warn: #EAB308;
  --info: #3B82F6;
  --iris: linear-gradient(120deg, #7DD3FC 0%, #A7F3D0 30%, #F0ABFC 62%, #93C5FD 100%);
  --glass: rgba(245, 244, 240, .68);
  --shadow-nav: 0 8px 32px rgba(0, 0, 0, .10), 0 2px 8px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-lg: 1rem;
  --r-md: .75rem;
  --wrap: 72rem;
  --gutter: 1.5rem;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "IBM Plex Sans", var(--sans);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: "Courier Prime", "Courier New", monospace;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 3rem; } }
@media (min-width: 1100px) { :root { --gutter: 5rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #111; color: #F5F4F0; }
:focus-visible { outline: 2px solid #111; outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: #111; color: #fff; padding: .6rem 1rem; border-radius: .75rem; font-size: 13px; transition: top .2s; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.section { padding: 6rem var(--gutter); border-top: 1px solid var(--line); position: relative; }
.section.no-line { border-top: 0; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }

/* ---------- Tipografía ---------- */
.h-display { font-family: var(--display); font-weight: 300; letter-spacing: -.025em; line-height: 1; }
.h2 { font-weight: 300; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.028em; }
.h2.xl { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.h3 { font-weight: 300; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.h4 { font-weight: 400; font-size: 1rem; line-height: 1.35; }
.lead { font-size: 1rem; color: var(--muted); line-height: 1.65; max-width: 34rem; }
.p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.small { font-size: 12px; color: var(--faint); line-height: 1.55; }
.pixel { font-family: var(--pixel); text-transform: uppercase; letter-spacing: .25em; font-size: 11px; }
.mono { font-family: var(--mono); }
.label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 999px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); background: var(--fill);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: 12px; padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,.55); }

/* Estados */
.status { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .02em; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ghost); flex: none; }
.status.s-explore::before { background: #A78BFA; }
.status.s-proto::before { background: var(--warn); }
.status.s-build::before { background: var(--info); }
.status.s-live::before { background: var(--ok); box-shadow: 0 0 6px var(--ok); animation: pulse 2s ease-in-out infinite; }
.status.s-soon::before { background: var(--ghost); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .75rem 1.5rem; border-radius: var(--r-md);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: rgba(0,0,0,.25); color: #111; background: var(--fill); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.link-arrow:hover { color: #111; }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr, a:hover > .link-arrow .arr, .bento:hover .link-arrow .arr { transform: translateX(4px); }

/* ---------- Navegación ---------- */
.nav-wrap { position: fixed; top: 1rem; inset-inline: 0; z-index: 60; display: flex; justify-content: center; padding-inline: 1rem; pointer-events: none; }
.nav-inner { width: 100%; max-width: 68rem; pointer-events: auto; }
.nav {
  display: flex; align-items: center; gap: 1.25rem; min-height: 60px; padding: .6rem .7rem .6rem 1.25rem;
  border-radius: 1rem; border: 1px solid rgba(0,0,0,.06);
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-nav);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; flex: none; font-family: var(--pixel); font-size: 12px; letter-spacing: .25em; color: rgba(0,0,0,.78); }
.brand svg { width: 22px; height: 22px; border-radius: 6px; }
.brand b { font-weight: 400; color: rgba(0,0,0,.56); }
.nav-links { display: none; flex: 1; justify-content: center; gap: 1.35rem; }
.nav-links a { font-size: 12px; color: rgba(0,0,0,.6); letter-spacing: .02em; padding: .35rem 0; position: relative; transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #111; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 1px; background: var(--iris); }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: .65rem; overflow: hidden; font-family: var(--mono); font-size: 11px; }
.lang a { padding: .38rem .55rem; color: var(--faint); }
.lang a[aria-current="true"] { background: #111; color: #fff; }
.lang a:not([aria-current="true"]):hover { color: #111; background: var(--fill); }
.nav-cta { display: none; min-height: 38px; padding: .55rem 1rem; font-size: 11px; }
.burger { width: 40px; height: 40px; border-radius: .65rem; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger:hover { background: var(--fill); }
.burger span { display: block; width: 18px; height: 1px; background: rgba(0,0,0,.65); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu {
  margin-top: .5rem; border-radius: 1rem; border: 1px solid rgba(0,0,0,.06);
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-nav);
  padding: .5rem; display: grid; gap: .1rem;
  max-height: 0; opacity: 0; overflow: hidden; visibility: hidden;
  transition: max-height .35s var(--ease), opacity .25s, visibility .35s;
}
.menu.open { max-height: 80vh; opacity: 1; visibility: visible; overflow-y: auto; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-radius: .75rem; font-size: 14px; color: rgba(0,0,0,.68); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--fill); color: #111; }
.menu a .mono { font-size: 11px; color: rgba(0,0,0,.5); }
.menu .btn { margin: .4rem .5rem .3rem; justify-content: center; }
.menu a.btn-dark, .menu a.btn-dark:hover { color: #fff; background: #111; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1140px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .menu { display: none; }
}

/* ---------- Intro (solo inicio, una vez por sesión) ---------- */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.intro-curtain { position: absolute; inset: 0 0 0 0; background: #F5F4F1; transition: bottom 1.3s cubic-bezier(.76, 0, .24, 1); bottom: 0; }
.intro.up .intro-curtain { bottom: 100%; }
.intro-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.intro-word span {
  font-family: var(--sans); font-weight: 500; color: #111; line-height: 1; letter-spacing: .02em;
  font-size: calc((100vw - 64px) / 9.6); opacity: 0; filter: blur(36px); transform: translateY(48px);
  will-change: opacity, filter, transform;
}
.intro.in .intro-word span { opacity: 1; filter: blur(0); transform: none; transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.intro.out .intro-word span { opacity: 0; filter: blur(24px); transform: translateY(-20px); transition: opacity .45s cubic-bezier(.4,0,1,1), filter .45s cubic-bezier(.4,0,1,1), transform .45s cubic-bezier(.4,0,1,1); transition-delay: calc(var(--i) * 55ms); }
.intro-word span.dot-i { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Revelado de texto palabra por palabra ---------- */
.rv { display: block; }
html.js .rv .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(12px); }
html.js .rv.in .w { opacity: 1; filter: blur(0); transform: none; transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i) * 70ms); }

/* Fade-up genérico para tarjetas y bloques */
html.js .fade { opacity: 0; transform: translateY(28px); }
html.js .fade.in { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms), border-color .3s, background-color .3s; }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-zoom { position: absolute; inset: 0; transform: scale(.86); transition: transform 2s var(--ease); }
.hero-ready .hero-zoom { transform: scale(1.04); }
.hero-drift { position: absolute; inset: 0; animation: drift 28s ease-in-out infinite alternate; }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.ready { opacity: 1; }
.hero-sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; opacity: .9;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.55) 44%, rgba(167,243,208,.35) 48%, rgba(240,171,252,.3) 52%, transparent 64%);
  background-size: 260% 100%; animation: sheen 11s ease-in-out infinite; }
.hero-fade { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; pointer-events: none; height: 68%;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 20%, rgba(245,244,240,.86) 37%, rgba(245,244,240,.5) 57%, rgba(245,244,240,.15) 77%, transparent 100%); }
.hero-blur { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, transparent 100%); }
.hero-blur.b1 { height: 20%; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-blur.b2 { height: 38%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-blur.b3 { height: 55%; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.hero-content { position: absolute; inset-inline: 0; bottom: 0; z-index: 5; padding: 0 var(--gutter) 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: end; max-width: 86rem; }
.hero-eyebrow { color: rgba(0,0,0,.55); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.hero-eyebrow i { width: 8px; height: 8px; background: var(--iris); display: inline-block; }
.hero h1 { font-size: clamp(3rem, 8.2vw, 6.6rem); margin-bottom: 2.25rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stats .v { font-family: var(--display); font-weight: 300; font-size: clamp(1.75rem, 3.2vw, 2.3rem); letter-spacing: -.02em; line-height: 1.1; }
.hero-stats .l { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(0,0,0,.6); margin-top: .3rem; }
.hero-side { max-width: 24rem; }
.hero-side p { color: rgba(0,0,0,.62); font-size: 15px; margin-bottom: 1.25rem; }
.hero-side .btns { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr auto; } .hero-stats { gap: 3rem; } }
@media (max-width: 999px) { .hero-side { display: none; } }
html.js .hero .hx { opacity: 0; filter: blur(20px); transform: translateY(28px); }
html.js .hero-ready .hero .hx { opacity: 1; filter: blur(0); transform: none; transition: opacity 1s var(--ease) var(--d,0ms), filter 1s var(--ease) var(--d,0ms), transform 1s var(--ease) var(--d,0ms); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 3rem; z-index: 5; display: none; }
@media (min-width: 1000px) { .scroll-cue { display: none; } }

/* ---------- Encabezado de página interior ---------- */
.phero { position: relative; padding: 9.5rem var(--gutter) 4.5rem; overflow: hidden; }
.phero-img { position: absolute; z-index: 0; right: -6%; top: 0; width: min(62vw, 820px); height: 100%; pointer-events: none; opacity: .95; }
.phero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 60% 45%, #000 30%, transparent 75%); }
.phero .wrap { position: relative; z-index: 2; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 2rem; }
.crumbs a:hover { color: #111; }
.phero h1 { font-weight: 300; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch; margin: 1.25rem 0 1.5rem; }
.phero .lead { font-size: 1.05rem; max-width: 36rem; }
.phero-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.phero-meta .v { font-family: var(--display); font-weight: 300; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.1; }
.phero-meta .l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: .25rem; }
@media (max-width: 767px) { .phero-img { opacity: .45; width: 100vw; right: -30%; } }

/* ---------- Encabezado de sección ---------- */
.shead { margin-bottom: 3.5rem; }
.shead .tag { margin-top: 1rem; }
.shead .h2 { margin-top: 1.25rem; }
.shead.split { display: flex; flex-direction: column; gap: 1.5rem; }
.shead.split .p { max-width: 21rem; }
@media (min-width: 768px) { .shead.split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; } }
.shead.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.px { width: 40px; height: 40px; image-rendering: pixelated; }

/* ---------- Bento cards ---------- */
.bento {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--card);
  transition: border-color .3s, background-color .3s;
}
.bento:hover { border-color: rgba(0,0,0,.15); background: var(--card-hover); }
.bento::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,.035), transparent 60%); }
.bento:hover::after { opacity: 1; }
.bento > * { position: relative; z-index: 1; }
.pad { padding: 2rem; }
.pad-lg { padding: 2.25rem; }
@media (max-width: 520px) { .pad, .pad-lg { padding: 1.5rem; } }
.icon-box { width: 40px; height: 40px; border-radius: .75rem; border: 1px solid rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem; background: rgba(255,255,255,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.icon-box svg { width: 18px; height: 18px; }
.bento .h3 { margin-bottom: .6rem; }
.bento ul.ticks { display: grid; gap: .5rem; margin-top: 1.25rem; }
.ticks li { position: relative; padding-left: 1.1rem; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: rgba(0,0,0,.3); }

.grid { display: grid; gap: .75rem; }
@media (min-width: 768px) {
  .g2 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .span2 { grid-column: span 2; }
  .span-all { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.min-h { min-height: 210px; }

/* Tarjeta con imagen de cristal */
.bento.feature { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature-img { position: absolute !important; inset: 0; z-index: 0 !important; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.feature-img::before { content: ""; position: absolute; inset: 0; z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 100%); mask-image: linear-gradient(to bottom, transparent 40%, #000 100%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.feature-img::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, transparent 30%, rgba(255,255,255,.35) 48%, rgba(255,255,255,.8) 64%, rgba(255,255,255,.96) 80%, #fff 100%); }
.bento.feature:hover .feature-img::after { background: linear-gradient(to bottom, transparent 30%, rgba(250,250,248,.35) 48%, rgba(250,250,248,.8) 64%, rgba(250,250,248,.96) 80%, #FAFAF8 100%); }
.bento.top-img { display: flex; flex-direction: column; min-height: 340px; }
.top-img .ti { position: absolute !important; inset: 0 0 auto 0; height: 13rem; z-index: 0 !important; pointer-events: none; }
.top-img .ti img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 85%); }
.top-img .body { margin-top: auto; padding: 8rem 1.75rem 1.75rem; }
.top-img .num { position: absolute; top: 1.5rem; left: 1.75rem; z-index: 2; font-family: var(--pixel); font-size: 11px; letter-spacing: .25em; color: rgba(0,0,0,.35); }

/* Tarjetas de ruta */
.route { display: flex; flex-direction: column; gap: .9rem; min-height: 220px; padding: 1.75rem; }
.route .path { font-family: var(--mono); font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; align-items: center; }
.route .path b { font-weight: 400; color: #111; }
.route .h3 { margin: 0; }
.route .p { flex: 1; }
.route .go { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s, transform .3s var(--ease); }
.route:hover .go { background: #111; color: #fff; transform: rotate(-45deg); }

/* ---------- Tarjetas apiladas (sticky) ---------- */
.stack { display: flex; flex-direction: column; perspective: 1400px; perspective-origin: 50% 0%; }
.stack-item { position: sticky; margin-bottom: 1rem; }
.stack-scale { transform-origin: top center; transition: transform .3s var(--ease); will-change: transform; }
.stack-card { position: relative; background: #FAF9F7; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.stack-card .sc-img-m { height: 13rem; position: relative; }
.stack-card .sc-img-m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 85%); }
.stack-card .sc-img-d { display: none; position: absolute; inset: 0 0 0 auto; width: 50%; }
.stack-card .sc-img-d img { width: 100%; height: 100%; object-fit: cover; }
.stack-card .sc-img-d::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #FAF9F7 0%, transparent 55%); }
.stack-card .sc-body { position: relative; z-index: 2; padding: 2rem; }
.stack-card .sc-text { max-width: 100%; }
.stack-card .sc-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.stack-card .h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.stack-card .p { margin-bottom: 1.5rem; }
.stack-card .sc-stats { display: flex; gap: 2.25rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,.06); }
.sc-stats .v { font-size: 1.15rem; font-weight: 300; line-height: 1.3; }
.sc-stats .l { font-size: 11px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; margin-top: .2rem; }
.stack-card a.v:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .stack-card .sc-img-m { display: none; }
  .stack-card .sc-img-d { display: block; }
  .stack-card .sc-text { max-width: 58%; }
  .stack-card .sc-body { padding: 2.25rem; }
}

/* ---------- Panel de pasos + código (DevEx) ---------- */
.steps { display: grid; gap: .75rem; }
@media (min-width: 1024px) { .steps { grid-template-columns: 1fr 2fr; align-items: stretch; } }
.step-list { display: flex; flex-direction: column; gap: .75rem; }
.step-btn {
  flex: 1; text-align: left; border-radius: var(--r-lg); padding: 1.35rem 1.5rem; border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.7); box-shadow: 0 1px 2px rgba(0,0,0,.03); display: flex; gap: 1rem; align-items: flex-start;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.step-btn:hover { border-color: rgba(0,0,0,.1); }
.step-btn[aria-selected="true"] { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.12); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.step-btn .n { width: 32px; height: 32px; border-radius: .55rem; display: flex; align-items: center; justify-content: center; flex: none; font-size: 12px; background: rgba(0,0,0,.04); color: rgba(0,0,0,.6); transition: background .2s, color .2s; }
.step-btn[aria-selected="true"] .n { background: rgba(0,0,0,.08); color: rgba(0,0,0,.75); }
.step-btn .t { font-size: 14px; color: rgba(0,0,0,.6); line-height: 1.35; }
.step-btn[aria-selected="true"] .t { color: rgba(0,0,0,.88); }
.step-btn .s { font-size: 12px; color: rgba(0,0,0,.6); margin-top: .15rem; }
.step-btn .bar { display: block; height: 2px; border-radius: 2px; background: rgba(0,0,0,.06); margin-top: .7rem; overflow: hidden; width: 100%; }
.step-btn .bar i { display: block; height: 100%; width: 0; background: rgba(0,0,0,.35); }
.step-btn[aria-selected="true"] .bar i { animation: fillbar var(--dur, 4200ms) linear forwards; }
.steps.paused .step-btn .bar i { animation-play-state: paused; }
.step-txt { flex: 1; min-width: 0; }
.code-panel { border-radius: var(--r-lg); border: 1px solid rgba(0,0,0,.06); background: rgba(255,255,255,.7); box-shadow: 0 1px 3px rgba(0,0,0,.04); padding: 1.75rem; display: flex; flex-direction: column; min-height: 380px; }
.code-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.code-head .file { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(0,0,0,.6); }
.code-head .dots { display: flex; gap: .35rem; }
.code-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.08); transition: background .3s; }
.code-head .dots i.on { background: rgba(0,0,0,.28); }
.code-body { flex: 1; border-radius: .8rem; background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.06); padding: 1.4rem; overflow: auto; }
.pane { font-family: var(--mono); font-size: 12.5px; line-height: 1.85; white-space: pre; color: #111; }
.pane[hidden] { display: none; }
html.js .pane.swap { opacity: 0; filter: blur(6px); transform: translateY(6px); }
html.js .pane { transition: opacity .22s var(--ease), filter .22s var(--ease), transform .22s var(--ease); }
.code-note { margin-top: .9rem; font-size: 12px; color: var(--faint); }
/* Resaltado */
.t-c { color: #626770; } .t-k { color: #6d28d9; } .t-s { color: #126431; } .t-p { color: #1d4ed8; }
.t-f { color: #924006; } .t-o { color: #5b616b; } .t-ok { color: #126431; } .t-u { color: #1d4ed8; text-decoration: underline; } .t-d { color: #126431; }
pre.code { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; background: rgba(0,0,0,.035); border: 1px solid rgba(0,0,0,.06); border-radius: .8rem; padding: 1.15rem 1.25rem; overflow-x: auto; color: #111; }
.code-wrap { position: relative; margin: 1.25rem 0; }
.copy { position: absolute; top: .6rem; right: .6rem; font-family: var(--mono); font-size: 11px; padding: .3rem .55rem; border-radius: .45rem; border: 1px solid var(--line-2); background: rgba(255,255,255,.85); color: var(--faint); }
.copy:hover { color: #111; }

/* ---------- Lista tipo registro (estándar de entrega) ---------- */
.log { display: grid; gap: .5rem; }
.log-row { display: flex; align-items: center; gap: .9rem; padding: .7rem .85rem; border-radius: .6rem; background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.04); transition: background .2s; }
.log-row:hover { background: rgba(0,0,0,.04); }
.log-row .k { font-family: var(--mono); font-size: 12px; color: rgba(0,0,0,.65); flex: 1; }
.log-row .t { font-family: var(--mono); font-size: 11px; color: rgba(0,0,0,.56); min-width: 4.5rem; }
.log-row .s { width: 7px; height: 7px; border-radius: 50%; background: rgba(16,185,129,.6); }
html.js .log.in .log-row { animation: fadeInUp .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
html.js .log:not(.in) .log-row { opacity: 0; }
.rule-list { display: grid; gap: 1.1rem; }
.rule { display: flex; gap: 1rem; }
.rule::before { content: ""; width: 3px; border-radius: 3px; background: rgba(0,0,0,.1); flex: none; }
.rule .h4 { margin-bottom: .2rem; font-weight: 400; }

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); user-select: none; }
.mq-row { display: flex; width: max-content; border-bottom: 1px solid var(--line); }
.mq-row.l { animation: mqLeft 42s linear infinite; }
.mq-row.r { animation: mqRight 36s linear infinite; }
.mq-row:hover { animation-play-state: paused; }
.mq-item { display: flex; align-items: center; gap: 1.5rem; padding: 1.2rem 2.5rem; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; color: rgba(0,0,0,.62); letter-spacing: .02em; }
.mq-row.r .mq-item { color: rgba(0,0,0,.56); }
.mq-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.2); }

/* ---------- Ecosistema / flujo ---------- */
.flow { display: grid; gap: .75rem; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow-node { padding: 1.5rem; min-height: 190px; display: flex; flex-direction: column; gap: .6rem; }
.flow-node .dom { font-family: var(--pixel); font-size: 12px; letter-spacing: .2em; }
.flow-node .verb { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.flow-node .idx { font-family: var(--mono); font-size: 11px; color: rgba(0,0,0,.55); }
.flow-node.me { background: #111; border-color: #111; color: #F5F4F0; }
.flow-node.me .verb { color: rgba(245,244,240,.7); }
.flow-node.me .idx { color: rgba(245,244,240,.65); }
.flow-node.me::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--iris); }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; align-items: center; }
.filters .label { margin-right: .5rem; }
.fbtn { font-size: 12px; padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,.5); transition: all .2s; }
.fbtn:hover { border-color: rgba(0,0,0,.28); color: #111; }
.fbtn[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.is-hidden { display: none !important; }
.empty { padding: 2rem; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--faint); font-size: 14px; }

/* Tarjeta de proyecto / experimento / reto */
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.card-foot { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(0,0,0,.06); display: grid; gap: .6rem; }
.kv { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; font-size: 12.5px; line-height: 1.45; }
.kv dt { color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: .1rem; }
.kv dd { margin: 0; color: var(--ink-2); }
.code-id { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.level { display: inline-flex; gap: 3px; align-items: center; }
.level i { width: 10px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.12); }
.level i.on { background: rgba(0,0,0,.6); }

/* ---------- Herramienta NIT ---------- */
.tool { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .tool { grid-template-columns: 1fr 1fr; align-items: start; } }
.field { display: grid; gap: .5rem; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.input { width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: .85rem 1rem; font: inherit; font-family: var(--mono); font-size: 16px; color: #111; transition: border-color .2s; }
.input:focus { outline: none; border-color: rgba(0,0,0,.4); }
.result { display: flex; align-items: baseline; gap: 1rem; margin-top: 1.25rem; }
.result .big { font-family: var(--display); font-weight: 300; font-size: 3.2rem; line-height: 1; letter-spacing: -.02em; }
.result .full { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }

/* ---------- Docs ---------- */
.docs { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .docs { grid-template-columns: 15rem 1fr; gap: 4rem; } }
.docs-nav { position: relative; }
@media (min-width: 1000px) { .docs-nav-inner { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow: auto; } }
.docs-search { margin-bottom: 1rem; }
.docs-search input { width: 100%; padding: .65rem .85rem; border-radius: .65rem; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 14px; }
.docs-search input:focus { outline: none; border-color: rgba(0,0,0,.35); }
.docs-nav ol { display: grid; gap: .1rem; counter-reset: dn; }
.docs-nav li a { display: flex; gap: .7rem; padding: .5rem .7rem; border-radius: .55rem; font-size: 13.5px; color: var(--muted); }
.docs-nav li a::before { counter-increment: dn; content: counter(dn, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ghost); padding-top: .15rem; }
.docs-nav li a:hover { background: var(--fill); color: #111; }
.docs-nav li a.active { background: #fff; color: #111; box-shadow: inset 0 0 0 1px var(--line-2); }
.doc { max-width: 46rem; }
.doc section { padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6.5rem; }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-weight: 300; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 1rem; }
.doc h3 { font-weight: 400; font-size: 1.05rem; margin: 1.75rem 0 .6rem; }
.doc p, .doc li { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.doc p + p { margin-top: .9rem; }
.doc ul.ticks { margin: .9rem 0; gap: .55rem; }
.doc ul.ticks li { font-size: 14.5px; line-height: 1.65; }
.doc b { font-weight: 500; color: #111; }
.doc code:not(pre code) { font-family: var(--mono); font-size: .88em; background: var(--fill-2); padding: .12em .38em; border-radius: .35em; }
.doc .callout { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: .8rem; background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.doc .callout b { font-weight: 500; color: #111; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 1rem; }
.table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: .6rem .75rem; border-bottom: 1px solid var(--line-2); }
.table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.table td:first-child { color: #111; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: 7rem var(--gutter) 15rem; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .cta { padding-bottom: 19rem; } }
.cta-img { position: absolute; left: 50%; bottom: -14%; width: max(100%, 900px); transform: translateX(-50%); pointer-events: none; }
.cta-img img { width: 100%; height: auto; }
.cta-blur { position: absolute; inset: 0; pointer-events: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 62%); mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 62%); }
.cta-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--bg) 0%, rgba(245,244,240,.92) 30%, rgba(245,244,240,.55) 48%, transparent 66%); }
.cta .wrap { position: relative; z-index: 2; text-align: center; max-width: 44rem; }
.cta .h2 { margin-bottom: 1.4rem; }
.cta .p { margin: 0 auto 2.5rem; max-width: 34rem; font-size: 15px; }
.cta .btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Pie de página ---------- */
.footer { border-top: 1px solid var(--line); padding: 4rem var(--gutter) 2.5rem; }
.f-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .f-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.f-brand .brand { margin-bottom: 1rem; }
.f-brand p { font-size: 13px; color: var(--muted); max-width: 18rem; }
.f-col h2 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 1rem; }
.f-col ul { display: grid; gap: .55rem; }
.f-col a { font-size: 13px; color: rgba(0,0,0,.6); transition: color .2s; }
.f-col a:hover { color: #111; }
.f-col .dom { font-family: var(--mono); font-size: 12px; }
.f-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,.05); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 12px; color: var(--faint); }
.install-btn { display: none; }
.install-btn.show { display: inline-flex; }
.f-wordmark { margin-top: 3rem; font-family: var(--sans); font-weight: 500; font-size: clamp(3.5rem, 15.5vw, 13.5rem); line-height: .8; letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1px rgba(0,0,0,.09); user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; z-index: 120;
  background: #111; color: #F5F4F0; padding: .75rem 1.1rem; border-radius: .8rem; font-size: 13px; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100vw - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Varios ---------- */
.note { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.6); font-size: 14px; color: var(--ink-2); }
.note .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--iris); flex: none; margin-top: .05rem; }
.two-col { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.numlist { display: grid; gap: .75rem; counter-reset: nl; }
.numlist li { counter-increment: nl; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; align-items: start; }
.numlist li::before { content: counter(nl, decimal-leading-zero); font-family: var(--pixel); font-size: 12px; letter-spacing: .1em; color: var(--faint); padding-top: .2rem; }
.numlist .h4 { margin-bottom: .2rem; }
.rubric { display: grid; gap: .9rem; }
.rubric-row .top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: .45rem; color: var(--ink-2); }
.rubric-row .top b { font-weight: 400; font-family: var(--mono); color: #111; }
.meter { height: 4px; background: rgba(0,0,0,.07); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: rgba(0,0,0,.55); border-radius: 4px; width: 0; transition: width 1.2s var(--ease); }
.in .meter i, html.no-js .meter i { width: var(--w); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 0; }
.mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; } .mt-4 { margin-top: 4rem; }
.center { text-align: center; }

/* ---------- Animaciones ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes mqLeft { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@keyframes mqRight { from { transform: translateX(-33.333%); } to { transform: translateX(0); } }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
@keyframes sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .rv .w, html.js .fade, html.js .hero .hx { opacity: 1 !important; filter: none !important; transform: none !important; }
  .mq-row { animation: none !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .nav-wrap, .intro, .hero-media, .hero-fade, .hero-blur, .marquee, .cta-img, .toast { display: none !important; }
  body { background: #fff; }
  html.js .rv .w, html.js .fade { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* Evitar que contenido ancho (código, tablas) ensanche las columnas de grid */
.grid > *, .steps > *, .two-col > *, .docs > *, .tool > *, .flow > *, .hero-grid > *, .f-grid > * { min-width: 0; }

/* Ajustes móviles */
@media (max-width: 767px) {
  .bento.feature { padding-top: 10.5rem; min-height: 0 !important; }
  .bento.feature .feature-img { bottom: auto; height: 15rem; }
  .cta { padding-bottom: 17rem; }
  .cta-img { width: 150%; bottom: -60px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .18em; }
  .hero-stats { gap: 1.25rem 1.75rem; }
  .log-row .small { display: none; }
}
