/* ==========================================================
   Noche de mercado — estilos
   Móvil primero (375 px) y luego escritorio.
   ========================================================== */

:root {
  --fondo: #07070a;
  --superficie: #111116;
  --superficie-2: #18181f;
  --borde: #26262f;
  --borde-suave: rgba(255, 255, 255, 0.08);
  --texto: #f4f1ea;
  --texto-2: #a9a6b2;
  --naranja: #ff7a1a;
  --naranja-hover: #ff9440;
  --violeta: #7c4dff;
  --verde: #3ddc84;

  --fuente-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --fuente-texto: "Segoe UI Variable Text", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radio: 18px;
  --gutter: 16px;
  --ancho: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; }

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

.salto {
  position: absolute; left: -9999px; top: 0;
  background: var(--naranja); color: var(--fondo);
  padding: 12px 16px; z-index: 100; font-weight: 700;
}
.salto:focus { left: 16px; top: 16px; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--fuente-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 9vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 16px; }
.secundario { color: var(--texto-2); }

.antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja-hover);
  margin-bottom: 12px;
}
.punto {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15);
}

.numero {
  display: block;
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 148, 64, 0.55);
  margin-bottom: 4px;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .2s, box-shadow .25s, transform .2s;
}
.boton-principal {
  background: var(--naranja);
  color: #120a03;
}
.boton-principal:hover {
  background: var(--naranja-hover);
  box-shadow: 0 0 32px rgba(255, 122, 26, 0.45);
  transform: translateY(-1px);
}
.boton-secundario {
  border: 1px solid var(--borde);
  color: var(--texto);
  background: rgba(255, 255, 255, 0.02);
}
.boton-secundario:hover { border-color: rgba(255, 122, 26, 0.6); box-shadow: 0 0 24px rgba(255, 122, 26, 0.15); }
.boton svg { width: 20px; height: 20px; flex: none; }

.riesgo {
  font-size: 0.82rem;
  color: var(--texto-2);
  margin: 10px 0 0;
}

.acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Barra de promo ---------- */
.barra-promo {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #1a0d04, #2a1408 50%, #1a0d04);
  border-bottom: 1px solid rgba(255, 122, 26, 0.35);
  font-size: 0.85rem;
  text-align: center;
  padding: 9px var(--gutter);
}
.barra-promo a { color: var(--naranja-hover); font-weight: 700; }
.barra-promo .calabaza { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-right: 6px; color: var(--naranja); }

/* ---------- Cabecera ---------- */
.cabecera {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.marca {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}
.marca svg { width: 20px; height: 20px; color: var(--naranja); }
.cabecera nav { display: none; }
.cabecera nav a {
  color: var(--texto-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 12px 10px;
}
.cabecera nav a:hover { color: var(--texto); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 16px 0 64px;
  isolation: isolate;
}
.estrellas {
  position: absolute; inset: 0; z-index: -3;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 46% 26%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 64% 12%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 82% 34%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 8% 44%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 38% 52%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 92% 6%, rgba(255,255,255,.6), transparent);
  animation: titilar 6s ease-in-out infinite alternate;
}
@keyframes titilar { from { opacity: .6; } to { opacity: 1; } }
.luna {
  position: absolute;
  z-index: -2;
  width: 220px; height: 220px;
  top: -40px; right: -70px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 38%, rgba(0,0,0,.06) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 60%, rgba(0,0,0,.07) 0 6%, transparent 7%),
    radial-gradient(circle at 55% 30%, rgba(0,0,0,.05) 0 4%, transparent 5%),
    radial-gradient(circle at 40% 40%, #fff3e2 0%, #ffd9ac 45%, #f7b57a 70%, #e98f4c 100%);
  box-shadow: 0 0 80px 20px rgba(255, 122, 26, 0.35), 0 0 220px 60px rgba(124, 77, 255, 0.18);
  opacity: 0.85;
}
.ramas {
  position: absolute; z-index: -1;
  top: 0; left: -20px;
  width: 260px;
  fill: none;
  stroke: #000;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .9;
}
.niebla {
  position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 0; height: 260px;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(169, 166, 178, 0.10), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(124, 77, 255, 0.10), transparent 60%),
    linear-gradient(to top, var(--fondo) 5%, rgba(7, 7, 10, 0.5) 55%, transparent);
}
.murcielagos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.murcielago {
  position: absolute;
  left: 0;
  width: 26px;
  fill: #1b1922;
  animation: vuelo linear infinite;
}
.murcielago:nth-child(1) { top: 14%; animation-duration: 34s; }
.murcielago:nth-child(2) { top: 22%; width: 18px; animation-duration: 40s; animation-delay: -12s; }
.murcielago:nth-child(3) { top: 9%;  width: 14px; animation-duration: 28s; animation-delay: -20s; }
.murcielago:nth-child(4) { top: 30%; width: 20px; animation-duration: 37s; animation-delay: -6s; }
.murcielago:nth-child(5) { top: 18%; width: 12px; animation-duration: 31s; animation-delay: -26s; }
@keyframes vuelo {
  0%   { transform: translate(-10vw, 0) scaleY(1); }
  20%  { transform: translate(20vw, -14px) scaleY(.6); }
  40%  { transform: translate(45vw, 6px) scaleY(1); }
  60%  { transform: translate(70vw, -10px) scaleY(.6); }
  80%  { transform: translate(95vw, 4px) scaleY(1); }
  100% { transform: translate(115vw, 0) scaleY(.7); }
}

.hero-rejilla { display: grid; gap: 40px; align-items: center; }
.hero h1 .acento { color: var(--naranja); display: block; }
.hero-sub { font-size: 1.08rem; color: var(--texto-2); max-width: 38ch; }

/* ---------- Marco de celular (videos e imágenes) ---------- */
.marco-video {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, #22202a, #0c0c10);
  border: 1px solid var(--borde-suave);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 77, 255, 0.14);
}
.marco-video video,
.marco-video img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 22px;
  background: #000;
}
.marco-chico { max-width: 250px; }
.marco-hero { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(255, 122, 26, 0.22); }
.marco-video figcaption {
  font-size: 0.8rem;
  color: var(--texto-2);
  text-align: center;
  padding: 10px 8px 4px;
}

/* ---------- Cifras ---------- */
.cifras {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  background: var(--superficie);
  overflow: hidden;
}
.cifras li { padding: 20px 16px; border: 0 solid var(--borde-suave); }
.cifras li:nth-child(odd) { border-right-width: 1px; }
.cifras li:nth-child(-n+2) { border-bottom-width: 1px; }
.cifras strong {
  display: block;
  font-family: var(--fuente-display);
  font-size: 2rem; line-height: 1.1;
  color: var(--naranja-hover);
}
.cifras span { font-size: 0.88rem; color: var(--texto-2); }

/* ---------- Secciones ---------- */
.seccion { padding: 72px 0; border-top: 1px solid var(--borde-suave); scroll-margin-top: 48px; }
.cifras + .seccion, .contenedor + .seccion { border-top: 0; }
.seccion-cabeza { max-width: 680px; margin-bottom: 36px; }
.dos-columnas { display: grid; gap: 24px; }

.tarjeta {
  background: linear-gradient(180deg, var(--superficie-2), var(--superficie));
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 24px;
}

/* 02 — No es lo de siempre */
.lista-no { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--borde); }
.lista-no li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--borde);
  font-weight: 600;
}
.lista-no li::before { content: ""; width: 14px; height: 1px; background: var(--naranja); flex: none; }
.dos-columnas .secundario { padding: 16px 0; border-bottom: 1px solid var(--borde); }

/* 03 — Bots en alternancia */
.bot {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
}
.bot + .bot { border-top: 1px dashed var(--borde); }
.bot dl { display: grid; gap: 14px; margin: 20px 0; }
.bot dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-2); }
.bot dd { margin: 4px 0 0; }

