/* =========================================================
   Alpex Code Lab · sitio web
   Paleta Alpenglow: Void · Ash · Charcoal · Solar · Amber · Flare · Magma · Canvas · Cloud
   ========================================================= */
:root {
  /* Paleta v4: Pino alpino + Glaciar + Liquen. El naranja Solar solo en estrella, logo y botón principal. */
  --void: #071E1A; --ash: #0A2A24; --charcoal: #123F36;
  --pino: #0F3B33; --liquen: #9DB8AE; --liquen-l: #C6D7D0;
  --solar: #FF6A00; --amber: #9DB8AE; --flare: #C6D7D0; --magma: #1A5547; --ember: #071E1A;
  --canvas: #EEF3F1; --cloud: #F8FAF9; --glacier: #BFE6DA;
  --acc: #9DB8AE; --on-acc: #071E1A; --acc-glow: rgba(157, 184, 174, .55);
  --bg: #071E1A; --fg: var(--cloud); --muted: rgba(238, 243, 241, .7); --faint: rgba(238, 243, 241, .42);
  --line: rgba(238, 243, 241, .13); --card: rgba(10, 42, 36, .66); --card-b: rgba(238, 243, 241, .1);
  --hero-fg: var(--cloud); --solar-text: #9DB8AE;
  --glow-grad: linear-gradient(100deg, #C6D7D0 0%, #EEF3F1 28%, #9DB8AE 55%, #6E9A8C 80%, #C6D7D0 100%);
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(16px, 4vw, 64px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: var(--canvas); --fg: #0B1213; --muted: rgba(11, 18, 19, .68); --faint: rgba(11, 18, 19, .44);
  --line: rgba(11, 18, 19, .14); --card: rgba(248, 250, 249, .72); --card-b: rgba(11, 18, 19, .08);
  --hero-fg: #0B1213; --solar-text: #0F3B33;
  --acc: #0F3B33; --on-acc: #EEF3F1; --acc-glow: rgba(15, 59, 51, .35);
  --glow-grad: linear-gradient(100deg, #0F3B33 0%, #1A5547 30%, #3E7A69 55%, #0F3B33 80%, #1A5547 100%);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .6s var(--ease), color .6s var(--ease);
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.mono { font-family: var(--mono); }
::selection { background: var(--acc); color: var(--void); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
svg use { fill: currentColor; }

/* ---------- capas de fondo ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.bg-fallback { position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 30% -10%, #C6D7D0 0%, #9DB8AE 16%, #1A5547 40%, #0F3B33 62%, transparent 85%), var(--bg); }
.no-webgl #gl { display: none; }
.no-webgl .bg-fallback { position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 30% -10%, #C6D7D0 0%, #9DB8AE 16%, #1A5547 40%, #0F3B33 62%, transparent 85%), var(--bg); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.grain { position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -3%) } 60% { transform: translate(-2%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) } }
main { position: relative; z-index: 2; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 26px; height: 26px; margin: -13px 0 0 -13px; color: var(--solar); opacity: 0; transition: opacity .3s; mix-blend-mode: normal; }
.cursor svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.cursor.on { opacity: 1; }
.cursor.hover svg { transform: scale(2.1) rotate(70deg); }
.cursor.down svg { transform: scale(.7) rotate(-30deg); }
.cursor-label { position: absolute; left: 30px; top: 4px; white-space: nowrap; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); opacity: 0; transition: opacity .2s; }
.cursor.label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: #071E1A; color: var(--cloud); display: grid; place-items: center; clip-path: circle(150% at 50% 50%); }
.ld-star { width: min(34vw, 260px); }
.ld-star svg { width: 100%; overflow: visible; }
.ld-stroke { fill: none; stroke: var(--solar); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.ld-fill { fill: url(#gradStar); opacity: 0; transform-origin: center; transform-box: fill-box; }
.ld-meta { position: absolute; left: var(--pad); bottom: calc(var(--pad) * .8); display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); }
.ld-pct { font-size: clamp(48px, 9vw, 120px); color: var(--liquen-l); line-height: .9; font-weight: 500; letter-spacing: -.04em; }
.ld-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.ld-lines { position: absolute; right: var(--pad); bottom: calc(var(--pad) * .8); font: 12px/1.7 var(--mono); color: rgba(250, 250, 248, .45); text-align: right; }
.ld-lines b { color: var(--amber); font-weight: 500; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); transition: transform .5s var(--ease), background .4s, padding .4s; }
.nav.solid { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--hero-fg); position: relative; }
.nav.solid .brand { color: var(--fg); }
.brand-star { width: 34px; height: 26px; color: var(--solar); transition: transform .8s var(--ease); }
.brand:hover .brand-star { transform: rotate(360deg); }
.brand-word { font-weight: 800; font-size: 26px; letter-spacing: -.025em; line-height: 1; }
.brand-lab { font: 11px var(--mono); opacity: .7; align-self: flex-end; margin-bottom: 1px; }
.links { display: flex; gap: 6px; }
.links a { font-size: 14px; padding: 8px 14px; border-radius: 99px; color: var(--hero-fg); opacity: .82; transition: background .3s, opacity .3s; }
.nav.solid .links a { color: var(--fg); }
.links a:hover, .links a.act { opacity: 1; background: color-mix(in srgb, var(--fg) 9%, transparent); }
.toggles { display: flex; align-items: center; gap: 8px; }
.tg { height: 38px; min-width: 38px; padding: 0 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--hero-fg) 22%, transparent); color: var(--hero-fg); display: inline-flex; align-items: center; justify-content: center; gap: 2px; font: 500 12px var(--mono); transition: background .3s, border-color .3s; }
.nav.solid .tg { color: var(--fg); border-color: var(--line); }
.tg:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.tg .sep { opacity: .35; }
[data-lang="es"] .l-en, [data-lang="en"] .l-es { opacity: .4; }
.tg .sun { width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: inset -5px -2px 0 0 var(--bg); transition: box-shadow .5s var(--ease), background .5s; }
[data-theme="light"] .tg .sun { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3.5px currentColor; background: var(--solar); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); flex-direction: column; justify-content: center; align-items: center; gap: 6px; color: var(--hero-fg); }
.burger span { width: 16px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
.mmenu { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: var(--pad); gap: 4px; clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .8s var(--ease-io); visibility: hidden; }
.mmenu.open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
.mmenu a { font-family: var(--display); font-stretch: 70%; font-size: clamp(44px, 13vw, 76px); font-weight: 800; letter-spacing: 0; line-height: 1.15; }
.mm-meta { margin-top: 30px; display: flex; flex-direction: column; font: 13px var(--mono); color: var(--muted); }

/* ---------- botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 99px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; white-space: nowrap; will-change: transform; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn .i { width: 20px; height: 16px; transition: transform .7s var(--ease); }
.btn:hover .i { transform: rotate(180deg) scale(1.15); }
.btn-solar { background: var(--solar); color: #2A1300; box-shadow: 0 10px 40px -12px rgba(255, 106, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-solar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 50%), #FFB067, transparent 70%); opacity: 0; transition: opacity .3s; }
.btn-solar:hover::before { opacity: 1; }
.btn-solar:hover { box-shadow: 0 16px 50px -10px rgba(255, 106, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { border: 1px solid color-mix(in srgb, currentColor 30%, transparent); color: var(--fg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: color-mix(in srgb, var(--bg) 18%, transparent); }
.btn-ghost:hover { border-color: var(--acc); }

/* ---------- tipografía de secciones ---------- */
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--solar-text); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.h2 { font-family: var(--display); font-stretch: 70%; font-size: clamp(46px, 7.4vw, 120px); line-height: .92; letter-spacing: -.005em; font-weight: 800; margin: 0; }
.h2.xl { font-size: clamp(58px, 10vw, 160px); }
.h2 em { font-style: normal; }
.glow { background: var(--glow-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: glowShift 6s linear infinite; }
@keyframes glowShift { to { background-position: -220% 0; } }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 36ch; margin: 22px 0 0; }
.lede.small { font-size: 14px; font-family: var(--mono); }
section { position: relative; }

/* ---------- HERO ---------- */
.hero { min-height: 100svh; padding: 110px var(--pad) 36px; display: grid; grid-template-rows: auto 1fr auto; color: var(--hero-fg); overflow: hidden; }
.hero-decode { font-size: clamp(14px, 1.25vw, 18px); line-height: 1.55; color: var(--hero-fg); font-weight: 500; margin: 0; max-width: 34ch; letter-spacing: .01em; position: relative; z-index: 2; }
.hero-decode b { font-weight: 600; }
[data-theme="light"] .hero-decode { color: var(--void); }
.hero-meta { position: absolute; top: 116px; right: var(--pad); display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hero-fg); opacity: .8; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--liquen); position: relative; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--liquen); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.lockup { align-self: center; justify-self: center; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); margin: 0; font-weight: 700; position: relative; }
.star-slot { width: clamp(120px, 21vw, 380px); aspect-ratio: 281.4 / 215; position: relative; flex: none; }
.star-2d { width: 100%; height: 100%; color: var(--cloud); display: none; }
.no-webgl .star-2d, .reduced .star-2d { display: block; }
.word { position: relative; display: inline-flex; font-weight: 800; font-size: clamp(84px, 17.5vw, 330px); line-height: .82; letter-spacing: -.025em; padding-bottom: .2em; }
.word .ch { display: inline-block; will-change: transform; transform-origin: 0% 100%; }
.word .ch:nth-child(1) { margin-right: -.01em; }
.lab { position: absolute; right: .02em; bottom: -.02em; font-size: max(13px, .118em); letter-spacing: .02em; font-weight: 300; color: var(--hero-fg); white-space: nowrap; }
.lab .br { color: var(--solar); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tag { display: flex; flex-direction: column; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.6; color: var(--hero-fg); }
.hero-tag i, .mono-h i, .ft-row i { font-style: normal; color: var(--flare); }
[data-theme="light"] .hero-tag i, [data-theme="light"] .mono-h i, [data-theme="light"] .ft-row i { color: var(--solar-text); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; margin-left: 3px; background: var(--flare); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.scroll-hint .bar { width: 1px; height: 30px; background: linear-gradient(var(--hero-fg), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.shock { position: fixed; z-index: 55; pointer-events: none; border-radius: 50%; border: 2px solid var(--flare); width: 20px; height: 20px; margin: -10px 0 0 -10px; }

/* ---------- TAPES ---------- */
.tapes { position: relative; margin: 0; overflow: hidden; z-index: 3; display: flex; flex-direction: column; }
.tape { position: relative; width: 100%; padding: 16px 0; overflow: hidden; white-space: nowrap; }
.tape.a { background: var(--liquen); color: var(--void); }
.tape.b { background: var(--canvas); color: var(--void); padding: 12px 0; }
[data-theme="light"] .tape.b { background: var(--pino); color: var(--canvas); }
.run { display: inline-flex; align-items: center; gap: 28px; font-size: clamp(22px, 3vw, 42px); font-weight: 700; letter-spacing: -.03em; will-change: transform; }
.tape.b .run { font-size: clamp(16px, 2vw, 26px); font-weight: 500; letter-spacing: 0; }
.run svg { width: 1.2em; height: .9em; flex: none; }
.run b { color: var(--acc); font-weight: 500; }

/* ---------- DECODE ---------- */
.decode { height: 380vh; }
.dc-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(300px, .9fr) 1.3fr; gap: clamp(20px, 4vw, 70px); align-items: center; padding: 90px var(--pad) 40px; overflow: hidden; }
.dc-steps { list-style: none; padding: 0; margin: 34px 0 18px; display: flex; gap: 8px; }
.dc-steps li { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); transition: all .45s var(--ease); }
.dc-steps li b { font-weight: 500; }
.dc-steps li.on { color: var(--on-acc); background: var(--acc); border-color: var(--acc); }
.dc-steps li.done { color: var(--fg); border-color: var(--acc); }
.dc-cap { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); max-width: 38ch; min-height: 5.2em; margin: 0; }
.dc-prog { height: 2px; background: var(--line); margin-top: 20px; max-width: 380px; border-radius: 2px; overflow: hidden; }
.dc-prog span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--amber), var(--acc), var(--magma)); }
.dc-stage { position: relative; height: min(70vh, 600px); perspective: 1400px; }
.chaos, .editor, .app { position: absolute; inset: 0; }
.ck { position: absolute; width: clamp(160px, 15vw, 230px); padding: 14px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); will-change: transform; }
.ck p { margin: 0; }
.ck small { display: block; font: 10.5px var(--mono); opacity: .6; margin-bottom: 6px; letter-spacing: .04em; }
.ck.wa { background: #1F2C24; color: #E7F6EC; border-radius: 16px 16px 16px 4px; left: 4%; top: 6%; }
.ck.xl { background: #F4F6F3; color: #1E3A26; left: 46%; top: 2%; padding: 8px; }
.xg { display: grid; grid-template-columns: 28px 1fr 1fr; font: 11px var(--mono); }
.xg span { border: 1px solid #C9D3CB; padding: 4px 5px; white-space: nowrap; overflow: hidden; }
.xg .err { color: #C0261B; font-weight: 600; }
.ck.note { background: #FFE27A; color: #3A2E00; left: 70%; top: 34%; transform: rotate(5deg); font-family: 'Comic Sans MS', 'Marker Felt', cursive; font-size: 15px; }
.ck.rc { background: #FBF8F2; color: #333; left: 8%; top: 52%; font-size: 11.5px; border-radius: 4px; mask: linear-gradient(#000 92%, transparent); }
.ck.mail { background: var(--ash); color: var(--cloud); border: 1px solid rgba(255, 255, 255, .1); left: 40%; top: 58%; }
.ck.clock { background: var(--charcoal); color: var(--cloud); left: 62%; top: 76%; }
.ck.clock b { font-size: 26px; color: var(--amber); display: block; font-weight: 500; }
.editor { inset: 6% 2%; border-radius: 18px; background: rgba(13, 12, 11, .9); border: 1px solid rgba(255, 255, 255, .1); color: var(--cloud); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(157, 184, 174, .08); opacity: 0; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.ed-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: rgba(250, 250, 248, .5); }
.ed-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3633; }
.ed-bar i:first-child { background: var(--magma); } .ed-bar i:nth-child(2) { background: var(--amber); } .ed-bar i:nth-child(3) { background: var(--flare); }
.ed-bar span { margin-left: 10px; }
.ed-code { margin: 0; padding: 22px 24px; font-size: clamp(12.5px, 1.15vw, 16px); line-height: 2.05; flex: 1; counter-reset: ln; white-space: pre; overflow: hidden; }
.ln { display: block; min-height: 1em; }
.ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.2em; color: rgba(250, 250, 248, .25); }
.ln .k { color: var(--amber); } .ln .s { color: var(--flare); } .ln .f { color: var(--glacier); } .ln .p { color: rgba(250, 250, 248, .55); }
.ln.hl { background: linear-gradient(90deg, rgba(157, 184, 174, .16), transparent); border-left: 2px solid var(--acc); margin-left: -24px; padding-left: 22px; }
.ed-build { display: flex; align-items: center; gap: 12px; padding: 14px 24px 18px; font-size: 12px; color: rgba(250, 250, 248, .55); }
.bb { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bb i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--amber), var(--acc)); }
.bp { width: 3.5em; text-align: right; color: var(--amber); }
.app { inset: 4% 0; border-radius: 22px; background: var(--cloud); color: var(--void); display: grid; grid-template-columns: 64px 1fr; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .05); opacity: 0; }
.app-side { background: var(--void); display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 18px; }
.app-side svg { width: 32px; height: 26px; color: var(--solar); }
.app-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.app-side i.on { background: var(--acc); }
.app-main { padding: clamp(14px, 2vw, 26px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-size: clamp(15px, 1.4vw, 20px); letter-spacing: -.02em; }
.pill-live { font: 500 11px var(--mono); padding: 5px 10px; border-radius: 99px; background: #E3F7E9; color: #17663A; display: inline-flex; gap: 6px; align-items: center; }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1FB45A; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.kpi small { font: 11px var(--mono); color: rgba(0, 0, 0, .5); }
.kpi b { font-size: clamp(18px, 2vw, 28px); letter-spacing: -.03em; }
.kpi em { font: normal 500 11px var(--mono); color: #17663A; }
.chart { flex: 1; min-height: 80px; display: flex; align-items: flex-end; gap: 6%; padding: 14px 16px; background: linear-gradient(180deg, #fff, #FFF4EA); border-radius: 14px; border: 1px solid rgba(0, 0, 0, .06); }
.chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--amber), var(--acc)); transform-origin: bottom; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--void); color: var(--cloud); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.toast svg { width: 22px; height: 17px; color: var(--solar); flex: none; }

/* ---------- SERVICES ---------- */
.services { height: 420vh; }
.sv-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 40px; }
.sv-head { padding: 0 var(--pad); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 4vh, 48px); }
.sv-head .eyebrow { width: 100%; margin-bottom: 0; }
.sv-head .h2 { font-size: clamp(34px, 5vw, 76px); max-width: 15ch; }
.sv-count { font-size: 14px; color: var(--muted); }
.sv-count b { font-size: 44px; color: var(--fg); font-weight: 500; letter-spacing: -.04em; }
.sv-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--pad); width: max-content; will-change: transform; align-items: stretch; }
.svc { position: relative; width: clamp(290px, 40vw, 600px); min-height: clamp(380px, 54vh, 520px); border-radius: 28px; background: var(--card); border: 1px solid var(--card-b); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); display: flex; flex-direction: column; overflow: hidden; transform-style: preserve-3d; transition: border-color .4s; }
.svc:hover { border-color: rgba(157, 184, 174, .5); }
.svc-vis { flex: 1; min-height: 160px; position: relative; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, rgba(255, 162, 58, .22), transparent 60%); border-bottom: 1px solid var(--card-b); overflow: hidden; }
.svc-body { padding: clamp(18px, 2.4vw, 32px); }
.svc .n { font-size: 12px; color: var(--solar-text); letter-spacing: .12em; }
.svc h3 { font-family: var(--display); font-stretch: 74%; font-weight: 800; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.035em; margin: 8px 0 10px; }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { font-size: 11.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 300px at var(--gx, 50%) var(--gy, 0%), rgba(255, 209, 102, .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.svc:hover .glare { opacity: 1; }
.svc-end { display: grid; place-items: center; width: clamp(260px, 26vw, 380px); }
.sv-bar { margin: clamp(20px, 4vh, 40px) var(--pad) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sv-bar span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--amber), var(--acc), var(--magma)); }
/* mini ilustraciones */
.phone { width: 96px; height: 170px; border-radius: 20px; border: 3px solid var(--fg); position: relative; padding: 18px 10px; display: flex; flex-direction: column; gap: 8px; animation: float 5s ease-in-out infinite; }
.phone i { height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.phone i:first-child { background: var(--acc); height: 40px; }
.phone b { position: absolute; top: 6px; left: 50%; width: 28px; height: 5px; margin-left: -14px; border-radius: 4px; background: var(--fg); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.browser { width: 78%; height: 140px; border-radius: 12px; border: 2px solid var(--fg); overflow: hidden; animation: float 6s ease-in-out infinite; }
.browser .bb { height: 20px; border-bottom: 2px solid var(--fg); display: flex; gap: 5px; align-items: center; padding: 0 8px; background: none; border-radius: 0; flex: none; }
.browser .bb i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.browser .bh { height: 44px; margin: 10px; border-radius: 6px; background: linear-gradient(100deg, var(--flare), var(--acc), var(--magma)); }
.browser .bg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 10px; }
.browser .bg i { height: 34px; border-radius: 5px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.v-erp { display: flex; gap: 20px; align-items: flex-end; justify-content: center; }
.v-erp .bars { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.v-erp .bars i { width: 18px; height: calc(var(--h) * 100%); border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--amber), var(--acc)); animation: bar 2.6s ease-in-out infinite alternate; transform-origin: bottom; }
.v-erp .bars i:nth-child(2n) { animation-delay: -.8s; } .v-erp .bars i:nth-child(3n) { animation-delay: -1.6s; }
@keyframes bar { to { transform: scaleY(.55); } }
.v-erp .rows { display: flex; flex-direction: column; gap: 10px; }
.v-erp .rows i { width: 110px; height: 14px; border-radius: 5px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.v-erp .rows i:first-child { width: 80px; background: var(--fg); opacity: .8; }
.net { width: 72%; overflow: visible; }
.net .edges path { fill: none; stroke: var(--fg); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.net circle { fill: var(--fg); }
.net .core { fill: var(--acc); }
.net .pulse { fill: none; stroke: var(--acc); transform-origin: 100px 70px; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.flow { display: flex; align-items: center; gap: 0; }
.flow i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; border: 2px solid var(--fg); font-style: normal; font-size: 22px; }
.flow i:last-child { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.flow b { width: 46px; height: 2px; background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); background-size: 10px 2px; animation: flow .5s linear infinite; }
@keyframes flow { to { background-position: 10px 0; } }

/* ---------- MANIFESTO ---------- */
.manifesto { padding: clamp(100px, 18vh, 200px) var(--pad); }
.mf-text { font-family: var(--display); font-stretch: 72%; font-size: clamp(36px, 5.6vw, 92px); line-height: 1.02; letter-spacing: 0; font-weight: 800; margin: 0; max-width: 20ch; }
.mf-text .w { display: inline-block; opacity: .14; transition: none; }
.mf-text .w.hot { background: linear-gradient(100deg, var(--flare), var(--amber) 40%, var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(60px, 10vh, 120px); }
.mf-card { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-b); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mf-card b { font-size: 34px; font-weight: 500; color: var(--solar-text); letter-spacing: -.03em; }
.mf-card h3 { font-family: var(--display); font-stretch: 74%; font-weight: 800; font-size: 21px; letter-spacing: -.02em; margin: 14px 0 6px; line-height: 1.15; }
.mf-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- PROCESS ---------- */
.process { height: 320vh; }
.pr-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(280px, .8fr) 1.5fr; align-items: center; gap: clamp(20px, 3vw, 60px); padding: 90px var(--pad) 40px; overflow: hidden; }
.mono-h { font-family: var(--mono); font-weight: 500; white-space: nowrap; font-size: clamp(30px, 3.8vw, 60px); letter-spacing: -.04em; line-height: 1.12; }
.pr-loop { position: relative; aspect-ratio: 2 / 1.08; }
.inf { width: 100%; height: 100%; overflow: visible; }
.inf-base { fill: none; stroke: var(--line); stroke-width: 2; }
.inf-draw { fill: none; stroke: url(#gradStar); stroke: var(--acc); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(157, 184, 174, .8)); }
.pr-steps { position: absolute; inset: 0; pointer-events: none; }
.pst { position: absolute; left: var(--x); top: var(--y); width: 30%; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-b); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: .35; transform: scale(.94); transition: opacity .5s, transform .5s var(--ease), border-color .5s; }
.pst.on { opacity: 1; transform: scale(1); border-color: var(--acc); box-shadow: 0 20px 50px -20px rgba(157, 184, 174, .5); }
.pst b { color: var(--solar-text); font-size: 12px; font-weight: 500; }
.pst h3 { font-family: var(--display); font-stretch: 74%; font-weight: 800; margin: 2px 0 4px; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.02em; }
.pst p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- GALLERY ---------- */
.gallery { padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px); overflow: hidden; }
.gl-head { padding: 0 var(--pad); margin-bottom: clamp(40px, 8vh, 90px); }
.conveyor { perspective: 1400px; transform-style: preserve-3d; display: flex; flex-direction: column; gap: 22px; transform: rotateX(18deg) rotateZ(-5deg) scale(1.08); }
.cv-row { overflow: visible; }
.cv-run { display: flex; gap: 22px; width: max-content; will-change: transform; }
.shot { width: clamp(240px, 26vw, 400px); aspect-ratio: 16 / 10.5; border-radius: 18px; position: relative; overflow: hidden; flex: none; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); transition: transform .5s var(--ease); }
.shot:hover { transform: translateY(-10px) scale(1.03); }
.shot .lbl { position: absolute; left: 14px; bottom: 12px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: rgba(11, 11, 11, .75); color: var(--cloud); backdrop-filter: blur(6px); }
.shot .ui { position: absolute; inset: 12px 12px 48px; border-radius: 10px; display: grid; gap: 8px; }
.shot .ui i { border-radius: 6px; background: rgba(255, 255, 255, .22); }
.shot .ui i.s { background: rgba(11, 11, 11, .75); }
.shot .ui i.o { background: var(--acc); }

/* ---------- LAB ---------- */
.lab-sec { padding: clamp(80px, 14vh, 160px) var(--pad) 40px; }
.lb-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-bottom: 30px; }
.lb-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.lb-head .lede { margin: 0; max-width: 32ch; }
.pit { position: relative; height: min(76vh, 680px); border-radius: 30px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(120% 90% at 50% 120%, rgba(157, 184, 174, .3), transparent 60%), color-mix(in srgb, var(--bg) 60%, transparent); cursor: crosshair; touch-action: pan-y; }
.pit canvas { width: 100%; height: 100%; display: block; }
.pit-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(100px, 16vh, 180px) var(--pad) clamp(60px, 10vh, 120px); }
.ct-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 90px); align-items: start; }
.ct-lines { margin-top: 40px; border-top: 1px solid var(--line); }
.ct-lines .line { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ct-lines small { color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ct-lines a:hover { color: var(--solar-text); }
.copy { font-size: 11px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); letter-spacing: .06em; text-transform: uppercase; }
.copy:hover { border-color: var(--acc); }
.brief { padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--card); border: 1px solid var(--card-b); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); display: flex; flex-direction: column; gap: 20px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label, .fld .lbl { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld textarea { font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); padding: 8px 0 10px; font-size: 19px; outline: none; transition: border-color .3s; resize: vertical; border-radius: 0; }
.fld input:focus, .fld textarea:focus { border-color: var(--acc); }
.fld.bad input { border-color: var(--magma); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; transition: all .3s var(--ease); }
.chip:hover { border-color: var(--acc); }
.chip.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); transform: translateY(-2px); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-note { margin: 0; font-size: 12.5px; color: var(--solar-text); min-height: 1.4em; }

