/* ==========================================================================
   kookyecat.dev v2 — gato de píxeles, problemas reales.
   Sin CDN, sin fuentes externas, sin almacenamiento en el navegador.
   ========================================================================== */

:root {
  --bg: #04060c;
  --bg2: #070b14;
  --panel: #08101c;
  --line: #14233a;
  --line2: #1d3556;
  --blue: #168cff;
  --accent: #4dc3ff;
  --ice: #c9ecff;
  --text: #e8f1ff;
  --muted: #8097b3;
  --dim: #52677d;
  --green: #64ff9b;
  --warn: #ffd166;
  --red: #ff5d73;

  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pad: clamp(20px, 4.5vw, 64px);
  --sec: clamp(76px, 10vw, 140px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.booting { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: 15px; line-height: 1.7;
  overflow-x: clip; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { color: var(--accent); background: rgba(77, 195, 255, .08); padding: 1px 6px; border-radius: 3px; font-size: .92em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ----- fondo global ----- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 40rem at 80% 6%, rgba(77, 195, 255, .10), transparent 60%),
    radial-gradient(50rem 36rem at 6% 60%, rgba(22, 140, 255, .09), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(120, 170, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

/* ----- contenedores ----- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: 920px; }
.wrap-wide { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); position: relative; }
.section.tight { padding-bottom: calc(var(--sec) * .7); }
.section + .section { border-top: 1px solid var(--line); }

/* ----- tipografía de sección ----- */
.eyebrow { font-size: 13px; color: var(--accent); margin: 0 0 18px; letter-spacing: .02em; }
.h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 5.6vw, 82px); line-height: .96; letter-spacing: -.035em; overflow-wrap: break-word;
  margin: 0 0 clamp(22px, 3vw, 34px);
}
.h2 em, .h3 em { font-style: normal; color: var(--accent); text-shadow: 0 0 34px rgba(77, 195, 255, .45); }
.h2.sm { font-size: clamp(26px, 3.9vw, 56px); }
.h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; margin: 0 0 16px; }
.sec-lead { color: var(--muted); max-width: 66ch; margin: 0 0 8px; }
.sec-lead.big { font-size: clamp(18px, 2.2vw, 26px); color: #b9cbe0; line-height: 1.5; }
.g, .green { color: var(--green); } .b { color: var(--accent); } .w, .warn { color: var(--warn); } .r, .red { color: var(--red); } .m { color: var(--muted); }
.gold { color: var(--warn); }

/* ----- botones ----- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; cursor: pointer;
  font: 800 13px/1 var(--mono); padding: 14px 18px;
  border: 1px solid var(--line2); background: #0b1726; color: var(--text);
  box-shadow: 4px 4px 0 #061323;
  transition: transform .12s, box-shadow .12s, background .2s, border-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #0a2a4a; border-color: var(--accent); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #061323; }
.btn.primary { background: var(--blue); border-color: var(--accent); color: #fff; box-shadow: 4px 4px 0 #0b4d99; }
.btn.primary:hover { background: #2a98ff; box-shadow: 6px 6px 0 #0d63c4; }
.actions { display: flex; gap: 12px 14px; flex-wrap: wrap; }

.prompt {
  display: inline-block; margin: 0 0 26px; padding: 13px 16px; max-width: 100%;
  border: 1px solid var(--line); background: rgba(7, 11, 19, .8); color: var(--muted); font-size: 13px; line-height: 1.7;
  overflow-wrap: anywhere;
}
.caret { display: inline-block; width: 8px; height: 1em; margin-left: 6px; vertical-align: -2px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Arranque, progreso, toasts
   ========================================================================== */
.boot {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #02040a;
  transition: opacity .55s ease, visibility .55s;
  animation: bootfail .01s 5s forwards;
}
.boot.done { opacity: 0; visibility: hidden; }
.no-js .boot { display: none; }
@keyframes bootfail { to { opacity: 0; visibility: hidden; } }
.boot-box { width: min(440px, calc(100% - 40px)); }
.boot-cat { display: block; border-radius: 50%; margin-bottom: 18px; box-shadow: 0 0 0 1px #1e4a72, 0 0 30px rgba(77, 195, 255, .4); animation: float 3s ease-in-out infinite; }
#bootlog { margin: 0 0 18px; min-height: 7.4em; color: var(--green); font: 13px/1.7 var(--mono); white-space: pre-wrap; }
.boot-bar { height: 8px; border: 1px solid var(--line2); background: #060c16; }
.boot-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 10px); transition: width .22s steps(6); }
.boot small { display: block; margin-top: 14px; color: var(--dim); font-size: 11px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110; pointer-events: none; }
.progress i {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 8px);
  filter: drop-shadow(0 0 6px rgba(77, 195, 255, .8));
}

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 10px; justify-items: end; pointer-events: none; max-width: calc(100vw - 36px); }
.toast {
  padding: 11px 15px; border: 1px solid var(--line2); background: #0a1524; font-size: 13px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .5), 0 0 30px rgba(22, 140, 255, .25);
  animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.gold { border-color: #8a6a1c; background: #1a1507; color: var(--warn); box-shadow: 4px 4px 0 rgba(0, 0, 0, .5), 0 0 34px rgba(255, 209, 102, .25); }
.toast.out { opacity: 0; transform: translateX(20px); transition: .45s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.zoomies { position: fixed; inset: 0; z-index: 130; pointer-events: none; overflow: hidden; }
.zoomies img { position: absolute; top: -120px; border-radius: 50%; opacity: .95; animation: fall var(--d) var(--dl) linear forwards; box-shadow: 0 0 22px rgba(77, 195, 255, .5); }
@keyframes fall { to { transform: translateY(calc(100vh + 160px)) rotate(var(--r)); } }

/* ==========================================================================
   Navegación
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
}
/* el desenfoque vive en un pseudo-elemento: un backdrop-filter en el propio nav haría que el menú móvil (fixed) se midiera contra él */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s, background .3s;
  background: rgba(4, 6, 12, .72); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.nav.scrolled::before, .menu-open .nav::before { opacity: 1; }
.menu-open .nav::before { background: rgba(4, 6, 12, .985); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -1px; font-size: 16px; flex: none; }
.brand b { color: var(--accent); }
.brandmark { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px #1e4a72, 0 0 16px rgba(77, 195, 255, .3); }
.links { display: flex; gap: clamp(12px, 1.8vw, 26px); font-size: 13px; color: var(--muted); }
.links a { position: relative; padding: 6px 0; transition: color .2s; }
.links a::before { content: "/"; color: var(--accent); opacity: 0; margin-right: 2px; transition: opacity .2s; }
.links a:hover, .links a.on { color: var(--text); }
.links a:hover::before, .links a.on::before { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 14px; flex: none; }
.status { font-size: 11px; color: var(--green); border: 1px solid #1e5d3a; padding: 7px 11px; background: #07150e; white-space: nowrap; }
.status i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--green); border-radius: 50%; animation: blink 1.6s steps(1) infinite; vertical-align: 1px; }
.trophy { font-size: 12px; color: var(--warn); border: 1px solid #5c4a17; background: #15110a; padding: 6px 10px; white-space: nowrap; }
.trophy.pop { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 40% { transform: scale(1.3) rotate(-4deg); } }
.burger { display: none; width: 42px; height: 42px; padding: 0; background: #0b1726; border: 1px solid var(--line2); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) { .status { display: none; } }
@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; flex-direction: column; justify-content: flex-start; gap: 0; padding: 8px var(--pad) 22px; overflow: auto;
    background: rgba(4, 6, 12, .985); border-top: 1px solid var(--line);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .25s;
  }
  .links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu-open .links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 22px) 0 70px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-bg .g1 { width: 46vw; height: 46vw; right: -6vw; top: -8vw; background: radial-gradient(circle, rgba(22, 140, 255, .32), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.hero-bg .g2 { width: 36vw; height: 36vw; left: -10vw; bottom: 4vh; background: radial-gradient(circle, rgba(77, 195, 255, .14), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(3vw, 2vw) scale(1.08); } }
.floor {
  position: absolute; left: -20%; right: -20%; bottom: -2%; height: 46%;
  perspective: 420px; perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
  mask-image: linear-gradient(to bottom, transparent, #000 70%);
}
.floor::before {
  content: ""; position: absolute; inset: 0; transform: rotateX(64deg); transform-origin: 50% 0;
  background-image:
    linear-gradient(rgba(77, 195, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 195, 255, .3) 1px, transparent 1px);
  background-size: 64px 64px; animation: floor-move 2.6s linear infinite;
}
@keyframes floor-move { to { background-position: 0 64px; } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center;
  column-gap: clamp(24px, 4vw, 70px); row-gap: 26px;
  grid-template-areas: "title stage" "copy stage";
}
.hero-title { grid-area: title; align-self: end; min-width: 0; }
.stage { grid-area: stage; }
.hero-copy { grid-area: copy; align-self: start; min-width: 0; }

.dateline { font-size: 12px; color: var(--accent); margin: 0 0 14px; letter-spacing: .04em; }
.dateline span { color: var(--dim); margin: 0 4px; }
.hero h1 { margin: 0; line-height: 0; }
#headline { display: none; filter: drop-shadow(0 0 16px rgba(77, 195, 255, .35)); touch-action: pan-y; cursor: crosshair; }
.canvas-ok #headline { display: block; }
.h1-fallback { display: block; font: 900 clamp(56px, 11vw, 150px)/.9 var(--display); letter-spacing: -.04em; line-height: .9; }
.h1-fallback em { font-style: normal; color: var(--accent); text-shadow: 0 0 30px rgba(77, 195, 255, .5); }
.canvas-ok .h1-fallback { display: none; }

.lead { max-width: 56ch; color: #a8bad0; font-size: 16px; line-height: 1.8; margin: 0 0 22px; }
.lead b { color: var(--text); }

.scroll-cue { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; font-size: 11px; color: var(--dim); letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { display: block; text-align: center; font-style: normal; color: var(--accent); font-size: 16px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ----- escenario del gato ----- */
.stage { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; --rx: 0deg; --ry: 0deg; perspective: 900px; }
.orb {
  position: absolute; inset: 7%; margin: 0; cursor: pointer; border-radius: 50%;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; transform-style: preserve-3d;
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }
.orb img {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px #1e4a72, 0 0 60px rgba(77, 195, 255, .4), 0 0 140px rgba(22, 140, 255, .35);
}
.orb.boop img { animation: boop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes boop { 30% { transform: scale(1.08) rotate(-3deg); } 60% { transform: scale(.97) rotate(2deg); } }
.ring {
  position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0turn, transparent 0 55%, rgba(77, 195, 255, .95) 82%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0);
  animation: spin 6s linear infinite;
}
.orb::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(77, 195, 255, .18); pointer-events: none; }
@keyframes spin { to { transform: rotate(1turn); } }

.orbit { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; animation: spin var(--t, 14s) linear infinite; }
.orbit i { position: absolute; top: 0; left: 50%; width: var(--s, 9px); height: var(--s, 9px); margin-left: -4px; background: var(--c, var(--accent)); box-shadow: 0 0 14px var(--c, var(--accent)); }
.o1 { --t: 16s; } .o1 i { --s: 10px; }
.o2 { --t: 24s; inset: 6%; animation-direction: reverse; } .o2 i { --c: var(--ice); --s: 7px; }
.o3 { --t: 11s; inset: -3%; } .o3 i { --c: var(--green); --s: 6px; top: 50%; left: 100%; }

.say {
  position: absolute; left: 4%; top: 4%; z-index: 4; padding: 9px 13px; max-width: 70%; font-size: 12.5px;
  border: 1px solid var(--line2); background: #0b1726; color: var(--accent); box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .25s, transform .3s cubic-bezier(.2, 1.5, .4, 1); pointer-events: none;
}
.say::after { content: ""; position: absolute; left: 22px; bottom: -8px; width: 12px; height: 12px; background: #0b1726; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); transform: rotate(45deg); }
.say.show { opacity: 1; transform: none; }

.mini-term {
  position: absolute; right: -2%; bottom: 3%; z-index: 3; width: min(310px, 62%);
  border: 1px solid #1b3857; background: rgba(5, 10, 18, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 60px rgba(0, 140, 255, .18); transform: rotate(2.4deg); font-size: 11.5px; pointer-events: none;
}
.mini-bar { height: 28px; border-bottom: 1px solid #172a41; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.mini-bar i { width: 8px; height: 8px; border-radius: 50%; background: #29415b; }
.mini-bar i:nth-child(3) { background: var(--accent); }
.mini-bar span { margin-left: auto; color: var(--dim); font-size: 10px; }
.mini-code { padding: 12px 14px; line-height: 1.75; color: #9db3cc; }
.mini-code .k { color: #c792ea; } .mini-code .f { color: #82aaff; } .mini-code .s { color: #c3e88d; } .mini-code .n { color: #f78c6c; } .mini-code .c { color: #536b84; }

@media (min-width: 901px) and (max-height: 799px) {
  .hero { padding-bottom: 44px; }
  .hero-copy .prompt, .scroll-cue { display: none; }
  .lead { margin-bottom: 18px; }
}
@media (max-width: 900px) {
  .hero { align-items: flex-start; padding: calc(var(--nav-h) + 6px) 0 80px; min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "stage" "copy"; row-gap: 12px; }
  .stage { width: min(100%, 360px); }
  .mini-term { right: -4%; bottom: 0; }
}

/* ==========================================================================
   Marquees
   ========================================================================== */
.marquee { overflow: hidden; display: block; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 45s) linear infinite; will-change: transform; }
.marquee-group { display: flex; flex: none; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.ticker { border-block: 1px solid var(--line); background: #050911; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker .marquee-group span { font-size: 12px; color: var(--muted); padding: 14px 28px; border-right: 1px solid #101c2e; white-space: nowrap; }
.up { color: var(--green); font-weight: 400; } .down { color: var(--red); font-weight: 400; }

/* ==========================================================================
   Manifiesto
   ========================================================================== */
.scrub { font: 700 clamp(22px, 3.3vw, 46px)/1.28 var(--sans); letter-spacing: -.02em; max-width: 30ch; max-width: min(34ch, 100%); margin: 8px 0 clamp(48px, 6vw, 80px); color: var(--text); }
.scrub em { font-style: normal; color: var(--accent); }
.js .scrub .sw { opacity: .16; transition: opacity .35s, color .35s, text-shadow .35s; }
.js .scrub .sw.on { opacity: 1; }
.scrub .hl.on { color: var(--accent); text-shadow: 0 0 26px rgba(77, 195, 255, .45); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  position: relative; border: 1px solid var(--line); background: linear-gradient(160deg, #09111d, #060a11); padding: 26px 24px 28px; min-height: 220px; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.pillar:hover { border-color: var(--line2); transform: translateY(-4px); }
.pillar .pn { position: absolute; right: 14px; top: -6px; font: 900 96px/1 var(--display); color: transparent; -webkit-text-stroke: 1px #17304d; }
.pillar b { display: block; font: 900 28px/1 var(--display); letter-spacing: -.02em; color: var(--accent); margin: 34px 0 14px; }
.pillar p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 30ch; position: relative; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* reveal genérico */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ==========================================================================
   Proyectos reales — tarjetas apiladas
   ========================================================================== */
.pstack { display: grid; grid-auto-rows: 1fr; gap: clamp(26px, 5vw, 64px); margin-top: 56px; }
.pcard { position: sticky; top: calc(var(--nav-h) + 14px + var(--i) * 14px); }
.pcard-in {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3.2vw, 48px);
  padding: clamp(22px, 3.4vw, 44px); min-height: min(66vh, 520px); height: 100%; align-items: center;
  border: 1px solid hsl(var(--h) 55% 30% / .75); border-radius: 6px;
  background: radial-gradient(120% 90% at 100% 0%, hsl(var(--h) 70% 22% / .55), transparent 60%), linear-gradient(160deg, hsl(var(--h) 55% 9%), #060a11 62%);
  box-shadow: 0 40px 90px -40px hsl(var(--h) 90% 50% / .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: scale(var(--s, 1)); transform-origin: 50% 0; filter: brightness(var(--b, 1));
}
.ptop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: hsl(var(--h) 95% 72%); border: 1px solid hsl(var(--h) 60% 38%); background: hsl(var(--h) 60% 12% / .6); padding: 5px 9px; }
.pnum { font: 900 clamp(40px, 5vw, 72px)/1 var(--display); color: transparent; -webkit-text-stroke: 1px hsl(var(--h) 60% 40% / .7); }
.pinfo { container-type: inline-size; min-width: 0; }
.pinfo h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 900 clamp(24px, 2.9vw, 40px)/1.02 var(--display); letter-spacing: -.035em; text-transform: uppercase; overflow-wrap: break-word; }
@supports (width: 1cqi) { .pinfo h3 { font-size: clamp(24px, 8.4cqi, 58px); } }
.picon { border-radius: 13px; flex: none; box-shadow: 0 0 0 1px hsl(var(--h) 60% 40%), 0 0 24px hsl(var(--h) 90% 55% / .4); }
.pinfo p { color: #9db3cc; margin: 0 0 20px; font-size: 14px; max-width: 52ch; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chips2 span { font-size: 10.5px; color: hsl(var(--h) 60% 76%); border: 1px solid hsl(var(--h) 45% 24%); padding: 4px 8px; background: rgba(0, 0, 0, .25); }
.chips2.tech { margin-bottom: 24px; }
.real-links { display: flex; flex-wrap: wrap; gap: 12px; }
.real-links .btn { padding: 11px 14px; font-size: 12px; }
.real-links .btn.primary { background: hsl(var(--h) 85% 46%); border-color: hsl(var(--h) 90% 66%); box-shadow: 4px 4px 0 hsl(var(--h) 80% 22%); }
.real-links .btn.primary:hover { background: hsl(var(--h) 90% 54%); box-shadow: 6px 6px 0 hsl(var(--h) 80% 26%); }

.art { position: relative; align-self: stretch; display: flex; align-items: stretch; justify-content: center; min-height: 270px; min-width: 0; }
.win {
  width: 100%; display: flex; flex-direction: column; border: 1px solid hsl(var(--h) 45% 28%); border-radius: 6px; overflow: hidden; background: rgba(3, 6, 12, .85);
  box-shadow: 0 26px 70px -22px hsl(var(--h) 95% 55% / .55); transform: perspective(1000px) rotateY(-7deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.pcard-in:hover .win { transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-4px); }
.win-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid hsl(var(--h) 40% 20%); background: hsl(var(--h) 50% 9% / .9); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 25% 28%); }
.win-bar i:nth-child(3) { background: hsl(var(--h) 90% 62%); }
.win-bar span { margin-left: auto; font-size: 10px; color: hsl(var(--h) 30% 60%); }
.win-body { padding: 14px; min-height: 230px; flex: 1; }

.win-body u { display: block; border-radius: 3px; }
/* cloud */
.a-cloud { display: grid; grid-template-columns: 34px 1fr 96px; grid-template-rows: 1fr auto; gap: 12px; }
.a-cloud aside { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 6px; }
.a-cloud aside b { display: grid; place-items: center; height: 30px; font-size: 14px; background: hsl(var(--h) 50% 14%); border-radius: 4px; }
.a-cloud .tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; }
.a-cloud .tiles u { min-height: 44px; }
.a-cloud .map { position: relative; border-radius: 4px; background: radial-gradient(circle at 60% 40%, hsl(var(--h) 60% 22%), hsl(var(--h) 50% 9%)); overflow: hidden; }
.a-cloud .map i { position: absolute; inset: 0; background-image: linear-gradient(hsl(var(--h) 60% 40% / .25) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--h) 60% 40% / .25) 1px, transparent 1px); background-size: 14px 14px; }
.a-cloud .map em { position: absolute; left: 50%; top: 36%; font-style: normal; font-size: 18px; animation: bob 1.8s ease-in-out infinite; }
.a-cloud .chips2 { grid-column: 2 / 4; }
/* gym */
.a-gym { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 14px; }
.a-gym .stat { grid-column: 1 / 3; display: flex; align-items: baseline; justify-content: space-between; }
.a-gym .stat small { color: hsl(var(--h) 30% 62%); font-size: 11px; }
.a-gym .stat b { font: 900 42px/1 var(--display); color: hsl(var(--h) 95% 66%); }
.a-gym .stat em { font: 400 13px var(--mono); font-style: normal; margin-left: 4px; color: var(--muted); }
.a-gym .bars { display: flex; align-items: flex-end; gap: 6px; min-height: 110px; }
.a-gym .bars i { flex: 1; height: var(--v); background: linear-gradient(to top, hsl(var(--h) 80% 36%), hsl(var(--h) 90% 62%)); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.pcard-in:hover .a-gym .bars i { animation: grow .8s var(--d, 0ms) both cubic-bezier(.2, .8, .2, 1); }
@keyframes grow { from { transform: scaleY(.1); } }
.a-gym .cal { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, 1fr); gap: 5px; }
.a-gym .cal u { min-height: 14px; background: hsl(var(--h) 30% 14%); }
.a-gym .cal u.on { background: hsl(var(--h) 85% 55%); box-shadow: 0 0 8px hsl(var(--h) 90% 55% / .6); }
/* realify */
.a-real { display: grid; grid-template-columns: 96px 1fr 104px; gap: 12px; min-height: 240px; }
.a-real .layers, .a-real .sliders { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.a-real .layers p { margin: 0; padding: 6px 8px; font-size: 10.5px; line-height: 1.3; background: hsl(var(--h) 40% 12%); border-radius: 3px; color: hsl(var(--h) 20% 66%); }
.a-real .layers p { flex: 1; max-height: 64px; display: flex; align-items: center; }
.a-real .layers { justify-content: flex-start; }
.a-real .layers p.on { background: hsl(var(--h) 70% 30%); color: #fff; }
.a-real .canvas { display: flex; flex-direction: column; gap: 8px; }
.a-real .photo { flex: 1; min-height: 130px; border-radius: 4px; background: radial-gradient(circle at 30% 35%, #ffd8a8 0 8%, transparent 9%), linear-gradient(160deg, #ff9a6b, #c0508f 45%, #3c2a8f 78%, #0e1a4a); }
.a-real .hist { display: flex; align-items: flex-end; gap: 3px; height: 38px; }
.a-real .hist i { flex: 1; height: var(--v); background: hsl(var(--h) 60% 52%); opacity: .8; }
.a-real .sliders p { margin: 0; font-size: 10px; color: hsl(var(--h) 20% 66%); }
.a-real .sliders p span { display: block; margin-bottom: 6px; }
.a-real .sliders i { display: block; height: 4px; background: hsl(var(--h) 30% 18%); position: relative; }
.a-real .sliders i::after { content: ""; position: absolute; left: var(--v); top: -4px; width: 10px; height: 12px; margin-left: -5px; background: hsl(var(--h) 90% 70%); border-radius: 2px; transition: left .5s; }
.pcard-in:hover .a-real .sliders p:nth-child(odd) i::after { left: calc(100% - var(--v)); }
/* gallery */
.a-gal { display: flex; }
.a-gal .masonry { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, minmax(24px, 1fr)); gap: 8px; }
.a-gal .masonry u:nth-child(1) { grid-area: 1 / 1 / span 2; } .a-gal .masonry u:nth-child(4) { grid-area: 3 / 1 / span 3; } .a-gal .masonry u:nth-child(7) { grid-area: 6 / 1 / span 1; }
.a-gal .masonry u:nth-child(2) { grid-area: 1 / 2 / span 3; } .a-gal .masonry u:nth-child(5) { grid-area: 4 / 2 / span 2; } .a-gal .masonry u:nth-child(8) { grid-area: 6 / 2 / span 1; }
.a-gal .masonry u:nth-child(3) { grid-area: 1 / 3 / span 2; } .a-gal .masonry u:nth-child(6) { grid-area: 3 / 3 / span 2; } .a-gal .masonry u:nth-child(9) { grid-area: 5 / 3 / span 2; }
/* kookye fotos (teléfono) */
.art-phone .phone {
  width: min(250px, 78%); min-height: 380px; border-radius: 28px; padding: 14px 10px 10px; border: 2px solid hsl(var(--h) 45% 30%);
  background: #050810; box-shadow: 0 30px 70px -20px hsl(var(--h) 95% 55% / .55), 0 0 0 5px hsl(var(--h) 40% 10%); transform: rotate(-5deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; gap: 8px;
}
.pcard-in:hover .phone { transform: rotate(0) translateY(-6px); }
.phone .notch { width: 42px; height: 6px; background: #000; border-radius: 4px; margin: 0 auto 2px; border: 1px solid hsl(var(--h) 30% 20%); }
.phone .srch { font-size: 10px; padding: 7px 10px; border-radius: 14px; background: hsl(var(--h) 40% 12%); color: hsl(var(--h) 30% 70%); }
.phone .pgrid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 4px; min-height: 0; }
.phone .pgrid u { border-radius: 2px; }
.phone .pnav { display: flex; justify-content: space-around; padding-top: 2px; }
.phone .pnav i { width: 18px; height: 3px; border-radius: 2px; background: hsl(var(--h) 30% 30%); }
.phone .pnav i:first-child { background: hsl(var(--h) 90% 66%); }

@media (max-width: 860px) {
  .pcard { position: static; }
  .pcard-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: 0; transform: none !important; filter: none !important; }
  .art { min-height: 0; order: -1; }
  .win { transform: none; }
}
.ns-list { color: var(--muted); }
.ns-list a { color: var(--accent); }

/* ==========================================================================
   Terminal interactiva
   ========================================================================== */
.term { margin-top: 44px; border: 1px solid #1b3857; background: rgba(3, 7, 13, .92); box-shadow: 0 0 90px rgba(0, 140, 255, .12), inset 0 0 60px rgba(77, 195, 255, .02); border-radius: 6px; overflow: hidden; }
.term-bar { height: 40px; border-bottom: 1px solid #172a41; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: rgba(8, 16, 28, .9); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #29415b; }
.term-bar i:nth-child(1) { background: #ff5d73; } .term-bar i:nth-child(2) { background: #ffd166; } .term-bar i:nth-child(3) { background: #64ff9b; }
.term-bar span { margin-left: 10px; color: var(--dim); font-size: 12px; }
.term-out {
  height: clamp(320px, 52vh, 460px); overflow: auto; padding: 18px 20px 8px; font-size: 13.5px; line-height: 1.65; color: #b9cbe0;
  scrollbar-width: thin; scrollbar-color: #1d3556 transparent;
}
.term-out div { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.65em; }
.term-out .echo { color: var(--text); margin-top: 8px; }
.term-out a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.term-in { display: flex; gap: 10px; align-items: center; padding: 10px 20px 16px; border-top: 1px dashed #14263d; font-size: 13.5px; }
.term-in label { white-space: nowrap; color: var(--muted); }
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; caret-color: var(--green); padding: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { cursor: pointer; padding: 8px 12px; font-size: 12px; background: #0a1524; border: 1px solid var(--line2); color: var(--accent); transition: .15s; }
.chip:hover { background: #10223a; border-color: var(--accent); transform: translateY(-2px); }
.chip::before { content: "$ "; color: var(--dim); }
@media (max-width: 600px) { .term-in input { font-size: 16px; } .term-out { font-size: 12.5px; padding-inline: 14px; } }

/* ==========================================================================
   Lab (proyectos ficticios)
   ========================================================================== */
.lab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-ctrl { display: flex; gap: 10px; flex: none; }
.rbtn { width: 48px; height: 48px; cursor: pointer; font-size: 20px; background: #0b1726; border: 1px solid var(--line2); box-shadow: 3px 3px 0 #061323; transition: .12s; }
.rbtn:hover { border-color: var(--accent); transform: translate(-1px, -1px); }
.rbtn:active { transform: translate(2px, 2px); box-shadow: none; }
.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 36px max(var(--pad), calc((100vw - 1200px) / 2 + var(--pad))) 18px;
  scroll-padding-inline: max(var(--pad), calc((100vw - 1200px) / 2 + var(--pad))); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.lab-card {
  --h: 205; flex: 0 0 min(330px, 80vw); scroll-snap-align: start; position: relative; overflow: hidden; padding: 22px;
  border: 1px solid hsl(var(--h) 45% 22%); border-radius: 6px; background: radial-gradient(120% 70% at 100% 0%, hsl(var(--h) 70% 20% / .5), transparent 60%), linear-gradient(165deg, hsl(var(--h) 50% 9%), #060a11);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.lab-card:hover { transform: translateY(-8px) rotate(-.6deg); border-color: hsl(var(--h) 80% 55%); box-shadow: 0 30px 60px -28px hsl(var(--h) 95% 55% / .6); }
.lab-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--dim); }
.lab-card .tag { font-size: 10px; }
.lab-ico { font-size: 54px; line-height: 1; margin: 26px 0 12px; filter: drop-shadow(0 0 18px hsl(var(--h) 95% 60% / .7)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 30% 80%; }
.lab-card:hover .lab-ico { transform: scale(1.18) rotate(-8deg); }
.lab-card h3 { margin: 0 0 10px; font: 900 22px/1.1 var(--display); letter-spacing: -.02em; color: #eaf6ff; }
.lab-card p { margin: 0; color: #8ea5bf; font-size: 12.5px; line-height: 1.7; flex: 1; }
.lab-card .tech { margin: 18px 0 14px; color: hsl(var(--h) 55% 62%); font-size: 10.5px; letter-spacing: .04em; }
.lab-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed hsl(var(--h) 40% 22%); font-size: 10.5px; color: var(--muted); }
.st::before { content: "●"; margin-right: 6px; }
.st.ok { color: var(--green); } .st.warn { color: var(--warn); } .st.bad { color: var(--red); }
.rail-bar { height: 4px; margin-top: 8px; background: #0b1524; }
.rail-bar i { display: block; height: 100%; width: 18%; background: var(--accent); box-shadow: 0 0 12px rgba(77, 195, 255, .6); transition: width .15s; }
@media (max-width: 700px) { .rail-ctrl { display: none; } }

/* ==========================================================================
   Stack + skills
   ========================================================================== */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 40px; }
.tool { border: 1px solid var(--line); background: linear-gradient(160deg, #09111d, #060a11); padding: 18px 20px; position: relative; transition: border-color .25s, transform .25s, box-shadow .25s; overflow: hidden; }
.tool::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.tool:hover { border-color: #2475ad; transform: translateY(-3px); box-shadow: 0 16px 40px -22px rgba(77, 195, 255, .5); }
.tool:hover::before { transform: scaleY(1); }
.tool-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool-top b { color: #dcecff; font-size: 14px; }
.paws { display: inline-flex; gap: 3px; flex: none; filter: drop-shadow(0 0 6px rgba(77, 195, 255, .45)); }
.paws i {
  width: 15px; height: 15px; background: var(--accent);
  -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat;
}
.paws i.off { background: #1a2b42; filter: none; }
:root { --paw: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16.5' rx='5.6' ry='4.7'/%3E%3Cellipse cx='4.8' cy='10.8' rx='2.3' ry='3'/%3E%3Cellipse cx='9.4' cy='5.7' rx='2.3' ry='3.2'/%3E%3Cellipse cx='14.6' cy='5.7' rx='2.3' ry='3.2'/%3E%3Cellipse cx='19.2' cy='10.8' rx='2.3' ry='3'/%3E%3C/svg%3E"); }
.tool p { margin: 11px 0 0; font-size: 12px; color: #6f879f; line-height: 1.65; }
.tool p::before { content: "— gato, "; color: #405a71; }
.stack-note { font-size: 12px; color: #4f7597; margin: 24px 0 0; }
.skills-head { margin-top: clamp(64px, 8vw, 110px); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; margin-top: 34px; }
.skill-top { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; color: #a8bad0; margin-bottom: 9px; }
.skill-top b { color: var(--accent); flex: none; }
.bar { height: 12px; border: 1px solid #19304a; background: #060c16; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--blue) 0 6px, var(--accent) 6px 8px); box-shadow: 0 0 12px rgba(77, 195, 255, .35); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar i.low { background: repeating-linear-gradient(90deg, #a52a42 0 6px, var(--red) 6px 8px); box-shadow: 0 0 12px rgba(255, 93, 115, .3); }
.skills.go .bar i { width: var(--w); }
.no-js .bar i { width: var(--w); }
@media (max-width: 800px) { .skills { grid-template-columns: 1fr; gap: 22px; } }

/* ==========================================================================
   Estado + paneles
   ========================================================================== */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.metric { border: 1px solid var(--line); background: #070c14; padding: 20px; transition: border-color .25s; }
.metric:hover { border-color: var(--line2); }
.metric span { display: block; color: #4e6b84; font-size: 10px; letter-spacing: .1em; }
.metric strong { display: block; font: 900 clamp(28px, 3.4vw, 46px)/1 var(--display); color: var(--accent); margin: 14px 0 8px; text-shadow: 0 0 24px rgba(77, 195, 255, .35); }
.metric strong b { font: inherit; }
.metric small { color: #6b839b; font-size: 11px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; align-items: start; }
.panel { border: 1px solid #19304a; background: #05090f; padding: 20px 22px 22px; box-shadow: inset 0 0 40px rgba(77, 195, 255, .025); min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--accent); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed #14263d; }
.panel-h .m { font-size: 11px; font-style: normal; }
.panel-h em { font-style: normal; }
.panel-sub { margin: -2px 0 14px; color: var(--muted); font-size: 12px; }
.spark-wrap { height: 190px; position: relative; }
.spark-wrap canvas { position: absolute; inset: 0; }
.spark-legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin-top: 8px; }
.cron p { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; margin: 0; padding: 9px 8px; font-size: 12px; color: #7991a8; border-left: 2px solid transparent; transition: background .3s, border-color .3s; }
.cron p + p { border-top: 1px solid #0c1828; }
.cron .t { color: #405a71; }
.cron .c b { color: var(--accent); font-weight: 400; } .cron .c i { font-style: normal; color: #405a71; }
.cron .eta { font-style: normal; color: var(--dim); font-size: 11px; white-space: nowrap; }
.cron p.next { background: rgba(100, 255, 155, .05); border-left-color: var(--green); }
.cron p.next .eta { color: var(--green); }
.cron p.next .eta::before { content: "▶ "; }
.logbox p { margin: 0; padding: 7px 0; font-size: 12.5px; color: #7991a8; }
.logbox span { color: #405a71; margin-right: 12px; }
.logbox b { color: var(--accent); font-weight: 700; } .logbox b.green { color: var(--green); } .logbox b.warn { color: var(--warn); } .logbox b.red { color: var(--red); }
.logbox i { font-style: normal; color: #405a71; }
.gitlog p { transition: background .2s, padding .2s; } .gitlog p:hover { background: rgba(77, 195, 255, .05); padding-inline: 8px; }
.inc-title { margin: 2px 0 14px; font: 900 22px/1.1 var(--display); letter-spacing: -.02em; color: #eaf6ff; }
.inc-js .incident #incLog p { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.inc-js .incident #incLog p.on { opacity: 1; transform: none; }
.mini-btn { cursor: pointer; font-size: 11px; color: var(--accent); background: #0a1524; border: 1px solid var(--line2); padding: 4px 9px; }
.mini-btn:hover { border-color: var(--accent); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .metrics { grid-template-columns: 1fr 1fr; } }
.cron .c { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 520px) { .cron p { grid-template-columns: minmax(0, 1fr) auto; } .cron .t { grid-column: 1 / 3; } }

/* known issues */
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.issue { border: 1px solid var(--line); background: #070c14; padding: 22px; transition: border-color .25s, transform .25s; }
.issue:hover { border-color: var(--line2); transform: translateY(-3px); }
.issue > span { font-size: 10px; font-weight: 900; letter-spacing: .12em; padding: 4px 8px; border: 1px solid currentColor; display: inline-block; }
.issue p { margin: 16px 0 0; font-size: 13px; color: #8da4bb; line-height: 1.7; }
@media (max-width: 900px) { .issues { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .issues { grid-template-columns: 1fr; } }

/* ==========================================================================
   Logros
   ========================================================================== */
.achs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.ach { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid #3a2f12; background: linear-gradient(160deg, #15110a, #0a0a0a); transition: all .5s; overflow: hidden; }
.ach em { font-style: normal; font-size: 30px; line-height: 1; filter: drop-shadow(0 0 10px rgba(255, 209, 102, .5)); transition: .5s; }
.ach b { display: block; font-size: 14px; color: #fff3d1; margin-bottom: 8px; }
.ach p { margin: 0 0 8px; font-size: 12px; line-height: 1.65; color: #a6987a; }
.ach small { display: block; font-size: 10.5px; color: #6f6447; }
.rarity { font-size: 9px; letter-spacing: 1px; color: var(--warn); border: 1px solid #5c4a17; padding: 2px 6px; margin-left: 8px; vertical-align: 2px; font-weight: 400; }
.ach.locked { border-color: var(--line); background: #070b12; }
.ach.locked em { filter: grayscale(1) brightness(.5); }
.ach.locked b { color: #5d7088; } .ach.locked p { color: #44566b; } .ach.locked .rarity { color: #3e5068; border-color: #1b2a3c; }
.ach.locked small::before { content: "🔒 "; }
.ach.unlocked small { display: none; }
.ach.unlocked { box-shadow: 0 0 50px -12px rgba(255, 209, 102, .45); animation: unlock 1s ease-out; }
.ach.unlocked::after { content: "DESBLOQUEADO"; position: absolute; right: 10px; bottom: 8px; font-size: 9px; letter-spacing: .14em; color: var(--warn); opacity: .8; }
.ach.impossible { opacity: .55; }
@keyframes unlock { 0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(255, 209, 102, .8); } 50% { transform: scale(1.03); } 100% { transform: none; } }
@media (max-width: 960px) { .achs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .achs { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonios + FAQ
   ========================================================================== */
.testis { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.testis .marquee-group { align-items: stretch; }
.testi { flex: none; width: 340px; margin-right: 16px; border: 1px solid var(--line); background: linear-gradient(145deg, #09101a, #060a11); padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
.testi::before { content: "\201C"; position: absolute; top: 2px; right: 18px; font: 64px Georgia, serif; color: #16304a; }
.testi p { margin: 0 0 20px; font-size: 14px; color: #b3c4d8; line-height: 1.7; flex: 1; }
.testi b { color: var(--accent); font-size: 12px; } .testi small { color: #55718a; font-size: 10.5px; }

.faq { margin-top: 36px; max-width: 940px; border: 1px solid var(--line); background: #070c14; }
.faq details { border-bottom: 1px solid #101c2e; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 20px 24px; font-size: 14.5px; color: #dcecff; list-style: none; display: flex; gap: 12px; align-items: baseline; transition: background .2s, color .2s; }
.faq summary:hover { background: rgba(77, 195, 255, .04); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "$"; color: var(--green); flex: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 18px; transition: transform .3s; }
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq .a { padding: 0 24px 22px 46px; font-size: 13.5px; color: var(--muted); line-height: 1.85; animation: faq-in .35s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ==========================================================================
   Contacto + footer
   ========================================================================== */
.contact { padding-top: calc(var(--sec) * .7); overflow: hidden; }
.cta-marquee { border-block: 1px solid var(--line2); padding-block: clamp(18px, 3vw, 34px); background: linear-gradient(90deg, rgba(22, 140, 255, .08), rgba(77, 195, 255, .02)); transition: background .3s; }
.cta-marquee:hover { background: linear-gradient(90deg, rgba(22, 140, 255, .22), rgba(77, 195, 255, .06)); }
.cta-marquee .marquee-group > span { font: 900 clamp(44px, 9vw, 132px)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; color: var(--text); padding-inline: .15em; }
.cta-marquee .marquee-group > span.ol { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.cta-marquee .marquee-group > i { font-style: normal; color: var(--warn); font-size: clamp(28px, 5vw, 70px); padding-inline: .2em; text-shadow: 0 0 24px rgba(255, 209, 102, .6); animation: spin 8s linear infinite; }
.contact .actions { margin-top: 4px; }

.footer { position: relative; border-top: 1px solid var(--line); padding: 44px 0 0; overflow: hidden; }
.foot-in { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; color: #5c7186; font-size: 12px; }
.foot-stage { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: clamp(24px, 4vw, 56px) var(--pad) 18px; }
.foot-word {
  user-select: none; white-space: nowrap; min-width: 0; padding-bottom: .06em;
  font: 900 clamp(34px, 11.6vw, 200px)/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px #1f4872;
  background: linear-gradient(to top, rgba(22, 140, 255, .35), transparent 80%); -webkit-background-clip: text; background-clip: text;
}
.foot-cat { flex: none; width: clamp(44px, 9vw, 150px); height: auto; border-radius: 50%; margin-bottom: .6vw; box-shadow: 0 0 60px rgba(77, 195, 255, .35), 0 0 0 1px #1e4a72; animation: peek 5s ease-in-out infinite; }
@keyframes peek { 50% { translate: 0 -10px; } }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { border-radius: 50%; box-shadow: 0 0 0 1px #16253a; }
.foot-legal a { color: #7890aa; } .foot-legal a:hover { color: var(--accent); }
.foot-legal span { margin: 0 6px; color: #2c3d52; }
.duck { cursor: pointer; background: none; border: 0; padding: 0 2px; font-size: 13px; opacity: .35; transition: .25s; filter: grayscale(1); }
.duck:hover { opacity: 1; filter: none; transform: rotate(-12deg) scale(1.3); }
@media (max-width: 800px) { .foot-in { flex-direction: column; } }

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track > .marquee-group + .marquee-group { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scrub .sw { opacity: 1 !important; }
  .floor::before, .ring, .orbit { animation: none; }
}
