/* =========================================================
   Cartoncito — estilos compartidos (manual de marca v1.1)
   Lo que es de una sola página va en esa página.
   ========================================================= */

:root {
  /* Paleta (manual) */
  --papel: #FBF6EE;
  --papel-2: #F4EBDD;
  --carton: #D9A066;
  --pliegue: #B37A3E;
  --tinta: #2A1E16;
  --tinta-suave: #6E5C4D;
  --linea: #E8DCC9;
  --sello: #E4572E;
  --pliegue-txt: #8F5E2C; /* pliegue para texto chico: 5,1:1 sobre papel */

  /* Usados en el manual sin token en :root */
  --blanco: #FFFFFF;
  --tinta-2: #4B3A2D;        /* pliegue sobre tinta, divisores sobre tinta */
  --texto-sobre-tinta: #C9B8A6;

  /* Local ficticio de las demos (Café Andén) y colores de las Wallets: excepción permitida del manual */
  --cafe: #1F3D2B;
  --crema: #F2E6D0;
  --stack-1: #C9CBD3;
  --stack-2: #7C8BA6;

  /* Los mismos colores como canales, para sombras y velos con transparencia */
  --tinta-rgb: 42 30 22;
  --sello-rgb: 228 87 46;
  --carton-rgb: 217 160 102;

  /* Forma y movimiento (manual) */
  --radius: 24px;
  --ease-pop: cubic-bezier(.3,1.5,.5,1);
  --ease-out: cubic-bezier(.2,.9,.3,1);
  --dur-fast: 250ms;
  --dur-base: 450ms;
  --dur-slow: 900ms;

  --sombra-card: 0 30px 50px -30px rgb(var(--tinta-rgb) / .55);
  color-scheme: only light; /* "only": que Chrome Android y Samsung Internet no la oscurezcan a la fuerza */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Nunito", system-ui, sans-serif; background: var(--papel); color: var(--tinta);
  line-height: 1.5; font-size: 17px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible { outline-color: var(--papel); }
::selection { background: var(--carton); color: var(--tinta); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--papel);
  padding: 12px 18px; border-radius: 12px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Marca: isotipo y logotipo ---------- */
.iso .card { fill: var(--c-card, var(--carton)); }
.iso .fold { fill: var(--c-fold, var(--pliegue)); }
.iso .on { fill: var(--c-ink, var(--tinta)); }
.iso .off { fill: none; stroke: var(--c-ink, var(--tinta)); stroke-width: 1.5; stroke-dasharray: 2 1.6; }
.iso .prize { fill: var(--c-dot, var(--sello)); }
.v-on-carton { --c-card: var(--tinta); --c-fold: var(--tinta-2); --c-ink: var(--carton); --c-dot: var(--sello); }

.wm { font-weight: 900; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.wm .i { position: relative; display: inline-block; }
.wm .i::after {
  content: ""; position: absolute; left: 50%; top: .07em; width: .185em; height: .185em; margin-left: -.0925em;
  border-radius: 50%; background: var(--i-dot, var(--sello)); transition: transform var(--dur-base) var(--ease-pop);
}
.lockup { display: inline-flex; align-items: center; gap: .32em; text-decoration: none; color: var(--tinta); }
.lockup .iso { width: 1.28em; height: 1.024em; flex: none; }
.lockup:hover .wm .i::after, .lockup:focus-visible .wm .i::after { transform: translateY(-.1em) scale(1.15); }
a.lockup { min-height: 44px; } /* objetivo táctil */

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  border-radius: 999px; padding: 16px 28px; font-weight: 800; text-decoration: none; min-height: 54px;
  transition: transform 160ms ease-out, background-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
/* Texto grande (≥ 19 px en negrita) para cumplir AA sobre el rojo sello */
.btn-main { background: var(--sello); color: var(--blanco); font-size: 19px; box-shadow: 0 10px 24px -12px rgb(var(--sello-rgb) / .8); }
.btn-dark { background: var(--tinta); color: var(--papel); font-size: 17px; }
.btn-ghost { background: transparent; color: var(--tinta); border: 2px solid var(--tinta); font-size: 17px; }
.btn-ghost:hover { background: var(--papel-2); }
.btn svg { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgb(var(--sello-rgb) / .9); }
  .btn-dark:hover { transform: translateY(-2px); background: var(--tinta-2); }
  .btn-main:hover:active, .btn-dark:hover:active { transform: scale(.97); }
}

/* ---------- Menú sticky ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--papel) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-fast);
}
.top.scrolled { border-bottom-color: var(--linea); }
.top:has(.site-nav.open) { background: var(--papel); } /* panel abierto: fondo sólido para leer */
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 64px; }
.top .lockup { font-size: 22px; margin-right: auto; }
.top .nav-cta { min-height: 44px; padding: 10px 16px; font-size: 14px; }

.site-nav { order: 3; flex-basis: 100%; padding-bottom: 10px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 17px; color: var(--tinta-suave); transition: background-color var(--dur-fast), color var(--dur-fast);
}
.site-nav a:hover { background: var(--papel-2); color: var(--tinta); }
.site-nav a[aria-current] { background: var(--papel-2); color: var(--tinta); font-weight: 800; }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--dur-fast);
}
.menu-btn:hover { background: var(--papel-2); }
.menu-btn svg { width: 26px; height: 26px; fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }

/* Con JS, en mobile el menú es un panel que se abre y se cierra */
.js .menu-btn { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; animation: menuIn var(--dur-fast) var(--ease-out); }
.js .site-nav.open ul { flex-direction: column; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Celus angostos: logo, "Probar gratis" y el menú entran en un solo renglón */
@media (max-width: 420px) {
  .top .lockup { font-size: 20px; }
  .top .nav-cta { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 370px) {
  .top .wrap { gap: 4px; }
  .top .lockup { font-size: 18px; }
  .top .nav-cta { padding: 10px 12px; }
}

@media (min-width: 900px) {
  .top .wrap { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: block; order: 0; flex-basis: auto; padding: 0; }
  .site-nav ul { gap: 4px; }
  .site-nav a { font-size: 14px; padding: 0 14px; }
  .js .site-nav.open { animation: none; }
  .js .site-nav.open ul { flex-direction: row; }
  .js .menu-btn { display: none; }
}

/* ---------- Secciones y tipografía ---------- */
section { padding: 72px 0; }
section[id] { scroll-margin-top: 72px; } /* que el menú sticky no tape el título */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sello); flex: none; }
h2 { font-size: clamp(32px, 7.5vw, 52px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; margin-top: 12px; }
h3 { font-weight: 900; }
.lead { font-size: 19px; color: var(--tinta-suave); margin-top: 14px; max-width: 56ch; }
.alt { background: var(--blanco); }
.dark { background: var(--tinta); color: var(--papel); }
.dark .eyebrow, .dark .lead { color: var(--texto-sobre-tinta); }

/* Sección sobre cartón: fondo cartón, tarjetas en papel y una destacada en tinta */
.sec--papel2 { background: var(--papel-2); }
.sec--carton { background: var(--carton); color: var(--tinta); }
.sec--carton .eyebrow, .sec--carton h2 { color: var(--tinta); }
.sec--carton .gain { background: var(--papel); color: var(--tinta); }
.sec--carton .gain .n { color: var(--pliegue-txt); }
.sec--carton .gain h3 { color: var(--tinta); }
.sec--carton .gain p { color: var(--tinta-suave); }
.sec--carton .gain:hover { background: var(--papel-2); }
.sec--carton .gain.big { background: var(--tinta); }
.sec--carton .gain.big .n { color: var(--carton); }
.sec--carton .gain.big h3, .sec--carton .gain.big p { color: var(--papel); }
.sec--carton .gain.big:hover { background: var(--tinta-2); }

/* Aparición al scrollear: solo con JS; sin JS el contenido se ve completo */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

  /* ---------- Tres pasos (index.html y como-funciona.html: todo cambio, en las dos) ---------- */
  /* --paso = lo que dura cada paso en la secuencia; tiene que coincidir con STEP en el script de más abajo */
  .steps { --paso: 3s; display: grid; gap: 16px; margin-top: 36px; counter-reset: paso; list-style: none; }
  .step { background: var(--blanco); border-radius: var(--radius); padding: 20px; border: 2px solid var(--linea); counter-increment: paso; position: relative; }
  .step .art { height: 190px; border-radius: 18px; background: var(--papel-2); position: relative; overflow: hidden; }
  .step h3 { font-size: 21px; font-weight: 900; margin-top: 18px; letter-spacing: -.01em; display: flex; gap: 10px; align-items: baseline; }
  .step h3::before { content: counter(paso); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tinta); color: var(--papel); font-size: 16px; display: grid; place-items: center; transform: translateY(-2px); }
  .step p { color: var(--tinta-suave); margin-top: 6px; }
  @media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

  /* paso 1: NFC */
  .a1 .stand { position: absolute; left: 50%; bottom: 20px; width: 118px; margin-left: -59px; height: 86px; border-radius: 12px 12px 6px 6px; background: var(--carton); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 900; line-height: 1.15; }
  .a1 .stand::after { content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 20px; background: linear-gradient(225deg, transparent 50%, var(--pliegue) 50%); }
  .a1 .base { position: absolute; left: 50%; bottom: 12px; width: 92px; margin-left: -46px; height: 8px; border-radius: 0 0 8px 8px; background: var(--pliegue-txt); }
  .a1 .mini { position: absolute; left: 50%; top: 14px; width: 54px; height: 94px; margin-left: -27px; border-radius: 12px; background: var(--tinta); padding: 4px; }
  .a1 .mini::after { content: ""; display: block; height: 100%; border-radius: 9px; background: var(--papel); }
  .a1 .wv { position: absolute; left: 50%; top: 104px; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 2.5px solid var(--sello); opacity: 0; }
  @keyframes approach { 0% { transform: translateY(-30px) rotate(-10deg); } 16%, 100% { transform: none; } }
  @keyframes wave { 0%, 16% { transform: scale(.4); opacity: 0; } 17% { opacity: .9; } 33%, 100% { transform: scale(1.6); opacity: 0; } }

  /* paso 2: Wallet */
  .a2 .wallet { position: absolute; left: 50%; bottom: 16px; width: 170px; margin-left: -85px; height: 120px; }
  .a2 .wc { position: absolute; left: 0; right: 0; height: 60px; border-radius: 12px; }
  .a2 .wc.g1 { bottom: 0; background: var(--stack-1); } .a2 .wc.g2 { bottom: 16px; background: var(--stack-2); }
  .a2 .wc.new { bottom: 32px; background: var(--cafe); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--crema); font-size: 12px; font-weight: 800; }
  .a2 .wc.new i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--crema) 60%, transparent); }
  .a2 .timer { position: absolute; right: 14px; top: 14px; background: var(--tinta); color: var(--papel); font-weight: 900; font-size: 14px; border-radius: 999px; padding: 6px 12px; }
  @keyframes slidein { 0% { transform: translateY(-110px); opacity: 0; } 16%, 100% { transform: none; opacity: 1; } }

  /* paso 3: escaneo */
  .a3 .stand2 { position: absolute; left: 22px; bottom: 30px; width: 96px; height: 70px; border-radius: 10px 10px 5px 5px; background: var(--carton); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 900; line-height: 1.15; }
  .a3 .stand2::after { content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: linear-gradient(225deg, transparent 50%, var(--pliegue) 50%); }
  .a3 .base2 { position: absolute; left: 34px; bottom: 22px; width: 72px; height: 8px; border-radius: 0 0 8px 8px; background: var(--pliegue-txt); }
  .a3 .ph2 { position: absolute; left: 48px; top: 10px; width: 44px; height: 78px; border-radius: 11px; background: var(--tinta); padding: 3px; }
  .a3 .ph2::after { content: ""; display: block; height: 100%; border-radius: 8px; background: var(--cafe); }
  .a3 .plus { position: absolute; right: 24%; top: 26px; width: 60px; height: 60px; border-radius: 50%; background: var(--tinta); color: var(--papel); display: grid; place-items: center; font-size: 20px; font-weight: 900; opacity: 0; }
  .a3 .row { position: absolute; right: 16px; bottom: 38px; display: flex; gap: 6px; }
  .a3 .row i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--pliegue); }
  .a3 .row i.on { background: var(--tinta); border: 0; }
  .a3 .row i.new { background: var(--sello); border: 0; }
  @keyframes tap { 0% { transform: translateY(-16px) rotate(-8deg); } 12% { transform: translateY(10px) rotate(0); } 24%, 100% { transform: none; } }
  @keyframes plus { 0%, 12% { opacity: 0; transform: scale(.4); } 24%, 84% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
  @keyframes newdot { 0%, 14% { transform: scale(0); } 30%, 100% { transform: scale(1); } }

  /* Secuencia de los 3 pasos: el JS marca un paso por vez con .is-active, y todo queda quieto al final de su animación.
     Sin JS o con movimiento reducido, los 3 pasos se ven quietos y completos. Solo transform y opacity. */
  .steps-ctl { display: none; justify-content: flex-end; margin-top: 20px; }
  .steps-ctl + .steps { margin-top: 12px; }
  .steps-toggle { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--linea); background: var(--blanco); color: var(--tinta); display: grid; place-items: center; cursor: pointer; padding: 0; }
  .steps-toggle:hover { border-color: var(--carton); }
  .steps-toggle:focus-visible { border-radius: 50%; }
  .step-pick:focus-visible { border-radius: 18px; }
  .steps-toggle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .steps-toggle .i-play, .steps-toggle.is-paused .i-pause { display: none; }
  .steps-toggle.is-paused .i-play { display: inline; }
  .step-pick { display: none; position: absolute; top: 20px; left: 20px; right: 20px; height: 190px; border: 0; border-radius: 18px; background: transparent; cursor: pointer; padding: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .steps-ctl { display: flex; }
    .step-pick { display: block; }
    .step.is-active { border-color: var(--carton); }
    .steps.frozen .step .art * { animation-play-state: paused !important; }
    .step.is-active .a1 .mini { animation: approach var(--paso) var(--ease-out) both; }
    .step.is-active .a1 .wv { animation: wave var(--paso) ease-out both; }
    .step.is-active .a1 .wv:nth-child(2) { animation-delay: .3s; }
    .step.is-active .a2 .wc.new { animation: slidein var(--paso) var(--ease-pop) both; }
    .step.is-active .a3 .ph2 { animation: tap var(--paso) var(--ease-out) both; }
    .step.is-active .a3 .plus { animation: plus var(--paso) var(--ease-pop) both; }
    .step.is-active .a3 .row i.new { animation: newdot var(--paso) var(--ease-pop) both; }
  }

  .push {
    margin: 28px auto 0; max-width: 460px; display: flex; gap: 14px; align-items: center; background: var(--blanco);
    border-radius: 22px; padding: 16px 18px; box-shadow: 0 20px 36px -20px rgb(var(--tinta-rgb) / .35); border: 1px solid var(--linea);
  }
  .push .ti { width: 46px; height: 46px; border-radius: 12px; background: var(--cafe); display: grid; place-items: center; flex: none; }
  .push .ti svg { width: 28px; height: 28px; fill: none; stroke: var(--crema); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .push b { display: block; font-size: 15px; }
  .push span { font-size: 17px; }
  .push small { color: var(--tinta-suave); font-weight: 700; font-size: 13px; }
  .js .push.reveal { transform: translateY(-20px) scale(.96); transition-timing-function: var(--ease-pop); }
  .js .push.reveal.in { transform: none; }

/* ---------- Banda final (como-funciona.html y planes.html: todo cambio, en las dos) ----------
   Sobre tinta: la clase .dark pone el fondo, el texto y el foco en papel. Sin degradés, sin sombras, sin pastillas.
   El rojo: el subrayado a mano y el puntito de la etiqueta. La ilustración de como-funciona.html está en demo.css. */
.cta-band { padding: 64px 0; }
.cta-grid { display: grid; gap: 52px; align-items: center; }
.cta-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .cta-band { padding: 96px 0; }
  .cta-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
}
.cta-band h2 { margin-top: 14px; color: var(--papel); line-height: 1.1; text-wrap: balance; }
.cta-band .hl { position: relative; display: inline-block; white-space: nowrap; color: var(--carton); }
.cta-band .hl svg { position: absolute; left: -1%; bottom: -.2em; width: 102%; height: .3em; overflow: visible; pointer-events: none; }
.cta-band .hl path { fill: none; stroke: var(--sello); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cta-lead { max-width: 46ch; margin-top: 18px; font-size: 19px; font-weight: 600; color: var(--papel-2); }
.cta-list { list-style: none; display: grid; gap: 8px; margin-top: 24px; }
.cta-list li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: var(--papel); }
.cta-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--carton); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-cta { display: flex; width: 100%; max-width: 420px; margin-top: 32px; min-height: 56px; padding: 0 22px; background: var(--carton); color: var(--tinta); font-size: 18px; text-align: center; }
.btn-cta svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease-out; }
.cta-faq { display: flex; align-items: center; width: fit-content; min-height: 44px; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--papel-2); text-decoration: underline; text-decoration-color: var(--pliegue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cta-faq:hover { color: var(--papel); text-decoration-color: var(--papel); }
@media (hover: hover) and (pointer: fine) {
  .btn-cta:hover { background: var(--papel); }
  .btn-cta:hover svg { transform: translateX(4px); }
}
@media (min-width: 900px) { .btn-cta { display: inline-flex; width: auto; font-size: 19px; padding: 0 30px; } }
.cta-band--solo .cta-grid { grid-template-columns: minmax(0, 1fr); }
.cta-band--solo .cta-text { max-width: 640px; }

/* Entrada única al aparecer en pantalla (site.js pone .in en [data-enter]). Sin JS, o sin animaciones, todo queda a la vista */
.js .cta-band:not(.in) .hl path { stroke-dashoffset: 1.03; }
.cta-band.in .hl path { animation: ulDraw var(--dur-slow) cubic-bezier(.65,0,.35,1) .2s backwards; }
@keyframes ulDraw { from { stroke-dashoffset: 1.03; } }
@media (prefers-reduced-motion: reduce) { .cta-band .hl path { animation: none !important; stroke-dashoffset: 0 !important; } }

/* Etiqueta de dato sin definir (precios, detalles): buscarlas con grep ".tbd". Al definirse, se reemplaza el texto y se saca la etiqueta */
.tbd { display: inline-block; padding: 2px 10px; border: 1.5px dashed var(--pliegue); border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.4; color: var(--pliegue-txt); }

/* ---------- Pie ---------- */
footer { padding: 48px 0 40px; }
footer .wrap { display: flex; flex-direction: column; gap: 18px; }
footer .lockup { font-size: 30px; }
footer p { color: var(--tinta-suave); font-weight: 700; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 800; }
footer .links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--carton); }
footer .links a:hover { text-decoration-color: var(--tinta); }
footer .foot-end { display: flex; flex-direction: column; gap: 12px; }
footer .social { display: flex; gap: 8px; }
footer .social a { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--linea); display: grid; place-items: center; color: var(--tinta); transition: border-color var(--dur-fast), transform 160ms var(--ease-out); }
footer .social a:hover { border-color: var(--carton); transform: translateY(-2px); }
footer .social a:focus-visible { border-radius: 50%; }
footer .social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer .social .dot { fill: currentColor; }
@media (min-width: 900px) { footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
  footer .foot-end { flex-direction: row; align-items: center; gap: 24px; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Formulario del piloto (index.html y planes.html: todo cambio vale para las dos) ---------- */
.final { background: var(--carton); position: relative; overflow: clip; }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; } /* minmax: que el formulario no empuje el margen derecho en celu */
.final .eyebrow { color: var(--tinta); }
.final .eyebrow::before { background: var(--tinta); }
.final .lead { color: var(--tinta); }
.final ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; font-weight: 800; }
.final ul li { display: flex; gap: 10px; align-items: center; }
.final ul li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--tinta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23FBF6EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }
.form-card {
  position: relative; background: var(--papel); border-radius: var(--radius); padding: 20px 18px;
  box-shadow: 0 30px 50px -30px rgb(var(--tinta-rgb) / .55);
}
.form-card h3 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.form-card > p { color: var(--tinta-suave); margin-top: 2px; }
.fld { margin-top: 10px; }
.fld label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.fld input {
  width: 100%; height: 48px; border-radius: 12px; border: 2px solid var(--linea); background: var(--blanco);
  padding: 0 14px; font-size: 17px; font-weight: 600; transition: border-color .2s;
}
.fld input::placeholder { color: var(--tinta-suave); font-weight: 500; }
.fld input:focus { border-color: var(--tinta); outline: none; box-shadow: 0 0 0 3px rgb(var(--tinta-rgb) / .18); }
.fld .wa { display: flex; border: 2px solid var(--linea); border-radius: 12px; background: var(--blanco); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.fld .wa:focus-within { border-color: var(--tinta); box-shadow: 0 0 0 3px rgb(var(--tinta-rgb) / .18); }
.fld .wa span { display: grid; place-items: center; padding: 0 12px; font-weight: 800; background: var(--papel-2); border-right: 2px solid var(--linea); white-space: nowrap; }
.fld .wa input { border: 0; border-radius: 0; box-shadow: none !important; }
.fld .err { display: none; color: var(--tinta); font-weight: 800; font-size: 14px; margin-top: 6px; padding-left: 12px; border-left: 4px solid var(--sello); }
.fld.invalid input, .fld.invalid .wa { border-color: var(--sello); }
.fld.invalid .err { display: block; }
.form-card .btn { width: 100%; min-height: 48px; margin-top: 16px; }
.form-card .or { text-align: center; font-size: 14px; font-weight: 700; color: var(--tinta-suave); margin: 8px 0 6px; }
.form-card .btn-ghost { margin-top: 0; white-space: nowrap; }
.fine { font-size: 13.5px; color: var(--tinta-suave); margin-top: 10px; }
.status { margin-top: 8px; font-weight: 800; color: var(--tinta); min-height: 0; }
.success { display: none; text-align: center; padding: 20px 6px; }
.success .seal { width: 110px; height: 110px; margin: 0 auto; border-radius: 50%; background: var(--sello); display: grid; place-items: center; animation: slap .6s var(--ease-pop) both; }
.success .seal svg { width: 54px; height: 54px; fill: none; stroke: var(--blanco); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { margin-top: 18px; }
.success p { color: var(--tinta-suave); margin-top: 8px; }
.form-card.done form { display: none; }
/* Cartoncito que se va sellando */
.fc-grid { display: flex; flex-direction: column; gap: 14px; }
.stampcard {
  order: -1; position: relative; background: var(--carton); border-radius: 18px; padding: 12px 14px 10px;
  box-shadow: 0 10px 20px -14px rgb(var(--tinta-rgb) / .6);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.stampcard::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(225deg, transparent 50%, var(--pliegue) 50%); }
.stampcard .sc-t { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.stampcard .sc-row { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; }
.st { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; flex: 1; }
.st i { width: 38px; height: 38px; border-radius: 50%; border: 2.5px dashed var(--tinta); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.st i::after { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9 6.1-6.2' fill='none' stroke='%23FBF6EE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; opacity: 0; }
.st span { font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; }
.st.on i { background: var(--tinta); border: 2.5px solid var(--tinta); animation: stamp .5s var(--ease-pop) both; }
.st.on i::after { opacity: 1; }
.st.prize i { border-color: var(--sello); }
.st.prize.on i { background: var(--sello); border-color: var(--sello); animation: stamp .6s var(--ease-pop) both; }
/* El sello entra (manual): escala 1,9 → 0,85 → 1 con la curva Pop */
@keyframes stamp { 0% { transform: scale(1.9); opacity: 0; } 60% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1); } }
@keyframes slap { 0% { transform: scale(1.9); opacity: 0; } 60% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1); } }
.stampcard .sc-msg { font-size: 13px; font-weight: 800; margin-top: 10px; min-height: 1.3em; }
@media (min-width: 600px) {
  .st i { width: 44px; height: 44px; }
  .fc-grid { display: grid; grid-template-columns: 1fr 118px; align-items: start; }
  .stampcard { order: 2; padding: 16px 12px; }
  .stampcard .sc-row { flex-direction: column; align-items: center; gap: 12px; }
  .stampcard .sc-t, .stampcard .sc-msg { text-align: center; }
}
.form-card.done .success { display: block; }
@media (min-width: 900px) { .final .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } .form-card { padding: 28px 26px; } }
