/* nuevarifa.com — portada (RF-022). Hoja propia: no depende de Tailwind ni de los temas anteriores. */

:root {
  /* Neutros limpios de alta legibilidad */
  --n-0: #ffffff;
  --n-50: #faf8f5;
  --n-100: #f4efe8;
  --n-200: #e8e2d8;
  --n-300: #d5ccbf;
  --n-400: #a79c8d;
  --n-500: #796f60;
  --n-600: #585043;
  --n-700: #3e372d;
  --n-800: #27221b;
  --n-900: #1a1713;
  --n-950: #12100d;

  /* Color Primario Oficial de Marca: Esmeralda Cívico (WCAG AAA) */
  --accent: #0b6e4f;
  --accent-hover: #08583e;
  --accent-soft: #ecfdf5;
  --accent-ink: #065f46;
  --accent-glow: rgba(11, 110, 79, 0.25);
  --accent-bright: #10b981;

  /* Acentos de Imprenta, Premios y Alerta */
  --vermilion: #c83b1b;
  --vermilion-soft: #fff3f0;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-soft: #fffbeb;

  /* Modos oscuros inmersivos (Modo Pantalla 24/7) */
  --dark-bg: #0b0f19;
  --dark-surface: #111827;
  --dark-card: #1f2937;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-text: #f9fafb;
  --dark-muted: #9ca3af;

  /* Roles Semánticos */
  --bg: var(--n-50);
  --surface: var(--n-0);
  --text: var(--n-950);
  --text-muted: var(--n-600);
  --line: var(--n-200);
  /* UX-10: el contorno de un campo necesita 3:1 sobre blanco (WCAG 1.4.11); --n-300 daba 1,6. */
  --line-control: var(--n-500);
  --ring: var(--accent);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgb(23 21 18 / 0.05);
  --shadow-md: 0 10px 28px -6px rgb(23 21 18 / 0.12), 0 0 0 1px rgb(23 21 18 / 0.04);
  --shadow-lg: 0 20px 40px -12px rgb(18 16 13 / 0.2);
  --shadow-ticket: 0 12px 32px -8px rgba(23, 21, 18, 0.14), 0 0 0 1px rgba(23, 21, 18, 0.06);

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.hidden { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--n-950); color: var(--n-0); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 700; line-height: 1; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, transform 120ms ease-out, box-shadow 120ms ease-out;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; pointer-events: none; cursor: not-allowed; }

.btn-primary {
  background: var(--accent); color: var(--n-0);
  box-shadow: 0 4px 14px -3px rgba(11, 110, 79, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 18px -4px rgba(11, 110, 79, 0.5);
  }
}

.btn-ghost { background: transparent; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--n-100); } }

.btn-light { background: var(--n-0); color: var(--n-950); font-weight: 800; }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--n-100); } }

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { color: var(--accent-hover); } }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(250 248 245 / 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none;
  color: var(--text);
}
.brand-ticket {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transform: rotate(-3deg);
  transition: transform 0.2s var(--ease-out);
}
.brand:hover .brand-ticket {
  transform: rotate(0deg) scale(1.06);
}
.brand-ticket svg { display: block; }
.brand-name { display: inline-flex; align-items: baseline; }
.brand-accent { color: var(--accent); }
.brand-dot { color: var(--accent); }
.brand-tld {
  font-size: 0.82em; font-weight: 600; color: var(--text-muted);
  margin-left: 0; background: none; border: none; padding: 0;
}

.site-nav { display: none; gap: 4px; margin-left: 20px; }
.site-nav a {
  padding: 8px 11px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
  /* Cada enlace en una sola línea: el menú cabe entero o no se enseña (por debajo de 860 px). */
  white-space: nowrap;
  transition: color 140ms, background-color 140ms;
}
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--text); background: var(--n-100); } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-actions .btn { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.header-actions[data-auth="pending"] { visibility: hidden; animation: auth-reveal 0s 6s forwards; }
@keyframes auth-reveal { to { visibility: visible; } }

@media (max-width: 419px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 1.15rem; }
  .header-actions { gap: 2px; }
  .header-actions .btn { padding: 0 10px; }
}

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .header-actions .btn { padding: 0 18px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 65% 55% at 75% 25%, rgba(11, 110, 79, 0.09), transparent 70%),
    linear-gradient(180deg, var(--n-0) 0%, var(--n-50) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid #a7f3d0;
  font-size: 0.82rem; font-weight: 800; color: var(--accent-ink);
  letter-spacing: -0.01em; margin-bottom: 1.15rem;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}

.hero-title {
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  line-height: 1.06; letter-spacing: -0.035em; font-weight: 800;
  max-width: 17ch;
}
.hero-title em { font-style: normal; color: var(--accent); }

.hero-lead {
  margin-top: 1.1rem; max-width: 52ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--n-800); line-height: 1.55;
}

/* Naturaleza del servicio: software para organizadores, no venta de boletos (ruta LLC + Merchant of Record). */
.hero-nature {
  margin-top: 0.75rem; max-width: 60ch;
  font-size: 0.86rem; color: var(--n-700, #57534e); line-height: 1.5;
}
.hero-nature span { display: block; margin-top: 0.2rem; font-style: italic; }

/* Hero Actions & Trust Signals */
.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-btn-main,
.hero-actions .btn-primary {
  box-shadow: 0 4px 14px rgba(11, 110, 79, 0.35);
  font-weight: 800;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hero-btn-main:hover,
.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 110, 79, 0.45);
}

.hero-link-tv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  color: var(--n-800);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.hero-link-tv:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.hero-tv-svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.hero-arrow-down {
  color: var(--accent);
  font-weight: 800;
  transition: transform var(--transition-fast);
}
.hero-link-tv:hover .hero-arrow-down {
  transform: translateY(2px);
}

/* Reaseguros de confianza limpios */
.hero-trust {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) {
  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
  }
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--n-700);
  line-height: 1.35;
}
.hero-trust strong {
  color: var(--n-950);
}
.hero-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-check svg {
  width: 12px;
  height: 12px;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.hero-note strong {
  color: var(--n-900);
  font-weight: 800;
}

@media (max-width: 639px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-btn-main,
  .hero-actions .btn-primary {
    text-align: center;
    padding: 14px 20px;
    font-size: 1.05rem;
  }
  .hero-link-tv {
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.9rem;
  }
  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }
  .hero-trust li {
    font-size: 0.8rem;
  }
}

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.92fr; }
}

/* ---------- Tablero animado (ilustración del producto) ---------- */
.board {
  width: 100%; max-width: 460px; justify-self: center;
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--n-300);
  box-shadow: 0 24px 48px -18px rgba(22, 19, 15, 0.22), 0 0 0 4px rgba(22, 19, 15, 0.03);
  position: relative; overflow: hidden;
}
.board::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--amber-bright), var(--n-950));
}
.board-top-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
  background: var(--n-950); color: var(--n-0);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
}
.board-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent-bright);
}
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.board-title { display: block; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.015em; color: var(--n-950); }
.board-sub { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 1px; }
.board-price {
  flex: none; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 0.88rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

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

.cell {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--n-300);
  background: var(--surface);
  font-size: clamp(0.85rem, 2.6vw, 1rem); font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--n-800);
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out),
              color 220ms var(--ease-out), transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.cell.is-reserved {
  background: repeating-linear-gradient(-45deg, var(--n-100) 0 5px, var(--n-200) 5px 10px);
  border-color: var(--n-300); border-style: dashed; color: var(--n-600);
}
.cell.is-paid { background: var(--n-950); border-color: var(--n-950); color: var(--n-0); }
.cell.is-scan { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.cell.is-winner {
  background: var(--amber-bright); border-color: var(--n-950); color: var(--n-950); font-weight: 900;
  transform: scale(1.14); box-shadow: 0 0 0 4px var(--amber-soft), var(--shadow-md);
  position: relative; z-index: 1;
}

.board-foot { margin-top: 16px; }
.board-progress { height: 7px; border-radius: 99px; background: var(--n-100); overflow: hidden; }
.board-progress span {
  display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent);
  transform-origin: left center; transform: scaleX(var(--sold, 0));
  transition: transform 300ms var(--ease-out);
}
.board-status {
  margin-top: 10px; display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.88rem; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.board-status b { color: var(--text); font-weight: 800; }
.board-status .is-win { color: var(--accent-ink); font-weight: 700; }

.legend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--n-300); background: var(--surface); }
.legend .lg-reserved { background: repeating-linear-gradient(-45deg, var(--n-100) 0 3px, var(--n-200) 3px 6px); border-style: dashed; }
.legend .lg-paid { background: var(--n-950); border-color: var(--n-950); }
.legend .lg-winner { background: var(--amber-bright); border-color: var(--n-950); }

.board-bizum-strip {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 0.78rem; font-weight: 700; color: var(--n-800);
}

/* ---------- Franja Corporativa de Garantías ---------- */
.ribbon {
  background: var(--n-950); color: var(--n-0);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-top: 3px solid var(--accent);
}
.ribbon-grid {
  display: grid; gap: 20px;
}
@media (min-width: 640px) {
  .ribbon-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 960px) {
  .ribbon-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
.ribbon-item {
  display: grid; gap: 4px; align-content: start;
  padding-left: 14px; border-left: 3px solid var(--accent);
}
.ribbon-val {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--n-0);
}
.ribbon-txt {
  font-size: 0.86rem; line-height: 1.45; color: #d9d2c7;
}

/* ---------- Secciones Generales ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.75rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-header { max-width: 68ch; }
.section-kicker {
  display: inline-block; margin-bottom: 0.55rem;
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink);
}
.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
  max-width: 26ch;
}
.section-lead { margin-top: 0.85rem; max-width: 62ch; font-size: 1.05rem; color: var(--text-muted); }

/* ---------- MÓDULO: EL DUELO (Papel vs. nuevarifa.com) ---------- */
.section-duel {
  background: linear-gradient(180deg, var(--bg) 0%, #faf8f5 100%);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.duel-pill-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  margin-bottom: 0.85rem;
}

.duel-grid {
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .duel-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.duel-card {
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius-xl);
  display: grid;
  gap: 22px;
  align-content: start;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Folio con textura de papel, cuadricula sutil y clip metalico */
.duel-card.is-paper {
  background: #fcfaf6;
  border: 2px dashed #d6ccbe;
  box-shadow: 0 8px 24px -6px rgba(60, 50, 40, 0.08);
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 20px 20px;
}

@media (hover: hover) and (pointer: fine) {
  .duel-card.is-paper:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -6px rgba(60, 50, 40, 0.12);
  }
}

.duel-clip-badge {
  position: absolute;
  top: -15px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #292524;
  color: #fafaf9;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #44403c;
}

.duel-clip-badge.is-digital {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.duel-card.is-digital {
  background: var(--surface);
  border: 2px solid #059669;
  box-shadow: 0 20px 45px -12px rgba(5, 150, 105, 0.22), 0 0 0 1px rgba(5, 150, 105, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .duel-card.is-digital:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -10px rgba(5, 150, 105, 0.28), 0 0 0 1px rgba(5, 150, 105, 0.16);
  }
}

.duel-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--n-950);
}
.duel-card.is-digital .duel-head h3 {
  color: var(--accent-ink);
}
.duel-head p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.duel-status-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.duel-status-tag.is-bad {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.duel-status-tag.is-good {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.duel-list {
  display: grid;
  gap: 16px;
}
.duel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.5;
}
.duel-badge-bad {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.18);
  margin-top: 1px;
}
.duel-badge-good {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d1fae5;
  color: #047857;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.18);
  margin-top: 1px;
}
.duel-item strong {
  display: block;
  font-weight: 800;
  color: var(--n-950);
}
.duel-card.is-paper .duel-item strong {
  color: #3d3224;
}

.duel-summary-banner {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 22px 28px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
  box-shadow: 0 8px 24px -6px rgba(5, 150, 105, 0.14);
}
.duel-summary-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.duel-summary-text {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.duel-summary-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #064e3b;
}
.duel-summary-text span {
  font-size: 0.92rem;
  color: #065f46;
}

