/* =====================================================================
   CESTY — Web para compartir y Landing Page Cinemática (cesty.app)
   Experiencia a pantalla completa (Full Viewport Storytelling).
   Sin AI-slop. Artesanía editorial, React Bits y física fluida.
   ===================================================================== */

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  position: relative;
}

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

/* ───────── Atmósfera Cinemática: Grano Analógico y Luz Reactiva ───────── */
.cinematic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.film-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.038'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.9;
}
[data-theme="oscuro"] .film-grain {
  opacity: 0.45;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.4;
  transform: translateZ(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), background 1s ease;
}
[data-theme="oscuro"] .ambient-glow {
  opacity: 0.22;
  filter: blur(160px);
}
.ambient-glow--hero {
  width: 720px;
  height: 520px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
  top: -140px;
  right: -100px;
}
.ambient-glow--accent {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--ok-soft) 0%, transparent 70%);
  bottom: 10%;
  left: -220px;
}

/* ───────── Cabecera Flotante Superior ───────── */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px var(--gutter);
  box-sizing: border-box;
  z-index: 50;
  pointer-events: auto;
}
.logo { height: 28px; width: auto; color: var(--text); display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.04)); }
.logo .bar { fill: var(--brand); }

.theme-btn {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-base), border-color var(--dur-base);
}
.theme-btn:hover { color: var(--text); border-color: var(--border-strong); transform: scale(1.05); }
.theme-btn:active { transform: scale(0.92); }

/* ───────── React Bits: Pill Nav Flotante (Navegador de Secciones) ───────── */
.pill-nav-dock {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: auto;
}
.pill-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-chip);
  box-shadow: var(--shadow-2);
}
.pill-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.22s var(--ease-standard);
  user-select: none;
}
.pill-nav-link:hover {
  color: var(--text);
  background: var(--surface-sunken);
}
.pill-nav-link.active {
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow-1);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.pill-nav-link.active .pill-dot {
  opacity: 1;
  background: var(--brand);
}

@media (max-width: 640px) {
  .pill-nav-dock {
    bottom: 14px;
    width: calc(100% - 32px);
    max-width: 380px;
  }
  .pill-nav-inner {
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }
  .pill-nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }
  .pill-label { display: none; }
  .pill-dot { width: 8px; height: 8px; }
  .pill-nav-link.active .pill-label { display: inline; }
}

/* ───────── Estructura de Viewports Cinemáticos (100dvh) ───────── */
main.landing-cinematic {
  position: relative;
  z-index: 1;
  width: 100%;
}

.viewport-section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 96px var(--gutter) 80px;
  box-sizing: border-box;
  position: relative;
}
@media (min-width: 960px) {
  .viewport-section {
    padding: 108px var(--gutter) 92px;
  }
}

.viewport-content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ───────── Grid Dividido (Editorial + Interactivo) ───────── */
.section-split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .section-split {
    grid-template-columns: 1.05fr 1.15fr;
    gap: 72px;
  }
  .section-split--reverse {
    grid-template-columns: 1.15fr 1.05fr;
  }
  .section-split--reverse .split-narrative {
    order: 2;
  }
  .section-split--reverse .split-interactive {
    order: 1;
  }
}

.split-narrative {
  display: flex;
  flex-direction: column;
}

.section-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.04;
  margin: 0 0 18px;
  color: var(--text);
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}

.section-lead {
  font-size: clamp(16px, 1.8vw, 19.5px);
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}

/* ───────── React Bits: Spotlight Card ───────── */
.spotlight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(480px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), color-mix(in srgb, var(--brand) 45%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.spotlight-card:hover::before { opacity: 0.9; }

/* ───────── React Bits: Magnet Buttons ───────── */
.magnet {
  display: inline-flex;
  transition: transform 0.16s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform;
}

/* ───────── VIEWPORT 1: HERO PRINCIPAL ───────── */
.hero-viewport {
  min-height: 100dvh;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 72px;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}
.hero-eyebrow { margin-bottom: 20px; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-chip);
  box-shadow: var(--shadow-1);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}

