/* ==========================================================================
   BossBli - Stylesheet Principal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* --- Variables y Configuración Global --- */
:root {
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;
  --bg: #090909;
  --surface: #121212;
  --surface-2: #191919;
  --line: #2b211f;
  --text: #fbf1e3;
  --muted: #a58c7c;
  --primary: #ee6844;
  --primary-rgb: 238, 104, 68;
  --primary-dark: #c94d2c;
  --gold: #f4ad68;
  --accent-rgb: 244, 173, 104;
  --green: #49d98b;
  --success-rgb: 73, 217, 139;
  --button-weight: 700;
  --border-width: 1px;
  --spacing-scale: 1;
  --blue: var(--gold);
  --max: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #13100c;
  font-weight: 800;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.footer-preferences {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 18px;
}

.footer-preferences label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.footer-preferences select,
.footer-preferences-submit {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.footer-preferences-submit {
  cursor: pointer;
  font-weight: 700;
}

@supports not selector(:focus-visible) {
  .skip-link:focus {
    transform: translateY(0);
  }
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-weight: 800;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.025;
  background-image: radial-gradient(#fff 0.7px, transparent 0.7px);
  background-size: 9px 9px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Estandarización global de inputs de formulario (altura compacta 38px, padding 8px 12px) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"] {
  height: 38px;
  padding: 8px 12px;
  font-size: 13.5px;
  border-radius: 8px;
  box-sizing: border-box;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 44px));
  margin: auto;
}

.muted {
  color: var(--muted);
}

/* --- Header y Barra de Navegación --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 8, 0.82);
  border-bottom: var(--border-width, 1px) solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.brand em {
  color: var(--primary);
  font-style: normal;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
}

.mark svg {
  width: 20px;
  height: 20px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.navlinks a {
  position: relative;
  padding: 28px 0;
  transition: color .25s ease, text-shadow .25s ease;
}

.navlinks a:after {
  display: none;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--text);
}

.navlinks a:hover {
  text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.6), 0 0 6px rgba(var(--primary-rgb), 0.3);
  animation: nav-glow-pulse-web .45s ease forwards;
}

.navlinks a.active {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-chevron {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 14px);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 8px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.nav-submenu a {
  padding: 10px 12px;
  border-radius: 9px;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.mobile-panel .mobile-submenu-link {
  padding-left: 28px;
  font-size: 12px;
}

@keyframes nav-glow-pulse-web {
  0%   { text-shadow: none; }
  40%  { text-shadow: 0 0 22px rgba(var(--primary-rgb), 0.75), 0 0 8px rgba(var(--primary-rgb), 0.4); }
  100% { text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.6), 0 0 6px rgba(var(--primary-rgb), 0.3); }
}

.actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-switcher,
.mobile-languages {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switcher a,
.mobile-languages a {
  display: inline-flex;
  min-width: 34px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.language-switcher a[aria-current="true"],
.mobile-languages a[aria-current="true"] {
  background: var(--surface-2);
  color: var(--primary);
}

.language-switcher a:focus-visible,
.mobile-languages a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 780;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--muted);
  border: var(--border-width, 1px) solid var(--line);
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--primary);
}

/* --- Menú Móvil --- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: var(--border-width, 1px) solid var(--line);
  color: var(--text);
  border-radius: 11px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.mobile-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-toggle:active {
  transform: scale(0.9);
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.28s ease;
  pointer-events: none;
}

.mobile-panel {
  display: block;
  visibility: hidden;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(var(--max), calc(100% - 30px));
  padding: 0 18px;
  border: var(--border-width, 1px) solid var(--line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  transform: translateY(-12px);
  transform-origin: top center;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), padding 0.42s ease, visibility 0.42s;
  z-index: 100;
}

.mobile-panel.open {
  visibility: visible;
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
  padding-top: 12px;
  padding-bottom: 18px;
  transform: translateY(0);
}

.mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.24s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-panel a:last-of-type {
  border-bottom: 0;
}

.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--text);
}

.mobile-panel a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-panel a:hover svg,
.mobile-panel a.active svg {
  color: var(--primary);
  transform: translateX(3px);
}

.mobile-panel a.btn {
  justify-content: center;
  border-bottom: 0;
  margin-top: 10px;
  color: #fff;
}

.mobile-panel a.btn svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.mobile-panel.open a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-panel.open a:nth-child(1) { transition-delay: 0.04s; }
.mobile-panel.open a:nth-child(2) { transition-delay: 0.08s; }
.mobile-panel.open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-panel.open a:nth-child(4) { transition-delay: 0.16s; }
.mobile-panel.open a:nth-child(5) { transition-delay: 0.20s; }
.mobile-panel.open a:nth-child(6) { transition-delay: 0.24s; }

/* --- Hero Section y Slider --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 70px;
  min-height: 740px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 85% 25%, rgba(var(--primary-rgb), 0.14), transparent 28%), radial-gradient(circle at 8% 80%, rgba(var(--accent-rgb), 0.08), transparent 28%);
}

.hero:before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  right: -320px;
  top: -280px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(var(--primary-rgb), 0.035), 0 0 0 88px rgba(var(--primary-rgb), 0.02);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 70px;
  min-height: 520px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  padding: 7px 13px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.13);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
  }
}

h1 {
  margin: 24px 0 23px;
  font-size: clamp(48px, 6.4vw, 87px);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

h1 .accent,
h2 .accent {
  color: var(--primary);
}

.hero-copy {
  max-width: 550px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
  border-top: var(--border-width, 1px) solid var(--line);
  margin-top: 36px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.proof > div {
  flex: 1 1 auto;
  min-width: 120px;
}

.proof b {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

/* Slider Hero (Grid Stacking para altura unificada y cero saltos de tamaño) */
.hero #slider {
  position: relative;
  display: grid;
  grid-template-areas: "slide";
  align-items: start;
  min-height: 350px;
  overflow: visible;
}