/* ---------- MÓDULO: PANTALLA 24/7 EN DIRECTO (Inmersivo Oscuro) ---------- */
.section-tv {
  background: radial-gradient(circle at 50% 0%, #172554 0%, var(--dark-bg) 65%);
  color: var(--dark-text);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 4px solid var(--accent-bright);
  border-bottom: 4px solid var(--accent-bright);
}
.section-tv .section-kicker { color: var(--accent-bright); }
.section-tv .section-title { color: #ffffff; }
.section-tv .section-lead { color: var(--dark-muted); }

.tv-showcase {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .tv-showcase {
    grid-template-columns: 1.28fr 0.72fr;
    gap: 40px;
  }
}

/* Unidad física Smart TV */
.tv-unit {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.tv-chassis {
  background: #090d14;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 50px -10px rgba(16, 185, 129, 0.22);
}
.tv-bezel {
  border: 3px solid #1a2232;
  border-bottom: 13px solid #1a2232;
  border-radius: 8px;
  position: relative;
  overflow: visible;
  background: #000000;
}
.tv-chin {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
}
.tv-chin-brand {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  font-family: var(--font-body);
}
.tv-led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px 1px #10b981;
  animation: tv-led-breathe 3s infinite ease-in-out;
}

/* Soporte y peana física de sobremesa */
.tv-stand {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tv-stand-neck {
  width: clamp(50px, 12%, 80px);
  height: clamp(12px, 2.5vw, 18px);
  background: linear-gradient(180deg, #1e2638 0%, #0d121c 100%);
  clip-path: polygon(18% 0%, 82% 0%, 100% 100%, 0% 100%);
}
.tv-stand-base {
  width: clamp(140px, 34%, 240px);
  height: clamp(5px, 1vw, 8px);
  background: linear-gradient(90deg, #1e2638 0%, #475569 50%, #1e2638 100%);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}
.tv-reflection {
  width: 65%;
  height: 14px;
  margin: 2px auto 0;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  filter: blur(5px);
}
.tv-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--dark-muted);
  line-height: 1.45;
}
.tv-caption strong { color: #f3f4f6; }
.tv-caption-icon { display: inline-block; margin-right: 4px; }

/* Lienzo de pantalla 16:9 con contenedor responsivo (Container Queries) */
.tv-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  container-name: tvstage;
  background: #faf8f5;
  color: #171512;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  user-select: none;
  font-family: var(--font-body);
}

/* Barra superior */
.tv-bar {
  height: 6.5cqi;
  padding: 0 2.2cqi;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.15cqi solid #e6e0d6;
  background: #faf8f5;
  flex-shrink: 0;
}
.tv-logo {
  font-size: 2.2cqi;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #171512;
}
.tv-logo .tv-brand { color: #0b6e4f; }
.tv-logo .tv-dot { color: #0b6e4f; }
.tv-logo small {
  color: #78716c;
  font-weight: 600;
  font-size: 0.85em;
}
.tv-raffle-title {
  font-size: 2cqi;
  font-weight: 800;
  color: #171512;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 1.5cqi;
  flex: 1;
  text-align: center;
}
.tv-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqi;
  padding: 0.35cqi 1cqi;
  border-radius: 99px;
  background: #ecfdf5;
  color: #0b6e4f;
  font-size: 1.5cqi;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.tv-live-dot {
  width: 0.8cqi;
  height: 0.8cqi;
  border-radius: 50%;
  background: #0b6e4f;
  animation: tv-live-pulse 2s infinite ease-in-out;
}

/* Contenedor de vistas rotatorias (16:9 proporciones idénticas a views/pantalla.html) */
.tv-views {
  position: relative;
  height: 44cqi;
  overflow: hidden;
  flex-shrink: 0;
}
.tv-view {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5%);
  transition: opacity 450ms cubic-bezier(0.23, 1, 0.32, 1), transform 450ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 450ms;
  padding: 1.4cqi 2.2cqi;
  gap: 2cqi;
  align-items: stretch;
}
.tv-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 450ms cubic-bezier(0.23, 1, 0.32, 1), transform 450ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s;
}

/* VISTA 1: TABLERO (Tablero 60% + Lateral 40%) */
.tv-board {
  flex: 1.45;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tv-board-head {
  height: 2.5cqi;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.4cqi;
  color: #575047;
  margin-bottom: 0.8cqi;
  flex-shrink: 0;
}
.tv-board-title {
  font-weight: 800;
  color: #171512;
}
.tv-legend {
  display: flex;
  align-items: center;
  gap: 1cqi;
}
.tv-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.4cqi;
  font-size: 1.25cqi;
  font-weight: 600;
  color: #78716c;
}
.tv-sw {
  width: 1cqi;
  height: 1cqi;
  border-radius: 0.25cqi;
  display: inline-block;
}
.tv-sw-free {
  background: #ffffff;
  border: 0.15cqi solid #1d4ed8;
}
.tv-sw-res {
  background: repeating-linear-gradient(135deg, #e0e7ff 0, #e0e7ff 2px, #ffffff 2px, #ffffff 4px);
  border: 0.15cqi solid #cbd5e1;
}
.tv-sw-sold {
  background: #171512;
  border: 0.15cqi solid #171512;
}
.tv-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.55cqi;
}
.tv-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6cqi;
  font-weight: 800;
  font-size: 1.5cqi;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  line-height: 1;
}
.tv-cell.is-free {
  background: #ffffff;
  color: #1d4ed8;
  border: 0.18cqi solid #1d4ed8;
}
.tv-cell.is-res {
  background: repeating-linear-gradient(135deg, #e0e7ff 0, #e0e7ff 3px, #ffffff 3px, #ffffff 6px);
  color: #64748b;
  border: 0.15cqi solid #cbd5e1;
}
.tv-cell.is-sold {
  background: #171512;
  color: #f8fafc;
  border: 0.15cqi solid #171512;
}
.tv-cell.is-hit {
  background: #0b6e4f;
  color: #ffffff;
  border: 0.22cqi solid #34d399;
  animation: tv-hit-pulse 2s infinite ease-in-out;
}

/* Lateral derecho del tablero */
.tv-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9cqi;
  min-width: 0;
}
.tv-prize-card {
  flex: 1.25;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 0.9cqi;
  padding: 0.7cqi 1cqi;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.tv-prize-thumb {
  position: relative;
  height: 6.8cqi;
  border-radius: 0.5cqi;
  overflow: hidden;
  background: #000;
  margin-bottom: 0.5cqi;
}
.tv-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tv-kicker-badge {
  position: absolute;
  bottom: 0.35cqi;
  left: 0.5cqi;
  background: rgba(11, 110, 79, 0.9);
  color: #ffffff;
  font-size: 0.9cqi;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15cqi 0.5cqi;
  border-radius: 0.3cqi;
}
.tv-prize-name {
  font-size: 1.6cqi;
  font-weight: 800;
  color: #171512;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-prize-desc {
  font-size: 1.1cqi;
  color: #575047;
  margin-top: 0.15cqi;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-facts {
  flex: 0.95;
  display: flex;
  gap: 0.8cqi;
}
.tv-stat {
  flex: 1.35;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 0.9cqi;
  padding: 0.6cqi 0.9cqi;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tv-stat-num {
  font-size: 2.8cqi;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.tv-stat-lbl {
  font-size: 1.1cqi;
  font-weight: 700;
  color: #171512;
  margin-top: 0.2cqi;
}
.tv-meter {
  height: 0.4cqi;
  background: #e6e0d6;
  border-radius: 99px;
  margin-top: 0.3cqi;
  overflow: hidden;
}
.tv-meter-fill {
  height: 100%;
  width: 66%;
  background: #0b6e4f;
  border-radius: 99px;
}
.tv-price {
  flex: 1;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 0.9cqi;
  padding: 0.6cqi 0.8cqi;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.tv-price-num {
  font-size: 2cqi;
  font-weight: 800;
  color: #171512;
  line-height: 1;
}
.tv-price-lbl {
  font-size: 1.05cqi;
  font-weight: 700;
  color: #78716c;
  margin-top: 0.15cqi;
}
.tv-qr-card {
  flex: 1;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 0.9cqi;
  padding: 0.7cqi 0.9cqi;
  display: flex;
  align-items: center;
  gap: 0.9cqi;
}
.tv-qr-box {
  width: 6.2cqi;
  height: 6.2cqi;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 0.4cqi;
  padding: 0.3cqi;
  border: 0.12cqi solid #e6e0d6;
  display: grid;
  place-items: center;
}
.tv-qr-box.is-mini {
  width: 4.8cqi;
  height: 4.8cqi;
}
.tv-qr-svg {
  width: 100%;
  height: 100%;
  fill: #171512;
}
.tv-qr-info { min-width: 0; }
.tv-qr-cta {
  font-size: 1.35cqi;
  font-weight: 800;
  color: #171512;
  line-height: 1.15;
  margin: 0;
}
.tv-qr-sub {
  display: block;
  font-size: 1.05cqi;
  font-weight: 700;
  color: #0b6e4f;
  margin-top: 0.2cqi;
}

/* VISTA 2: PREMIO COMPLETO EN PRIMER PLANO */
.tv-view-prize {
  align-items: stretch;
}
.tv-prize-hero {
  flex: 1.2;
  position: relative;
  border-radius: 1cqi;
  overflow: hidden;
  background: #000000;
  border: 0.15cqi solid #e6e0d6;
}
.tv-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tv-hero-badge {
  position: absolute;
  top: 1cqi;
  left: 1cqi;
  background: rgba(11, 110, 79, 0.92);
  color: #ffffff;
  padding: 0.35cqi 0.8cqi;
  border-radius: 0.4cqi;
  font-size: 1.1cqi;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tv-prize-hero-info {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5cqi 1cqi;
  min-width: 0;
}
.tv-kicker {
  font-size: 1.1cqi;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b6e4f;
  line-height: 1;
}
.tv-prize-hero-title {
  font-size: 2.5cqi;
  font-weight: 800;
  color: #171512;
  line-height: 1.1;
  margin: 0.4cqi 0;
  letter-spacing: -0.02em;
}
.tv-prize-hero-sub {
  font-size: 1.25cqi;
  color: #575047;
  line-height: 1.4;
  margin: 0 0 0.8cqi;
}
.tv-prize-hero-stats {
  display: flex;
  gap: 0.8cqi;
  align-items: center;
  margin-bottom: 0.6cqi;
}
.tv-hero-pill-price {
  background: #171512;
  color: #ffffff;
  padding: 0.4cqi 0.9cqi;
  border-radius: 0.5cqi;
  font-size: 1.3cqi;
}
.tv-hero-pill-price strong { color: #6ee7b7; }
.tv-hero-pill-free {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  padding: 0.4cqi 0.8cqi;
  border-radius: 0.5cqi;
  font-size: 1.2cqi;
}
.tv-prize-hero-date {
  font-size: 1.2cqi;
  color: #78716c;
  font-weight: 600;
  margin-bottom: 0.8cqi;
}
.tv-prize-hero-qr {
  display: flex;
  align-items: center;
  gap: 0.8cqi;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 0.8cqi;
  padding: 0.6cqi 0.9cqi;
}
.tv-hero-cta {
  font-size: 1.3cqi;
  font-weight: 800;
  color: #171512;
  margin: 0;
  line-height: 1.15;
}
.tv-hero-url {
  display: block;
  font-size: 1.05cqi;
  color: #0b6e4f;
  font-weight: 700;
  margin-top: 0.15cqi;
}

/* VISTA 3: QR GIGANTE PARA MESAS DISTANTES */
.tv-view-qr {
  align-items: stretch;
}
.tv-qr-hero-card {
  flex: 1.1;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 1cqi;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5cqi;
  text-align: center;
}
.tv-qr-big-box {
  width: 20cqi;
  height: 20cqi;
  background: #ffffff;
  border-radius: 0.8cqi;
  padding: 0.8cqi;
  display: grid;
  place-items: center;
}
.tv-qr-svg-giant {
  width: 100%;
  height: 100%;
  fill: #171512;
}
.tv-qr-hero-tag {
  margin-top: 0.8cqi;
  font-size: 1.3cqi;
  font-weight: 800;
  color: #0b6e4f;
  background: #ecfdf5;
  padding: 0.3cqi 0.9cqi;
  border-radius: 99px;
}
.tv-qr-hero-steps {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.6cqi 1cqi;
  min-width: 0;
}
.tv-qr-steps-title {
  font-size: 2.6cqi;
  font-weight: 800;
  color: #171512;
  line-height: 1.1;
  margin: 0.3cqi 0;
  letter-spacing: -0.02em;
}
.tv-qr-steps-url {
  font-size: 1.4cqi;
  font-weight: 700;
  color: #0b6e4f;
  margin: 0 0 1cqi;
}
.tv-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2cqi;
  display: grid;
  gap: 0.6cqi;
}
.tv-steps-list li {
  display: flex;
  align-items: center;
  gap: 0.7cqi;
  font-size: 1.25cqi;
  color: #26231e;
  font-weight: 600;
}
.step-num {
  width: 2.2cqi;
  height: 2.2cqi;
  border-radius: 50%;
  background: #171512;
  color: #ffffff;
  font-size: 1.1cqi;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tv-qr-price-badge {
  font-size: 1.3cqi;
  color: #575047;
  padding: 0.5cqi 0.9cqi;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 0.6cqi;
  align-self: flex-start;
}
.tv-qr-price-badge strong { color: #171512; }

/* VISTA 4: SORTEO Y NÚMERO GANADOR */
.tv-view-winner {
  align-items: stretch;
}
.tv-winner-badge-card {
  flex: 1;
  background: #171512;
  border-radius: 1cqi;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5cqi;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.tv-winner-badge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
}
.tv-winner-kicker {
  position: relative;
  z-index: 2;
  font-size: 1.2cqi;
  font-weight: 800;
  text-transform: uppercase;
  color: #6ee7b7;
  letter-spacing: 0.1em;
}
.tv-winner-big-num {
  position: relative;
  z-index: 2;
  font-size: 11cqi;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin: 0.4cqi 0;
  text-shadow: 0 0.5cqi 2cqi rgba(16, 185, 129, 0.5);
}
.tv-winner-lbl {
  position: relative;
  z-index: 2;
  font-size: 1.2cqi;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #94a3b8;
}
.tv-winner-info-card {
  flex: 1.35;
  background: #ffffff;
  border: 0.15cqi solid #e6e0d6;
  border-radius: 1cqi;
  padding: 1.5cqi 2cqi;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.tv-winner-prize-name {
  font-size: 2.6cqi;
  font-weight: 800;
  color: #171512;
  line-height: 1.1;
  margin: 0.3cqi 0;
  letter-spacing: -0.02em;
}
.tv-winner-venue {
  font-size: 1.3cqi;
  color: #575047;
  margin: 0 0 1cqi;
}
.tv-winner-seal {
  display: flex;
  align-items: center;
  gap: 0.8cqi;
  background: #f8fafc;
  border: 0.15cqi solid #e2e8f0;
  border-radius: 0.8cqi;
  padding: 0.7cqi 1cqi;
  margin-bottom: 1cqi;
}
.tv-seal-icon { font-size: 1.8cqi; }
.tv-winner-seal strong {
  display: block;
  font-size: 1.25cqi;
  color: #0f172a;
}
.tv-winner-seal small {
  display: block;
  font-size: 1.05cqi;
  color: #64748b;
}
.tv-winner-chips {
  display: flex;
  gap: 0.7cqi;
  flex-wrap: wrap;
}
.tv-chip-winner {
  background: #ecfdf5;
  color: #0b6e4f;
  font-weight: 800;
  padding: 0.35cqi 0.8cqi;
  border-radius: 99px;
  font-size: 1.15cqi;
}
.tv-chip-state {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 0.35cqi 0.8cqi;
  border-radius: 99px;
  font-size: 1.15cqi;
}

/* NOTIFICACIÓN FLOTANTE DE NÚMERO RESERVADO */
.tv-alert {
  position: absolute;
  left: 50%;
  bottom: 8cqi;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
}
.tv-alert.is-on {
  animation: tv-alert-pop 3.6s ease-in-out forwards;
}
.tv-alert-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.7cqi;
  padding: 1cqi 2.5cqi;
  border-radius: 1.2cqi;
  background: #0b6e4f;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 2.2cqi;
  line-height: 1.1;
  letter-spacing: -0.02em;
  box-shadow: 0 1cqi 3cqi -0.5cqi rgba(0, 0, 0, 0.55);
}
.tv-alert-icon { font-size: 2cqi; }
.tv-alert-text strong { color: #ffffff; text-decoration: underline; }

@keyframes tv-alert-pop {
  0% { opacity: 0; transform: translateY(25%) scale(0.92); }
  12% { opacity: 1; transform: translateY(0) scale(1); }
  85% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-15%) scale(0.96); }
}

/* SELECTOR DE VISTAS DE LA TV */
.tv-controls {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.tv-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}
.tv-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.tv-ctrl-btn.is-active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #ffffff;
}
.tv-ctrl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.tv-ctrl-btn.is-active .tv-ctrl-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  opacity: 1;
}
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 0.5cqi;
  padding: 0.35cqi;
  border: 0.12cqi solid #e6e0d6;
  display: grid;
  place-items: center;
}
.tv-qr-svg {
  width: 100%;
  height: 100%;
  fill: #171512;
}
.tv-qr-info { min-width: 0; }
.tv-qr-cta {
  font-size: 1.4cqi;
  font-weight: 800;
  color: #171512;
  line-height: 1.15;
  margin: 0;
}
.tv-qr-sub {
  display: block;
  font-size: 1.1cqi;
  font-weight: 700;
  color: #0b6e4f;
  margin-top: 0.25cqi;
}

/* Ticker inferior */
.tv-ticker {
  height: 5.75cqi;
  padding: 0 2.2cqi;
  background: #171512;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-top: 0.15cqi solid rgba(255, 255, 255, 0.08);
}
.tv-ticker-left {
  display: flex;
  align-items: center;
  gap: 0.8cqi;
  font-size: 1.4cqi;
}
.tv-ticker-lbl {
  color: #a8a29e;
  font-weight: 700;
}
.tv-ticker-nums {
  color: #6ee7b7;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tv-ticker-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqi;
  background: rgba(16, 185, 129, 0.2);
  border: 0.12cqi solid rgba(52, 211, 153, 0.45);
  border-radius: 99px;
  padding: 0.3cqi 0.9cqi;
  font-size: 1.35cqi;
  color: #ecfdf5;
  font-weight: 700;
}

/* Animaciones del televisor */
@keyframes tv-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}
@keyframes tv-hit-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 1.2cqi 0.3cqi rgba(16, 185, 129, 0.9);
  }
}
@keyframes tv-led-breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 1px #10b981; }
  50% { opacity: 0.4; box-shadow: 0 0 2px 0px #10b981; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-cell.is-hit,
  .tv-live-dot,
  .tv-led {
    animation: none;
  }
}

.tv-perks-list {
  display: grid;
  gap: 18px;
}
.tv-perk-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.tv-perk-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
}
.tv-perk-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.tv-perk-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.tv-perk-card p {
  font-size: 0.88rem;
  color: var(--dark-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---------- MÓDULO: CONTROL DEL ORGANIZADOR (Push + Emails + Cero Estrés) ---------- */
.control-grid {
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  display: grid; gap: 20px;
}
@media (min-width: 740px) {
  .control-grid { grid-template-columns: repeat(3, 1fr); }
}
.control-card {
  padding: 26px; border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: grid; gap: 12px; align-content: start;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .control-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
}
.control-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 4px;
}
.control-icon svg { width: 24px; height: 24px; }
.control-card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; }
.control-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }
.control-pill {
  justify-self: start; padding: 4px 10px; border-radius: 99px;
  background: var(--n-100); font-size: 0.74rem; font-weight: 800; color: var(--n-800);
}

/* ---------- Bento Grid de Ventajas del Organizador ---------- */
.bento-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; gap: 18px;
}
@media (min-width: 680px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}
.bento-card {
  display: grid; gap: 10px; align-content: start;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento-card:hover { transform: translateY(-2px); border-color: var(--n-300); box-shadow: var(--shadow-md); }
}
.bento-card.is-highlight {
  background: linear-gradient(155deg, var(--surface) 0%, var(--accent-soft) 100%);
  border-color: #a7f3d0;
}
.bento-card.is-dark {
  background: var(--n-950); color: var(--n-0); border-color: var(--n-950);
}
.bento-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px;
}
.bento-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-card.is-dark .bento-icon { background: var(--accent); color: var(--n-0); }
.bento-tag {
  padding: 4px 10px; border-radius: 999px;
  background: var(--n-100); color: var(--n-800);
  font-size: 0.75rem; font-weight: 800;
}
.bento-card.is-highlight .bento-tag { background: var(--accent); color: var(--n-0); }
.bento-card.is-dark .bento-tag { background: rgb(255 255 255 / 0.12); color: #fde68a; }
.bento-card h3 {
  font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 800;
}
.bento-card p {
  font-size: 0.92rem; line-height: 1.55; color: var(--text-muted);
}
.bento-card.is-dark p { color: #d9d2c7; }

/* Bento Grid Compacto (RF-022 optimizado) */
.bento-grid.is-compact {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 12px;
}
@media (min-width: 600px) {
  .bento-grid.is-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 960px) {
  .bento-grid.is-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.bento-grid.is-compact .bento-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  gap: 8px;
}
.bento-grid.is-compact .bento-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.bento-grid.is-compact .bento-icon svg {
  width: 18px;
  height: 18px;
}
.bento-grid.is-compact .bento-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
}
.bento-grid.is-compact h3 {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.bento-grid.is-compact p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* Pasos */
.steps { margin-top: clamp(2rem, 4.5vw, 3.25rem); display: grid; gap: 1.75rem; counter-reset: paso; }
.step {
  counter-increment: paso;
  display: grid; gap: 10px; align-content: start;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step::before {
  content: "Paso " counter(paso);
  justify-self: start; padding: 4px 12px; border-radius: 999px;
  background: var(--n-950); color: var(--n-0);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.step h3 { font-size: 1.22rem; letter-spacing: -0.015em; font-weight: 800; }
.step p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.55; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* Steps Flow - 1-2-3 directo y conectado */
.steps-flow {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .steps-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.step-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(11, 110, 79, 0.3);
}
.step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--n-200) 100%);
  display: none;
}
@media (min-width: 860px) {
  .step-line {
    display: block;
  }
}
.step-card {
  flex: 1;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--n-950);
  margin: 0;
}
.step-card p {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--text-muted);
  margin: 0;
}

.participants {
  margin-top: clamp(2rem, 4.5vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--n-100); border: 1px solid var(--line);
}
.participants p { max-width: 62ch; color: var(--n-800); font-size: 0.95rem; }
.participants strong { color: var(--text); }

.participants-compact {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--n-100);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.participants-compact .part-icon { font-size: 1.2rem; }
.participants-compact p { flex: 1 1 280px; color: var(--n-800); margin: 0; }
.participants-compact strong { color: var(--text); }

/* Precios */
.pricing { margin-top: clamp(2rem, 4.5vw, 3rem); display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.35fr 1fr; gap: 32px; } }

.pricing-card {
  padding: clamp(22px, 3.5vw, 32px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; gap: 16px; align-content: start;
}
.pricing-card-head { display: flex; align-items: center; justify-content: space-between; }
.pricing-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--n-950); color: var(--n-0); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
}
.price-table { border-top: 2px solid var(--n-950); }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
}
.price-row dt { font-weight: 700; color: var(--n-950); }
.price-row dd { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.price-row dd.is-quote { font-size: 0.98rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0; }
.pricing-includes {
  display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--n-50); font-size: 0.86rem; font-weight: 600; color: var(--n-800);
}
.price-foot { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

.free-card {
  padding: clamp(24px, 3.5vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft) 0%, #f0fdf4 100%);
  border: 2px solid var(--accent); box-shadow: var(--shadow-md);
  display: grid; gap: 14px; align-content: start;
}
.free-card-badge {
  justify-self: start; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--n-0); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em;
}
.free-card h3 { font-size: 1.55rem; letter-spacing: -0.02em; font-weight: 800; color: var(--n-950); }
.free-card p { color: var(--n-800); font-size: 0.95rem; line-height: 1.55; }
.free-card-list { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 700; color: var(--n-950); }
.free-card .btn { margin-top: 6px; width: 100%; }

