@import url("../fonts/fonts.css");

/* ============================================================
   TODOSTREAMING — Home
   Dirección: "Banco de Tubos Nixie" — consola de transmisión vintage.
   Panel de acero cepillado casi negro, un único resplandor ámbar
   de tubo nixie como acento, IBM Plex Mono para paneles/números
   grabados, Space Grotesk para titulares técnicos.
   Seed: 56f5da3d · challenger-nixie (elegido por el usuario)
   ============================================================ */

:root {
  --bg: #0b0d0f;
  --bg-2: #0e1113;
  --panel: #15181b;
  --panel-hi: #1c2023;
  --steel-line: #2a2f34;
  --steel-line-hi: #3a4045;

  --tube: #ff8a3d;
  --tube-dim: #c96a2e;
  --tube-glow: rgba(255, 138, 61, 0.38);
  --tube-glow-soft: rgba(255, 138, 61, 0.14);

  --plate: #e9e4d8;
  --plate-dim: #cfc9ba;

  --text: #eef0f1;
  --muted: #9aa1a6;
  --muted-2: #7d848a; /* subido desde #6b7075: fallaba WCAG AA (3.9:1/3.6:1) en textos chicos; ahora 5.1:1/4.7:1 */

  --radius: 10px;
  --radius-lg: 14px;

  --maxw: 1180px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 3px);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--tube);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--tube);
  color: #1a0d02;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-mono);
}
.skip-link:focus { left: 16px; }

/* ---------- Textura de metal cepillado (paneles) ---------- */

.panel-tex {
  background-color: var(--panel);
  background-image:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%);
}

/* Remache decorativo */
.rivet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a7075, #16191c 70%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.6);
}

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(11, 13, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--steel-line);
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-stuck {
  background: rgba(11, 13, 15, 0.97);
  border-bottom-color: var(--steel-line-hi);
}
.nav .container { display: flex; align-items: center; gap: 20px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: auto;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span b { color: var(--tube); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-left: 12px;
  transition: color 0.2s;
}
.nav-links a:not(.btn)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel-line-hi);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] { color: var(--text); }
.nav-links a:not(.btn):hover::before,
.nav-links a:not(.btn)[aria-current="page"]::before {
  background: var(--tube);
  box-shadow: 0 0 6px var(--tube-glow);
}

.nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--steel-line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Botones: interruptores de panel ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--muted-2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, #23272b, #17191b);
  color: var(--text);
  border-color: var(--steel-line-hi);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 10px 24px rgba(0,0,0,0.35);
}
.btn-primary::before {
  background: var(--tube);
  box-shadow: 0 0 8px 2px var(--tube-glow), inset 0 0 0 1px rgba(0,0,0,0.3);
  animation: tube-idle 2.6s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: var(--tube-dim);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 14px 30px rgba(255,138,61,0.16);
}
@keyframes tube-idle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.btn-ghost {
  border-color: var(--steel-line-hi);
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}
.btn-ghost::before { background: var(--steel-line-hi); }
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm { padding: 10px 16px; font-size: 0.74rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 82% 8%, var(--tube-glow-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(100deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 5px);
}

.hero > .container { display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.hero-inner { max-width: 740px; padding-bottom: 56px; }
.hero--compact { padding-bottom: 64px; }
.hero--compact .hero-inner { padding-bottom: 0; }

/* ---------- Osciloscopio del hero ---------- */

.hero-scope { display: none; flex: none; width: 320px; padding-bottom: 56px; }
@media (min-width: 1040px) {
  .hero-scope { display: block; }
}

.scope-screen {
  position: relative;
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0a0c0d, #060708);
  border: 1px solid var(--steel-line-hi);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.scope-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
}
.scope-screen::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 9px;
  right: 9px;
  background: radial-gradient(circle at 35% 30%, #6a7075, #16191c 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.scope-screen .rivet-l {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 9px;
  left: 9px;
  background: radial-gradient(circle at 35% 30%, #6a7075, #16191c 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.hero-scope-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.scope-plate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scope-lamp {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tube);
  box-shadow: 0 0 6px 1px var(--tube-glow);
  animation: pulse 2.4s infinite;
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plate);
  background: var(--panel);
  border: 1px solid var(--steel-line-hi);
  padding: 8px 14px 8px 12px;
  border-radius: 6px;
  margin-bottom: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tube);
  box-shadow: 0 0 6px 1px var(--tube-glow);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.7rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--tube);
  text-shadow: 0 0 18px var(--tube-glow), 0 0 46px var(--tube-glow-soft);
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 14px; height: 14px; color: var(--tube-dim); flex: none; }