.hero-lead {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.48;
  color: var(--text-2);
  margin: 22px 0 0;
  max-width: 32em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn--hero {
  --h: 52px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: calc(var(--radius-control) + 4px);
}
.btn--hero span[data-icon] { margin-right: 6px; }

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-item strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-item span {
  font-size: 12.5px;
  color: var(--text-3);
}
.stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Indicador de scroll cinematográfico */
.scroll-cue {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.scroll-cue-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  padding: 8px 16px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
}
.scroll-cue-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(2px);
}
.scroll-cue-arrow {
  animation: cue-bounce 2s infinite ease-in-out;
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Terminal Físico 3D en Hero */
.tilt-wrapper {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  width: 100%;
  max-width: 440px;
}
.device-card {
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}
.store-badge { display: flex; align-items: center; gap: 8px; }
.store-mode {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tank-ok);
  background: var(--ok-soft);
  padding: 4px 10px;
  border-radius: var(--radius-chip);
}

.device-viewport { padding: 20px; }
.product-preview-card {
  background: var(--surface-sunken);
  border-radius: calc(var(--radius-card) - 6px);
  padding: 20px;
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s;
}
.product-preview-card.is-flashing {
  border-color: var(--brand);
  transform: scale(0.985);
}
.barcode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 11.5px;
}
.barcode-vector { height: 22px; width: auto; color: var(--text-2); }
.product-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}
.product-format {
  font-size: 13.5px;
  color: var(--text-2);
  display: block;
  margin-top: 4px;
}
.product-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
}
.product-price-val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.device-dock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.dock-avatar { width: 56px; height: 56px; flex: none; }
.dock-meter { flex: 1; min-width: 0; }
.dock-meter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  display: block;
}
.dock-meter-sum {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  line-height: 1.1;
  margin-top: 2px;
}
.dock-meter-cur { font-size: 17px; font-weight: 700; color: var(--text-2); }

.fly-price {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  box-shadow: var(--shadow-brand);
  white-space: nowrap;
}

/* ───────── VIEWPORT 2: EN EL PASILLO (Estantería Interactiva) ───────── */
.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}
.bullet-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bullet-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok-ink);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.bullet-item strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 3px;
}
.bullet-item span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

.shelf-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.shelf-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}
.shelf-counter {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-chip);
  background: var(--surface-sunken);
  color: var(--text-3);
}

.shelf-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shelf-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--surface-sunken);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: all 0.2s var(--ease-standard);
  font: inherit;
}
.shelf-item:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateX(3px);
}
.shelf-item.active {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
}
.shelf-item-num {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-3);
}
.shelf-item-desc strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.25;
}
.shelf-item-desc span {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.shelf-item-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

/* ───────── VIEWPORT 3: EN EL DEPÓSITO (Presupuesto Monumental) ───────── */
.tank-presets-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.presets-label {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.preset-card {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: all 0.22s var(--ease-standard);
}
.preset-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}
.preset-card.active {
  border-color: var(--text);
  box-shadow: var(--shadow-2);
}
.preset-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.dot--ok { background: var(--ok); box-shadow: 0 0 10px var(--ok-soft); }
.dot--warn { background: var(--warn); box-shadow: 0 0 10px var(--warn-soft); }
.dot--over { background: var(--over); box-shadow: 0 0 10px var(--over-soft); }

.preset-info strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}
.preset-info span {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.preset-pill {
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-chip);
  background: var(--surface-sunken);
  color: var(--text-2);
}

.monumental-tank-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tank-legend-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  display: block;
}
.tank-legend-val {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
}
.tank-live-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  background: var(--ok-soft);
  color: var(--ok-ink);
  transition: all 0.35s ease;
}
.tank-live-badge[data-state="warn"] {
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.tank-live-badge[data-state="over"] {
  background: var(--over-soft);
  color: var(--over-ink);
}

.tank-stage {
  width: 100%;
}
.tank-stage .tank {
  height: 290px;
  box-shadow: none;
  border: 1px solid var(--border);
}

.tank-stage-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ───────── VIEWPORT 4: EN LA CAJA (Liquidación con Confeti) ───────── */
.settle-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.benefit-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.benefit-badge {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-sunken);
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  flex: none;
  margin-top: 2px;
}
.benefit-row p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-2);
}