.hero #slider .slide {
  grid-area: slide;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.hero #slider .slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.slide h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  min-height: 2.2em;
}

.slide .hero-copy {
  max-width: 540px;
  min-height: 52px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
}

.slider-controls button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: var(--border-width, 1px) solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 50%;
}

.slider-controls button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.slide-count {
  color: var(--muted);
  font-size: 12px;
  margin-left: 3px;
}

.bar {
  display: flex;
  gap: 5px;
  margin-left: 5px;
}

.bar i {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 4px;
  background: var(--line);
  transition: 0.25s;
}

.bar i.on {
  width: 42px;
  background: var(--primary);
}

/* --- Hero Animated Constellation (Escenario Tecnológico Principal) --- */
.visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 560px;
  min-height: 560px;
  margin: 0 auto;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.08) 0%, rgba(26, 21, 16, 0.65) 50%, rgba(19, 16, 12, 0.85) 100%);
  border: 1.5px solid rgba(var(--primary-rgb), 0.18);
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(var(--primary-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual:before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.05) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-slide-media.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual .visual-canvas {
  transition: opacity 0.35s ease;
}

.visual.has-slide-media .visual-canvas {
  opacity: 0;
  pointer-events: none;
}

/* Canvas del Diagrama */
.visual-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  z-index: 2;
}

/* Conectores SVG */
.visual-conduits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.visual-mesh-line {
  fill: none;
  stroke: rgba(var(--primary-rgb), 0.14);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.visual-conduit-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.visual-conduit-beam {
  fill: none;
  stroke-width: 3.5px;
  stroke-linecap: round;
  stroke-dasharray: 12 28;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  animation: heroBeamFlow 2.4s linear infinite;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

/* Rayos individuales con colores cálidos vivos y resplandor garantizado */
.visual-conduit-beam.beam-clientes {
  stroke: var(--gold);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 1));
  animation-delay: 0s;
}

.visual-conduit-beam.beam-lineas {
  stroke: var(--primary);
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 1));
  animation-delay: -0.48s;
}

.visual-conduit-beam.beam-renovaciones {
  stroke: var(--gold);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 1));
  animation-delay: -0.96s;
}

.visual-conduit-beam.beam-tickets {
  stroke: var(--green);
  filter: drop-shadow(0 0 8px rgba(var(--success-rgb), 1));
  animation-delay: -1.44s;
}

.visual-conduit-beam.beam-servidores {
  stroke: var(--primary);
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 1));
  animation-delay: -1.92s;
}

.visual-conduit-beam.highlight {
  stroke-width: 4.5px;
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 1)) drop-shadow(0 0 5px #ffffff);
}