/* ---------- FOOTER ---------- */
.foot { padding: 40px var(--pad) 30px; overflow: hidden; border-top: 1px solid var(--line); }
.ft-big { display: flex; align-items: center; justify-content: center; gap: 2vw; line-height: .8; }
.ft-star { width: 17vw; aspect-ratio: 281.4 / 215; flex: none; }
.ft-star video, .ft-star svg { width: 100%; height: 100%; object-fit: contain; color: var(--solar); }
.ft-word { font-size: 25vw; font-weight: 800; letter-spacing: -.03em; padding-bottom: .12em; display: inline-flex; cursor: default; }
.ft-word span { --i: 0; display: inline-block; color: color-mix(in srgb, var(--solar) calc(var(--i) * 100%), var(--ft-off)); text-shadow: 0 0 calc(var(--i) * 70px) rgba(255, 106, 0, calc(var(--i) * .5)); transform: translateY(calc(var(--i) * -2%)); }
.foot { --ft-off: #0F3B33; }
[data-theme="light"] .foot { --ft-off: #D5E2DD; }
.ft-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 12.5px; color: var(--muted); padding-top: 22px; border-top: 1px solid var(--line); }
.ft-row a:hover { color: var(--solar-text); }

.toast-copy { position: fixed; left: 50%; bottom: 26px; z-index: 95; transform: translate(-50%, 140%); padding: 12px 18px; border-radius: 99px; background: var(--acc); color: var(--on-acc); font-size: 13px; transition: transform .5s var(--ease); }
.toast-copy.on { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .links { display: none; }
  .burger { display: inline-flex; }
  .toggles .btn { display: none; }
  .dc-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 80px; gap: 12px; }
  .dc-head .h2 { font-size: clamp(32px, 8vw, 54px); }
  .dc-steps { margin: 14px 0 10px; }
  .dc-cap { min-height: 4.4em; font-size: 15px; }
  .dc-stage { height: 52vh; height: 52svh; min-height: 300px; }
  .pr-pin { grid-template-columns: 1fr; align-content: center; gap: 10px; }
  .pr-head .lede { display: none; }
  .pst { width: 44%; padding: 10px 12px; }
  .pst p { display: none; }
  .ct-grid { grid-template-columns: 1fr; }
  .mf-row { grid-template-columns: 1fr; }
  .lb-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 92px; padding-bottom: 70px; }
  .hero-meta { display: none; }
  .lockup { flex-direction: column; gap: 4px; }
  .star-slot { width: 46vw; }
  .word { font-size: 25vw; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { height: 50px; padding: 0 20px; }
  .scroll-hint { display: none; }
  .tg { height: 36px; min-width: 36px; }
  .ck { width: 44vw; font-size: 12px; padding: 10px 12px; }
  .ck.xl { width: 50vw; }
  .ed-code { padding: 14px; font-size: 11px; line-height: 1.9; }
  .ln.hl { margin-left: -14px; padding-left: 12px; }
  .app { grid-template-columns: 44px 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi.w3 { display: none; }
  .svc { width: 82vw; min-height: 0; }
  .svc-vis { min-height: 150px; flex: none; height: 150px; }
  .sv-head .h2 { font-size: 34px; }
  .pst { width: 47%; }
  .pst h3 { font-size: 15px; }
  .ct-lines .line { grid-template-columns: 1fr auto; }
  .ct-lines .line small { grid-column: 1 / -1; }
  .ft-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .glow, .phone, .browser, .v-erp .bars i, .net .edges path, .net .pulse, .flow b, .scroll-hint .bar, .live::after { animation: none !important; }
}

/* ---------- PORTAL (estrella que se abre) ---------- */
.portal { height: 520vh; }
.pt-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.pt-vid { position: absolute; inset: 0; background: var(--void); opacity: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; will-change: mask-size, opacity; }
.pt-scene { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(95% 65% at 28% 0%, #C6D7D0 0%, #9DB8AE 20%, #1A5547 48%, #0F3B33 68%, #071E1A 100%); overflow: hidden; }
.pt-scene::after { content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pt-lock { display: flex; align-items: center; gap: clamp(10px, 2vw, 34px); }
.pt-star { width: clamp(110px, 16vw, 270px); aspect-ratio: 281 / 215; color: var(--solar); filter: drop-shadow(0 0 50px rgba(255, 106, 0, .55)); flex: none; }
.pt-word { position: relative; display: flex; font: 800 clamp(84px, 15vw, 250px)/.85 var(--sans); letter-spacing: -.025em; color: #F8FAF9; padding-bottom: .16em; }
.pt-word .pc { display: inline-block; transform-origin: 0 100%; }
.pt-lab { position: absolute; right: .02em; bottom: -.08em; font-size: max(13px, .13em); font-weight: 300; letter-spacing: .02em; color: #EEF3F1; }
.pt-lab i { font-style: normal; color: var(--solar); }
.pt-line { position: absolute; left: var(--pad); top: 13vh; margin: 0; font-size: clamp(13px, 1.2vw, 18px); line-height: 1.6; color: #071E1A; }
.pt-tag { position: absolute; right: var(--pad); bottom: 11vh; margin: 0; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.7; color: #EEF3F1; }
.pt-tag i { font-style: normal; color: #C6D7D0; }
.pt-ring { position: absolute; left: 50%; top: 50%; width: 18vmin; aspect-ratio: 281.4 / 215; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; color: transparent; }
.pt-ring use { fill: none; stroke: var(--solar); stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(255, 106, 0, .9)); }
.pt-ttl { position: relative; z-index: 2; text-align: center; pointer-events: none; padding: 0 20px; }
.pt-ttl .h2 { font-size: clamp(44px, 8.6vw, 140px); }
.pt-eb { justify-content: center; }
.pt-eb::before { display: none; }
.pt-cap { position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pit canvas { cursor: grab; }
.pit canvas:active { cursor: grabbing; }

/* ---------- IDEAS QUE YA TRABAJAN SOLAS (proyectos) ---------- */
.work-sec { padding: clamp(100px, 16vh, 180px) var(--pad); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 7vh, 80px); }
.work-all { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; transition: text-decoration-color .3s; }
.work-all:hover { text-decoration-color: var(--solar); }
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.case { text-decoration: none; display: block; color: inherit; }
.case.big { grid-column: span 7; }
.case.mid { grid-column: span 5; margin-top: clamp(40px, 12vh, 140px); }
.case.wide { grid-column: 3 / span 8; margin-top: clamp(10px, 4vh, 40px); }
.case.mid2 { grid-column: span 5; margin-top: clamp(10px, 4vh, 40px); }
.case.big2 { grid-column: span 7; margin-top: clamp(60px, 14vh, 170px); }
.pj-link { display: inline-flex; gap: 6px; margin-top: 22px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pj-link:hover { text-decoration-color: var(--solar); }
.case figure { margin: 0 0 18px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; position: relative; background: var(--ash); clip-path: inset(0 0 0 0 round 10px); }
.case figure img { width: 100%; height: 118%; object-fit: cover; display: block; will-change: transform; }
.case figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 30, 26, .55)); opacity: 0; transition: opacity .5s; }
.case:hover figure::after { opacity: 1; }
.case .tag { display: inline-block; font: 600 12px var(--sans); letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.case h3 { font: 800 clamp(28px, 2.8vw, 44px)/1 var(--display); font-stretch: 74%; margin: 0 0 8px; }
.case p { margin: 0; color: var(--muted); }
.case .open { display: inline-flex; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--fg); opacity: .0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
.case:hover .open { opacity: 1; transform: none; }
.case-num { position: absolute; left: 18px; bottom: 14px; z-index: 2; font: 800 clamp(60px, 7vw, 110px)/.8 var(--display); font-stretch: 70%; color: rgba(248, 250, 249, .9); mix-blend-mode: overlay; }
/* página de proyectos */
.pj-page { padding: 150px var(--pad) 60px; }
.pj-case { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(50px, 9vh, 110px) 0; border-top: 1px solid var(--line); }
.pj-case:nth-child(even) figure { order: 2; }
.pj-case figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ash); }
.pj-case figure img { width: 100%; height: 118%; object-fit: cover; }
.pj-case h2 { font: 800 clamp(36px, 4.4vw, 72px)/.95 var(--display); font-stretch: 72%; margin: 6px 0 26px; }
.pj-facts { display: grid; gap: 22px; }
.pj-facts h3 { margin: 0 0 6px; font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--solar-text); }
.pj-facts p { margin: 0; font-size: 18px; color: var(--fg); max-width: 44ch; }
@media (max-width: 1000px) { .case.big, .case.mid, .case.wide, .case.mid2, .case.big2 { grid-column: 1 / -1; margin-top: 0; } .pj-case { grid-template-columns: 1fr; } .pj-case:nth-child(even) figure { order: 0; } }
