/* =========================================================
   Backfly — web
   Paleta tomada del logo: lienzo casi negro con tinte morado,
   lavanda luminosa y un violeta fuerte como único acento.
   ========================================================= */

:root {
  --fondo: #0D0B12;
  --fondo-banda: #120F1B;
  --superficie: rgba(196, 181, 253, 0.035);
  --superficie-2: rgba(196, 181, 253, 0.07);
  --linea: rgba(196, 181, 253, 0.12);
  --linea-fuerte: rgba(196, 181, 253, 0.24);

  --texto: #F3F0FA;
  --texto-suave: #B8B0C9;
  --texto-tenue: #8A8299;

  --lavanda: #C4B5FD;
  --morado: #A78BFA;
  --violeta: #8B5CF6;
  --tinta: #150F26;

  --ok: #34D399;
  --espera: #FBBF24;

  --f-titular: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --f-texto: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-tarjeta: 28px;
  --r-control: 999px;
  --ancho: 1120px;
  --hueco-seccion: clamp(88px, 12vw, 144px);

  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }

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

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lavanda); color: var(--tinta);
  padding: 10px 16px; border-radius: 12px; font-weight: 600;
}
.saltar:focus { top: 16px; }

.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.contenedor.estrecho { width: min(100% - 40px, 760px); }

/* ---------- Tipografía ---------- */

h1, h2, h3 { font-family: var(--f-titular); text-wrap: balance; }

h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FFFFFF 10%, var(--lavanda) 115%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }

.antetitulo {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--f-mono);
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--morado);
}
.antetitulo::before, .antetitulo::after {
  content: ""; height: 1px; width: 56px;
  background: linear-gradient(90deg, transparent, var(--linea-fuerte));
}
.antetitulo::after { transform: scaleX(-1); }
.antetitulo.izq { justify-content: flex-start; }
.antetitulo.izq::before { display: none; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-control);
  font-family: var(--f-texto); font-size: 1rem; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.16s var(--suave), background-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-chico { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }

.btn-primario {
  background: var(--lavanda); color: var(--tinta); font-weight: 600;
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
}
.btn-fantasma {
  background: var(--superficie-2); color: var(--texto);
  box-shadow: inset 0 0 0 1px var(--linea);
}
@media (hover: hover) {
  .btn-primario:hover { background: #D6CBFE; box-shadow: 0 0 32px -4px rgba(167, 139, 250, 0.55); }
  .btn-fantasma:hover { background: rgba(196, 181, 253, 0.12); }
}

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

.nav {
  position: fixed; z-index: 50;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(100% - 28px, 980px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 10px 9px 18px;
  border-radius: 22px;
  background: rgba(13, 11, 18, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--linea);
}

.marca {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-titular); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.045em;
  color: var(--lavanda);
}
.marca-simbolo { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.55)); }

.nav-enlaces { display: flex; gap: 2px; }
.nav-enlaces a {
  padding: 8px 13px; border-radius: 999px;
  font-size: 0.9rem; color: var(--texto-suave);
  transition: color 0.2s, background-color 0.2s;
}
@media (hover: hover) { .nav-enlaces a:hover { color: var(--texto); background: var(--superficie-2); } }
@media (max-width: 820px) { .nav-enlaces { display: none; } }

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

.hero {
  position: relative;
  padding: clamp(132px, 17vw, 196px) 0 clamp(64px, 8vw, 104px);
  text-align: center;
  overflow: hidden;
}
.hero-halo {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 38% at 50% 70%, rgba(139, 92, 246, 0.26), transparent 70%),
    radial-gradient(80% 50% at 50% 0%, rgba(196, 181, 253, 0.08), transparent 70%);
}
.hero-texto { position: relative; display: grid; justify-items: center; gap: 24px; }
.hero h1 { max-width: 13.5em; }
.entradilla { max-width: 34em; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.45; color: var(--texto-suave); text-wrap: pretty; }
.hero-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.escenario {
  position: relative;
  width: min(100% - 40px, 380px);
  margin: clamp(56px, 8vw, 88px) auto 0;
}
.pase-inclinado {
  transform: rotate(-5deg);
  transition: transform 0.7s var(--suave);
}
.escenario:hover .pase-inclinado, .escenario:focus-within .pase-inclinado { transform: rotate(0deg); }

.ondas {
  position: absolute; z-index: 0;
  width: 132px; height: 132px;
  right: -74px; top: -86px;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.65));
}
.ondas path { opacity: 0.25; animation: onda 2.6s ease-in-out infinite; }
.ondas path:nth-child(2) { animation-delay: 0.22s; }
.ondas path:nth-child(3) { animation-delay: 0.44s; }
@keyframes onda { 0%, 55%, 100% { opacity: 0.22; } 22% { opacity: 1; } }
@media (max-width: 560px) { .ondas { width: 84px; height: 84px; right: -14px; top: -70px; } }