@keyframes heroBeamFlow {
  0%   { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}

/* Anillos orbitales decorativos */
.visual-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.visual-orbit-ring.ring-1 {
  width: 220px;
  height: 220px;
  border: 1.5px dashed rgba(var(--primary-rgb), 0.22);
  animation: vRotateRing 30s linear infinite;
}

.visual-orbit-ring.ring-2 {
  width: 390px;
  height: 390px;
  border: 1.5px solid rgba(255, 255, 255, 0.05);
}

@keyframes vRotateRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Capa de Nodos y Posiciones (Distribución amplia, sólida y equilibrada) */
.v-node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;
  outline: none;
  z-index: 3;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Coordenadas precisas de la constelación */
.v-node-clientes     { left: 50%; top: 12%; }
.v-node-lineas       { left: 81%; top: 28%; }
.v-node-renovaciones { left: 78%; top: 74%; }
.v-node-tickets      { left: 22%; top: 74%; }
.v-node-servidores   { left: 19%; top: 28%; }
.v-node-marca        { left: 50%; top: 50%; z-index: 4; }

/* Tarjetas de Nodos (Formato amplio, legible y profesional) */
.v-node-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(25, 21, 16, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-node-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.14);
  border: 1.2px solid rgba(var(--primary-rgb), 0.32);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.v-node-icon svg {
  width: 20px;
  height: 20px;
}

.v-node-text {
  display: flex;
  flex-direction: column;
}

.v-node-title {
  font-size: 13.5px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.v-node-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.15;
  margin-top: 2px;
}

/* Nodo Central: Mi Marca (Hub Prominente) */
.v-card-hub {
  padding: 14px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #281e18, #1b1511);
  border: 1.8px solid rgba(var(--primary-rgb), 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 30px rgba(var(--primary-rgb), 0.25);
  gap: 14px;
}

.v-icon-hub {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 13px;
  background: rgba(var(--primary-rgb), 0.22);
  border: 1.5px solid rgba(var(--primary-rgb), 0.55);
  color: var(--gold);
}

.v-icon-hub svg {
  width: 23px;
  height: 23px;
}

.v-hub-tag {
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}

.v-card-hub .v-node-title {
  font-size: 15px;
  font-weight: 850;
  color: #ffffff;
}

.v-card-hub .v-node-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
}

.v-hub-halo {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, rgba(var(--accent-rgb), 0.1) 45%, transparent 70%);
  pointer-events: none;
  animation: pulseHubHalo 3s ease-in-out infinite alternate;
}

@keyframes pulseHubHalo {
  0%   { transform: scale(0.95); opacity: 0.55; }
  100% { transform: scale(1.14); opacity: 0.95; }
}

/* Hover y Estados Activos */
.v-node:hover,
.v-node.active,
.v-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.v-node:hover .v-node-card,
.v-node.active .v-node-card,
.v-node:focus-visible .v-node-card {
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 24px rgba(var(--accent-rgb), 0.35);
}

.v-node:hover .v-node-icon,
.v-node.active .v-node-icon,
.v-node:focus-visible .v-node-icon {
  background: rgba(var(--accent-rgb), 0.22);
  border-color: var(--gold);
  color: #ffffff;
}

/* --- Bandas y Estadísticas --- */
.band {
  border-block: 1px solid var(--line);
  background: #120e0a;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 46px 0;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: 39px;
  letter-spacing: -0.07em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

/* --- Secciones y Tarjetas --- */
.section {
  padding: calc(96px * var(--spacing-scale)) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 55px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 15px;
}

.section-title p {
  max-width: 610px;
  margin: auto;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature,
.card,
.contact-card,
.form-card {
  border: var(--border-width, 1px) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature:hover,
.card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.62);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.feature {
  padding: 27px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.11);
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* --- Call to Action (CTA) --- */
.cta {
  margin: 0 auto 90px;
  padding: 68px 30px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: #fff;
  font-size: clamp(32px, 5vw, 55px);
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin: 0 auto 26px;
}

.cta .btn {
  background: #fff;
  color: var(--primary-dark);
}

/* --- Cabeceras de Página --- */
.page-head {
  padding: 85px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 80% 10%, rgba(var(--primary-rgb), 0.13), transparent 28%);
}

.page-head h1 {
  font-size: clamp(46px, 6.5vw, 76px);
  margin: 22px 0 16px;
}

.page-head p {
  color: var(--muted);
  max-width: 630px;
  margin: auto;
  font-size: 17px;
}

/* --- Planes y Precios --- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
}

.plan {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #14100c;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.plan.popular {
  border: 1.8px solid var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.18), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.plan.popular:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 45px rgba(var(--primary-rgb), 0.28), 0 20px 48px rgba(0, 0, 0, 0.6);
}

.popular-tag {
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.45);
  z-index: 2;
}

.popular-tag.lifetime-tag,
.plan-tag-gold {
  background: var(--gold);
  color: #13100c;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}

.plan h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 5px;
  letter-spacing: -0.01em;
}

.plan p.muted {
  color: #9e8f80;
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0 0 18px;
  min-height: 35px;
}

.plan .price {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.plan .price small,
.price-period {
  font-size: 13px;
  color: #8e8276;
  letter-spacing: 0;
  font-weight: 600;
  margin-left: 2px;
}

.price-starter, .price-starter .price-val {
  color: #8b6f5c;
}

.price-pro, .price-pro .price-val {
  color: var(--primary);
}

.price-enterprise, .price-enterprise .price-val {
  color: var(--primary);
}

.price-master, .price-master .price-val {
  color: var(--gold);
}

.price-note {
  font-size: 11px;
  color: #8e8276;
  line-height: 1.35;
  margin: 0 0 12px;
  min-height: 28px;
}

.quality {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--gold);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 750;
  margin: 0 0 20px;
}

.plan hr {
  display: none;
}

.plan ul,
.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
}

.plan li,
.plan-feature-list li {
  padding: 5px 0;
  font-size: 12.5px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
  color: #e6dcd1;
}

.plan li svg,
.plan-feature-list li svg,
.plan-check-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
  stroke: currentColor;
  fill: none;
}

.plan .btn,
.plan-btn {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.plan .btn-outline,
.plan-btn.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fbf1e3;
}

.plan .btn-outline:hover,
.plan-btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.plan.popular .btn,
.plan .btn-primary,
.plan-btn.btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.38);
}

.plan.popular .btn:hover,
.plan .btn-primary:hover,
.plan-btn.btn-primary:hover {
  background: #f07452;
  box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.55);
  transform: translateY(-1px);
}

.guarantees {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8e8276;
  font-size: 12px;
  font-weight: 500;
}

/* --- Preguntas Frecuentes (FAQ) --- */
.faq {
  max-width: 780px;
  margin: auto;
}

.faq-item {
  border: var(--border-width, 1px) solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  margin: 10px 0;
  overflow: hidden;
}

.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px;
  font-weight: 750;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }

.faq-item .faq-a {
  display: block;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

details.faq-item:not([open]) .faq-a {
  display: none;
}

.faq-q span {
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  transition: 0.2s;
}

.faq-a {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-q span {
  transform: rotate(45deg);
}

/* --- Catálogo de Canales --- */
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.catalog-head h1 {
  font-size: clamp(42px, 6vw, 68px);
  margin: 0 0 8px;
}

.search {
  width: 290px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.search svg {
  color: var(--muted);
  width: 17px;
  height: 17px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search input::placeholder {
  color: var(--muted);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.cat {
  border: var(--border-width, 1px) solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  transition: 0.2s;
}

.cat.active,
.cat:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
}

.channel {
  position: relative;
  text-align: center;
  padding: 15px 9px;
  border: var(--border-width, 1px) solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  transition: 0.25s;
}

.channel:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.channel .circle {
  width: 54px;
  height: 54px;
  margin: 0 auto 11px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
  font-size: 13px;
}

.channel b {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel small {
  font-size: 11px;
}

.hd { color: var(--muted); }
.fhd { color: var(--primary); }
.k4 { color: var(--gold); }

.live {
  position: absolute;
  right: 7px;
  top: 7px;
  padding: 2px 5px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 7px;
  font-weight: 850;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 65px;
  color: var(--muted);
}

.empty svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 10px;
}

.empty b {
  display: block;
  color: var(--text);
  font-size: 17px;
}

/* --- Contacto y Formularios --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 55px;
}

.contact-card {
  text-align: center;
  padding: 27px;
}

.contact-card .feature-icon {
  margin: 0 auto 15px;
}

.contact-card h3 {
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.contact-card strong {
  font-size: 13px;
}

.form-card {
  max-width: 720px;
  margin: auto;
  padding: 31px;
}

.form-card h2 {
  font-size: 30px;
  letter-spacing: -0.05em;
  margin-bottom: 7px;
}

.form-card > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: var(--border-width, 1px) solid var(--line);
  outline: none;
  background: var(--surface-2);
  color: var(--text);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.success {
  display: none;
  text-align: center;
  padding: 30px;
}

.success.show {
  display: block;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 15px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

/* --- Layout Split y Listas --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 70px;
}

.split h2 {
  font-size: clamp(34px, 5vw, 57px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.split p {
  color: var(--muted);
  line-height: 1.8;
}

.list {
  display: grid;
  gap: 12px;
  align-content: start;
  align-self: start;
  margin-top: 18px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  height: auto;
  min-height: 0;
  align-self: start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.list-item svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  color: var(--primary);
  display: block;
  margin-top: 2px;
}

.list-item > div {
  flex: 1;
  min-width: 0;
}

.list-item b {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.35;
}

.list-item span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* --- Apps y Dispositivos Compatibles --- */
.apps-illustration {
  position: relative;
  min-height: 245px;
  padding: 22px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #1a1412, #101010);
  overflow: hidden;
}

.apps-illustration:before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 16px;
}

.device-screen {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 190px;
  margin: auto;
  padding: 15px;
  border: 5px solid #302421;
  border-radius: 17px;
  background: #090909;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.device-screen:before {
  content: "";
  display: block;
  width: 45px;
  height: 3px;
  margin: 0 auto 17px;
  border-radius: 4px;
  background: #4a332d;
}

.device-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.device-tile {
  height: 49px;
  border-radius: 8px;
  background: #211a18;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.device-tile svg {
  width: 20px;
  height: 20px;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
}

.platform-badge svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.app-card {
  padding: 22px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.app-card > div:nth-child(2) h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.app-card > div:nth-child(2) p {
  margin: 0;
}

.app-card .feature-icon {
  margin-bottom: 14px;
}

.app-card .btn {
  margin-top: 12px;
}

.app-card .setup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}

.app-card .setup-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 9px;
  align-items: start;
  padding: 11px 12px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.app-card .setup-step strong {
  grid-row: span 2;
  margin: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
}

.app-card .setup-step h4 {
  margin: 1px 0 3px;
  font-size: 14px;
}

.app-card .setup-step p {
  line-height: 1.45;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.setup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.setup-step {
  padding: 18px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.setup-step strong {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  margin-bottom: 12px;
}

.setup-step h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.setup-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* --- Login --- */
.login {
  max-width: 470px;
  margin: 30px auto 90px;
}

.login .mark {
  margin: auto;
}

.login h1 {
  font-size: 42px;
  text-align: center;
  margin: 20px 0 9px;
}

.login > p {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.login .form-card {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

/* --- WebTV Showcase & Player Mockup --- */
.webtv-player {
  position: relative;
  border-radius: 24px;
  border: var(--border-width, 1px) solid var(--line);
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 9;
  max-width: 920px;
  margin: 0 auto 50px;
}

.webtv-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, #201411 0%, #090909 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.webtv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 45%, rgba(0, 0, 0, 0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 26px;
}

.webtv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.webtv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  border-radius: 8px;
  letter-spacing: 0.08em;
}

.webtv-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.webtv-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.webtv-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.webtv-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.webtv-btn svg {
  width: 18px;
  height: 18px;
}

.webtv-channel-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.webtv-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #c4502a;
  display: grid;
  place-items: center;
  font-weight: 850;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* --- Selector de Períodos de Precios (WebTV) --- */
.billing-switch-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 35px;
}

.billing-switch {
  display: inline-flex;
  background: var(--surface);
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 99px;
  padding: 6px;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.billing-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 750;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-btn:hover {
  color: var(--text);
}

.billing-btn:disabled,
.billing-btn:disabled:hover {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.billing-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.32);
}

.billing-badge {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 850;
}

.billing-btn.active .billing-badge {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* --- Grid de 5 planes --- */
.plans-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
}

/* --- Footer Mejorado y Completo --- */
footer {
  border-top: var(--border-width, 1px) solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%),
              linear-gradient(180deg, #16120e 0%, #0d0a08 100%);
  padding: 68px 0 28px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 13.5px;
}

.footer p {
  max-width: 320px;
  line-height: 1.65;
  margin: 14px 0 18px;
}

.footer h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer h4::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.85;
}

/* Columna de Navegación Vertical Organizada */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-nav-col .footer-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav-col .footer-link:hover {
  color: #fff;
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.22);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Compatibilidad con otros enlaces genéricos del footer */
.footer a:not(.footer-link):not(.brand):not(.footer-contact-item) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0;
  padding: 3px 0;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer a:not(.footer-link):not(.brand):not(.footer-contact-item):hover {
  color: #fff;
  transform: translateX(3px);
}

/* Micro-tarjetas de Atención Directa */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.025);
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 10px;
  color: var(--text) !important;
  text-decoration: none;
  transition: all 0.22s ease !important;
}

.footer-contact-item:hover {
  background: rgba(var(--primary-rgb), 0.08) !important;
  border-color: rgba(var(--primary-rgb), 0.35) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: background 0.22s ease, color 0.22s ease;
}

.footer-contact-item:hover .footer-contact-icon {
  background: var(--primary);
  color: #fff;
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.footer-contact-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.footer-contact-val {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
}

.footer-contact-item:hover .footer-contact-val {
  color: #fff;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(var(--success-rgb), 0.08);
  border: 1px solid rgba(var(--success-rgb), 0.22);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--success-rgb), 0.25);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  50% {
    box-shadow: 0 0 0 7px rgba(var(--success-rgb), 0);
  }
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.payment-pill {
  padding: 5px 10px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, background 0.2s;
}

.payment-pill:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--primary-rgb), 0.08);
  color: #fff;
}

