:root {
  --bg: #07090d;
  --bg-2: #0d1118;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef1f5;
  --ink-2: #9aa3b2;
  --accent: #ff6a1a;
  --accent-2: #ffb21a;
  --cold: #7fd3ff;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 9, 13, 0.85), rgba(7, 9, 13, 0));
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; letter-spacing: 0.08em; font-size: 15px;
  font-variation-settings: "wdth" 125;
}
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.brand-vr { color: var(--accent); margin-left: 2px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .topbar .btn-ghost { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font: 700 15px/1 var(--display); cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn { background: var(--accent); color: #140700; border: 0; }
.btn:hover { transform: translateY(-2px); background: #ff7d36; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.topbar .btn-ghost { padding: 9px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 200vh; }
#scene3d { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; display: block; }
.hero-vignette {
  position: absolute; inset: 0; height: 100vh; position: sticky; top: 0; margin-top: -100vh; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(7, 9, 13, 0.75) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}
.hero-copy {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(72px, 14vh, 140px);
  max-width: 980px; pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.kicker {
  font: 600 12px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
h1 {
  font-size: clamp(44px, 8.4vw, 118px); line-height: 0.92; margin: 0 0 22px;
  font-weight: 900; letter-spacing: -0.02em; font-variation-settings: "wdth" 75;
  text-transform: uppercase; text-wrap: balance;
}
.accent { color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: #c9cfd9; max-width: 600px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.altimeter {
  position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  font-family: var(--mono); transition: opacity .4s ease;
}
.altimeter.hide { opacity: 0; pointer-events: none; }
.alt-label { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-2); }
.alt-value { font-size: 28px; font-weight: 600; color: var(--ink); }
.alt-bar { width: 3px; height: 140px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.alt-bar span { position: absolute; left: 0; right: 0; top: 0; height: 0%; background: linear-gradient(var(--accent-2), var(--accent)); }
@media (max-width: 760px) { .altimeter { display: none; } }

.scroll-hint {
  position: absolute; top: calc(100vh - 44px); top: calc(100svh - 44px); left: 50%; transform: translateX(-50%);
  font: 500 11px var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2);
  animation: bob 2.4s ease-in-out infinite; transition: opacity .3s ease;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- statement ---------- */
.statement { padding: clamp(80px, 14vw, 180px) var(--gutter); max-width: 1100px; margin: 0 auto; }
.statement p {
  font-size: clamp(26px, 3.6vw, 48px); line-height: 1.18; margin: 0;
  font-weight: 500; font-variation-settings: "wdth" 85; color: var(--ink-2); text-wrap: balance;
}
.statement strong { color: var(--ink); font-weight: 800; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 140px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
h2 {
  font-size: clamp(34px, 5.2vw, 72px); line-height: 0.98; margin: 0 0 20px;
  font-weight: 900; letter-spacing: -0.015em; font-variation-settings: "wdth" 78; text-transform: uppercase;
  text-wrap: balance;
}
.section-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 620px; }

/* ---------- reels ---------- */
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
@media (max-width: 640px) { .reels { grid-template-columns: 1fr; } }
.reel { margin: 0; width: 100%; max-width: 42vh; justify-self: center; }
@media (min-width: 1000px) {
  #reacciones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; min-height: 100vh; }
  #reacciones .section-head { margin-bottom: 0; }
}
.reel-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(255, 106, 26, 0.25);
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.reel figcaption strong { color: var(--ink); }
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%) 0 0 / 250% 100%,
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 50% 30%, #1a2230, var(--bg-2));
  animation: shimmer 2.2s linear infinite;
}
.ph-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 16px; color: var(--accent); }
@keyframes shimmer { to { background-position: -250% 0, 0 0, 0 0; } }
.sound-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.6); color: var(--ink); cursor: pointer; backdrop-filter: blur(6px);
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; perspective: 1200px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  background: var(--bg-2); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.card:hover { border-color: rgba(255, 106, 26, 0.5); }
.card-art { position: absolute; inset: 0; }
.card-art img, .card-art video { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,9,13,0.95) 8%, rgba(7,9,13,0.1) 60%); }
.card-art svg { width: 100%; height: 100%; }
.card-body { position: relative; padding: 22px; transform: translateZ(30px); }
.card-tag { font: 600 10px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.card h3 { font-size: 26px; margin: 8px 0 8px; font-weight: 900; text-transform: uppercase; font-variation-settings: "wdth" 80; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- aula ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 30px 26px 34px; }
.f-num { font: 600 12px var(--mono); color: var(--accent); }
.feature h3 { font-size: 21px; margin: 14px 0 10px; font-weight: 800; font-variation-settings: "wdth" 90; }
.feature p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps li { border-top: 2px solid var(--accent); padding-top: 16px; font-size: 16px; line-height: 1.5; color: #c9cfd9; }
.steps li span { display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 8px; }

/* ---------- arena ---------- */
.arena { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
@media (max-width: 760px) { .arena { grid-template-columns: 1fr; } }
.arena-video { margin: 0; max-width: 42vh; width: 100%; justify-self: center; }
.arena-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shot { aspect-ratio: 9 / 12; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.05); }
.shot.ph { background: linear-gradient(110deg, var(--bg-2) 30%, #151c27 50%, var(--bg-2) 70%) 0 0 / 250% 100%; animation: shimmer 2.2s linear infinite; }
.shot figcaption { position: absolute; left: 12px; bottom: 10px; font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }

/* ---------- web3d + footer ---------- */
.web3d { text-align: center; }
.web3d-inner { max-width: 760px; margin: 0 auto; }
.web3d .section-lead { margin: 0 auto 28px; }
.footer {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px;
}

/* ---------- reveal ---------- */
[hidden] { display: none !important; }
.card.settled { transition: transform .25s ease, border-color .25s ease; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
