:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --line: #1e2b44;
  --text: #e6edf7;
  --muted: #93a3bd;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --danger: #f87171;
  --radius: 14px;
  --header: 64px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }

.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  height: var(--header);
  background: rgba(11, 18, 32, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; font-size: 1.1rem; }
.mark { width: 28px; height: 28px; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .93rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-cta { color: var(--accent) !important; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: var(--muted); font: 600 .78rem var(--mono);
  padding: 6px 10px; cursor: pointer;
}
.lang button.active { background: var(--line); color: var(--text); }

/* ---------- secciones ---------- */
.screen {
  min-height: calc(100dvh - var(--header));
  display: flex; align-items: center;
  padding: 72px 0;
}
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow.accent { color: var(--accent); }
.lead { font-size: 1.15rem; max-width: 60ch; }
.lead.narrow { max-width: 72ch; }

/* ---------- bruxulabs (primera pantalla) ---------- */
.brand-hero { background:
  radial-gradient(800px 520px at 78% 45%, rgba(139, 92, 246, .14), transparent 62%),
  radial-gradient(600px 400px at 0% 100%, rgba(167, 139, 250, .06), transparent 60%); }
.brand-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.brand-name { display: flex; align-items: center; gap: .32em; font-size: clamp(3rem, 7.5vw, 6.4rem); font-weight: 800; letter-spacing: -.045em; text-transform: lowercase; margin-bottom: .18em; }
.brand-name img { width: .95em; height: .95em; }
.brand-tagline { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 650; color: var(--text); margin-bottom: .7em; letter-spacing: -.02em; }
.etym { margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.etym dd { margin: 0; font: .86rem var(--mono); color: var(--muted); }
.etym .say { color: var(--accent-2); }
.compass { margin: 0; }
.compass svg { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.c-ring { fill: none; stroke: var(--line); stroke-width: 2; }
.c-ring-2 { stroke: rgba(139, 92, 246, .35); stroke-dasharray: 2 10; }
.c-rose { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .10); }
.c-card { font: 700 20px var(--mono); fill: var(--muted); }
.c-south { fill: #e6edf7; opacity: .85; }
.c-hub { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.c-needle { transform-origin: 200px 200px; animation: seek 6s ease-in-out infinite; }
@keyframes seek { 0% { transform: rotate(-14deg); } 30% { transform: rotate(9deg); } 55% { transform: rotate(-4deg); } 75%, 100% { transform: rotate(0deg); } }
.h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; }

/* ---------- hero ---------- */
.hero { background:
  radial-gradient(900px 500px at 85% 20%, rgba(167, 139, 250, .10), transparent 60%),
  radial-gradient(700px 400px at 10% 90%, rgba(139, 92, 246, .08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .96rem;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #ffffff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--line); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn.disabled { background: var(--line); color: var(--muted); cursor: default; transform: none; }

.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font: .82rem var(--mono); color: var(--muted); text-align: center; margin-top: 10px; }
.room { fill: #101b30; stroke: var(--line); stroke-width: 1.5; }
.room-on { stroke: var(--accent); }
.tv { fill: #0b1220; stroke: #33415c; stroke-width: 2; }
.tv-on { fill: url(#g1); fill-opacity: .18; stroke: var(--accent-2); }
.lbl { font: 600 12px var(--mono); fill: var(--muted); letter-spacing: .1em; }
.phone { fill: #131f36; stroke: #3b4a66; stroke-width: 2; }
.phone-screen { fill: #0b1220; }
.qr rect { fill: var(--text); }
.link { fill: none; stroke-width: 2.5; }
.link-ok { stroke: url(#g1); stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
.link-no { stroke: #3b4a66; stroke-dasharray: 3 7; }
.block circle { fill: var(--bg); stroke: var(--danger); stroke-width: 2; }
.block path { stroke: var(--danger); stroke-width: 2.2; stroke-linecap: round; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* ---------- TV de muestra (hero) ---------- */
.tv-frame { fill: #0a0a10; stroke: #2a2540; stroke-width: 2; }
.tv-stand { fill: #1c1830; }
.tv-hotel { font: 700 14px var(--font); fill: var(--text); letter-spacing: .28em; }
.tv-meta { font: 500 12px var(--mono); fill: var(--muted); }
.tv-welcome { font: 700 24px var(--font); fill: var(--text); letter-spacing: -.01em; }
.tv-sub { font: 400 13px var(--font); fill: var(--muted); }
.tile rect:first-child { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .10); }
.tile text { font: 600 11px var(--font); fill: var(--muted); }
.tile circle, .tile path, .tile rect + text + rect, .tile rect:not(:first-child) { fill: var(--muted); }
.tile-on rect:first-child { fill: rgba(139, 92, 246, .18); stroke: var(--accent); }
.tile-on text { fill: var(--text); }
.tile-on circle { fill: url(#g1); }
.card-key { border-color: var(--accent); background: linear-gradient(180deg, rgba(139, 92, 246, .08), transparent); }
.cast-grid { grid-template-columns: 1fr 1.05fr; }

/* ---------- dos columnas ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(.8);
}

/* ---------- pasos ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg-2); position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 46px; width: 12px; height: 2px; background: var(--line);
}
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  font: 700 .95rem var(--mono); color: var(--accent); border: 1px solid var(--accent); margin-bottom: 16px;
}

/* ---------- tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.card h3 { color: var(--text); }
.card p { margin: 0; font-size: .94rem; }

/* ---------- módulos ---------- */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.module { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.module.live { border-color: var(--accent); background: linear-gradient(180deg, rgba(139, 92, 246, .08), transparent); }
.module p { margin: 0; font-size: .94rem; }
.tag {
  display: inline-block; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em;
  padding: 4px 8px; border-radius: 6px; margin-bottom: 14px;
  color: #ffffff; background: var(--accent);
}
.tag.soon { background: var(--line); color: var(--muted); }

/* ---------- contacto ---------- */
.contact-box { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-box .lead { margin-bottom: 30px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0; font-size: .85rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid, .modules { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero-grid, .two-col, .cast-grid, .brand-grid { grid-template-columns: 1fr; gap: 40px; }
  .screen { min-height: 0; padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid, .modules, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-ok, .c-needle { animation: none; }
}