/* ---------- Banco de tubos (hero + estadísticas) ---------- */

.tube-bank {
  position: relative;
  border-top: 1px solid var(--steel-line);
  background: var(--panel);
  background-image:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 4px);
}
.tube-bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tube {
  position: relative;
  padding: 30px 18px;
  text-align: center;
  border-right: 1px solid var(--steel-line);
}
.tube:last-child { border-right: none; }
.tube::before,
.tube::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a7075, #16191c 70%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  top: 10px;
}
.tube::before { left: 10px; }
.tube::after { right: 10px; }

.tube-digits {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--tube);
  text-shadow: 0 0 10px var(--tube-glow), 0 0 30px var(--tube-glow-soft);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.tube-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Parpadeo breve al encender, como el cross-fade físico de un tubo */
.js .tube-digits { animation: none; }
.js .reveal.is-visible .tube-digits { animation: tube-flicker 0.5s steps(2, end) 1; }
@keyframes tube-flicker {
  0% { opacity: 0.2; }
  40% { opacity: 1; }
  55% { opacity: 0.35; }
  100% { opacity: 1; }
}

/* ---------- Secciones ---------- */

.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--steel-line); }
.section--tight { padding: 0; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tube);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--tube-dim);
}

/* ---------- Grilla de servicios (módulos de instrumento) ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--panel);
  overflow: hidden;
  transition: background 0.3s;
}
.svc:hover { background: var(--panel-hi); }
.svc-bg { display: none; }

/* Resplandor que sigue al cursor, como un instrumento que reacciona a la atención */
.svc::after, .plan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--tube-glow-soft), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.svc:hover::after, .plan:hover::after { opacity: 1; }

.svc-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #23272b, #101214 72%);
  border: 1px solid var(--steel-line-hi);
  color: var(--tube);
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,138,61,0.12);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.1rem; margin-bottom: 9px; }
.svc p { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; flex: 1; }
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tube);
}
.svc-more svg { width: 14px; height: 14px; transition: transform 0.28s var(--ease); }
.svc:hover .svc-more svg { transform: translateX(5px); }
.svc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Grilla de features (módulo de panel, sin foto) ---------- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feat {
  position: relative;
  background: var(--panel);
  padding: 28px 24px;
  overflow: hidden;
  transition: background 0.3s;
}
.feat:hover { background: var(--panel-hi); }
.feat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #23272b, #101214 72%);
  border: 1px solid var(--steel-line-hi);
  color: var(--tube);
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.35), inset 0 0 8px rgba(255,138,61,0.12);
}
.feat-icon svg { width: 21px; height: 21px; }
.feat h3 { font-size: 1.02rem; margin-bottom: 9px; }
.feat p { font-size: 0.9rem; color: var(--muted); }

/* Resplandor de cursor también en features */
.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--tube-glow-soft), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.feat:hover::after { opacity: 1; }

/* ---------- Split: panel ilustrado + texto ---------- */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel-line);
  background: var(--panel);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.split-media img { display: none; }
.rack {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
}
.rack-unit {
  border: 1px solid var(--steel-line-hi);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--bg-2);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.rack-unit .lamp {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tube);
  box-shadow: 0 0 8px 1px var(--tube-glow);
  flex: none;
  animation: pulse 3s infinite;
}
.rack-unit .lamp:nth-child(1) { animation-delay: -0.4s; }
.rack-unit .bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; flex: none; }
.rack-unit .bars i {
  width: 3px;
  height: 100%;
  background: var(--steel-line-hi);
  border-radius: 1px;
  transform-origin: bottom;
  animation: vu-meter 1.1s ease-in-out infinite alternate;
}
.rack-unit .bars i:nth-child(1) { animation-delay: -0.9s; }
.rack-unit .bars i:nth-child(2) { animation-delay: -0.3s; }
.rack-unit .bars i:nth-child(3) { animation-delay: -0.7s; }
.rack-unit .bars i:nth-child(4) { animation-delay: -0.1s; background: var(--tube-dim); }
.rack-unit .bars i:nth-child(5) { animation-delay: -0.5s; }
.rack-unit:nth-child(2) .bars i { animation-duration: 1.4s; }
.rack-unit:nth-child(3) .bars i { animation-duration: 0.9s; }
.rack-unit:nth-child(4) .bars i { animation-duration: 1.25s; }
@keyframes vu-meter {
  0% { transform: scaleY(0.25); }
  50% { transform: scaleY(0.85); }
  100% { transform: scaleY(0.45); }
}
.rack-unit .meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

.checklist { display: grid; gap: 15px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.checklist svg { width: 18px; height: 18px; color: var(--tube); flex: none; margin-top: 3px; }
.checklist b { color: var(--text); font-weight: 600; }

/* ---------- Pasos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  counter-reset: step;
}
.step { position: relative; padding: 30px 24px 26px; background: var(--panel); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tube);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 9px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Planes: bancos de instrumento ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--steel-line-hi); }
.plan--featured {
  border-color: var(--tube-dim);
  background: linear-gradient(180deg, rgba(255,138,61,0.06), var(--panel) 55%);
  box-shadow: 0 16px 40px rgba(255,138,61,0.08);
}
.plan-tag {
  position: absolute;
  top: 16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tube);
}
.plan-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tube);
  box-shadow: 0 0 6px 1px var(--tube-glow);
  animation: pulse 2s infinite;
}
.plan h3 { font-size: 1.22rem; margin-bottom: 6px; }
.plan .plan-for { font-size: 0.86rem; color: var(--muted); margin-bottom: 22px; min-height: 42px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan li { display: flex; gap: 11px; font-size: 0.9rem; color: var(--muted); align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--tube); flex: none; margin-top: 2px; }
.plan li b { color: var(--text); font-weight: 600; font-family: var(--font-mono); }

.plans-foot { text-align: center; margin-top: 34px; color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ: fila de interruptores ---------- */

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq details[open] { border-color: var(--tube-dim); }
.faq summary {
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 30px;
  height: 15px;
  border-radius: 8px;
  border: 1px solid var(--steel-line-hi);
  background: var(--bg-2);
  transform: translateY(-50%);
}
.faq summary::before {
  content: "";
  position: absolute;
  right: 39px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted-2);
  transform: translateY(-50%) translateX(0);
  transition: transform 0.25s var(--ease), background 0.25s;
  z-index: 1;
}
.faq details[open] summary::before {
  background: var(--tube);
  box-shadow: 0 0 6px 1px var(--tube-glow);
  transform: translateY(-50%) translateX(15px);
}
.faq .faq-body { padding: 0 20px 22px; color: var(--muted); font-size: 0.93rem; }

/* ---------- Banda CTA final ---------- */

.cta-band {
  position: relative;
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel);
  border-top: 1px solid var(--steel-line);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 50% 100%, var(--tube-glow-soft), transparent 65%);
}
.cta-band .hero-media { display: none; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.footer { background: var(--bg-2); border-top: 1px solid var(--steel-line); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr 0.8fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer-about p { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.footer h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a, .footer-col li {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 11px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--tube); }

.social { display: flex; gap: 10px; }
.social li { margin: 0; display: block; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--steel-line);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.social a:hover { color: var(--tube); border-color: var(--tube-dim); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--steel-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-2);
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1c2023;
  border: 2px solid #25d366;
  color: #25d366;
  box-shadow: 0 10px 26px rgba(0,0,0,0.5), 0 0 0 3px rgba(37,211,102,0.12);
  transition: transform 0.28s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Animación de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Secuencia de "encendido" del hero: cada elemento enciende un poco después
   que el anterior, como un panel que arranca módulo por módulo. */
.js .stg-1 { transition-delay: 0s; }
.js .stg-2 { transition-delay: 0.1s; }
.js .stg-3 { transition-delay: 0.2s; }
.js .stg-4 { transition-delay: 0.3s; }
.js .stg-5 { transition-delay: 0.38s; }
.js .stg-6 { transition-delay: 0.5s; }
.js .stg-7 { transition-delay: 0.58s; }
.js .stg-8 { transition-delay: 0.66s; }
.js .stg-9 { transition-delay: 0.74s; }

/* ---------- Reproductor de demostración (consola) ---------- */

.player {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 720px;
  margin-inline: auto;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}
.player.is-playing { border-color: var(--tube-dim); }

.player-btn {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--steel-line-hi);
  cursor: pointer;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #23272b, #101214 72%);
  color: var(--tube);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,138,61,0.12);
  transition: box-shadow 0.25s;
}
.player-btn:hover { box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), inset 0 0 14px var(--tube-glow); }
.player-btn:disabled { opacity: 0.5; cursor: wait; }
.player-btn svg { width: 22px; height: 22px; }
.player-btn .ico-pause,
.player.is-playing .player-btn .ico-play { display: none; }
.player.is-playing .player-btn .ico-pause { display: block; }

.player-info { flex: 1; min-width: 0; }
.player-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.player.is-playing .player-live { color: var(--tube); }
.player-live .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.player.is-playing .player-live .dot { animation: pulse 2s infinite; }
.player-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

.player-eq { display: flex; align-items: flex-end; gap: 4px; height: 32px; flex: none; }
.player-eq i {
  width: 4px;
  height: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--steel-line-hi);
  transform-origin: bottom;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.player-eq i:nth-child(1) { transform: scaleY(0.3); }
.player-eq i:nth-child(2) { transform: scaleY(0.55); }
.player-eq i:nth-child(3) { transform: scaleY(0.38); }
.player-eq i:nth-child(4) { transform: scaleY(0.62); }
.player-eq i:nth-child(5) { transform: scaleY(0.42); }
.player.is-playing .player-eq i { background: var(--tube); }
.player.is-playing .player-eq i:nth-child(1) { transform: scaleY(0.4); animation: vu-meter 0.9s ease-in-out infinite alternate; animation-delay: -0.7s; }
.player.is-playing .player-eq i:nth-child(2) { transform: scaleY(0.85); animation: vu-meter 0.9s ease-in-out infinite alternate; animation-delay: -0.2s; }
.player.is-playing .player-eq i:nth-child(3) { transform: scaleY(0.55); animation: vu-meter 0.9s ease-in-out infinite alternate; animation-delay: -0.5s; }
.player.is-playing .player-eq i:nth-child(4) { transform: scaleY(1); animation: vu-meter 0.9s ease-in-out infinite alternate; animation-delay: -0.35s; }
.player.is-playing .player-eq i:nth-child(5) { transform: scaleY(0.62); animation: vu-meter 0.9s ease-in-out infinite alternate; animation-delay: -0.1s; }

.player-vol { flex: none; width: 92px; accent-color: var(--tube); cursor: pointer; }

.player-note { text-align: center; margin-top: 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-2); }
.player-note.is-error { color: #ff9b7a; }

@media (max-width: 640px) {
  .player { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .player-info { flex: 1 1 140px; }
  .player-vol { order: 3; width: 100%; }
  .player-eq { order: 2; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { order: -1; aspect-ratio: 16/9; }
  .tube-bank-grid { grid-template-columns: repeat(2, 1fr); }
  .tube:nth-child(2) { border-right: none; }
  .tube:nth-child(1), .tube:nth-child(2) { border-bottom: 1px solid var(--steel-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--steel-line);
    padding: 8px 20px 20px;
    transform: translateY(-130%);
    transition: transform 0.36s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 15px 2px; font-size: 0.85rem; border-bottom: 1px solid var(--steel-line); }
  .nav-links .btn { margin-top: 16px; }
  .nav .btn-primary:not(.nav-links .btn) { display: none; }

  .section { padding: 64px 0; }
  .hero { padding: calc(var(--nav-h) + 48px) 0 0; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 72px 0; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .tube-bank-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */

@media print {
  .nav, .wa-float { display: none !important; }
  body { background: #fff; color: #000; }
}