.settle-interactive-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.settle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.settle-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  display: block;
  margin-bottom: 4px;
}
.settle-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.settle-amount-tag {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.settle-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settle-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.settle-member-row--payer {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.member-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-profile strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
}
.member-profile span {
  display: block;
  font-size: 12px;
  color: var(--text-2);
}
.debt-status {
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.debt--owes { color: var(--over-ink); }
.debt--gets { color: var(--ok-ink); }

.settle-summary-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-tile);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.settle-avatars-flow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
  color: #141412;
  box-shadow: 0 0 0 1.5px var(--surface);
}
.av-lu { background: #C7B8FF; }
.av-ma { background: #7FE3B0; }
.av-tu { background: #FFB9AF; }
.flow-arrow { font-size: 16px; color: var(--text-3); }
.flow-instruction strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}
.flow-instruction span {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.settle-action-dock {
  margin-top: 4px;
}
.settled-celebration-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

/* ───────── VIEWPORT 5: EN CASA (Lista Compartida y Acceso) ───────── */
.join-box {
  padding: 24px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.join-box-kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.join-form {
  display: flex;
  gap: 8px;
}
.join-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  color: var(--text);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--dur-fast);
}
.join-input:focus { border-color: var(--brand); }
.join-note {
  font-size: 12.5px;
  color: var(--text-3);
}

.list-interactive-card {
  border-radius: var(--radius-card);
  overflow: hidden;
}
.list-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.list-card-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  display: block;
}
.list-card-sub {
  font-size: 12.5px;
  color: var(--text-3);
  display: block;
  margin-top: 2px;
}
.group-faces { display: flex; gap: 4px; }
.live-list { list-style: none; margin: 0; padding: 0; }
.live-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur-fast);
  user-select: none;
}
.live-list li:hover { background: var(--surface-sunken); }
.live-list .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.live-list li.done .check {
  background: var(--done);
  border-color: var(--done);
  transform: scale(1.08);
}
.live-list li.done .check::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--on-done);
  border-bottom: 2.5px solid var(--on-done);
  transform: translateY(-1px) rotate(-45deg);
}
.live-list .n {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  line-height: 1.25;
  transition: color var(--dur-fast);
}
.live-list .f {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}
.live-list li.done .n {
  color: var(--text-3);
  text-decoration: line-through;
}
.list-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 22px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--surface);
}
.list-card-foot strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  color: var(--text);
}

/* ───────── Revelado al Scroll (React Bits Gradual Blur / Reveal) ───────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ───────── Páginas de compartir (/g y /l) ───────── */
.hero { display: grid; place-items: center; position: relative; height: 210px; margin: 80px 0 12px; }
.hero .blob { position: absolute; width: 190px; height: 190px; background: var(--blob); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.hero [data-cesti] { position: relative; width: 170px; height: 170px; }

.kicker { font-weight: 800; font-size: var(--fs-caption); letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); text-align: center; margin: 0; }
.actions { display: grid; gap: 10px; margin-top: 28px; }
.actions .btn { text-decoration: none; }

.card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-1); padding: 20px; margin-top: 28px; }
.card h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 22px; margin: 0; }
.steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); color: var(--text); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps b { color: var(--text); }
.code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .14em; color: var(--text); }
.soon { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.soon span { font-size: var(--fs-label); font-weight: 700; color: var(--text-2); background: var(--surface-sunken); border-radius: var(--radius-chip); padding: 8px 14px; }

.list { list-style: none; margin: 18px 0 0; padding: 0; }
.list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list .check { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--border-strong); display: grid; place-items: center; }
.list .done .check { background: var(--done); box-shadow: none; }
.list .done .check::after { content: ''; width: 9px; height: 5px; border-left: 2.5px solid var(--on-done); border-bottom: 2.5px solid var(--on-done); transform: translateY(-1px) rotate(-45deg); }
.list .n { font-weight: 700; font-size: 16px; line-height: 1.25; }
.list .f { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.list .done .n { color: var(--text-3); text-decoration: line-through; }
.list .p { font-weight: 800; font-variant-numeric: tabular-nums; }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.sum strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; color: var(--text); letter-spacing: -0.5px; }

.foot { text-align: center; font-size: 13px; color: var(--text-3); padding: 32px var(--gutter) 84px; position: relative; z-index: 10; }
[hidden] { display: none !important; }
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }
