:root {
  --bg: #0b0a12;
  --bg2: #14121f;
  --ink: #f4f1ea;
  --muted: #a39fb5;
  --lime: #c6ff3d;
  --violet: #7c5cff;
  --pink: #ff5ca8;
  --cream: #f4ecd8;
  --line: rgba(255, 255, 255, .1);
  --radius: 22px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --pixel: "Silkscreen", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--lime); color: var(--bg); }

.pixel { font-family: var(--pixel); letter-spacing: .02em; }
.small { font-size: .8rem; color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--lime), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blink { animation: blink 1s steps(1) infinite; color: var(--lime); }
@keyframes blink { 50% { opacity: 0; } }

/* grain */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  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'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* cursor */
.cursor {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px; z-index: 99;
  border: 2px solid var(--lime); border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%); transition: width .2s, height .2s, background .2s;
  mix-blend-mode: difference;
}
.cursor.big { width: 64px; height: 64px; background: var(--lime); }
@media (hover: none) { .cursor { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: var(--bg); font: 700 1rem var(--font);
  box-shadow: 4px 4px 0 var(--violet); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--pink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--violet); }

/* nav */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1100px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .7rem .6rem 1rem; border-radius: 999px;
  background: rgba(20, 18, 31, .7); backdrop-filter: blur(14px); border: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font: 700 1.15rem var(--mono); }
.nav nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.nav nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }

/* hero */
.hero {
  position: relative; min-height: 100vh; padding: 140px 6vw 80px;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem;
  max-width: 1300px; margin: 0 auto;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: -1; animation: float 14s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: var(--violet); top: 10%; left: -5%; }
.b2 { width: 360px; height: 360px; background: var(--pink); bottom: 0; right: 10%; animation-delay: -4s; }
.b3 { width: 260px; height: 260px; background: var(--lime); top: 30%; right: 35%; opacity: .18; animation-delay: -8s; }
@keyframes float { 50% { transform: translate(40px, -30px) scale(1.1); } }

.tag { color: var(--lime); font-size: .85rem; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; letter-spacing: -.04em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); margin: 1.6rem 0 2rem; max-width: 34ch; }
.rotator { color: var(--ink); border-bottom: 3px solid var(--lime); white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.stats { list-style: none; display: flex; gap: 2.5rem; margin-top: 3rem; }
.stats b { display: block; font-size: 2.2rem; font-family: var(--pixel); color: var(--ink); }
.stats span { color: var(--muted); font-size: .85rem; }

.hero-art { position: relative; text-align: center; }
.neural { width: 100%; max-width: 480px; aspect-ratio: 1; height: auto; margin: 0 auto; display: block; touch-action: pan-y; }
.hint { color: var(--muted); font-size: .7rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto; }
  .stats { gap: 1.5rem; }
}

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg2); transform: rotate(-1.5deg); margin: 2rem -2vw; }
.track { display: flex; gap: 2rem; width: max-content; padding: 1.1rem 0; animation: marquee 60s linear infinite; font: 700 1.4rem var(--font); }
.track span:nth-child(even) { color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 110px 6vw 40px; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.03em; line-height: 1; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-title .pixel { font-size: .9rem; color: var(--lime); border: 1.5px solid var(--lime); padding: .2rem .5rem; border-radius: 6px; }
.section-sub { color: var(--muted); margin-top: .8rem; font-size: 1.1rem; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.card { border-radius: var(--radius); padding: 1.8rem; position: relative; overflow: hidden; transition: transform .25s; }
.card:hover { transform: translateY(-6px) rotate(-.4deg); }
.card h3 { font-size: 1.5rem; margin: 1rem 0 .5rem; letter-spacing: -.02em; }
.card p { opacity: .85; }
.card .icon { font: 700 1.6rem var(--mono); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.12); }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }
.c-lime { background: var(--lime); color: var(--bg); }
.c-violet { background: var(--violet); color: #fff; }
.c-pink { background: var(--pink); color: var(--bg); }
.c-cream { background: var(--cream); color: var(--bg); }
.c-ink { background: var(--bg2); border: 1px solid var(--line); }
.c-cta { border: 2px dashed var(--lime); display: flex; flex-direction: column; }
.c-cta p { color: var(--muted); flex: 1; }
.c-cta .icon { background: rgba(198, 255, 61, .12); color: var(--lime); }

/* versus: vibe coding vs AI-first */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: stretch; margin-top: 3rem; }
.vs-col { border-radius: var(--radius); padding: 2rem; }
.vs-col h3 { font-size: 1.5rem; letter-spacing: -.02em; margin: .6rem 0 1.2rem; line-height: 1.15; }
.vs-col ul { list-style: none; display: grid; gap: .8rem; }
.vs-col li { padding-left: 1.8rem; position: relative; }
.vs-tag { font-size: .8rem; }
.vs-bad { background: var(--bg2); border: 1.5px dashed rgba(255, 92, 168, .5); color: var(--muted); }
.vs-bad .vs-tag { color: var(--pink); }
.vs-bad h3 { color: var(--ink); text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.vs-bad li::before { content: "✗"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.vs-good { background: var(--lime); color: var(--bg); box-shadow: 8px 8px 0 var(--violet); }
.vs-good li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.vs-mid { align-self: center; font-size: 1.2rem; color: var(--bg); background: var(--ink); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; transform: rotate(-8deg); }
@media (max-width: 900px) { .versus { grid-template-columns: 1fr; } .vs-mid { justify-self: center; } }

/* AI tiles */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
.ai-tile { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--c); transition: transform .2s; }
.ai-tile:hover { transform: translateY(-6px); }
.ai-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c); color: var(--bg); font-size: 1.4rem; }
.ai-tile h3 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.ai-tile p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }

.agent-flow { margin-top: 1.6rem; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.af-prompt { font-size: 1.05rem; margin-bottom: 1.2rem; }
.af-prompt .pixel { font-size: .7rem; background: var(--violet); color: #fff; padding: .2rem .5rem; border-radius: 6px; margin-right: .5rem; }
.af-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.af-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .9rem; font-size: .92rem; display: flex; flex-direction: column; gap: .2rem; position: relative; }
.af-steps li b { font: .75rem var(--pixel); color: var(--lime); }
.af-steps small { font: .72rem var(--mono); color: var(--muted); }
.af-steps .af-human { border-color: var(--pink); }
.af-steps .af-human b { color: var(--pink); }
@media (max-width: 900px) { .af-steps { grid-template-columns: 1fr; } }

/* stack */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.stack-cat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: border-color .2s; }
.stack-cat:hover { border-color: var(--c); }
.stack-cat h3 { font: .85rem var(--pixel); color: var(--c); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.stack-cat h3::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.stack-cat ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.stack-cat li { font: 600 .9rem var(--mono); padding: .4rem .75rem; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: transform .15s, background .15s, color .15s; }
.stack-cat li:hover { background: var(--c); color: var(--bg); transform: translateY(-2px); }
.c-ink .icon { background: rgba(198, 255, 61, .12); color: var(--lime); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chips li { font: .75rem var(--mono); padding: .25rem .6rem; border-radius: 999px; border: 1px solid currentColor; opacity: .75; }
.mini-term { margin-top: 1.5rem; background: rgba(0,0,0,.35); padding: 1rem; border-radius: 12px; font: .72rem/1.7 var(--mono); white-space: pre; overflow-x: auto; }
.ai-demo { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; max-width: 480px; }
.bubble { padding: .7rem 1rem; border-radius: 16px; font-size: .92rem; width: fit-content; }
.bubble.you { background: rgba(255,255,255,.08); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--lime); color: var(--bg); border-bottom-left-radius: 4px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tall, .wide { grid-row: auto; grid-column: auto; }
}

/* platforms */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; perspective: 900px; }
.platform {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem;
  transition: border-color .2s, transform .15s; transform-style: preserve-3d;
}
.platform:hover { border-color: var(--lime); }
.p-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.p-logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font: 700 1.6rem var(--font); background: var(--c); color: var(--bg); box-shadow: 4px 4px 0 rgba(255,255,255,.12); }
.p-logo.pixel { font-family: var(--pixel); }
.status { font: .75rem var(--mono); color: var(--lime); display: flex; align-items: center; gap: .4rem; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.platform h3 { font-size: 1.8rem; letter-spacing: -.02em; }
.platform p { color: var(--muted); flex: 1; }
.p-link { font-weight: 700; color: var(--lime); margin-top: .5rem; }
.p-8bit { background-image: linear-gradient(rgba(255,92,168,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,92,168,.06) 1px, transparent 1px); background-size: 12px 12px; }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3rem; counter-reset: s; position: relative; }
.steps li { padding: 1.4rem; border-radius: 18px; border: 1px dashed var(--line); background: var(--bg2); }
.steps li .pixel { font-size: .75rem; color: var(--pink); }
.steps li:last-child { border: 1.5px solid var(--pink); }
.steps h3 { margin: .6rem 0 .3rem; font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.back h4 { font-size: 1rem; color: var(--c); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, 1fr); } }
.member { aspect-ratio: 1; perspective: 800px; cursor: pointer; }
.member-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.member.flip .member-inner, .member:hover .member-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.front { background: var(--c); color: var(--bg); }
.front .avatar { flex: 1; min-height: 0; margin-bottom: .7rem; border-radius: 12px; background: rgba(0,0,0,.12); display: grid; place-items: center; font: 2.2rem var(--pixel); }
.front b { font-size: .95rem; line-height: 1.2; }
.front small { font: .7rem var(--mono); opacity: .8; }
.back { background: var(--bg2); border: 1.5px solid var(--c); transform: rotateY(180deg); justify-content: space-between; }
.back p { font-size: .85rem; color: var(--muted); }
.back .links { display: flex; gap: .6rem; font: .75rem var(--mono); color: var(--c); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; padding-bottom: 120px; }
.contact-copy p { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }
.form { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
.form input, .form textarea {
  font: 1rem var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem; resize: vertical; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--lime); }
.form fieldset { border: 0; }
.form legend { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills label { display: block; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; transition: all .15s; }
.pills input:checked + span { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.pills input:focus-visible + span { outline: 2px solid var(--violet); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: var(--lime); }
.form-status.err { color: var(--pink); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 6vw; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; }
kbd { font-family: var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; color: var(--lime); }

/* terminal */
.terminal {
  position: fixed; bottom: 20px; right: 20px; width: min(520px, calc(100% - 32px)); height: 340px; z-index: 90;
  background: #07060c; border: 1px solid var(--lime); border-radius: 14px; display: flex; flex-direction: column;
  font: .85rem/1.6 var(--mono); box-shadow: 8px 8px 0 var(--violet);
}
.terminal[hidden] { display: none; }
.t-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.t-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.t-bar span:nth-child(2) { background: var(--lime); } .t-bar span:nth-child(3) { background: var(--violet); }
.t-bar b { flex: 1; text-align: center; font-weight: 400; color: var(--muted); font-size: .75rem; }
.t-bar button { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.t-body { flex: 1; overflow-y: auto; padding: .8rem; white-space: pre-wrap; color: var(--ink); }
.t-body .c { color: var(--lime); }
.t-input { display: flex; gap: .5rem; padding: .6rem .8rem; border-top: 1px solid var(--line); color: var(--lime); }
.t-input input { flex: 1; background: none; border: 0; color: var(--ink); font: inherit; outline: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- academia (lista de espera) ---------- */
.academy { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.academy-copy { display: grid; gap: 1.2rem; min-width: 0; }
.academy-points { list-style: none; display: grid; gap: .6rem; color: var(--muted); font-size: 1.05rem; }
.academy-points li { padding-left: 1.4rem; position: relative; }
.academy-points li::before { content: "▸"; position: absolute; left: 0; color: var(--lime); }
.academy-points b { color: var(--ink); font-weight: 600; }
.academy-term { background: #08070d; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; font: .85rem/1.7 var(--mono); color: var(--ink); overflow-x: auto; }
.academy-term .t-dim { color: var(--muted); } .academy-term .t-lime { color: var(--lime); } .academy-term .t-ok { color: #4ade80; }
.form-lead { color: var(--ink); font-size: 1rem; }
@media (max-width: 900px) { .academy { grid-template-columns: 1fr; } }

/* Aviso de cookies (consentimiento.js) */
.aviso-cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--bg2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  font-size: .92rem; line-height: 1.45;
}
.aviso-cookies p { margin: 0; flex: 1 1 320px; }
.aviso-cookies a { color: var(--lime); }
.aviso-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.form-legal { font-size: .8rem; opacity: .75; margin: 4px 0 0; }
.form-legal a, .footer a { color: var(--lime); }