/* Pricing Premium (Look Obsidian / VIP) */
.pricing-premium-grid {
  margin-top: clamp(2rem, 4.5vw, 3rem);
  display: grid;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 920px) {
  .pricing-premium-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
  }
}

.pricing-card-pro {
  position: relative;
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, #181512 0%, #0d1713 100%);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pricing-pro-head h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 8px 0 4px;
}
.pricing-pro-head p {
  color: #a8a29e;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}
.pricing-pill-pro {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card-pro .price-table {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
}
.pricing-card-pro .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background-color 0.15s;
}
.pricing-card-pro .price-row dt {
  color: #e7e5e4;
  font-size: 0.94rem;
  font-weight: 600;
}
.pricing-card-pro .price-row dd {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #34d399;
}
.pricing-card-pro .price-row dd.is-quote {
  font-size: 0.92rem;
  font-weight: 700;
  color: #a8a29e;
}

/* Fila destacada "Más elegido" vía CSS :nth-child(3) */
.pricing-card-pro .price-row:nth-child(3) {
  background: rgba(52, 211, 153, 0.08);
  border-radius: 8px;
  padding: 11px 10px;
  margin: 3px 0;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.pricing-card-pro .price-row:nth-child(3) dt::after {
  content: "· Más elegido";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #0b6e4f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  vertical-align: middle;
}

.pricing-pro-features {
  list-style: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  margin: 0;
}
.pricing-pro-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #d6d3d1;
  line-height: 1.4;
}
.pricing-pro-features svg {
  width: 16px;
  height: 16px;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card-pro .price-foot {
  color: #78716c;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: auto;
}
.pricing-card-pro .price-foot a {
  color: #a8a29e;
  text-decoration: underline;
}

/* Tarjeta VIP Promoción 0 € */
.free-card-vip {
  position: relative;
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 40%, #ffffff 100%);
  border: 2px solid #10b981;
  box-shadow: 0 16px 40px -12px rgba(16, 185, 129, 0.22), var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.free-vip-sparkle {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.6rem;
}
.free-vip-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 99px;
  background: #065f46;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.free-card-vip h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--n-950);
  margin: 0;
}
.free-vip-desc {
  color: var(--n-800);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}
.free-vip-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding: 0;
}
.free-vip-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--n-900);
  line-height: 1.35;
}
.free-vip-list svg {
  width: 17px;
  height: 17px;
  color: #059669;
  flex-shrink: 0;
  margin-top: 1px;
}
.free-vip-action {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.free-vip-btn {
  text-align: center;
  box-shadow: 0 4px 14px rgba(11, 110, 79, 0.35);
  font-weight: 800;
  padding: 14px 20px;
}
.free-vip-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Confianza */
.trust { margin-top: clamp(2rem, 4.5vw, 3rem); display: grid; gap: 20px; }
@media (min-width: 860px) {
  .trust { grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; }
}
.trust-item {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.trust-item h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.trust-item p { margin-top: 8px; color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }
.trust-item svg { width: 32px; height: 32px; margin-bottom: 14px; color: var(--accent); }
.trust-item.is-main {
  border: 2px solid var(--n-950);
  background: linear-gradient(180deg, var(--surface) 0%, var(--n-50) 100%);
}
.trust-item.is-main h3 { font-size: 1.3rem; }

/* Cierre */
.closing {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: linear-gradient(135deg, var(--n-950) 0%, #0c2017 100%);
  color: var(--n-0); border-top: 4px solid var(--accent);
}
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing-kicker {
  display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--n-0); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.closing h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; max-width: 22ch; }
.closing p { margin-top: 10px; color: #d9d2c7; font-size: 1rem; }

/* ---------- Descubrir rifas cerca (RF-031) ---------- */
.home-nearby {
  padding: clamp(3.5rem, 6.5vw, 5.5rem) 0;
  background: #fdfcfb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-nearby .section-header { margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }
.home-nearby-foot {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.nearby { padding: 0; }
.nearby-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.nearby-title { font-size: clamp(1.2rem, 2.5vw, 1.45rem); font-weight: 800; letter-spacing: -0.02em; color: var(--n-950); }
.nearby-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 280px; max-width: 480px; }
.nearby-form .input { flex: 1 1 140px; min-width: 0; }
.nearby-geo-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.nearby-filters { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.nearby-filter-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  font-size: 0.85rem; font-weight: 700; color: var(--n-800); cursor: pointer;
  transition: all 0.15s ease-out;
}
.nearby-filter-btn:hover { border-color: var(--accent); color: var(--n-950); }
.nearby-filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.nearby-status { margin-top: 14px; color: var(--text-muted); font-size: 0.95rem; }
.nearby-status:empty { display: none; }

/* Radar de Proximidad y Mapa Interactivo */
.nearby-radar-module {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px -12px rgba(22, 19, 15, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.radar-map-visual {
  position: relative;
  height: 200px;
  background: radial-gradient(circle at 50% 60%, #153226 0%, #0c1a14 70%, #060e0a 100%);
  overflow: hidden;
}
@media (min-width: 768px) {
  .radar-map-visual { height: 240px; }
}

.radar-map-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(52, 211, 153, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
}

.radar-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  border: 1.5px solid rgba(52, 211, 153, 0.4);
  animation: radar-sweep 3s ease-out infinite;
  pointer-events: none;
}
@keyframes radar-sweep {
  0% { transform: scale(0.3); opacity: 0.9; }
  70% { transform: scale(2.2); opacity: 0.2; }
  100% { transform: scale(2.8); opacity: 0; }
}

.radar-live-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(12, 26, 20, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #a7f3d0;
}
.radar-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: radar-dot-pulse 1.8s infinite;
}
@keyframes radar-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Pines interactivos en el mapa */
.map-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
  transform: translate(-50%, -50%);
  cursor: default;
  transition: transform 0.2s ease-out;
}
.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 6;
}
.pin-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}
.pin-halo {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.35);
  animation: pin-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pin-ping {
  0% { transform: scale(0.8); opacity: 0.8; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}
.pin-name {
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(12, 26, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Isla de búsqueda sobre el mapa */
.radar-search-island {
  padding: clamp(18px, 3.5vw, 26px);
  background: var(--surface);
}
.radar-search-island .nearby-title {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--n-950);
  margin: 0;
}
.radar-search-island .nearby-sub {
  margin: 4px 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Barra unificada de búsqueda estilo Airbnb/Google Maps */
.nearby-bar-field {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--n-300);
  border-radius: 99px;
  padding: 4px 6px 4px 14px;
  box-shadow: 0 4px 16px rgba(22, 19, 15, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
  max-width: 640px;
}
.nearby-bar-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 20px rgba(11, 110, 79, 0.12);
}
.nearby-pin-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-right: 8px;
}
.nearby-pin-icon svg {
  width: 20px;
  height: 20px;
}
.nearby-cp-input {
  flex: 1;
  min-width: 100px;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 6px !important;
  font-size: 0.95rem !important;
  min-height: auto !important;
  background: transparent !important;
  color: var(--n-950);
}
.nearby-cp-input::placeholder {
  color: var(--n-500);
}
.nearby-cp-input:focus {
  outline: none;
}
.nearby-geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--n-50);
  color: var(--n-800);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease-out;
}
.nearby-geo-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.geo-svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.nearby-search-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-left: 6px;
}

@media (max-width: 580px) {
  .nearby-bar-field {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    padding: 10px;
    gap: 8px;
  }
  .nearby-pin-icon { display: none; }
  .nearby-cp-input {
    width: 100%;
    flex: 1 1 100%;
    padding: 8px 4px !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0;
  }
  .nearby-geo-btn {
    flex: 1;
    justify-content: center;
  }
  .nearby-search-btn {
    flex: 1;
    justify-content: center;
    margin-left: 0;
  }
}

.rcards {
  margin-top: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.rcard { list-style: none; display: flex; }
.rcard.hidden { display: none !important; }
.rcard a, .rcard-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px -4px rgba(22, 19, 15, 0.07), 0 2px 4px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .rcard a:hover, .rcard-link:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 110, 79, 0.35);
    box-shadow: 0 16px 36px -8px rgba(11, 110, 79, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  }
  .rcard a:hover .rcard-img, .rcard-link:hover .rcard-img {
    transform: scale(1.05);
  }
  .rcard a:hover .rcard-arrow, .rcard-link:hover .rcard-arrow {
    transform: translateX(4px);
  }
}
.rcard a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Visual de imagen 16:9 con zoom suave */
.rcard-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #171410 0%, #292520 100%);
  overflow: hidden;
}
.rcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.rcard-badges-top {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.rcard-price-pill {
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(18, 16, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #34d399;
  font-size: 0.84rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.rcard-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.rcard-tag.is-pickup { background: rgba(236, 253, 245, 0.95); color: #065f46; border: 1px solid #6ee7b7; }
.rcard-tag.is-shipping { background: rgba(239, 246, 255, 0.95); color: #1e40af; border: 1px solid #93c5fd; }
.rcard-tag.is-both { background: rgba(254, 252, 232, 0.95); color: #854d0e; border: 1px solid #fde047; }
.rcard-badge-finished {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 16, 13, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
}

/* Cuerpo de la tarjeta */
.rcard-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.rcard-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--n-600);
}
.rcard-loc-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.rcard-title {
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--n-950);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rcard-prize {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rcard-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.rcard-bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--n-100);
  overflow: hidden;
}
.rcard-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
.rcard-sold-info {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--n-700);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rcard-done {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.rcard-cta {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
}
.rcard-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.rcard.is-finished a {
  opacity: 0.8;
}

/* ---------- Pie de página unificado y moderno ---------- */
.site-footer {
  padding: 56px 0 36px;
  background: #0d1210;
  color: #94a3b8;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  font-size: 0.9rem;
}
.site-footer .brand {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-footer .brand-accent { color: #34d399; }
.site-footer .brand-dot { color: #34d399; }
.site-footer .brand-tld { color: #94a3b8; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 24px;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 40px;
  }
}

.footer-brand-col {
  max-width: 320px;
}
.footer-desc {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}
.footer-trust-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-heading {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin: 0 0 14px;
}
.footer-col-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-nav a,
.footer-col-nav button,
.footer-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-link-btn {
  font-size: 0.9rem;
}
/* Redes de la marca. Cada enlace lleva el icono de su red como máscara (el color sigue al texto) y su nombre visible,
   así que el icono es decorativo: `content: "" / ""` lo oculta a los lectores de pantalla. */
.social-link-instagram { --social-icon: url("/assets/images/redes/instagram.svg"); }
.social-link-facebook { --social-icon: url("/assets/images/redes/facebook.svg"); }
.social-link-youtube { --social-icon: url("/assets/images/redes/youtube.svg"); }
.social-link-tiktok { --social-icon: url("/assets/images/redes/tiktok.svg"); }
.social-link::before {
  content: "";
  content: "" / "";
  flex: none;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
  forced-color-adjust: none;
}

/* En el pie, en la columna del logo: una píldora por red, en fila. */
.footer-social {
  margin-top: 16px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-col-nav.footer-social a {
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-col-nav.footer-social a:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .footer-col-nav a:hover,
  .footer-col-nav button:hover,
  .footer-link-btn:hover {
    color: #34d399;
    transform: translateX(2px);
  }
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.footer-legal {
  max-width: 68ch;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #94a3b8;
}
.footer-legal p + p {
  margin-top: 6px;
}
.footer-copy {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

/* Compatibilidad con clases planas anteriores */
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a, .footer-links button {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0; background: none; border: 0; cursor: pointer;
  color: #cbd5e1; text-decoration: none; font-weight: 600;
}
@media (hover: hover) and (pointer: fine) { .footer-links a:hover, .footer-links button:hover { color: #34d399; text-decoration: underline; } }

/* ---------- Diálogos (registro, acceso y denuncia) ---------- */
.dialog {
  position: fixed; inset: 0; z-index: 80;
  display: flex; padding: 16px;
  background: rgba(18, 16, 13, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
}
.dialog-panel {
  width: 100%; max-width: 440px; margin: auto;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: 0 24px 64px -16px rgba(22, 19, 15, 0.4);
  animation: dialog-in 220ms var(--ease-out);
}
.dialog-panel.is-wide { max-width: 520px; }
/* Segundo paso del login (RF-047 F3): se abre encima del diálogo de acceso. */
.dialog.is-top { z-index: 90; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.dialog-head p { margin-top: 6px; font-size: 0.9rem; color: var(--text-muted); }
.dialog-close {
  flex: none; width: 40px; height: 40px; margin: -8px -8px 0 0;
  display: grid; place-items: center; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted); cursor: pointer; font-size: 1.4rem; line-height: 1;
}
@media (hover: hover) and (pointer: fine) { .dialog-close:hover { background: var(--n-100); color: var(--text); } }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 520px) { .form-row.is-split { grid-template-columns: 1fr 1fr; } }
.field label, .field-label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 700; }
.field-hint { font-weight: 500; color: var(--text-muted); }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 1rem;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--n-100);
  font-size: 0.88rem; line-height: 1.5; cursor: pointer;
}
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.check a { color: var(--accent-ink); font-weight: 700; }

.form .btn { width: 100%; }
.form-error {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem;
}
.form-error.is-ok {
  background: var(--n-100); color: var(--n-950); border: 1px solid var(--line);
}
.form-switch { text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.form-switch button {
  min-height: 44px; margin-left: 4px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  color: var(--accent-ink); font-weight: 700; text-decoration: underline;
}
.dialog-text { margin-bottom: 18px; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Menú de la cuenta en la cabecera (RF-039 adenda B) ---------- */
.account { position: relative; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Trigger sin sesión («Entrar») */
.header-actions .account-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; min-height: 38px;
  padding: 0 14px 0 10px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 0.88rem; font-weight: 700;
  text-decoration: none; transition: all 0.15s ease;
}
.header-actions .account-trigger:hover {
  background: var(--n-100); border-color: var(--n-300); color: var(--text);
}
.account-icon {
  position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid currentColor; overflow: hidden;
}
.account-icon::before, .account-icon::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); background: currentColor; }
.account-icon::before { top: 3px; width: 6px; height: 6px; border-radius: 50%; }
.account-icon::after { top: 11px; width: 14px; height: 10px; border-radius: 6px 6px 0 0; }

/* Trigger con sesión iniciada (Avatar + Nombre + Chevron) */
.account[data-state="in"] .account-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; min-height: 38px;
  padding: 2px 10px 2px 3px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; transition: all 0.15s ease;
}
.account[data-state="in"] .account-trigger:hover,
.account[data-state="in"] .account-trigger[aria-expanded="true"] {
  background: var(--n-100); border-color: var(--n-300);
}
.account-avatar {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #171512 0%, #2a2520 100%); color: #FAF8F5;
  font-size: 0.86rem; font-weight: 800; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.account-name {
  max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.88rem; font-weight: 700; color: var(--text);
}
.account-chevron {
  display: inline-flex; align-items: center; justify-content: center; width: 8px; height: 8px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 1px; margin-right: 2px;
}
.account-trigger[aria-expanded="true"] .account-chevron {
  transform: rotate(-135deg);
}

/* Card del Menú Desplegable */
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 280px; max-width: calc(100vw - 20px); padding: 0;
  background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 18px;
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.16), 0 6px 16px -4px rgba(0, 0, 0, 0.08);
  transform-origin: top right; animation: account-in 150ms cubic-bezier(0.16, 1, 0.3, 1);
  list-style: none; overflow: hidden; margin: 0;
}
@keyframes account-in {
  from { opacity: 0; transform: scale(0.96) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .account-menu { animation: none; } }

/* Cabecera del usuario dentro del menú */
.account-menu-card-header {
  padding: 14px 16px 12px; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.account-menu-user-info { display: flex; align-items: center; gap: 12px; }
.account-menu-avatar-large {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #171512 0%, #2a2520 100%); color: #FAF8F5;
  font-size: 1.1rem; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.account-menu-user-details { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.account-menu-user-name {
  font-size: 0.94rem; font-weight: 800; color: var(--text); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-menu-user-email {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-menu-badge {
  display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 7px;
  border-radius: 99px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; text-transform: uppercase;
}

/* Divisor */
.account-menu-divider { height: 1px; background: var(--line); margin: 3px 0; }

/* Ítems del menú */
.account-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 16px; border: 0;
  background: none; font-size: 0.92rem; font-weight: 600; text-align: left; text-decoration: none;
  color: var(--text); cursor: pointer; transition: background 0.12s ease;
}
.account-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .account-item:hover { background: var(--n-100); } }

.account-item-raffles::before { content: '🎟️'; font-size: 1rem; }
.account-item-buy::before { content: '🛒'; font-size: 1rem; }
.account-item-account::before { content: '⚙️'; font-size: 1rem; }
.account-item-logout::before { content: '🚪'; font-size: 1rem; }

/* Fila de control de avisos push en el menú */
.account-menu-push-row {
  margin: 5px 8px; padding: 9px 12px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.account-menu-push-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.account-menu-push-title {
  display: flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--text);
}
.account-menu-push-badge {
  font-size: 0.64rem; font-weight: 800; padding: 1px 5px; border-radius: 99px;
  background: var(--n-200); color: var(--text-muted);
}
.account-menu-push-badge.is-active {
  background: #dcfce7; color: #15803d;
}
.account-menu-push-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.2; }
.account-push-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 99px; font-size: 0.74rem; font-weight: 700;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all 0.15s ease; white-space: nowrap; flex-shrink: 0;
}
.account-push-btn:hover { background: var(--n-100); border-color: var(--n-300); }
.account-push-btn.is-active {
  background: #dcfce7; color: #15803d; border-color: #86efac;
}

/* Cerrar sesión */
.account-item-logout { color: #dc2626 !important; }
@media (hover: hover) and (pointer: fine) {
  .account-item-logout:hover { background: #fef2f2 !important; color: #b91c1c !important; }
}

/* Adaptación responsive en pantallas pequeñas */
@media (max-width: 539px) {
  .account[data-state="in"] .account-trigger { padding: 2px; width: 38px; height: 38px; min-width: 38px; justify-content: center; }
  .account-name, .account-chevron { display: none !important; }
  .account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* ==========================================================================
   MÓDULOS DE FLUJO: ORGANIZADOR Y PARTICIPANTE
   ========================================================================== */
.section-flow {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  position: relative;
}

.section-flow.is-alt-bg {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.flow-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.flow-pill-badge.is-org {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flow-pill-badge.is-player {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.badge-dot.badge-dot-blue {
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.flow-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 24px;
  position: relative;
}

@media (min-width: 860px) {
  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(18, 16, 13, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(18, 16, 13, 0.12);
    border-color: rgba(11, 110, 79, 0.4);
  }
  .section-flow.is-alt-bg .flow-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
  }
}

.flow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flow-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  flex-shrink: 0;
}

.flow-num-badge.is-player {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.flow-pill {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.flow-pill.is-org {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.flow-pill.is-player {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Micro-widgets visuales interactivos */
.flow-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow-preview-box.is-player {
  background: #f0f7ff;
  border-color: #dbeafe;
}

.flow-mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.mock-dot-green {
  background: #10b981;
}
.mock-dot-blue {
  background: #3b82f6;
}

.flow-mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mock-tag {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.flow-mock-bizum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #a7f3d0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #0f172a;
}
.mock-badge-valid {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #6ee7b7;
}

.flow-mock-scan {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e40af;
}

.flow-mock-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-chip {
  width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.mock-chip.is-taken {
  background: #e2e8f0;
  color: #94a3b8;
  text-decoration: line-through;
  border-color: #cbd5e1;
}
.mock-chip.is-selected {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  transform: scale(1.05);
}

.flow-mock-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.mock-receipt-num {
  font-weight: 800;
  color: #1e293b;
}
.mock-receipt-status {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.flow-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--n-950);
  margin: 0;
}

.flow-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.flow-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid rgba(11, 110, 79, 0.18);
  margin-top: 4px;
}

.flow-perk svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--accent);
  margin-top: 1px;
}

.flow-perk.is-org {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.flow-perk.is-org svg {
  color: #059669;
}

.flow-perk.is-player {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.flow-perk.is-player svg {
  color: #2563eb;
}

.flow-cta-bar {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -6px rgba(11, 110, 79, 0.18);
}

.flow-cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flow-cta-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--n-950);
}

.flow-cta-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flow-footer-card {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.flow-footer-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.flow-footer-text {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-footer-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--n-950);
}

.flow-footer-text p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 680px) {
  .flow-cta-bar, .flow-footer-card, .duel-summary-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .flow-cta-bar .btn, .flow-footer-card .btn, .duel-summary-banner .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-card, .duel-card {
    transition: none !important;
  }
}

/* Logo oficial: un solo archivo (/assets/images/logo.svg y logo-claro.svg) en todas las páginas */
.brand-logo { display: block; height: 24px; width: auto; }
.site-footer .brand-logo { height: 22px; }

/* Packs y suscripciones (ADR-0018) en la tarjeta de tarifas */
.packs-block { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.packs-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; color: var(--n-950); }
.packs-sub { font-size: 0.88rem; line-height: 1.5; color: var(--text-muted); margin: 8px 0 0; }
.packs-included { color: var(--accent-ink); }
.packs-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.packs-table th, .packs-table td { padding: 10px 6px; text-align: right; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.packs-table thead th { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); vertical-align: bottom; }
.packs-table thead th em { display: block; font-style: normal; font-size: 0.72rem; color: var(--accent-ink); letter-spacing: 0; text-transform: none; }
.packs-table th[scope="row"], .packs-table thead th:first-child { text-align: left; font-weight: 700; color: var(--n-950); }
.packs-table td { font-weight: 800; }
.packs-table tbody tr:last-child th, .packs-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) { .packs-table th, .packs-table td { font-size: 0.86rem; padding: 9px 3px; } }
/* La tarjeta de tarifas es oscura: los packs se leen sobre ella */
.pricing-card-pro .packs-block { border-top-color: rgba(255, 255, 255, 0.16); }
.pricing-card-pro .packs-title { color: #ffffff; }
.pricing-card-pro .packs-sub { color: #cbd5e1; }
.pricing-card-pro .packs-sub strong { color: #ffffff; }
.pricing-card-pro .packs-included, .pricing-card-pro .packs-included strong { color: #6ee7b7; }
.pricing-card-pro .packs-table th, .pricing-card-pro .packs-table td { border-bottom-color: rgba(255, 255, 255, 0.12); }
.pricing-card-pro .packs-table thead th { color: #94a3b8; }
.pricing-card-pro .packs-table thead th em { color: #6ee7b7; }
.pricing-card-pro .packs-table th[scope="row"], .pricing-card-pro .packs-table thead th:first-child { color: #e2e8f0; }
.pricing-card-pro .packs-table td { color: #6ee7b7; }

/* Acceso con Google (modal de acceso y /registro-social), con los colores de su guía de marca. */
.auth-social { display: grid; gap: 10px; margin-bottom: 14px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; font-weight: 700; text-decoration: none; border-radius: 10px; }
.btn-social--google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.btn-social--google:hover { background: #f8f9fa; }
.btn-social:focus-visible { outline: 3px solid var(--accent, #14532d); outline-offset: 2px; }
.auth-social__or { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; color: var(--text-muted); font-size: 0.85rem; }
.auth-social__or::before, .auth-social__or::after { content: ""; flex: 1; height: 1px; background: var(--line, #e5e7eb); }

/* RF-053 (ADR-0021): botón fijo «¿En qué podemos mejorar?» y su formulario en /mejorar. */
.feedback-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; box-shadow: 0 8px 24px var(--accent-glow);
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.feedback-fab:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .feedback-fab:hover { background: var(--accent-hover); transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .feedback-fab { transition: none; } }
@media print { .feedback-fab { display: none; } }
/* Sin tapar las barras fijas de abajo: la de «Crear rifa» de la portada en móvil (landing.css, hasta 640 px) y la de
   «Atrás / Siguiente» del asistente de /crear (crear.css). El botón sube por encima de ellas, con su zona segura. */
@media (max-width: 640px) {
  body:has(.mobile-sticky-cta) .feedback-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
body:has(.wz-nav) .feedback-fab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

.feedback-page { max-width: 640px; }
.feedback-form { display: grid; gap: 20px; margin-top: 24px; }
.feedback-form fieldset { border: 0; padding: 0; margin: 0; }
.feedback-kinds { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-kind {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; cursor: pointer;
}
.feedback-kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.feedback-form .input[aria-invalid="true"] { border-color: #b42318; }
.feedback-form .field-error { margin: 6px 0 0; color: #b42318; font-size: 0.88rem; font-weight: 600; }
.feedback-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-legal { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.feedback-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.feedback-status[data-tone="ok"] { color: var(--accent-ink); }
.feedback-status[data-tone="error"] { color: #b42318; }
.feedback-page ~ .feedback-fab, body:has(.feedback-page) .feedback-fab { display: none; }