/* Productos individuales */
.producto { display: grid; gap: 32px; align-items: center; }
.precio {
  font-family: var(--fuente-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 12px;
}
.precio small { font-family: var(--fuente-texto); font-size: 0.9rem; font-weight: 500; color: var(--texto-2); }
.aviso {
  border-left: 2px solid var(--naranja);
  background: rgba(255, 122, 26, 0.06);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
  color: var(--texto-2);
  margin: 16px 0;
}
.lista-check { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.lista-check li { position: relative; padding-left: 28px; }
.lista-check li::before {
  content: "";
  position: absolute; left: 4px; top: 0.45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--naranja);
  border-bottom: 2px solid var(--naranja);
  transform: rotate(-45deg);
}

/* 06 — Combo Halloween */
.combo {
  position: relative;
  border: 1px solid rgba(255, 122, 26, 0.55);
  border-radius: 24px;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.18), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(124, 77, 255, 0.14), transparent 50%),
    var(--superficie);
  box-shadow: 0 0 70px rgba(255, 122, 26, 0.14);
  overflow: hidden;
}
.telarana {
  position: absolute; top: 0; right: 0;
  width: 130px; height: 130px;
  stroke: rgba(244, 241, 234, 0.25);
  fill: none;
  pointer-events: none;
}
.arana {
  position: absolute; top: 0; right: 92px;
  display: flex; flex-direction: column; align-items: center;
  color: #2a2733;
  animation: colgar 5s ease-in-out infinite alternate;
  transform-origin: top center;
  pointer-events: none;
}
.arana .hilo { width: 1px; height: 54px; background: rgba(244, 241, 234, 0.25); }
.arana svg { width: 20px; height: 20px; color: #3a3644; }
@keyframes colgar { from { transform: translateY(-10px) rotate(-3deg); } to { transform: translateY(6px) rotate(3deg); } }
.sello {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--naranja-hover);
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.sello svg { width: 16px; height: 16px; }
.fecha-fin { color: var(--texto); font-weight: 600; }
.combo-rejilla { display: grid; gap: 32px; align-items: center; }
.finalizada { display: none; }
.promo-terminada [data-promo] { display: none !important; }
.promo-terminada .finalizada { display: block; }

/* 07 — Incluye */
.incluye {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  counter-reset: inc;
}
.incluye li {
  counter-increment: inc;
  display: grid; grid-template-columns: 44px 1fr; gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--borde);
  font-weight: 500;
}
.incluye li::before {
  content: counter(inc, decimal-leading-zero);
  font-family: var(--fuente-display);
  color: var(--naranja-hover);
  font-size: 1.2rem;
}

/* 08 — Instalación */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: paso; }
.pasos li {
  counter-increment: paso;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 18px;
  border: 1px solid var(--borde-suave);
  border-radius: 16px;
  background: var(--superficie);
}
.pasos li::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--fuente-display);
  font-size: 1.5rem;
  color: var(--naranja);
}
.pasos strong { display: block; }
.pasos span { color: var(--texto-2); font-size: 0.95rem; }
.instalacion-rejilla { display: grid; gap: 40px; align-items: center; }

/* Comunidad — galería */
.galeria {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--borde) transparent;
}
.galeria figure {
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--borde-suave);
  border-radius: 16px;
  background: var(--superficie);
  overflow: hidden;
}
.galeria img, .galeria video { width: 100%; }
.galeria video { aspect-ratio: 464 / 832; object-fit: cover; background: #000; }
.galeria figcaption {
  padding: 10px 14px 12px;
  font-size: 0.85rem;
  color: var(--texto-2);
  border-top: 1px solid var(--borde-suave);
}

/* 09 — Precios */
.rejilla-precios { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 26px 22px; }
.plan h3 { font-size: 1.5rem; }
.plan .lista-check { flex: 1; font-size: 0.95rem; }
.plan .boton { width: 100%; }
.plan-destacado { border-color: rgba(255, 122, 26, 0.6); box-shadow: 0 0 50px rgba(255, 122, 26, 0.14); }
.plan-halloween { border-color: rgba(124, 77, 255, 0.45); }
.etiqueta {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--naranja); color: #120a03;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.etiqueta-halloween { background: rgba(124, 77, 255, 0.2); color: #d9ccff; }

/* 10 — Quién está detrás */
.quien { display: grid; gap: 32px; align-items: center; }
.quien-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.quien-fotos img { border-radius: 16px; border: 1px solid var(--borde-suave); }
.quien-fotos img:last-child { margin-top: 36px; }

/* 11 — Preguntas */
.preguntas { display: grid; max-width: 760px; border-top: 1px solid var(--borde); }
.preguntas details { border-bottom: 1px solid var(--borde); }
.preguntas summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  position: relative;
  min-height: 48px;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  color: var(--naranja); font-size: 1.5rem; font-weight: 300;
  transition: transform .2s;
}
.preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.preguntas details p { padding: 0 0 20px; margin: 0; color: var(--texto-2); }

/* 12 — CTA final */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 96px 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 122, 26, 0.18), transparent 60%);
  border-top: 1px solid var(--borde-suave);
}
.calabaza-grande {
  position: absolute; left: 50%; bottom: -60px;
  width: 260px; height: 260px;
  transform: translateX(-50%);
  color: rgba(255, 122, 26, 0.12);
  pointer-events: none;
}
.cta-final .acciones { justify-content: center; }

/* 13 — Pie */
.pie {
  border-top: 1px solid var(--borde-suave);
  padding: 48px 0 120px;
  font-size: 0.88rem;
  color: var(--texto-2);
}
.pie h2 { font-family: var(--fuente-texto); font-size: 1rem; color: var(--texto); letter-spacing: 0; }
.pie ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pie a { display: inline-block; padding: 8px 0; }
.pie .riesgo-completo { max-width: 760px; }

/* 14 — WhatsApp flotante */
.wa-flotante {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde);
  color: #04140a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(61, 220, 132, 0.15);
  transition: transform .2s, opacity .3s;
}
.wa-flotante:hover { transform: scale(1.06); }
.wa-flotante svg { width: 28px; height: 28px; }
.wa-flotante.oculto { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ==========================================================
   Mejoras v3: celular, bots con identidad, reproductores, Halloween
   Solo se animan transform y opacity.
   ========================================================== */
:root {
  --ambar: #ffb020;
  --violeta-bot: #a78bfa;
  --cian: #22d3ee;
}

/* Texto nunca menor a 14 px */
.riesgo, .marco-video figcaption, .galeria figcaption, .pie, .barra-promo { font-size: 0.875rem; }
.antetitulo { font-size: 0.875rem; letter-spacing: 0.1em; }
.etiqueta { font-size: 0.875rem; letter-spacing: 0.04em; text-transform: none; }

.sello { font-size: 0.875rem; }
.barra-promo a, .marco-cel figcaption a {
  display: inline-block;
  padding: 14px 4px;
  margin: -14px -4px;
}

.brillo-texto {
  background: linear-gradient(90deg, #ff7a1a 0%, #ffb347 55%, #ffd27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Primera pantalla en el celular ---------- */
.hero-oferta {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--texto);
  border: 1px solid rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.08);
  border-radius: 999px;
  padding: 8px 16px;
  margin: 0 0 18px;
}
.hero-texto .hero-sub { margin-top: 28px; }
@media (max-width: 759px) {
  .hero { padding-top: 8px; }
  .hero h1 { font-size: clamp(2.05rem, 9.6vw, 2.6rem); margin-bottom: 14px; }
  .hero-texto { min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: center; }
  .hero-texto .boton-principal { width: 100%; }
  .hero-texto > .antetitulo { align-self: flex-start; }
  .hero-texto .boton-secundario { align-self: flex-start; }
  .wa-flotante { display: none; }
}

/* ---------- Hero: velas con llamitas, niebla lenta, órbita ---------- */
.velas {
  position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 40px;
  width: 100%; height: 140px;
  opacity: 0.55;
}
.vela-cuerpos path { stroke: #3a3644; stroke-width: 1.5; }
.vela-cuerpos rect { fill: #24212c; stroke: #4a4555; stroke-width: 1; }
.vela-cuerpos rect.baja { fill: #1a1820; }
.llamas ellipse {
  fill: #ffb347;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: llama 1.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px #ff7a1a);
}
.llamas ellipse:nth-child(2n) { animation-duration: 1.2s; }
.llamas ellipse:nth-child(3n) { animation-delay: -0.6s; }
@keyframes llama { from { transform: scale(0.8, 0.9); opacity: 0.75; } to { transform: scale(1.1, 1.25); opacity: 1; } }

.niebla-capa {
  position: absolute; left: -50%; bottom: 0;
  width: 200%; height: 140px;
  background:
    radial-gradient(ellipse 30% 60% at 20% 100%, rgba(200, 196, 214, 0.10), transparent 70%),
    radial-gradient(ellipse 25% 50% at 60% 100%, rgba(200, 196, 214, 0.08), transparent 70%),
    radial-gradient(ellipse 30% 55% at 90% 100%, rgba(124, 77, 255, 0.10), transparent 70%);
  animation: niebla 40s linear infinite alternate;
}
@keyframes niebla { from { transform: translateX(0); } to { transform: translateX(25%); } }

.hero-visual { position: relative; display: grid; place-items: center; padding: 24px 0; }
.orbita {
  position: absolute;
  width: min(340px, 92vw); aspect-ratio: 1;
  display: grid; place-items: center;
  pointer-events: none;
}
.nucleo {
  position: absolute;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.55), rgba(255, 122, 26, 0.18) 45%, transparent 70%);
  animation: latido 4s ease-in-out infinite alternate;
}
@keyframes latido { from { transform: scale(0.9); opacity: 0.7; } to { transform: scale(1.08); opacity: 1; } }
.anillos, .rayos { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.anillos circle { stroke: rgba(255, 179, 71, 0.18); stroke-width: 1; stroke-dasharray: 2 6; }
.anillos .anillo-2 { stroke: rgba(167, 139, 250, 0.16); }
.rayos path { stroke: rgba(255, 179, 71, 0.22); stroke-width: 1; }
.giro { position: absolute; inset: 0; animation: orbitar 36s linear infinite; }
@keyframes orbitar { to { transform: rotate(360deg); } }
.planeta {
  position: absolute;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 17, 22, 0.9);
  border: 1px solid currentColor;
  box-shadow: 0 0 22px currentColor;
  animation: contragiro 36s linear infinite;
}
.planeta svg { width: 22px; height: 22px; }
.pl-1 { left: 50%; top: 5.9%; color: var(--ambar); }
.pl-2 { left: 88.2%; top: 72%; color: var(--violeta-bot); }
.pl-3 { left: 11.8%; top: 72%; color: var(--cian); }
@keyframes contragiro { to { transform: rotate(-360deg); } }
.trazo { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Marco de celular y reproductor ---------- */
.marco-cel {
  position: relative;
  width: 78%;
  max-width: 300px;
  margin: 0 auto;
  z-index: 1;
}
.marco-cel::before {
  content: "";
  position: absolute; inset: 10% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.32), transparent);
}
.marco-cel .pantalla {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 9px solid #1a1920;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0b0e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.marco-cel .pantalla::after {
  content: "";
  position: absolute; top: 8px; left: 50%;
  width: 34%; height: 18px;
  margin-left: -17%;
  border-radius: 999px;
  background: #1a1920;
  z-index: 2;
  pointer-events: none;
}
.r-360 { aspect-ratio: 360 / 832; }
.r-464 { aspect-ratio: 464 / 832; }
.marco-cel .pantalla > video,
.marco-cel .pantalla > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marco-cel figcaption { font-size: 0.875rem; color: var(--texto-2); text-align: center; padding: 12px 4px 0; }
.marco-cel.marco-hero { width: 62%; max-width: 230px; box-shadow: none; }

.portada { display: none; }
.js .portada {
  position: absolute; inset: 0; z-index: 1;
  display: block;
  padding: 0; margin: 0; border: 0;
  background: #0b0b0e;
  cursor: pointer;
  color: var(--texto);
  text-align: left;
  font: inherit;
}
.js .portada[hidden] { display: none; }
.portada img { width: 100%; height: 100%; object-fit: cover; }
.portada::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 10, 0.95) 8%, rgba(7, 7, 10, 0.25) 55%, rgba(7, 7, 10, 0.45));
}
.portada-info {
  position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 1;
  display: grid; gap: 2px;
}
.portada-info strong { font-family: var(--fuente-display); font-size: 1.2rem; line-height: 1.15; }
.portada-info span { font-size: 0.875rem; color: var(--texto-2); }
.play {
  position: absolute; left: 50%; top: 45%; z-index: 1;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--naranja);
  color: #120a03;
  box-shadow: 0 0 0 10px rgba(255, 122, 26, 0.18), 0 0 40px rgba(255, 122, 26, 0.55);
  transition: transform .2s;
}
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.portada:hover .play, .portada:focus-visible .play { transform: scale(1.08); }
.tras-video {
  position: absolute; left: 12px; right: 12px; bottom: 64px; z-index: 3;
  font-size: 0.95rem;
}
.tras-video[hidden] { display: none; }

/* Carrusel horizontal (videos) */
.carrusel-videos { min-width: 0; }
.carrusel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 8px 4px 4px;
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > .marco-cel { width: 100%; max-width: none; scroll-snap-align: center; }
.puntos { display: flex; justify-content: center; gap: 8px; padding-top: 14px; }
.puntos span { width: 8px; height: 8px; border-radius: 50%; background: var(--borde); transition: transform .2s, opacity .2s; opacity: 0.8; }
.puntos span.activo { background: var(--naranja); transform: scale(1.3); opacity: 1; }

/* ---------- Bots: pestañas y paneles de vidrio ---------- */
.bot-ambar { --c: var(--ambar); }
.bot-violeta { --c: var(--violeta-bot); }
.bot-cian { --c: var(--cian); }

.pestanas { display: none; }
.js .pestanas {
  display: flex; gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 20px;
  padding: 4px var(--gutter);
  scroll-snap-type: x proximity;
}
.pestanas::-webkit-scrollbar { display: none; }
.pestana {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--texto-2);
  font-weight: 700;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color .2s, color .2s;
}
.pestana svg { width: 22px; height: 22px; color: var(--c); }
.pestana[aria-selected="true"] { color: var(--texto); border-color: var(--c); box-shadow: 0 0 24px -6px var(--c); }