.capsula {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 28px auto 0;
  padding: 8px 8px 8px 20px;
  border-radius: var(--r-control);
  background: rgba(22, 18, 34, 0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--linea), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
.capsula-texto { font-size: 0.92rem; color: var(--texto-suave); text-align: left; }
.capsula-texto b { color: var(--texto); font-weight: 600; }

.lema {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  font-family: var(--f-titular); font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -0.025em;
  color: var(--lavanda);
}

/* ---------- Pase (la tarjeta en el Wallet) ---------- */

.pase {
  --p-1: #3B2A78; --p-2: #1B1338; --p-tinta: #F3F0FA; --p-acento: #C4B5FD; --p-sello-tinta: #1B1338;
  position: relative; z-index: 1;
  text-align: left;
  border-radius: 26px;
  padding: 22px;
  color: var(--p-tinta);
  background: linear-gradient(165deg, var(--p-1), var(--p-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -20px color-mix(in srgb, var(--p-1) 80%, transparent);
  transition: background 0.5s;
  font-family: var(--f-texto);
}
.pase.golpe { animation: golpe 0.32s var(--suave); }
@keyframes golpe { 35% { transform: scale(0.985); } }

.pase-cabeza { display: flex; align-items: center; gap: 12px; }
.pase-logo {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--p-acento); color: var(--p-sello-tinta);
  font-family: var(--f-titular); font-weight: 800; font-size: 1.1rem;
}
.pase-nombre { font-family: var(--f-titular); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.15; }
.pase-tipo { font-size: 0.78rem; opacity: 0.66; }
.pase-cuenta { margin-left: auto; text-align: right; }
.pase-cuenta small, .pase-campo small {
  display: block; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6;
}
.pase-cuenta b { font-family: var(--f-titular); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.pase-sellos {
  display: grid; grid-template-columns: repeat(var(--columnas, 4), 1fr); gap: 10px;
  margin: 22px 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--p-banda, rgba(0, 0, 0, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hueco {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--p-tinta) 30%, transparent);
  max-width: 62px; width: 100%; justify-self: center;
}
.hueco.premio { border-style: solid; border-color: color-mix(in srgb, var(--p-acento) 60%, transparent); }
.hueco.premio::after {
  content: "★"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1rem; color: var(--p-acento); opacity: 0.7;
}
.sello {
  position: absolute; inset: -1.5px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--p-acento); color: var(--p-sello-tinta);
  transform: rotate(-10deg);
  z-index: 1;
}
.sello svg, .fantasma svg, .pase-logo svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* la tarjeta del principio conserva su sello de siempre */
.pase[data-marca="original"] .sello svg { width: 46%; height: 46%; stroke-width: 3; }
.fantasma { position: absolute; inset: 0; display: grid; place-items: center; color: var(--p-tinta); opacity: 0.26; }

/* ---------- Marcas de ejemplo: cada una con su letra, su textura y sus sellos ---------- */

/* marco fino interior y brillo de tarjeta */
.pase.de-marca::after {
  content: ""; position: absolute; inset: 7px; border-radius: 20px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--p-acento) 42%, transparent);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.13), transparent 32%);
}
/* logo en insignia de doble aro */
.pase.de-marca .pase-logo {
  width: 48px; height: 48px; background: transparent; color: var(--p-acento);
  box-shadow: inset 0 0 0 1.5px var(--p-acento), inset 0 0 0 4.5px transparent, inset 0 0 0 5.5px color-mix(in srgb, var(--p-acento) 45%, transparent);
}
.pase.de-marca .pase-logo svg { width: 46%; height: 46%; }
.pase.de-marca .pase-tipo { margin-top: 5px; font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.72; }
.pase.de-marca .pase-cuenta b { font-family: var(--f-mono); font-weight: 600; font-size: 1.1rem; letter-spacing: 0; }
/* sellos con relieve y cordón, como una moneda */
.pase.de-marca .sello {
  background: var(--p-sello, var(--p-acento));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 5px rgba(0, 0, 0, 0.24), 0 5px 12px -4px rgba(0, 0, 0, 0.6);
}
.pase.de-marca .sello::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed currentColor; opacity: 0.42; }
.pase.de-marca .sello svg { width: 44%; height: 44%; stroke-width: 2.2; }
.pase.de-marca .hueco { border-style: solid; border-width: 1px; border-color: color-mix(in srgb, var(--p-tinta) 20%, transparent); background: color-mix(in srgb, var(--p-tinta) 5%, transparent); }
.pase.de-marca .hueco.premio { border-color: var(--p-acento); }
.pase.de-marca .pase-sellos { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p-acento) 22%, transparent); }
.pase.de-marca .pase-pie { padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--p-tinta) 14%, transparent); }
.pase.de-marca .pase-campo b { font-family: var(--f-titular); font-weight: 700; }
.pase.de-marca .pase-qr { box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-acento) 55%, transparent), 0 8px 18px -8px rgba(0, 0, 0, 0.5); }