.footer-bottom {
  border-top: var(--border-width, 1px) solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a {
  color: var(--muted);
  margin: 0;
  font-size: 12.5px;
}

.footer-legal a:hover {
  color: var(--primary);
  transform: none;
}

/* --- Animaciones Reveal --- */
.reveal {
  animation: reveal 0.65s both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- Media Queries Responsive --- */
@media (min-width: 961px) {
  .mobile-panel {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .plans-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .navlinks {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .topbar .mobile-panel.open {
    position: fixed;
    top: 68px;
    left: 15px;
    right: 15px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    width: auto;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .actions .btn {
    display: none;
  }
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .hero {
    padding-top: 72px;
  }
  .visual {
    max-width: 580px;
    height: 540px;
    min-height: 540px;
    margin: 20px auto 0;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .channel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .plans,
  .plans-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan.popular {
    transform: none;
  }
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 610px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .nav {
    min-height: 67px;
  }
  .hero {
    min-height: 0;
    padding: 64px 0 72px;
  }
  .hero #slider {
    display: grid;
    grid-template-areas: "slide";
    align-items: start;
    min-height: 330px;
    height: auto;
  }
  .hero #slider .slide {
    grid-area: slide;
    min-height: 0;
  }
  .hero-grid {
    min-height: 0;
  }
  .slide h1,
  .hero h1 {
    font-size: clamp(28px, 6.8vw, 36px);
    line-height: 1.12;
    min-height: 2.3em;
  }
  .hero-copy {
    font-size: 15px;
  }
  .proof {
    gap: 15px;
  }
  .visual {
    width: 100%;
    max-width: 100%;
    height: 500px;
    min-height: 500px;
    padding: 0;
    margin: 16px 0 0;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.08) 0%, rgba(26, 21, 16, 0.7) 50%, rgba(19, 16, 12, 0.9) 100%);
    border: 1.5px solid rgba(var(--primary-rgb), 0.18);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 25px rgba(var(--primary-rgb), 0.08);
  }
  .visual-canvas {
    width: 100%;
    height: 100%;
    min-height: 500px;
  }
  .visual-orbit-ring.ring-1 {
    width: 170px;
    height: 170px;
  }
  .visual-orbit-ring.ring-2 {
    width: 310px;
    height: 310px;
  }
  .v-node-clientes     { left: 50%; top: 11%; }
  .v-node-lineas       { left: 79%; top: 28%; }
  .v-node-renovaciones { left: 76%; top: 73%; }
  .v-node-tickets      { left: 24%; top: 73%; }
  .v-node-servidores   { left: 21%; top: 28%; }
  .v-node-marca        { left: 50%; top: 50%; }

  .v-node-card {
    padding: 9px 13px;
    gap: 9px;
    border-radius: 14px;
  }
  .v-node-icon {
    width: 33px;
    height: 33px;
    min-width: 33px;
    border-radius: 10px;
  }
  .v-node-icon svg {
    width: 17px;
    height: 17px;
  }
  .v-node-title {
    font-size: 12px;
  }
  .v-node-sub {
    font-size: 9.5px;
  }
  .v-card-hub {
    padding: 12px 18px;
    border-radius: 16px;
    gap: 11px;
  }
  .v-icon-hub {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
  }
  .v-icon-hub svg {
    width: 20px;
    height: 20px;
  }
  .v-card-hub .v-node-title {
    font-size: 13.5px;
  }
  .v-card-hub .v-node-sub {
    font-size: 10.5px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 35px 0;
  }
  .stat strong {
    font-size: 31px;
  }
  .section {
    padding: calc(67px * var(--spacing-scale)) 0;
  }
  .features,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    margin-bottom: 35px;
  }
  .page-head {
    padding: 59px 0 38px;
  }
  .page-head h1 {
    font-size: 51px;
  }
  .catalog-head {
    display: block;
  }
  .search {
    width: 100%;
    margin-top: 22px;
  }
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta {
    margin-bottom: 58px;
    padding: 50px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-legal {
    justify-content: center;
  }
  .device-screen {
    width: 90%;
  }
  .setup {
    grid-template-columns: 1fr;
  }
  .setup-step {
    padding: 14px;
  }
  .plans,
  .plans-5 {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: 21px;
  }
  .plan .price {
    font-size: 41px;
  }
  .plan.popular {
    transform: none;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-card .setup {
    grid-template-columns: 1fr;
  }
  .list-item {
    padding: 14px;
  }
  .webtv-overlay {
    padding: 14px 16px;
  }
  .webtv-bottom {
    gap: 10px;
  }
}

/* ==========================================================================
   FORM-CONTROL GLOBAL ULTRA-PROFESIONAL (CINEMA OTT WARM PALETTE)
   ========================================================================== */
.form-control {
  width: 100%;
  background: linear-gradient(180deg, #14111c 0%, #0d0b12 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: #fbf1e3;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: var(--font-body, inherit);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.form-control:hover:not(:disabled) {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(180deg, #181522 0%, #100e16 100%);
}

.form-control:focus {
  border-color: var(--primary, #ee6844);
  background: #15121e;
  box-shadow: 
    0 0 0 3.5px rgba(var(--primary-rgb), 0.22),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(166, 155, 144, 0.55);
  font-size: 13px;
  font-weight: 400;
}

select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f4ad68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px !important;
  padding-right: 42px !important;
  cursor: pointer;
}

select.form-control option {
  background-color: #16131f;
  color: #fbf1e3;
  padding: 10px 14px;
}

/* Checkbox Personalizado Global (Cinema OTT Warm Palette) */
input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 17px !important;
  height: 17px !important;
  border: 1.5px solid rgba(var(--accent-rgb), 0.35) !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  position: relative !important;
  outline: none !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease !important;
}

input[type="checkbox"]:hover:not(:disabled) {
  border-color: var(--primary, #ee6844) !important;
  background: rgba(var(--primary-rgb), 0.14) !important;
  transform: scale(1.05);
}

input[type="checkbox"]:focus-visible {
  border-color: var(--primary, #ee6844) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.28) !important;
}

input[type="checkbox"]:checked {
  background-color: var(--primary, #ee6844) !important;
  border-color: var(--primary, #ee6844) !important;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.38) !important;
}

input[type="checkbox"]:checked::after {
  content: "" !important;
  width: 4.5px !important;
  height: 8.5px !important;
  border: solid #ffffff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) translate(-0.5px, -1px) !important;
  display: block !important;
}

input[type="checkbox"]:indeterminate {
  background-color: var(--primary, #ee6844) !important;
  border-color: var(--primary, #ee6844) !important;
}

input[type="checkbox"]:indeterminate::after {
  content: "" !important;
  width: 8px !important;
  height: 2px !important;
  background-color: #ffffff !important;
  border-radius: 1px !important;
  display: block !important;
}

input[type="checkbox"]:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* Clases utilitarias globales libres de estilos inline */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mobile-cta-btn {
  margin-top: 8px;
}

.hidden {
  display: none !important;
}


/* Utilidades globales de espaciado y alineación libre de inline styles */
.section-pad-top-20 {
  padding-top: 20px;
}

.faq-footer-action {
  text-align: center;
  margin-top: 38px;
}

/* --- Documentos Legales (Privacidad y Términos) --- */
.legal-container {
  max-width: 880px;
  margin: 0 auto 70px;
}

.legal-card {
  background: var(--surface);
  border: var(--border-width, 1px) solid var(--line);
  border-radius: var(--radius);
  padding: 34px 38px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.legal-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-card h2 .legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.legal-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-card ul li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.legal-card ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-highlight-box {
  background: rgba(var(--primary-rgb), 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 16px 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.65;
}

.legal-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: var(--border-width, 1px) solid var(--line);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* --- Espaciados de Sección Auxiliares --- */
.section-pad-top-25 {
  padding-top: 25px;
}

.section-pad-top-15 {
  padding-top: 15px;
}

.section-pad-top-0 {
  padding-top: 0;
}

/* ==========================================================================
   ANUNCIOS, MODALES Y BARRA DE AVISO SUPERIOR (WEBCONTENT PROMOS)
   ========================================================================== */

@keyframes promoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes promoModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes promoSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* --- Barra de Aviso / Advertencia Superior (Topbar) --- */
#promo-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: rgba(22, 17, 13, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-width, 1px) solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  animation: promoSlideDown 0.3s ease-out;
  box-sizing: border-box;
}

#promo-topbar.closing {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#promo-topbar .pb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(var(--primary-rgb), 0.18);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  color: var(--primary);
  flex: none;
}

#promo-topbar .pb-badge.badge-warning {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--gold);
}

#promo-topbar .pb-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  border: var(--border-width, 1px) solid var(--line);
}

#promo-topbar .pb-txt {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  justify-content: center;
  font-size: 13px;
  line-height: 1.4;
}

#promo-topbar .pb-title {
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

#promo-topbar .pb-msg {
  color: var(--muted-light, #d9b594);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#promo-topbar .promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 750;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#promo-topbar .promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.5);
}

#promo-topbar .promo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: var(--border-width, 1px) solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  flex: none;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

#promo-topbar .promo-close:hover {
  background: rgba(var(--primary-rgb), 0.25);
  border-color: var(--primary);
  color: #fff;
}

/* --- Overlay del Modal --- */
#promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 8, 6, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  padding: 24px;
  box-sizing: border-box;
  animation: promoFadeIn 0.25s ease-out;
  overflow-y: auto;
}

#promo-overlay.closing {
  opacity: 0;
  transition: opacity 0.22s ease;
}

#promo-overlay.closing #promo-box {
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Posicionamiento dinámico del modal */
#promo-overlay.pos-center {
  align-items: center;
  justify-content: center;
}

#promo-overlay.pos-top {
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
}

#promo-overlay.pos-bottom {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 50px;
}