.vidrio {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 26px;
  margin-bottom: 20px;
}
.vidrio::before {
  content: "";
  position: absolute; z-index: -2;
  left: 50%; top: 50%;
  width: 180%; aspect-ratio: 1;
  margin: -90% 0 0 -90%;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--c) 75%, transparent 90%);
  animation: girar 9s linear infinite;
}
.vidrio::after {
  content: "";
  position: absolute; inset: 1px; z-index: -1;
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 50%),
    rgba(15, 15, 20, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@keyframes girar { to { transform: rotate(360deg); } }
.brillo-dedo {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.panel-bot {
  display: grid; gap: 28px;
  padding: 28px 20px 32px;
}
.js .panel-bot[hidden] { display: none; }
.panel-cabeza { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.panel-bot .numero {
  font-size: clamp(4.5rem, 22vw, 8rem);
  -webkit-text-stroke: 1px var(--c);
  opacity: 0.55;
  margin: 0;
}
.panel-bot h3 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
.panel-bot .lista-check li::before { border-color: var(--c); }
.emblema {
  width: 64px; height: 64px;
  color: var(--c);
  filter: drop-shadow(0 0 10px var(--c));
}
.emblema .trazo { stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .revelar .emblema .trazo { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease .2s; }
.js .revelar.visible .emblema .trazo { stroke-dashoffset: 0; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 0.875rem; font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
}

/* ---------- Lápidas ---------- */
.lapidas { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.lapida {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 150px;
  padding: 28px 8px 18px;
  text-align: center;
  border-radius: 80px 80px 8px 8px;
  background: linear-gradient(180deg, #2a2733, #18171e);
  border: 1px solid #3a3644;
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.25), 0 14px 0 -6px #0e0d12;
}
.lapida:nth-child(2) { min-height: 172px; }
.lapida span { font-size: 0.875rem; color: var(--texto-2); }
.lapida strong { font-family: var(--fuente-display); font-size: 1.05rem; line-height: 1.2; }
.lapida .rip { position: absolute; top: 12px; font-size: 0.875rem; letter-spacing: 0.2em; color: #6a6476; }
.lapida strong + span { font-size: 0.875rem; line-height: 1.3; }
.lapidas-texto { margin: 18px 0 8px; font-weight: 600; color: var(--texto); }

/* ---------- Combo: cinta, brasas, calabaza tallada ---------- */
.cinta {
  position: absolute; top: 22px; left: -46px; z-index: 2;
  width: 190px;
  transform: rotate(-38deg);
  background: var(--naranja);
  color: #120a03;
  font-size: 0.875rem; font-weight: 800; text-align: center; letter-spacing: 0.04em;
  padding: 6px 0;
  box-shadow: 0 4px 18px rgba(255, 122, 26, 0.4);
}
.combo .sello { margin-top: 26px; }
.brasas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.brasas span {
  position: absolute; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 8px 2px rgba(255, 122, 26, 0.7);
  animation: brasa 7s linear infinite;
  opacity: 0;
}
.brasas span:nth-child(1) { left: 12%; animation-delay: 0s; }
.brasas span:nth-child(2) { left: 28%; animation-delay: -2s; animation-duration: 9s; }
.brasas span:nth-child(3) { left: 46%; animation-delay: -4s; }
.brasas span:nth-child(4) { left: 64%; animation-delay: -1s; animation-duration: 8s; }
.brasas span:nth-child(5) { left: 80%; animation-delay: -5s; }
.brasas span:nth-child(6) { left: 92%; animation-delay: -3s; animation-duration: 10s; }
@keyframes brasa {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-30px, -520px); opacity: 0; }
}
.calabaza-tallada {
  position: absolute; right: 14px; bottom: 14px;
  width: 92px;
  opacity: 0.9;
  pointer-events: none;
}
.calabaza-tallada .cuerpo { fill: #c2530c; }
.calabaza-tallada .gajo { fill: none; stroke: #8a3a08; stroke-width: 2; }
.calabaza-tallada .tallo { fill: none; stroke: #3d5a1e; stroke-width: 5; stroke-linecap: round; }
.calabaza-tallada .cara { fill: #ffd27a; filter: drop-shadow(0 0 6px #ffb347); animation: vela-cara 2.4s ease-in-out infinite alternate; }
@keyframes vela-cara { from { opacity: 0.75; } to { opacity: 1; } }
.combo-rejilla { position: relative; z-index: 1; }

/* ---------- Barra de promo: calabaza iluminada y cuenta ---------- */
.barra-promo { display: flex; align-items: center; justify-content: center; gap: 8px; }
.calabaza-luz { filter: drop-shadow(0 0 6px #ff7a1a); animation: vela-cara 2s ease-in-out infinite alternate; }
.cuenta { font-variant-numeric: tabular-nums; }

/* ---------- Casa embrujada (comunidad) ---------- */
.casa-embrujada { position: relative; padding-top: 40px; }
.casa {
  position: absolute; right: 0; top: 0; z-index: -1;
  width: min(420px, 90%);
  opacity: 0.6;
}
.casa-silueta, .arbol { fill: #121118; stroke: #24222c; stroke-width: 1; }
.arbol { fill: none; stroke: #121118; stroke-width: 5; stroke-linecap: round; }
.ventana { fill: #ff9440; filter: drop-shadow(0 0 6px #ff7a1a); animation: vela-cara 3s ease-in-out infinite alternate; }
.ventana.v2 { animation-delay: -1s; }
.ventana.v3 { animation-delay: -2s; }

/* ---------- Preguntas: calabacitas que giran ---------- */
.preguntas summary::after {
  content: "";
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 6.5c-5 0-8.5 3-8.5 6.75S7 20 12 20s8.5-3 8.5-6.75S17 6.5 12 6.5z'/%3E%3Cpath d='M12 6.5c-2 0-3.2 3-3.2 6.75S10 20 12 20s3.2-3 3.2-6.75S14 6.5 12 6.5z'/%3E%3Cpath d='M12 6.5V4c0-.9.7-1.6 1.6-1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  margin-top: -11px;
  top: 50%;
  transform: none;
  transition: transform .4s ease;
}
.preguntas details[open] summary::after { transform: rotate(180deg) scale(1.1); }

/* ---------- Pie: cementerio con luna ---------- */
.pie { position: relative; padding-top: 0; }
.cementerio { display: block; width: 100%; height: 120px; margin-bottom: 32px; }
.luna-pie { fill: #ffd9ac; filter: drop-shadow(0 0 16px rgba(255, 122, 26, 0.6)); opacity: 0.85; }
.suelo, .tumbas { fill: #121118; }
.arbol-pie { fill: none; stroke: #121118; stroke-width: 6; stroke-linecap: round; }

/* ---------- Compra en 4 pasos ---------- */
.compra { margin-top: 40px; }
.compra h3 { font-size: 1.6rem; margin-bottom: 18px; }

/* ---------- Barra fija de compra (móvil) ---------- */
.barra-compra { display: none; }
@media (max-width: 759px) {
  .barra-compra {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(12, 12, 16, 0.94);
    border-top: 1px solid rgba(255, 122, 26, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .barra-compra.activa { transform: none; opacity: 1; }
  .barra-compra-precio { display: grid; line-height: 1.25; }
  .barra-compra-precio strong { font-size: 1rem; white-space: nowrap; }
  .barra-compra-precio span { font-size: 0.875rem; color: var(--texto-2); }
  .barra-compra .boton { min-height: 48px; padding: 0 16px; font-size: 0.95rem; white-space: nowrap; }
  .pie { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

  /* Precios: carrusel deslizable, la recomendada primero */
  .rejilla-precios {
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 14px;
    scrollbar-width: none;
  }
  .rejilla-precios::-webkit-scrollbar { display: none; }
  .rejilla-precios > .plan { scroll-snap-align: center; }
  .lapidas { gap: 8px; }
  .lapida strong { font-size: 0.95rem; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 760px) {
  .panel-bot { grid-template-columns: 1.15fr 0.85fr; padding: 48px; gap: 48px; align-items: center; }
  .js .pestanas { justify-content: flex-start; margin: 0 0 24px; padding: 4px 0; }
  .carrusel { grid-auto-columns: calc(50% - 7px); }
  .carrusel-videos .puntos { display: none; }
  .hero-visual { min-height: 560px; }
  .orbita { width: 460px; }
  .marco-hero { width: 240px; }
  .cinta { top: 30px; left: -40px; }
  .calabaza-tallada { width: 130px; right: 32px; bottom: 28px; }
  .lapida { min-height: 190px; }
  .lapida:nth-child(2) { min-height: 214px; }
  .lapida strong { font-size: 1.25rem; }
}

/* ==========================================================
   v4 — Ventanas góticas 3D (reemplazan el marco de celular)
   ========================================================== */
.marco-cel {
  perspective: 1100px;
  animation: flotar 7s ease-in-out infinite alternate;
}
.carrusel > .marco-cel:nth-child(2) { animation-delay: -3.5s; }
@keyframes flotar { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.marco-cel::before {
  inset: 4% -16% 0;
  background:
    radial-gradient(closest-side, rgba(255, 122, 26, 0.34), transparent 70%),
    radial-gradient(closest-side at 50% 80%, rgba(124, 77, 255, 0.22), transparent);
}
.marco-cel .pantalla {
  border: 0;
  outline: 0;
  padding: 10px;
  border-radius: 999px 999px 22px 22px;
  overflow: visible;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), transparent 30%),
    linear-gradient(200deg, #3b3746 0%, #17161d 45%, #26232e 100%);
  box-shadow:
    0 0 0 1px rgba(255, 148, 64, 0.38),
    0 0 46px rgba(255, 122, 26, 0.28),
    0 46px 80px -10px rgba(0, 0, 0, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.10),
    inset 0 -3px 0 rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}
.marco-cel .pantalla > video,
.marco-cel .pantalla > img,
.js .marco-cel .portada {
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
}
.js .marco-cel .portada { inset: 10px; }
/* Clave del arco: una brasa encendida arriba */
.marco-cel .pantalla::after {
  top: -9px; left: 50%;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe2a8, #ff7a1a 55%, #a63f08);
  box-shadow: 0 0 18px 4px rgba(255, 122, 26, 0.75);
  z-index: 3;
}
/* Brillo interior del vidrio */
.marco-cel .pantalla::before {
  content: "";
  position: absolute; inset: 10px; z-index: 2;
  border-radius: 999px 999px 14px 14px;
  box-shadow: inset 0 0 40px rgba(255, 122, 26, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.tras-video { bottom: 72px; left: 20px; right: 20px; }
.marco-cel figcaption { padding-top: 18px; }

/* ---------- Calabazas en 3D (giran sobre su eje) ---------- */
.calabaza-3d {
  position: absolute; z-index: 3;
  width: 110px; height: 92px;
  perspective: 520px;
  pointer-events: none;
}
.cal-giro {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: cal-gira 16s linear infinite;
}
.cal-giro span {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 32%, #ffc070 0%, #ff7a1a 42%, #b8470a 78%, #6e2805 100%);
  box-shadow: inset -6px -8px 14px rgba(60, 18, 0, 0.5), inset 4px 4px 10px rgba(255, 210, 140, 0.25);
}
.cal-giro span:nth-child(2) { transform: rotateY(30deg); }
.cal-giro span:nth-child(3) { transform: rotateY(60deg); }
.cal-giro span:nth-child(4) { transform: rotateY(90deg); }
.cal-giro span:nth-child(5) { transform: rotateY(120deg); }
.cal-giro span:nth-child(6) { transform: rotateY(150deg); }
@keyframes cal-gira { to { transform: rotateY(360deg); } }
.cal-tallo {
  position: absolute; left: 50%; top: -14px;
  width: 10px; height: 20px;
  margin-left: -5px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #2f4314, #6b8f30 50%, #2f4314);
  transform: rotate(14deg);
}
.cal-luz {
  position: absolute; inset: -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.5), transparent);
  animation: latido 3s ease-in-out infinite alternate;
}
.cal-hero { left: 0; bottom: 8%; width: 86px; height: 72px; }
.cal-hero-2 { right: 2%; bottom: 20%; width: 52px; height: 44px; }
.cal-hero-2 .cal-giro { animation-duration: 11s; animation-direction: reverse; }
.cal-combo { right: 18px; top: 84px; width: 60px; height: 50px; }

/* ---------- Piso en perspectiva bajo el hero ---------- */
.piso-3d {
  position: absolute; z-index: -2;
  left: -30%; right: -30%; bottom: 0;
  height: 300px;
  perspective: 280px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 85%);
  mask-image: linear-gradient(to top, #000 15%, transparent 85%);
}
.piso-3d span {
  position: absolute; left: 0; right: 0; bottom: -60%;
  height: 220%;
  transform-origin: 50% 100%;
  transform: rotateX(74deg);
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.24) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: piso 5s linear infinite;
}
@keyframes piso { from { transform: rotateX(74deg) translateY(0); } to { transform: rotateX(74deg) translateY(52px); } }

/* ---------- Lápidas con volumen ---------- */
.lapidas { position: relative; perspective: 700px; padding-bottom: 18px; }
.lapidas::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 46px;
  background: radial-gradient(ellipse at 50% 100%, rgba(200, 196, 214, 0.16), transparent 70%);
  pointer-events: none;
}
.lapida {
  transform: rotateX(8deg);
  transform-origin: 50% 100%;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.10), transparent 35%),
    linear-gradient(180deg, #34303e, #1b1a21);
  box-shadow:
    5px 0 0 #121118, 6px 1px 0 #121118, 7px 2px 0 #0d0c11,
    inset 0 -14px 0 rgba(0, 0, 0, 0.28),
    0 22px 26px -8px rgba(0, 0, 0, 0.8);
  transition: transform .25s ease-out;
}
.lapida::before {
  content: "";
  position: absolute; left: 22%; top: 44%;
  width: 18px; height: 26px;
  border-left: 1px solid rgba(0, 0, 0, 0.45);
  transform: skewX(-18deg);
  opacity: 0.6;
}

/* ---------- Precios con profundidad ---------- */
.plan { transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .25s; }
.plan-destacado { box-shadow: 0 0 60px rgba(255, 122, 26, 0.18), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }

/* ---------- Texto con relieve ---------- */
.brillo-texto { filter: drop-shadow(0 2px 0 #8a3a08) drop-shadow(0 10px 18px rgba(255, 122, 26, 0.3)); }
.hero h1 .brillo-texto { filter: drop-shadow(0 2px 0 #8a3a08) drop-shadow(0 4px 0 #5c2605) drop-shadow(0 16px 26px rgba(255, 122, 26, 0.35)); }

/* ---------- Fantasmas (tiernos, sin sustos) ---------- */
.con-fantasmas { position: relative; overflow: hidden; }
.fantasma {
  position: absolute; z-index: -1;
  fill: rgba(244, 241, 234, 0.08);
  animation: fantasma 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.fantasma .ojo-f { fill: rgba(7, 7, 10, 0.9); }
.f-1 { right: 6%; top: 70px; width: 76px; }
.f-2 { left: 3%; bottom: 120px; width: 48px; animation-delay: -4s; }
@keyframes fantasma { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(-18px, -26px) rotate(5deg); } }

@media (min-width: 760px) {
  .cal-hero { left: 6%; width: 120px; height: 100px; }
  .cal-hero-2 { right: 8%; width: 70px; height: 58px; }
  .cal-combo { width: 120px; height: 100px; right: 36px; top: auto; bottom: 30px; }
  .f-1 { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .marco-cel, .cal-giro, .cal-luz, .piso-3d span, .fantasma { animation: none; }
  .marco-cel .pantalla, .lapida, .plan { transition: none; }
}

/* ==========================================================
   v5 — Más trading: cinta de mercados, gráfico y cuadrícula
   ========================================================== */

.grafico-fondo {
  position: absolute; z-index: -2;
  left: 0; right: 0; top: 18%;
  width: 100%; height: 55%;
  opacity: 0.55;
  pointer-events: none;
}
.gf-rejilla { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gf-linea {
  fill: none;
  stroke: #ff9440;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dibujar-linea 3.2s ease-out .3s forwards;
}
@keyframes dibujar-linea { to { stroke-dashoffset: 0; } }
.gf-punto { fill: #ffd27a; animation: latido 1.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }

.con-grafico { position: relative; isolation: isolate; }
.con-grafico::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .gf-punto { animation: none; }
  .gf-linea { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================
   v6 — Trading en las secciones y precios renovados
   ========================================================== */
/* Fondo sutil de mercado: velas, flechas y símbolos */
.seccion {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg opacity='.07' stroke-width='2'%3E%3Cpath d='M34 36v40' stroke='%233ddc84'/%3E%3Crect x='29' y='46' width='10' height='20' fill='%233ddc84'/%3E%3Cpath d='M190 140v44' stroke='%23ff5a5f'/%3E%3Crect x='185' y='150' width='10' height='24' fill='%23ff5a5f'/%3E%3Cpath d='M210 34l9 14h-18z' fill='%233ddc84'/%3E%3Cpath d='M70 214l9-14h-18z' fill='%23ff5a5f'/%3E%3Cpath d='M120 236l16-12 14 7 18-16 16 6' fill='none' stroke='%23ff9440'/%3E%3Ctext x='120' y='84' font-family='Arial' font-size='22' fill='%23ff9440'%3E%24%3C/text%3E%3Ctext x='22' y='150' font-family='Arial' font-size='18' fill='%23a9a6b2'%3E%25%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
}

/* Vela antes de cada antetítulo (menos en el hero, que lleva el punto verde) */
.antetitulo::before {
  content: "";
  width: 6px; height: 14px;
  border-radius: 1px;
  background: #3ddc84;
  box-shadow: 0 -4px 0 -2px #3ddc84, 0 4px 0 -2px #3ddc84, 10px 3px 0 0 #ff5a5f;
  margin-right: 10px;
}
.hero .antetitulo::before { display: none; }

/* Minigráficos en las cifras */
.cifras li { position: relative; overflow: hidden; }
.cifras li::after {
  content: "";
  position: absolute; right: 10px; bottom: 10px;
  width: 64px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 22'%3E%3Cpath d='M0 19l8-3 7 2 8-7 7 3 8-8 7 3 9-8' fill='none' stroke='%23ff9440' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55;
}

/* Tira de velas en cada bot */
.panel-velas { width: 100%; max-width: 320px; height: 40px; margin: 18px 0 4px; }
.v-sube path, .v-sube rect { stroke: #3ddc84; fill: #3ddc84; stroke-width: 1.5; }
.v-baja path, .v-baja rect { stroke: #ff5a5f; fill: #ff5a5f; stroke-width: 1.5; }
.panel-velas { opacity: 0.75; }

/* Hero: solo un toque de trading */
.estado-bot {
  position: absolute; z-index: 3;
  top: 14%; left: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 700;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid rgba(61, 220, 132, 0.45);
  box-shadow: 0 0 20px rgba(61, 220, 132, 0.18);
  animation: flotar 6s ease-in-out infinite alternate;
}
.simbolo {
  position: absolute; z-index: 0;
  font-size: 1.1rem;
  opacity: 0.5;
  animation: flotar 5s ease-in-out infinite alternate;
  pointer-events: none;
}
.s-1 { color: #3ddc84; top: 8%; right: 6%; }
.s-2 { color: #ff5a5f; top: 46%; left: 4%; animation-delay: -2s; }
.s-3 { color: #3ddc84; bottom: 30%; right: 2%; animation-delay: -4s; font-size: 0.9rem; }

/* ---------- Precios renovados ---------- */
.rejilla-precios { align-items: stretch; }
.plan {
  position: relative;
  overflow: hidden;
  padding: 0 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05), transparent 45%),
    linear-gradient(180deg, #17161d, #0f0f14);
}
.plan::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}
.plan-destacado::before { background: linear-gradient(90deg, #ff7a1a, #ffd27a, #ff7a1a); height: 4px; }
.plan-halloween::before { background: linear-gradient(90deg, #7c4dff, #ff7a1a); }
.plan-banda {
  display: block;
  margin: 0 -22px 0;
  padding: 10px 22px;
  font-size: 0.875rem; font-weight: 800;
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.22), rgba(255, 122, 26, 0.05));
  color: #ffb27a;
  border-bottom: 1px solid rgba(255, 122, 26, 0.25);
}
.plan-banda-violeta { background: linear-gradient(90deg, rgba(124, 77, 255, 0.25), rgba(124, 77, 255, 0.05)); color: #d9ccff; border-color: rgba(124, 77, 255, 0.3); }
.plan > .plan-spark:first-child + .plan-cabeza,
.plan > .plan-spark:first-child { margin-top: 0; }
.plan-spark {
  position: absolute; right: 14px; top: 58px;
  width: 96px; height: 32px;
  fill: none; stroke: rgba(61, 220, 132, 0.55); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.plan:not(.plan-destacado):not(.plan-halloween) .plan-spark { top: 22px; }
.plan-cabeza { display: flex; align-items: center; gap: 14px; margin: 22px 0 10px; padding-right: 90px; }
.plan-cabeza h3 { margin: 0; font-size: 1.45rem; }
.plan-sub { margin: 2px 0 0; font-size: 0.875rem; color: var(--texto-2); }
.plan-icono {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--borde);
}
.plan-icono svg { width: 26px; height: 26px; }
.plan-icono-trio { width: auto; padding: 0 8px; display: flex; gap: 4px; }
.plan-icono-trio svg { width: 20px; height: 20px; }
.c-ambar { color: var(--ambar); } .c-violeta { color: var(--violeta-bot); } .c-cian { color: var(--cian); } .c-naranja { color: var(--naranja); }
.precio-grande {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 8px 0 16px;
  padding: 16px 0;
  border-top: 1px solid var(--borde-suave);
  border-bottom: 1px solid var(--borde-suave);
}
.precio-grande .moneda { font-size: 1rem; font-weight: 700; color: var(--texto-2); margin-top: 10px; }
.precio-grande strong { font-family: var(--fuente-display); font-size: 3.6rem; line-height: 1; letter-spacing: -0.03em; }
.plan-destacado .precio-grande strong { background: linear-gradient(180deg, #ffd27a, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.precio-nota { margin-left: auto; align-self: center; text-align: right; font-size: 0.875rem; color: var(--texto-2); line-height: 1.35; }
.plan .lista-check { margin-top: 4px; }
.plan .boton svg { width: 18px; height: 18px; }
.plan-destacado { border-color: rgba(255, 122, 26, 0.6); }

.garantias {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.garantias li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  border: 1px solid var(--borde-suave);
  border-radius: 14px;
  background: rgba(17, 17, 22, 0.7);
  font-size: 0.875rem; font-weight: 600;
}
.garantias svg { flex: none; width: 22px; height: 22px; color: var(--naranja); }

@media (min-width: 760px) {
  .garantias { grid-template-columns: repeat(4, 1fr); }
  .estado-bot { left: 4%; }
}
/* Precios: nunca 4 columnas estrechas; listas sin estirar */
.plan .lista-check { align-content: start; gap: 12px; }
.plan .boton { margin-top: auto; }
@media (min-width: 1080px) {
  .rejilla-precios { grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 980px; }
  .plan { padding: 0 30px 28px; }
  .plan-banda { margin: 0 -30px; padding: 12px 30px; }
  .plan .lista-check { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .estado-bot, .simbolo { animation: none; }
}

/* ---------- Halloween se apaga solo después de la promo ---------- */
.promo-terminada .halloween { display: none !important; }

/* ---------- Reducir movimiento (mejoras) ---------- */
@media (prefers-reduced-motion: reduce) {
  .llamas ellipse, .niebla-capa, .nucleo, .giro, .planeta, .vidrio::before,
  .brasas span, .calabaza-tallada .cara, .calabaza-luz, .ventana { animation: none; }
  .brasas { display: none; }
  .js .revelar .emblema .trazo { stroke-dashoffset: 0; transition: none; }
  .barra-compra, .play, .preguntas summary::after { transition: none; }
}

/* ---------- Páginas legales ---------- */
.legal { max-width: 720px; padding-top: 40px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 32px; }
.legal p { color: var(--texto-2); }
.volver { display: inline-block; padding: 12px 0; margin-bottom: 16px; color: var(--texto-2); text-decoration: none; }
.volver:hover { color: var(--texto); }

/* ---------- Aparición al hacer scroll ---------- */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revelar.visible { opacity: 1; transform: none; }

/* ---------- Escritorio ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .cabecera nav { display: block; }
  .hero { padding: 40px 0 96px; }
  .hero-rejilla { grid-template-columns: 1.2fr 0.8fr; }
  .luna { width: 420px; height: 420px; top: 30px; right: 4%; }
  .ramas { width: 380px; }
  .cifras { grid-template-columns: repeat(4, 1fr); }
  .cifras li { border-width: 0 1px 0 0 !important; padding: 24px; }
  .cifras li:last-child { border-right-width: 0 !important; }
  .seccion { padding: 104px 0; }
  .dos-columnas { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .bot, .producto, .combo-rejilla, .instalacion-rejilla, .quien { grid-template-columns: 1fr 1fr; gap: 64px; }
  .bot:nth-of-type(even) .bot-medio { order: -1; }
  .producto-invertido .producto-medio { order: -1; }
  .combo { padding: 56px; }
  .telarana { width: 180px; height: 180px; }
  .arana { right: 130px; }
  .incluye { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .pasos-anchos { grid-template-columns: repeat(4, 1fr); }
  .pasos-anchos li { grid-template-columns: 1fr; }
  .galeria {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0; padding: 0;
    align-items: start;
  }
  .rejilla-precios { grid-template-columns: repeat(2, 1fr); }
  .pie { padding-bottom: 64px; }
}

/* ---------- Reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .murcielago { animation: none; display: none; }
  .estrellas, .arana { animation: none; }
  .js .revelar { opacity: 1; transform: none; transition: none; }
  .boton, .wa-flotante { transition: none; }
}

/* ==========================================================
   v8 — Calabaza malvada en lugar de la luna
   ========================================================== */
.calabaza-luna {
  position: absolute;
  z-index: -2;
  width: 190px;
  top: -34px; right: -44px;
  filter: drop-shadow(0 0 50px rgba(255, 122, 26, 0.45)) drop-shadow(0 0 120px rgba(124, 77, 255, 0.22));
  animation: calabaza-flota 8s ease-in-out infinite alternate;
}
@keyframes calabaza-flota { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-10px) rotate(2deg); } }
.cp-tallo { fill: #4f7d2a; stroke: #2c4a15; stroke-width: 5; stroke-linejoin: round; }
.cp-cuerpo { fill: #f8871f; stroke: #d0560c; stroke-width: 5; }
.cp-gajo { fill: none; stroke: #d75d10; stroke-width: 4; stroke-linecap: round; }
.cp-hueco { fill: #0a0706; stroke: #d0560c; stroke-width: 6; stroke-linejoin: round; paint-order: stroke; }
.cp-diente { fill: #f8871f; stroke: #d75d10; stroke-width: 3; stroke-linejoin: round; }
@media (min-width: 760px) {
  .calabaza-luna { width: 440px; top: 10px; right: -2%; }
}
@media (prefers-reduced-motion: reduce) { .calabaza-luna { animation: none; } }
/* v10 — Silueta negra (imagen de Salgado) delante de un resplandor naranja */
.calabaza-img { filter: drop-shadow(0 0 1px #ff8a2a) drop-shadow(0 0 1px #ff8a2a) drop-shadow(0 0 5px rgba(255, 122, 26, 0.35)); }
.calabaza-img::before { display: none; }
@media (max-width: 759px) { .calabaza-img { top: 4px; } }
.calabaza-img::before {
  content: "";
  position: absolute; inset: 6% 4% 2%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, #ffe2a0 0%, #ffb347 30%, #ff7a1a 55%, rgba(255, 122, 26, 0) 72%);
  box-shadow: 0 0 120px 30px rgba(255, 122, 26, 0.35), 0 0 220px 60px rgba(124, 77, 255, 0.18);
  animation: latido 3s ease-in-out infinite alternate;
}
.calabaza-img img { position: relative; width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .calabaza-img::before { animation: none; } }
/* ==========================================================
   v12 — Asistente Platinum (burbuja + chat)
   ========================================================== */
.asistente[hidden] { display: none; }
.asistente-burbuja {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ff9440, #ff7a1a 50%, #c94f0a);
  color: #120a03;
  font: inherit; font-weight: 800; font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 122, 26, 0.45);
  transition: transform .3s ease, opacity .3s ease;
}
.asistente-burbuja svg { width: 26px; height: 26px; flex: none; animation: destello 2.6s ease-in-out infinite; }
@keyframes destello { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(12deg); } }
.asistente-anillo {
  position: absolute; inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255, 148, 64, 0.7);
  animation: anillo 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes anillo { from { transform: scale(0.95); opacity: 0.9; } to { transform: scale(1.18); opacity: 0; } }
.asistente-burbuja:hover { transform: translateY(-2px); }
.asistente.abierto .asistente-burbuja { opacity: 0; pointer-events: none; transform: scale(0.8); }
.barra-compra.activa ~ .asistente .asistente-burbuja { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 759px) {
  .asistente-etiqueta { display: none; }
  .asistente-burbuja { width: 60px; padding: 0; justify-content: center; }
}

.asistente-panel {
  position: fixed; z-index: 80;
  left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
  height: min(78dvh, 620px);
  display: flex; flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.14), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(124, 77, 255, 0.12), transparent 50%),
    rgba(14, 13, 18, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 122, 26, 0.15);
  overflow: hidden;
  animation: asistente-entra .25s ease-out;
}
.asistente-panel[hidden] { display: none; }
@keyframes asistente-entra { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) {
  .asistente-panel { left: auto; right: 20px; bottom: 20px; width: 390px; height: min(620px, calc(100dvh - 40px)); }
}
.asistente-cabeza {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 12px 16px;
  border-bottom: 1px solid var(--borde-suave);
}
.asistente-cabeza h2 { margin: 0; font-size: 1.15rem; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.asistente-cabeza p { margin: 0; font-size: 0.875rem; color: var(--texto-2); display: flex; align-items: center; gap: 6px; }
.asistente-cabeza .punto { width: 7px; height: 7px; }
.asistente-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffb347, #ff7a1a 60%, #a63f08);
  color: #120a03;
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.5);
}
.asistente-avatar svg { width: 22px; height: 22px; }
.asistente-ia { font-family: var(--fuente-texto); font-size: 0.75rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--naranja); color: #120a03; }
.asistente-cerrar {
  margin-left: auto; width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--texto-2);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.asistente-cerrar:hover { color: var(--texto); background: rgba(255, 255, 255, 0.05); }
.asistente-mensajes {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain;
}
.asistente-msj {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.95rem; line-height: 1.5;
  animation: asistente-entra .2s ease-out;
}
.asistente-msj p { margin: 0 0 6px; }
.asistente-msj p:last-child { margin-bottom: 0; }
.es-bot { align-self: flex-start; background: #1d1b24; border: 1px solid var(--borde); border-bottom-left-radius: 6px; }
.es-yo { align-self: flex-end; background: linear-gradient(135deg, #ff9440, #ff7a1a); color: #120a03; font-weight: 600; border-bottom-right-radius: 6px; }
.asistente-nota { font-size: 0.875rem; color: var(--texto-2); }
.asistente-wa {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 8px; padding: 0 16px;
  border-radius: 999px;
  background: var(--verde); color: #04140a;
  font-weight: 800; font-size: 0.9rem; text-decoration: none;
}
.escribiendo { display: flex; gap: 5px; padding: 14px; }
.escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: var(--texto-2); animation: puntito 1s ease-in-out infinite; }
.escribiendo span:nth-child(2) { animation-delay: .15s; }
.escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes puntito { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
.asistente-sugerencias {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 16px 10px;
}
.asistente-sugerencias::-webkit-scrollbar { display: none; }
.asistente-sugerencias button {
  flex: none;
  min-height: 40px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.08);
  color: var(--texto);
  font: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer;
}
.asistente-sugerencias button:hover { background: rgba(255, 122, 26, 0.18); }
.asistente-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--borde-suave); }
.asistente-form input {
  flex: 1; min-width: 0; min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: #0b0a0e; color: var(--texto);
  font: inherit; font-size: 1rem;
}
.asistente-form input:focus { outline: 2px solid var(--naranja); outline-offset: 1px; }
.asistente-form button {
  flex: none; width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--naranja); color: #120a03; cursor: pointer;
  display: grid; place-items: center;
}
.asistente-form button svg { width: 20px; height: 20px; }
.asistente-riesgo { margin: 0; padding: 0 16px 10px; font-size: 0.875rem; color: var(--texto-2); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .asistente-burbuja svg, .asistente-anillo, .asistente-panel, .asistente-msj, .escribiendo span { animation: none; }
}
/* v12 — Tarjetas de precio sin banda: más aire arriba */
.plan:not(.plan-destacado):not(.plan-halloween) { padding-top: 14px; }
.plan:not(.plan-destacado):not(.plan-halloween) .plan-cabeza { margin-top: 18px; align-items: center; }
.plan:not(.plan-destacado):not(.plan-halloween) .plan-spark { top: 40px; }
.plan-cabeza h3 { line-height: 1.15; }

/* v12 — Quién está detrás sin imágenes */
.quien { grid-template-columns: 1fr !important; max-width: 760px; }

/* v15 — Botones rápidos del asistente: en varias líneas, siempre completos */
.asistente-sugerencias { flex-wrap: wrap; overflow: visible; gap: 6px; padding: 2px 12px 10px; }
.asistente-sugerencias button { min-height: 38px; padding: 0 12px; white-space: nowrap; }
.asistente-sugerencias .chips-toggle { display: none; }
.asistente-sugerencias.plegado .chips-toggle { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; }
.asistente-sugerencias.plegado .chips-toggle::after { content: "▾"; }
.asistente-sugerencias.plegado button:not(.chips-toggle) { display: none; }

.riesgo-precios { text-align: center; margin: 18px 0 0; }

/* ==========================================================
   v17 — Videos más grandes y pantalla completa correcta
   ========================================================== */
.marco-cel { width: 86%; max-width: 340px; }
.marco-cel.marco-hero { width: 72%; max-width: 270px; }
.carrusel > .marco-cel { max-width: none; }
@media (min-width: 760px) {
  .marco-cel.marco-hero { width: 290px; max-width: 290px; }
  .carrusel { grid-auto-columns: 78%; }
  .carrusel-videos .puntos { display: flex; }
}
/* En pantalla completa el video se ve entero: sin recorte, sin bordes, sin inclinación */
.marco-cel video:fullscreen,
.marco-cel video:-webkit-full-screen {
  width: 100% !important; height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #000;
  transform: none !important;
}

/* v18 — Flechas del carrusel y puntos tocables */
.carrusel-videos { position: relative; }
.flecha {
  position: absolute; top: 42%; z-index: 4;
  width: 48px; height: 48px;
  margin-top: -24px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 148, 64, 0.6);
  background: rgba(12, 12, 16, 0.88);
  color: var(--naranja-hover);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 122, 26, 0.3);
  transition: transform .2s, background .2s;
}
.flecha:hover { background: var(--naranja); color: #120a03; }
.flecha[hidden] { display: none; }
.flecha svg { width: 22px; height: 22px; }
.flecha-ant { left: -6px; }
.flecha-ant svg { transform: rotate(180deg); }
.flecha-sig { right: -6px; }
.puntos button {
  width: 28px; height: 28px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.puntos button::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--borde);
  transition: transform .2s;
}
.puntos button.activo::before { background: var(--naranja); transform: scale(1.3); }
.puntos { gap: 4px; }

/* v18 — Hero con más presencia */
.marco-hero .pantalla {
  box-shadow:
    0 0 0 1px rgba(255, 148, 64, 0.7),
    0 0 0 4px rgba(255, 122, 26, 0.12),
    0 0 60px rgba(255, 122, 26, 0.45),
    0 46px 80px -10px rgba(0, 0, 0, 0.85),
    inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
.marco-cel .pantalla > video,
.marco-cel .pantalla > img,
.portada img { filter: contrast(1.1) saturate(1.15) brightness(1.03); }
.marco-hero figcaption { color: #cfcbd8; }
.cal-hero { left: -4%; bottom: 2%; width: 74px; height: 62px; }
.cal-hero-2 { right: -2%; bottom: 10%; width: 46px; height: 38px; }
@media (min-width: 760px) {
  .cal-hero { left: 2%; bottom: 4%; width: 96px; height: 80px; }
  .cal-hero-2 { right: 4%; bottom: 14%; width: 58px; height: 48px; }
}

/* v18 — el resplandor de los videos no debe crear scroll horizontal */
.seccion { overflow-x: clip; }


/* v19 — Asistente con presentación profesional */
.asistente-meta { display: block; margin-bottom: 4px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; opacity: 0.7; }
.es-yo .asistente-meta { text-align: right; }
.asistente-wa { gap: 8px; }
.asistente-wa svg { width: 18px; height: 18px; }
.es-bot { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }

/* ==========================================================
   v22 — Celular más compacto (solo pantallas pequeñas)
   ========================================================== */
@media (max-width: 759px) {
  body { font-size: 15px; line-height: 1.55; }
  h1 { font-size: clamp(1.8rem, 8.4vw, 2.25rem); }
  .hero h1 { font-size: clamp(1.8rem, 8.4vw, 2.25rem); margin-bottom: 12px; }
  h2 { font-size: clamp(1.45rem, 6.6vw, 1.85rem); margin-bottom: 12px; }
  h3 { font-size: 1.3rem; }
  .seccion { padding: 52px 0; }
  .seccion-cabeza { margin-bottom: 24px; }
  .antetitulo { font-size: 0.875rem; margin-bottom: 8px; }
  .boton { min-height: 48px; padding: 0 18px; font-size: 0.95rem; }
  .boton svg { width: 18px; height: 18px; }
  .hero-oferta { font-size: 0.95rem; padding: 6px 14px; margin-bottom: 14px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-texto .hero-sub { margin-top: 18px; }
  .numero { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .panel-bot .numero { font-size: 3.6rem; }
  .emblema { width: 48px; height: 48px; }
  .panel-bot { padding: 22px 16px 24px; gap: 20px; }
  .panel-bot h3 { font-size: 1.45rem; }
  .pestana { min-height: 48px; padding: 0 16px; font-size: 0.95rem; }
  .marco-cel { width: 72%; max-width: 270px; }
  .marco-cel.marco-hero { width: 60%; max-width: 230px; }
  .carrusel { grid-auto-columns: 78%; }
  .cifras li { padding: 14px 12px; }
  .cifras strong { font-size: 1.55rem; }
  .lapida { min-height: 118px; padding: 26px 6px 14px; }
  .lapida:nth-child(2) { min-height: 134px; }
  .lapida strong { font-size: 0.9rem; }
  .lapidas-texto { font-size: 0.95rem; }
  .combo { padding: 26px 16px; }
  .cinta { width: 170px; top: 18px; left: -46px; }
  .plan { padding: 0 18px 20px; }
  .plan-banda { margin: 0 -18px; padding: 9px 18px; }
  .plan-cabeza { margin: 18px 0 8px; gap: 12px; padding-right: 70px; }
  .plan-cabeza h3 { font-size: 1.2rem; }
  .plan-icono { width: 42px; height: 42px; }
  .plan-spark { width: 70px; height: 24px; top: 52px; }
  .precio-grande { padding: 12px 0; margin: 6px 0 12px; }
  .precio-grande strong { font-size: 2.7rem; }
  .plan .lista-check { gap: 8px; font-size: 0.9rem; }
  .garantias li { padding: 12px; }
  .pasos li { padding: 14px; gap: 10px; grid-template-columns: 36px 1fr; }
  .pasos li::before { font-size: 1.25rem; }
  .compra h3 { font-size: 1.35rem; }
  .incluye li { padding: 14px 0; grid-template-columns: 36px 1fr; }
  .preguntas summary { padding: 16px 40px 16px 0; }
  .cta-final { padding: 64px 0; }
  .calabaza-grande { width: 190px; height: 190px; }
  .tarjeta { padding: 18px; }
  .aviso { padding: 10px 14px; font-size: 0.875rem; }
  .barra-compra { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .barra-compra .boton { min-height: 46px; font-size: 0.9rem; padding: 0 14px; }
  .asistente-burbuja { width: 54px; height: 54px; }
  .asistente-burbuja svg { width: 22px; height: 22px; }
  .cabecera { padding: 12px 0; }
  .marca { font-size: 1rem; }
  .barra-promo { padding: 7px var(--gutter); }
}

/* v24 — Indicador 'Pensando' del asistente */
.escribiendo { align-items: center; }
.escribiendo em { font-style: normal; font-size: 0.875rem; color: var(--texto-2); margin-right: 4px; }