/* Filo · negro mate con raya diplomática y latón */
.pase[data-marca="barberia"] {
  --p-sello: linear-gradient(145deg, #F6E2AE, #C9A253 52%, #94702C);
  background:
    repeating-linear-gradient(135deg, rgba(216, 180, 106, 0.06) 0 1px, transparent 1px 9px),
    radial-gradient(120% 70% at 0% 0%, #2E2922, transparent 62%),
    linear-gradient(165deg, #1F1D1B, #080808);
}
.pase[data-marca="barberia"] .pase-nombre {
  font-family: "Bebas Neue", var(--f-titular); font-weight: 400; font-size: 2.15rem; letter-spacing: 0.1em; line-height: 0.86; text-transform: uppercase;
  background: linear-gradient(180deg, #F8E7B8, #C29A4B 70%, #94702C); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Tueste 21 · papel crema punteado y terracota */
.pase[data-marca="cafeteria"] {
  --p-sello: linear-gradient(145deg, #D06B3F, #A7431F 60%, #7E2F14);
  background:
    radial-gradient(rgba(43, 29, 20, 0.09) 1px, transparent 1.5px) 0 0 / 9px 9px,
    radial-gradient(120% 70% at 0% 0%, #FFF8EC, transparent 60%),
    linear-gradient(165deg, #F4E9D8, #E3CFB1);
}
.pase[data-marca="cafeteria"] .pase-nombre { font-family: var(--f-mono); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Masa Lenta · verde bosque con rombos y pan de oro */
.pase[data-marca="panaderia"] {
  --p-sello: linear-gradient(145deg, #FBEBB6, #DDB75C 55%, #A8842F);
  background:
    repeating-linear-gradient(60deg, rgba(232, 200, 119, 0.055) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-60deg, rgba(232, 200, 119, 0.055) 0 1px, transparent 1px 13px),
    radial-gradient(120% 70% at 100% 0%, #33614F, transparent 62%),
    linear-gradient(165deg, #24463A, #0F221B);
}
.pase[data-marca="panaderia"] .pase-nombre {
  font-family: "DM Serif Display", var(--f-titular); font-weight: 400; font-size: 1.62rem; letter-spacing: -0.01em; line-height: 1.02;
  background: linear-gradient(180deg, #FBEBB6, #D6AE52); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Bola Extra · rosa chicle con topos y sellos brillantes */
.pase[data-marca="heladeria"] {
  --p-sello: linear-gradient(145deg, #FF7AA5, #E0356F 55%, #B81A53);
  background:
    radial-gradient(rgba(224, 53, 111, 0.16) 2.4px, transparent 3px) 0 0 / 24px 24px,
    radial-gradient(rgba(224, 53, 111, 0.16) 2.4px, transparent 3px) 12px 12px / 24px 24px,
    radial-gradient(120% 70% at 0% 0%, #FFF3F7, transparent 60%),
    linear-gradient(165deg, #FFDCE6, #F9AFC8);
}
.pase[data-marca="heladeria"] .pase-nombre { font-family: "Fredoka", var(--f-titular); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.015em; line-height: 1; color: #E0356F; }

.pase-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pase-campo b { display: block; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.pase-campo + .pase-campo { margin-top: 12px; }
.pase-qr { flex: none; width: 76px; height: 76px; padding: 7px; border-radius: 12px; background: #fff; }
.pase-qr svg { width: 100%; height: 100%; }

.pase.completa .pase-cuenta b,
.pase.completa .pase-campo:first-child b { color: var(--p-acento); }

/* Tarjeta completa: resplandor que se queda y celebración al llegar al último sello */
.pase::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.6s;
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--p-acento) 75%, transparent),
    0 0 70px -4px color-mix(in srgb, var(--p-acento) 60%, transparent);
}
.pase.completa::before { opacity: 0.6; }

.pase.celebra { animation: celebra 0.95s var(--suave); }
.pase.celebra::before { animation: resplandor 1.6s ease-out both; }
@keyframes celebra {
  0%   { transform: scale(1); }
  16%  { transform: scale(0.97); }
  46%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes resplandor {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Los sellos anteriores saltan uno detrás de otro */
.pase.celebra .sello:not(.nuevo) { animation: brinco 0.55s var(--suave) both; animation-delay: calc(var(--n, 0) * 55ms + 260ms); }
@keyframes brinco {
  0%, 100% { transform: translateY(0) scale(1) rotate(-10deg); }
  40%      { transform: translateY(-7px) scale(1.14) rotate(-10deg); }
}
.pase.celebra .pase-cuenta b { display: inline-block; animation: cuenta 0.6s var(--suave) 0.2s both; }
@keyframes cuenta { 40% { transform: scale(1.28); } }

/* Onda que sale del último sello */
.pase.celebra .hueco.premio::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--p-acento);
  animation: anillo 0.9s ease-out 0.16s both;
}
@keyframes anillo {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(3.2); opacity: 0; }
}

/* Chispas alrededor del último sello */
.pase-chispas { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; }
.pase-chispas i {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--p-acento);
  animation: chispa 0.9s cubic-bezier(0.12, 0.7, 0.25, 1) 0.16s both;
}
.pase-chispas i:nth-child(3n) { background: var(--p-tinta); }
.pase-chispas i:nth-child(2n) { left: -1.5px; top: -5px; width: 3px; height: 10px; border-radius: 2px; }
@keyframes chispa {
  0%   { transform: rotate(var(--a)) translateY(0) scale(0.4); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(0.5); opacity: 0; }
}

/* Brillo que cruza la tarjeta */
.pase-brillo { position: absolute; inset: 0; z-index: 2; border-radius: inherit; overflow: hidden; pointer-events: none; }
.pase-brillo::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3) 50%, transparent);
  transform: translateX(-130%) skewX(-14deg);
  animation: brillo 0.95s var(--suave) 0.3s both;
}
@keyframes brillo { to { transform: translateX(320%) skewX(-14deg); } }

.capsula { transition: box-shadow 0.6s; }
.capsula.lista {
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.5), 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 44px -10px rgba(139, 92, 246, 0.7);
}

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

.seccion { padding: var(--hueco-seccion) 0; }
.banda { background: var(--fondo-banda); box-shadow: inset 0 1px 0 var(--linea), inset 0 -1px 0 var(--linea); }

.cabecera { display: grid; justify-items: center; gap: 20px; text-align: center; margin-bottom: clamp(48px, 7vw, 80px); }
.cabecera h2 { max-width: 16em; }
.cabecera > p:not(.antetitulo) { max-width: 36em; color: var(--texto-suave); font-size: 1.12rem; }

/* ---------- Cartón frente a Backfly: dos «fotos» y debajo lo malo y lo bueno ---------- */

.duelo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duelo-lado { display: grid; align-content: start; gap: 22px; }
.duelo-lado h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); padding: 0 4px; }
.duelo-lado.backfly h3 { color: var(--lavanda); }

.duelo-foto {
  position: relative; overflow: hidden;
  height: clamp(320px, 38vw, 420px);
  display: grid; place-items: center;
  border-radius: var(--r-tarjeta);
  box-shadow: inset 0 0 0 1px var(--linea);
}
/* El cartón, sobre un mostrador de madera oscura con luz cálida */
.foto-mesa {
  background:
    radial-gradient(70% 60% at 45% 45%, rgba(255, 200, 140, 0.20), transparent 70%),
    repeating-linear-gradient(176deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 7px, rgba(255, 255, 255, 0.025) 7px 8px, transparent 8px 15px),
    linear-gradient(160deg, #3A2A1E, #1C140E 70%);
}
.foto-mesa::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.carton-foto {
  width: min(82%, 340px); height: auto; overflow: visible;
  transform: perspective(900px) rotateX(16deg) rotate(-9deg);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.35)) drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
}

/* El móvil: limpio y realista, sobre la misma luz violeta de la web */
.foto-estudio {
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(139, 92, 246, 0.38), transparent 70%),
    linear-gradient(160deg, #1D1630, #0C0A12 70%);
}
.foto-estudio::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.iphone {
  --marco: 176px;
  position: relative; height: 88%; max-height: 380px; width: auto; aspect-ratio: 71.6 / 146.6;
  padding: 6px; border-radius: 30px;
  background: linear-gradient(90deg, #2A2830 0%, #5C5964 6%, #36343C 14%, #46444C 50%, #36343C 86%, #5C5964 94%, #2A2830 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 30px 50px -20px rgba(0, 0, 0, 0.85), 0 0 70px -20px rgba(139, 92, 246, 0.55);
}
.iphone::after { /* bisel negro alrededor de la pantalla */
  content: ""; position: absolute; inset: 3px; border-radius: 27px; background: #050505; z-index: 0;
}
.iphone-boton { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #26242B, #55525C); }
.iphone-boton.b1 { left: -2px; top: 62px; height: 14px; }
.iphone-boton.b2 { left: -2px; top: 86px; height: 26px; }
.iphone-boton.b3 { left: -2px; top: 118px; height: 26px; }
.iphone-boton.b4 { right: -2px; top: 96px; height: 40px; background: linear-gradient(270deg, #26242B, #55525C); }
.iphone-pantalla {
  position: relative; z-index: 1; height: 100%; overflow: hidden;
  border-radius: 24px; background: #000;
  padding: 0 8px; color: #fff; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}
.iphone-isla { position: absolute; top: 7px; left: 50%; width: 52px; height: 15px; margin-left: -26px; border-radius: 999px; background: #000; }
.ios-estado { display: flex; justify-content: space-between; align-items: center; height: 29px; padding: 2px 10px 0 14px; }
.ios-estado b { font-size: 0.58rem; font-weight: 600; }
.ios-iconos { display: flex; align-items: center; gap: 3px; }
.ios-iconos svg { height: 6px; width: auto; fill: currentColor; }
.ios-iconos svg:last-child { height: 6.5px; }
.cartera-cabeza { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 6px; }
.cartera-cabeza p { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.cartera-cabeza span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #1C1C1E; color: #fff; font-size: 0.8rem; line-height: 1; }
.cartera-pila { position: relative; height: 30px; }
.cartera-pila span { position: absolute; left: 0; right: 0; height: 30px; border-radius: 8px; }
.cartera-pila .c1 { top: 0; background: linear-gradient(135deg, #3A3A3E, #1E1E21); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, 0.12); }
.cartera-pila .c2 { top: 14px; background: linear-gradient(135deg, #1F3A5F, #0F1E33); }
.pase-ios {
  position: relative; margin-top: -2px; padding: 8px 8px 7px;
  border-radius: 8px; color: #fff;
  background: #3B2A78;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 -2px 8px rgba(0, 0, 0, 0.6);
}
.pi-cabeza { display: flex; align-items: center; gap: 5px; }
.pi-logo { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--lavanda); color: #1B1338; font-size: 0.44rem; font-weight: 800; }
.pi-cabeza b { flex: 1; font-size: 0.56rem; font-weight: 600; white-space: nowrap; }
.pi-campo small { display: block; font-size: 0.34rem; letter-spacing: 0.06em; opacity: 0.7; }
.pi-campo em { font-style: normal; font-size: 0.56rem; font-weight: 600; }
.pi-campo.der { text-align: right; }
.pi-sellos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 7px 0; padding: 6px; border-radius: 5px; background: #2A1E58; }
.pi-sellos span { aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.32); }
.pi-sellos span.on {
  border: 0;
  background: var(--lavanda) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1338' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.300 4.300 8.700-9.300'/%3E%3C/svg%3E") center / 56% no-repeat;
}
.pi-campos { display: flex; justify-content: space-between; }
.pi-codigo { width: 56px; margin: 9px auto 2px; padding: 4px; border-radius: 4px; background: #fff; }
.pi-codigo svg { display: block; width: 100%; height: auto; }
.ios-inicio { position: absolute; left: 50%; bottom: 5px; width: 54px; height: 3px; margin-left: -27px; border-radius: 3px; background: #fff; }

/* Lo malo y lo bueno */
.duelo-lista { display: grid; gap: 14px; padding: 0 4px; }
.duelo-lista li { position: relative; padding-left: 34px; line-height: 1.45; }
.duelo-lista.malo li { color: var(--texto-suave); }
.duelo-lista.bueno li { color: var(--texto); }
.duelo-lista li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
}
.duelo-lista.malo li::before {
  background: rgba(248, 113, 113, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F87171' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}
.duelo-lista.bueno li::before {
  background: var(--lavanda) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23150F26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.300 4.300 8.700-9.300'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 760px) {
  .duelo { grid-template-columns: 1fr; gap: 48px; }
  .duelo-foto { height: 400px; }
}

/* la tarjeta de cartón: arrugada, manchada y a medias */
.carton-tarjeta {
  position: relative; width: 230px; padding: 14px;
  border-radius: 6px;
  background: #CFC5B4; color: #4A4136;
  transform: rotate(-7deg);
  box-shadow: 0 18px 30px -18px #000;
  filter: saturate(0.6) brightness(0.82);
  text-align: left;
}
.carton-tarjeta::before {
  content: ""; position: absolute; right: 18px; top: 22px; width: 62px; height: 62px; border-radius: 50%;
  border: 5px solid rgba(110, 72, 36, 0.3);
  filter: blur(0.6px);
}
.carton-tarjeta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(118deg, transparent 46%, rgba(0, 0, 0, 0.16) 47%, transparent 50%), linear-gradient(72deg, transparent 62%, rgba(255, 255, 255, 0.22) 63%, transparent 66%);
}
.carton-tarjeta b { display: block; font-family: var(--f-titular); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.carton-tarjeta small { display: block; font-size: 0.66rem; opacity: 0.8; }
.carton-sellos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.carton-sellos span { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(74, 65, 54, 0.5); }
.carton-sellos span.on { border-color: transparent; background: rgba(120, 40, 50, 0.55); transform: rotate(-14deg) scale(0.92); border-radius: 46% 54% 50% 50%; }

/* ---------- Tarjeta en miniatura (dentro de los móviles) ---------- */

.minipase {
  width: 100%; padding: 11px;
  border-radius: 14px;
  color: #F3F0FA; text-align: left;
  background: linear-gradient(165deg, #3B2A78, #1B1338);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 30px -16px #000;
}
.minipase-cabeza { display: flex; align-items: center; gap: 7px; }
.minipase-cabeza i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lavanda); color: var(--tinta); }
.minipase-cabeza i svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.minipase-cabeza b { flex: 1; min-width: 0; font-family: "Bebas Neue", var(--f-titular); font-weight: 400; font-size: 1.02rem; letter-spacing: 0.07em; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minipase-cabeza em { font-style: normal; font-family: var(--f-titular); font-weight: 700; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.minipase-sellos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 9px 0; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.minipase-sellos span { aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(243, 240, 250, 0.32); }
.minipase-sellos span.on {
  border-color: transparent; transform: rotate(-10deg);
  background: var(--lavanda) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1338' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.300 4.300 8.700-9.300'/%3E%3C/svg%3E") center / 54% no-repeat;
}
.minipase-pie small { display: block; font-family: var(--f-mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.minipase-pie b { font-weight: 600; font-size: 0.74rem; }
.minipase.clasica .minipase-cabeza i { font-style: normal; font-family: var(--f-titular); font-weight: 800; font-size: 0.66rem; }
.minipase.clasica .minipase-cabeza b { font-family: var(--f-titular); font-weight: 700; font-size: 0.78rem; letter-spacing: -0.02em; text-transform: none; }
.minipase.completa { box-shadow: inset 0 0 0 1.5px rgba(196, 181, 253, 0.8), 0 0 34px -4px rgba(167, 139, 250, 0.75), 0 16px 30px -16px #000; }
.minipase.completa .minipase-cabeza em, .minipase.completa .minipase-pie b { color: var(--lavanda); }

/* ---------- Pasos (cada uno con la pantalla que se ve en el móvil) ---------- */

.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: paso; }
.paso { counter-increment: paso; text-align: center; }
.paso h3::before {
  content: counter(paso) ". ";
  font-family: var(--f-mono); font-weight: 400; font-size: 0.85em; color: var(--morado); letter-spacing: 0;
}
.paso h3 { margin-bottom: 10px; }
.paso p { color: var(--texto-suave); font-size: 0.98rem; max-width: 22em; margin-inline: auto; }

.movil {
  width: min(100%, 214px); aspect-ratio: 9 / 16.6; margin: 0 auto 28px; padding: 7px;
  border-radius: 34px;
  background: #08070B;
  box-shadow: inset 0 0 0 1px var(--linea-fuerte), 0 34px 60px -34px #000, 0 0 70px -34px rgba(139, 92, 246, 0.9);
}
.movil-pantalla {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 34px 12px 14px;
  border-radius: 27px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%), linear-gradient(180deg, #171226, #0F0C18);
}
.movil-pantalla::before { content: ""; position: absolute; top: 9px; left: 50%; width: 56px; height: 15px; margin-left: -28px; border-radius: 999px; background: #08070B; }
.p-titulo { align-self: flex-start; font-family: var(--f-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-suave); }

/* 1 · pantalla de bloqueo con el aviso de la pegatina */
.p-fecha { margin-top: 10px; font-size: 0.68rem; color: var(--texto-suave); }
.p-hora { margin-top: -12px; font-family: var(--f-titular); font-weight: 600; font-size: 2.7rem; line-height: 1; letter-spacing: -0.04em; }
.p-aviso {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; text-align: left;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: p-aviso 5s var(--suave) infinite;
}
.p-aviso-icono { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lavanda); }
.p-aviso-icono svg { width: 16px; height: 16px; fill: none; stroke: var(--tinta); stroke-width: 2.2; stroke-linecap: round; }
.p-aviso div { min-width: 0; display: grid; }
.p-aviso small { font-family: var(--f-mono); font-size: 0.48rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-suave); }
.p-aviso b { font-size: 0.72rem; font-weight: 600; }
.p-aviso span { font-size: 0.64rem; color: var(--texto-suave); }
.p-ondas { margin-top: auto; width: 76px; height: 54px; fill: none; stroke: var(--morado); stroke-width: 3.4; stroke-linecap: round; }
.p-ondas path { opacity: 0.25; animation: onda 2.6s ease-in-out infinite; }
.p-ondas path:nth-child(2) { animation-delay: 0.22s; }
.p-ondas path:nth-child(3) { animation-delay: 0.44s; }
.p-pie { font-size: 0.62rem; color: var(--texto-tenue); }
@keyframes p-aviso {
  0%, 12% { opacity: 0; transform: translateY(-10px) scale(0.96); }
  22%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* 2 · guardar en el Wallet */
.p-boton {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: auto; padding: 10px;
  border-radius: 12px;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  font-size: 0.7rem; font-weight: 600;
  animation: p-boton 3.2s ease-in-out infinite;
}
.p-boton svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes p-boton { 0%, 60%, 100% { transform: scale(1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); } 72% { transform: scale(0.95); box-shadow: inset 0 0 0 1px var(--lavanda), 0 0 22px rgba(167, 139, 250, 0.7); } }

/* 3 · el escáner del local */
.p-visor {
  position: relative; width: 78%; aspect-ratio: 1; margin-top: 6px; padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(var(--lavanda), var(--lavanda)) left top / 18px 2px, linear-gradient(var(--lavanda), var(--lavanda)) left top / 2px 18px,
    linear-gradient(var(--lavanda), var(--lavanda)) right top / 18px 2px, linear-gradient(var(--lavanda), var(--lavanda)) right top / 2px 18px,
    linear-gradient(var(--lavanda), var(--lavanda)) left bottom / 18px 2px, linear-gradient(var(--lavanda), var(--lavanda)) left bottom / 2px 18px,
    linear-gradient(var(--lavanda), var(--lavanda)) right bottom / 18px 2px, linear-gradient(var(--lavanda), var(--lavanda)) right bottom / 2px 18px;
  background-repeat: no-repeat;
}
.p-visor svg { width: 100%; height: 100%; padding: 7px; border-radius: 8px; background: #fff; fill: #0D0B12; }
.p-linea { position: absolute; left: 8px; right: 8px; top: 14%; height: 2px; border-radius: 2px; background: var(--lavanda); box-shadow: 0 0 14px 2px rgba(167, 139, 250, 0.9); animation: p-linea 2.4s ease-in-out infinite alternate; }
@keyframes p-linea { to { top: 84%; } }
.p-toast { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: auto; padding: 9px; text-align: left; border-radius: 14px; background: rgba(167, 139, 250, 0.16); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.p-toast > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--lavanda); }
.p-toast svg, .p-listo svg { width: 14px; height: 14px; fill: none; stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.p-toast div { display: grid; }
.p-toast b { font-size: 0.72rem; font-weight: 600; }
.p-toast small { font-size: 0.64rem; color: var(--texto-suave); }

/* 4 · tarjeta completa */
.p-listo { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: auto; padding: 10px; border-radius: 12px; background: var(--lavanda); color: var(--tinta); font-size: 0.7rem; font-weight: 600; }

@media (max-width: 900px) {
  .pasos { grid-template-columns: 1fr 1fr; gap: 48px 20px; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .pasos { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- Mosaico de ventajas ---------- */

.mosaico { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tarjeta {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--r-tarjeta);
  background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--linea), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.tarjeta.t-ancha { grid-column: span 4; }
.tarjeta-texto { display: grid; gap: 10px; max-width: 30em; }
.tarjeta-texto p { color: var(--texto-suave); font-size: 1rem; }

@media (min-width: 901px) {
  .tarjeta.t-ancha { flex-direction: row; align-items: center; }
  .tarjeta.t-ancha .tarjeta-texto { flex: 1; }
  .tarjeta.t-ancha .demo { flex: none; width: 46%; }
}
@media (max-width: 900px) {
  .mosaico { grid-template-columns: 1fr; }
  .tarjeta, .tarjeta.t-ancha { grid-column: auto; min-height: 0; }
}

.demo { display: flex; align-items: center; justify-content: center; }

.demo-wallet { flex-direction: column; gap: 4px; }
/* Google: su distintivo oficial tal cual (mín. 48 px de alto y 8 px de aire alrededor, según sus normas).
   Apple: solo el nombre en texto, que sus normas sí permiten, hasta tener su distintivo oficial. */
.wallet-google { display: block; width: 199px; height: 55px; margin: 8px; }
.wallet-apple {
  display: grid; place-items: center;
  width: 199px; height: 55px; margin: 8px;
  border-radius: 999px;
  background: #000; color: #fff;
  box-shadow: inset 0 0 0 1px #A6A6A6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em;
}

/* Demo del PIN: se teclea solo, se abre el candado y vuelve a empezar (ciclo de 6 s) */
.pin-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(100%, 320px); padding: 18px;
  border-radius: 20px;
  background: var(--superficie-2);
  box-shadow: inset 0 0 0 1px var(--linea), 0 24px 48px -28px #000;
}
.pin-lado { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.pin-lado small { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-suave); }
.pin-candado {
  width: 34px; height: 34px; padding: 7px; border-radius: 11px;
  fill: none; stroke: var(--lavanda); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(167, 139, 250, 0.12);
  box-shadow: inset 0 0 0 1px var(--linea);
  animation: pin-candado 6s infinite;
}
.pin-arco { transform-box: view-box; transform-origin: 16px 11px; animation: pin-arco 6s var(--suave) infinite; }
.pin-puntos { display: flex; gap: 10px; }
.pin-puntos span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); }
.pin-puntos span:nth-child(-n+3) { background: var(--lavanda); box-shadow: 0 0 14px rgba(167, 139, 250, 0.6); }
.pin-puntos span:nth-child(1) { animation: pin-p1 6s infinite; }
.pin-puntos span:nth-child(2) { animation: pin-p2 6s infinite; }
.pin-puntos span:nth-child(3) { animation: pin-p3 6s infinite; }
.pin-puntos span:nth-child(4) { animation: pin-p4 6s infinite; }
.pin-estado { position: relative; font-size: 0.86rem; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.pin-estado span { color: var(--texto-suave); animation: pin-escribe 6s infinite; }
.pin-estado b { position: absolute; left: 0; top: 0; font-weight: 600; color: var(--lavanda); opacity: 0; animation: pin-abierto 6s infinite; }

.pin-teclado { flex: none; display: grid; grid-template-columns: repeat(3, 30px); gap: 6px; }
.pin-teclado i {
  height: 26px; border-radius: 9px;
  display: grid; place-items: center;
  font-style: normal; font-family: var(--f-mono); font-size: 0.74rem; color: var(--texto-suave);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.pin-teclado i.vacia { visibility: hidden; }
.pin-teclado .t1 { animation: pin-tecla 6s 0s infinite; }
.pin-teclado .t2 { animation: pin-tecla 6s 0.6s infinite; }
.pin-teclado .t3 { animation: pin-tecla 6s 1.2s infinite; }
.pin-teclado .t4 { animation: pin-tecla 6s 1.8s infinite; }

@keyframes pin-tecla {
  0%, 6%, 15%, 100% { background: rgba(255, 255, 255, 0.03); color: var(--texto-suave); transform: scale(1); }
  9% { background: var(--lavanda); color: var(--tinta); transform: scale(0.92); }
}
@keyframes pin-p1 { 0%, 8%, 93%, 100% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); } 10%, 90% { background: var(--lavanda); box-shadow: 0 0 14px rgba(167, 139, 250, 0.6); } }
@keyframes pin-p2 { 0%, 18%, 93%, 100% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); } 20%, 90% { background: var(--lavanda); box-shadow: 0 0 14px rgba(167, 139, 250, 0.6); } }
@keyframes pin-p3 { 0%, 28%, 93%, 100% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); } 30%, 90% { background: var(--lavanda); box-shadow: 0 0 14px rgba(167, 139, 250, 0.6); } }
@keyframes pin-p4 { 0%, 38%, 93%, 100% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); } 40%, 90% { background: var(--lavanda); box-shadow: 0 0 14px rgba(167, 139, 250, 0.6); } }
@keyframes pin-arco { 0%, 44%, 93%, 100% { transform: rotate(0deg); } 50%, 90% { transform: rotate(32deg); } }
@keyframes pin-candado {
  0%, 44%, 93%, 100% { background: rgba(167, 139, 250, 0.12); box-shadow: inset 0 0 0 1px var(--linea); }
  50%, 90% { background: rgba(167, 139, 250, 0.26); box-shadow: inset 0 0 0 1px var(--linea-fuerte), 0 0 22px rgba(139, 92, 246, 0.6); }
}
@keyframes pin-escribe { 0%, 44%, 95%, 100% { opacity: 1; } 47%, 92% { opacity: 0; } }
@keyframes pin-abierto { 0%, 46%, 93%, 100% { opacity: 0; transform: translateY(4px); } 50%, 90% { opacity: 1; transform: none; } }

/* Demo antilistillos: primer sello cuenta, el repetido se rechaza (ciclo de 6 s) */
.registro { display: grid; gap: 10px; width: min(100%, 320px); }
.registro-fila {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--superficie-2);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.registro-fila > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.registro-fila b { font-weight: 600; font-size: 0.92rem; }
.registro-fila small { font-size: 0.78rem; color: var(--texto-suave); }
.registro-fila em { flex: none; font-style: normal; font-family: var(--f-mono); font-size: 0.82rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.registro-icono { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.registro-icono svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.registro-fila.ok { animation: registro-ok 6s var(--suave) infinite; }
.registro-fila.ok .registro-icono { background: var(--lavanda); color: var(--tinta); }
.registro-fila.ok em { background: rgba(167, 139, 250, 0.16); color: var(--lavanda); }

.registro-fila.repetido {
  background: rgba(251, 191, 36, 0.07);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.26);
  animation: registro-repetido 6s infinite;
}
.registro-fila.repetido b { color: var(--espera); }
.registro-fila.repetido .registro-icono { background: rgba(251, 191, 36, 0.16); color: var(--espera); }
.registro-fila.repetido em { background: rgba(251, 191, 36, 0.12); color: var(--espera); text-decoration: line-through; }

@keyframes registro-ok {
  0%, 4% { opacity: 0; transform: translateY(10px); }
  11%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}
@keyframes registro-repetido {
  0%, 36% { opacity: 0; transform: translateY(10px); }
  42% { opacity: 1; transform: none; }
  44% { transform: translateX(-7px); }
  46% { transform: translateX(6px); }
  48% { transform: translateX(-4px); }
  50% { transform: translateX(3px); }
  52%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}

/* Pegatinas NFC de ejemplo: tres negocios inventados, cada uno con su estilo */
@media (min-width: 901px) { .tarjeta.t-ancha .demo.demo-pegatina { width: 52%; } }
.pegatinas { --t: 158px; position: relative; width: min(100%, 350px); height: calc(var(--t) * 1.8); }
@media (max-width: 420px) { .pegatinas { --t: 132px; } }
.pegatina {
  position: absolute; width: var(--t); height: var(--t);
  display: grid; justify-items: center; align-content: center; gap: calc(var(--t) * 0.028);
  background: var(--pg-fondo); color: var(--pg-tinta);
  font-family: var(--f-titular); text-align: center; line-height: 1.1;
  box-shadow: 0 22px 40px -20px #000, inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.6s var(--suave);
}
/* brillo de vinilo */
.pegatina::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 38%);
}
.pegatina small { font-family: var(--f-mono); font-size: calc(var(--t) * 0.052); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.pegatina strong { font-weight: 800; font-size: calc(var(--t) * 0.135); letter-spacing: -0.03em; }
.pegatina svg { width: calc(var(--t) * 0.3); height: calc(var(--t) * 0.3); margin: calc(var(--t) * 0.02) 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pegatina em { font-style: normal; font-weight: 700; font-size: calc(var(--t) * 0.054); letter-spacing: 0.08em; text-transform: uppercase; }
.pg-backfly { margin-top: calc(var(--t) * 0.012); padding: 3px 9px; border-radius: 999px; background: var(--pg-pastilla); color: var(--pg-pastilla-tinta); font-family: var(--f-texto); font-size: calc(var(--t) * 0.05); }
.pg-backfly b { font-family: var(--f-titular); font-weight: 800; }

.pegatina { box-shadow: 0 30px 50px -24px #000, 0 10px 18px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }

/* Tueste 21: redonda, papel crema punteado y doble aro terracota */
.pg-cafe {
  --pg-fondo: radial-gradient(rgba(43, 29, 20, 0.1) 1px, transparent 1.5px) 0 0 / 8px 8px, linear-gradient(160deg, #FBF1E1, #E3CFB1);
  --pg-tinta: #2B1D14; --pg-pastilla: #A7431F; --pg-pastilla-tinta: #FBF3E6;
  left: 0; top: 0; border-radius: 50%; transform: rotate(-9deg);
  outline: 1.5px solid #A7431F; outline-offset: -8px;
  box-shadow: 0 30px 50px -24px #000, 0 10px 18px -10px rgba(0, 0, 0, 0.7), inset 0 0 0 12px transparent, inset 0 0 0 13px rgba(167, 67, 31, 0.45);
}
.pg-cafe strong { font-family: var(--f-mono); font-weight: 700; font-size: calc(var(--t) * 0.105); letter-spacing: 0.12em; text-transform: uppercase; }
.pg-cafe svg { color: #A7431F; }

/* Bola Extra: rosa chicle con topos */
.pg-helado {
  --pg-fondo: radial-gradient(rgba(224, 53, 111, 0.18) 2px, transparent 2.6px) 0 0 / 18px 18px, radial-gradient(rgba(224, 53, 111, 0.18) 2px, transparent 2.6px) 9px 9px / 18px 18px, linear-gradient(160deg, #FFE6ED, #F9AFC8);
  --pg-tinta: #5A1233; --pg-pastilla: #E0356F; --pg-pastilla-tinta: #FFF0F5;
  right: 0; top: calc(var(--t) * 0.1); border-radius: 30%; transform: rotate(8deg);
  outline: 1.5px solid rgba(224, 53, 111, 0.6); outline-offset: -8px;
}
.pg-helado strong { font-family: "Fredoka", var(--f-titular); font-weight: 600; font-size: calc(var(--t) * 0.165); letter-spacing: -0.015em; line-height: 0.95; color: #E0356F; }
.pg-helado svg { color: #E0356F; }

/* Filo: negro mate con raya diplomática, latón y franja de barbero */
.pg-barberia {
  --pg-fondo: repeating-linear-gradient(135deg, rgba(216, 180, 106, 0.07) 0 1px, transparent 1px 8px), linear-gradient(165deg, #1F1D1B, #060606);
  --pg-tinta: #F3EEE4; --pg-pastilla: linear-gradient(145deg, #F6E2AE, #C29A4B); --pg-pastilla-tinta: #14110A;
  left: calc(50% - var(--t) / 2); bottom: 0; z-index: 2; border-radius: 16%; transform: rotate(-2deg);
  overflow: hidden;
  box-shadow: 0 30px 50px -24px #000, 0 10px 18px -10px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(216, 180, 106, 0.55), inset 0 0 0 7px transparent, inset 0 0 0 8px rgba(216, 180, 106, 0.3);
}
.pg-barberia::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7%;
  background: repeating-linear-gradient(115deg, #F3EEE4 0 7px, #0D0C0B 7px 14px, #D8B46A 14px 21px, #0D0C0B 21px 28px);
}
.pg-barberia strong {
  font-family: "Bebas Neue", var(--f-titular); font-weight: 400; font-size: calc(var(--t) * 0.27); letter-spacing: 0.1em; line-height: 0.84; text-transform: uppercase;
  background: linear-gradient(180deg, #F8E7B8, #C29A4B 70%, #94702C); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-barberia { padding-top: 5%; gap: calc(var(--t) * 0.018); }
.pg-barberia strong { order: -1; font-size: calc(var(--t) * 0.235); }
.pg-barberia svg { width: calc(var(--t) * 0.25); height: calc(var(--t) * 0.25); margin: 0; }
.pg-barberia small { color: #D8B46A; opacity: 1; letter-spacing: 0.22em; margin-top: calc(var(--t) * 0.02); }
.pg-barberia svg { color: #D8B46A; }

.tarjeta:hover .pg-cafe { transform: rotate(-13deg) translate(-4px, -4px); }
.tarjeta:hover .pg-helado { transform: rotate(12deg) translate(4px, -4px); }
.tarjeta:hover .pg-barberia { transform: rotate(0deg) translateY(4px); }

/* ---------- Tu marca ---------- */

.marca-rejilla { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(40px, 8vw, 112px); }
.marca-texto { display: grid; gap: 22px; justify-items: start; }
.marca-texto > p:not(.antetitulo):not(.nota) { color: var(--texto-suave); font-size: 1.12rem; max-width: 30em; }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ficha {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--texto-suave);
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: background-color 0.2s, color 0.2s, transform 0.16s var(--suave);
}
.ficha:active { transform: scale(0.97); }
.ficha.activa { background: var(--lavanda); color: var(--tinta); font-weight: 600; box-shadow: none; }
@media (hover: hover) { .ficha:not(.activa):hover { color: var(--texto); background: var(--superficie-2); } }
.nota { font-size: 0.82rem; color: var(--texto-tenue); }
.marca-pase { width: min(100%, 380px); justify-self: center; }
@media (max-width: 900px) {
  .marca-rejilla { grid-template-columns: 1fr; }
}

/* ---------- Precios ---------- */

.planes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin-inline: auto; }
.plan {
  display: flex; flex-direction: column; gap: 18px;
  padding: 36px;
  border-radius: var(--r-tarjeta);
  background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 80px -40px rgba(139, 92, 246, 0.7);
}
.plan h3 { display: flex; align-items: center; gap: 12px; color: var(--lavanda); }
.plan-precio { display: flex; align-items: baseline; gap: 10px; }
.cifra { font-family: var(--f-titular); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.4rem); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.periodo { color: var(--texto-tenue); font-size: 0.98rem; }
.plan-resumen { color: var(--texto-suave); }
.plan-lista { display: grid; gap: 13px; padding: 22px 0 6px; border-top: 1px solid var(--linea); margin-bottom: auto; }
.plan-lista li { position: relative; padding-left: 30px; font-size: 0.98rem; }
.plan-lista li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--superficie-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23C4B5FD' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.200 9.300l2.500 2.500 5.100-5.400'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan .btn { margin-top: 14px; }

.plan-pendiente { background: transparent; box-shadow: none; border: 1.5px dashed var(--linea-fuerte); }
.plan-pendiente h3, .plan-pendiente .cifra { color: var(--texto-suave); }
.etiqueta {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; color: var(--morado);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
}
.plan-lista-vacia li { height: 1.45em; padding: 0; }
.plan-lista-vacia li::before { display: none; }
.plan-lista-vacia li::after {
  content: ""; display: block; height: 10px; margin-top: 7px; border-radius: 999px; background: var(--superficie-2);
}
.plan-lista-vacia li:nth-child(1)::after { width: 78%; }
.plan-lista-vacia li:nth-child(2)::after { width: 56%; }
.plan-lista-vacia li:nth-child(3)::after { width: 68%; }
.plan-lista-vacia li:nth-child(4)::after { width: 44%; }

@media (max-width: 760px) { .planes { grid-template-columns: 1fr; } .plan { padding: 28px; } }

/* ---------- Preguntas ---------- */

.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--f-titular); font-weight: 600; font-size: 1.14rem; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23C4B5FD' stroke-width='1.600' stroke-linecap='round'%3E%3Cpath d='M14 9v10M9 14h10'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--suave);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 52px 26px 0; color: var(--texto-suave); max-width: 40em; }

/* ---------- Cierre ---------- */

.cierre { position: relative; padding: clamp(96px, 14vw, 176px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--linea); }
.cierre-halo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 60% at 50% 100%, rgba(139, 92, 246, 0.3), transparent 70%); }
.cierre .contenedor { position: relative; display: grid; justify-items: center; gap: 22px; }
.cierre-simbolo { width: 72px; height: 72px; filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.7)); }
.cierre h2 {
  font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: -0.045em; line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 10%, var(--lavanda) 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.1em;
}
.cierre p { color: var(--texto-suave); font-size: 1.15rem; max-width: 28em; }
.cierre .btn { margin-top: 10px; }

/* ---------- Pie ---------- */

.pie { padding: 36px 0 max(36px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.9rem; color: var(--texto-suave); }
@media (hover: hover) { .pie-enlaces a:hover { color: var(--texto); } }
.pie-legal { font-size: 0.85rem; color: var(--texto-tenue); }

/* ---------- Aparición al hacer scroll ---------- */

.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--suave), transform 0.7s var(--suave); transition-delay: calc(var(--i, 0) * 80ms); }
.js .revelar.visible { opacity: 1; transform: none; }

/* ---------- Entrada: «backfly» aparece y se desintegra (el dibujo lo hace el script de index.html) ---------- */

.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; animation: intro-fin 0.01s linear 4s forwards; /* por si no hay JavaScript */ }
.intro::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 45% at 50% 50%, rgba(139, 92, 246, 0.26), transparent 72%), var(--fondo);
  transition: opacity 0.75s var(--suave);
}
.intro.abre::before { opacity: 0; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes intro-fin { to { visibility: hidden; } }

/* el principio de la página entra mientras la palabra se deshace */
.hero-halo { animation: entrada-halo 1.6s var(--suave) 0.7s backwards; }
.hero-texto > *, .hero .lema { animation: entrada 0.9s var(--suave) backwards; }
.hero-texto > :nth-child(1) { animation-delay: 0.95s; }
.hero-texto > h1 { animation: entrada-titulo 1.1s var(--suave) 0.85s backwards; }
.hero-texto > :nth-child(3) { animation-delay: 1.15s; }
.hero-texto > :nth-child(4) { animation-delay: 1.25s; }
.hero .escenario { animation: entrada-tarjeta 1.2s var(--suave) 1.25s backwards; }
.hero .lema { animation-delay: 1.5s; }
@keyframes entrada { from { opacity: 0; transform: translateY(26px); } }
@keyframes entrada-titulo { from { opacity: 0; filter: blur(22px); transform: scale(1.1) translateY(18px); } }
@keyframes entrada-tarjeta { from { opacity: 0; transform: translateY(90px) scale(0.88); } }
@keyframes entrada-halo { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .revelar { opacity: 1; transform: none; }
  .ondas path { opacity: 0.8; }
}

/* ---------- Página de contacto ---------- */

.contacto { position: relative; min-height: calc(100dvh - 110px); padding: clamp(132px, 16vw, 184px) 0 clamp(72px, 10vw, 120px); text-align: center; overflow: hidden; }
.contacto-cuerpo { position: relative; display: grid; justify-items: center; gap: 24px; }
.contacto h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); }
.contacto .entradilla b { color: var(--lavanda); font-weight: 600; }

.contactos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 980px; margin-top: clamp(28px, 4vw, 48px); text-align: left; }
.contacto-tarjeta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 32px;
  border-radius: var(--r-tarjeta);
  background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.contacto-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 8px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--lavanda), var(--violeta)); color: var(--tinta);
  font-family: var(--f-titular); font-weight: 800; font-size: 1.4rem;
}
.contacto-avatar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contacto-tarjeta h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.contacto-tarjeta p { color: var(--texto-suave); font-size: 1rem; margin-bottom: auto; }
.contacto-tarjeta .btn { margin-top: 16px; width: 100%; }
.btn-pendiente { background: transparent; color: var(--texto-tenue); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--linea); cursor: not-allowed; }
.btn-pendiente:active { transform: none; }

@media (max-width: 820px) { .contactos { grid-template-columns: 1fr; max-width: 440px; } }

/* ---------- Formulario de contacto ---------- */

.formulario-bloque { display: grid; justify-items: center; gap: 20px; width: 100%; max-width: 720px; margin-top: clamp(64px, 9vw, 104px); }
.formulario-bloque > h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.formulario {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  width: 100%; margin-top: 12px; padding: clamp(22px, 4vw, 36px);
  border-radius: var(--r-tarjeta); text-align: left;
  background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.formulario[hidden], .form-hecho[hidden], .form-error[hidden] { display: none; }
.campo { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.campo-ancho { grid-column: 1 / -1; }
.campo label, .campo legend { padding: 0; font-size: 0.9rem; font-weight: 500; color: var(--texto-suave); }
.campo legend { margin-bottom: 8px; }

.campo input[type="text"], .campo input[type="tel"], .campo select {
  width: 100%; min-height: 50px; padding: 0 16px;
  border: 0; border-radius: 14px;
  background: var(--superficie-2); color: var(--texto);
  font: inherit; font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.campo select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23C4B5FD' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.500 8l4.500 4.500L14.500 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.campo select option { background: #1C1628; color: var(--texto); }
.campo input:focus-visible, .campo select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--lavanda); }

.opciones-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opcion-plan { position: relative; display: block; cursor: pointer; }
.opcion-plan input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcion-plan span {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.opcion-plan b { font-family: var(--f-titular); font-weight: 700; font-size: 1.05rem; color: var(--texto); letter-spacing: -0.02em; }
.opcion-plan small { font-size: 0.85rem; color: var(--texto-tenue); }
.opcion-plan input:checked + span { background: rgba(196, 181, 253, 0.1); box-shadow: inset 0 0 0 2px var(--lavanda); }
.opcion-plan input:checked + span b { color: var(--lavanda); }
.opcion-plan input:focus-visible + span { outline: 2px solid var(--lavanda); outline-offset: 3px; }

.casilla { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.95rem; color: var(--texto-suave); }
.casilla input {
  flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--superficie-2) center / 16px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--linea-fuerte);
  transition: background-color 0.2s;
}
.casilla input:checked {
  background-color: var(--lavanda); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23150F26' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.500 8.300l3 3 6-6.500'/%3E%3C/svg%3E");
}
.casilla span { padding-top: 1px; }

.form-error { padding: 12px 16px; border-radius: 14px; font-size: 0.92rem; color: #FCA5A5; background: rgba(248, 113, 113, 0.08); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28); }
.formulario .btn:disabled { opacity: 0.6; cursor: progress; }

.form-hecho {
  display: grid; justify-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 44px 28px;
  border-radius: var(--r-tarjeta);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
}
.form-hecho-icono { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lavanda); color: var(--tinta); margin-bottom: 8px; }
.form-hecho-icono svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-hecho p { color: var(--texto-suave); }

@media (max-width: 620px) {
  .formulario { grid-template-columns: 1fr; }
}

/* ---------- Páginas legales ---------- */

.legal { padding: clamp(132px, 16vw, 176px) 0 clamp(72px, 10vw, 120px); }
.legal-texto h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin: 20px 0 12px; }
.legal-fecha { font-family: var(--f-mono); font-size: 0.8rem; color: var(--texto-tenue); margin-bottom: 40px; }
.legal-texto h2 { font-size: 1.4rem; letter-spacing: -0.025em; line-height: 1.2; margin: 48px 0 14px; }
.legal-texto p, .legal-texto li { color: var(--texto-suave); max-width: 44em; }
.legal-texto p + p, .legal-texto ul + p, .legal-texto p + ul { margin-top: 14px; }
.legal-texto ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.legal-texto li::marker { color: var(--morado); }
.legal-texto strong { color: var(--texto); font-weight: 600; }
.legal-texto a, .casilla a { color: var(--lavanda); text-decoration: underline; text-decoration-color: var(--linea-fuerte); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) { .legal-texto a:hover, .casilla a:hover { text-decoration-color: currentColor; } }
.pendiente { padding: 2px 8px; border-radius: 6px; background: rgba(251, 191, 36, 0.14); color: var(--espera); font-size: 0.92em; }
.form-info { font-size: 0.8rem; line-height: 1.45; color: var(--texto-tenue); overflow-wrap: anywhere; }