#promo-overlay.pos-top-right {
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 50px;
  padding-right: 40px;
}

#promo-overlay.pos-bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 50px;
  padding-right: 40px;
}

#promo-overlay.pos-bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 50px;
  padding-left: 40px;
}

/* Caja de contenido del modal */
#promo-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  border: var(--border-width, 1px) solid var(--line);
  border-radius: var(--radius, 18px);
  background: var(--surface-2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
  overflow: hidden;
  animation: promoModalIn 0.28s ease-out;
  display: flex;
  flex-direction: column;
}

#promo-box .promo-img-wrap {
  width: 100%;
  max-height: 190px;
  overflow: hidden;
  background: var(--surface-3);
  position: relative;
}

#promo-box .promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#promo-box .promo-content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#promo-box .promo-title {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.015em;
}

#promo-box .promo-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-light, #d9b594);
}

#promo-box .promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-top: 4px;
}

#promo-box .promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.5);
}

#promo-box .promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 11, 9, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

#promo-box .promo-close:hover {
  transform: rotate(90deg);
  background: var(--primary);
  border-color: var(--primary);
}

/* --- Notificación Flotante (Toast / Alerta) --- */
#promo-alerta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  max-width: 380px;
  width: calc(100% - 48px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius, 16px);
  background: var(--surface-2);
  border: var(--border-width, 1px) solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: promoModalIn 0.28s ease-out;
  box-sizing: border-box;
}

#promo-alerta .al-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  border: var(--border-width, 1px) solid var(--line);
}

#promo-alerta .al-body {
  flex: 1;
  min-width: 0;
}

#promo-alerta .al-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

#promo-alerta .al-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

#promo-alerta .promo-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
}

#promo-alerta .promo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: var(--border-width, 1px) solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  flex: none;
  padding: 0;
}

/* --- Banner Integrado --- */
#promo-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: var(--radius, 16px);
  background: var(--surface-2);
  border: var(--border-width, 1px) solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  margin: 16px auto;
  max-width: 1200px;
  box-sizing: border-box;
}

#promo-banner .bn-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

#promo-banner .bn-text {
  flex: 1;
  min-width: 200px;
}

#promo-banner .bn-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

#promo-banner .bn-sub {
  font-size: 13px;
  color: var(--muted);
}

#promo-banner .promo-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

/* Selector de Idioma Multilenguaje */
.lang-switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: var(--border-width, 1px) solid var(--line);
  padding: 4px 8px;
  border-radius: 20px;
  user-select: none;
  flex-shrink: 0;
}

.lang-switcher-pill .lang-globe-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-right: 2px;
}

.lang-switcher-pill .lang-divider {
  color: var(--line);
  font-size: 11px;
}

.lang-opt-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-opt-btn:hover {
  color: #fff;
}

.lang-opt-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.35);
}



/* ==========================================================================
   SELECTORES DE IDIOMA Y MONEDA EN PIE DE PÁGINA (DROPDOWNS INTERACTIVOS)
   ========================================================================== */
.footer-selectors-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.footer-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: var(--border-width, 1px) solid var(--line);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.footer-drop-trigger:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.footer-drop-trigger .drop-globe-icon {
  color: var(--gold);
}

.footer-drop-trigger .curr-icon-tag {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.footer-drop-trigger .drop-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.footer-dropdown:hover .drop-chevron,
.footer-dropdown.open .drop-chevron {
  transform: rotate(180deg);
}

.footer-drop-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: var(--border-width, 1px) solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  padding: 6px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

.footer-drop-menu::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  height: 16px;
  bottom: -12px;
}

.footer-dropdown:hover .footer-drop-menu,
.footer-dropdown.open .footer-drop-menu {
  display: flex;
}

.footer-drop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.footer-drop-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.footer-drop-item.active {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
}

.footer-drop-item .lang-flag-badge,
.footer-drop-item .curr-symbol-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.footer-drop-item .drop-check {
  margin-left: auto;
  color: var(--green);
}


/* ==========================================================================
   Rendimiento: backdrop-filter y animaciones
   ========================================================================== */

/* Dispositivos sin aceleración GPU o navegadores que no componen
   backdrop-filter por hardware (Firefox en muchos casos):
   degradar a fondo sólido semi-opaco sin perder legibilidad. */
@supports not (backdrop-filter: blur(1px)) {
  .topbar {
    background: rgba(12, 10, 8, 0.97);
  }
  .mobile-panel {
    background: rgba(18, 18, 18, 0.99);
  }
}

/* Dispositivos de baja potencia (TV boxes, móviles <768px con pantalla
   de baja densidad): desactivar todos los backdrop-filter. */
@media (max-resolution: 1.5dppx) and (max-width: 768px) {
  .topbar,
  .mobile-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Respetar preferencia de sistema por movimiento reducido:
   desactivar backdrop-filter y detener animaciones decorativas. */
@media (prefers-reduced-motion: reduce) {
  .topbar,
  .mobile-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }
  /* Detener animaciones de fondo y decorativas — no afecta transiciones
     esenciales para la UX (tooltips, modales) */
  .status-dot,
  .dot,
  .pulse-btn,
  .pulse-green,
  .float {
    animation: none !important;
  }
}
