/* Atipay Kids · landing
   Capas: tokens → base → intro → layout → componentes → legal → utilidades */
@layer tokens, base, intro, layout, components, legal, utils;

@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("../fonts/fredoka-500.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("../fonts/fredoka-600.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("../fonts/fredoka-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-800.woff2") format("woff2"); }

@layer tokens {
  :root {
    --navy: #2b2d6e; --ink: #1f2340; --muted: #5b5f7a;
    --orange: #ff8a3d; --cta: #f57c1f; --cta-shadow: #c25a0c;
    --yellow: #ffc93c; --yellow-soft: #fff0b8;
    --teal: #1fb5a8; --teal-soft: #d9f4f1; --teal-ink: #0b5f58;
    --leaf: #7bc96f; --leaf-soft: #e3f6df; --pink: #e8478b; --pink-soft: #fde1ed;
    --blue: #2b59d9; --blue-soft: #e8eeff;
    --cream: #fff7ec; --cream-2: #fdeed9; --paper: #ffffff; --line: #f0dcc0;
    --radius: 28px; --radius-sm: 18px;
    --pencil: 0 6px 0 var(--line);
    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, -apple-system, sans-serif;
    --wrap: min(1160px, 100% - 2.5rem);
    --header-h: 76px;
    /* rebote y elástico (linear() con puntos de una curva física) */
    --bounce: linear(0, 0.004, 0.016, 0.035, 0.063, 0.098, 0.141, 0.191, 0.25, 0.316, 0.391, 0.472, 0.562, 0.66, 0.766, 0.879, 1, 0.926, 0.866, 0.822, 0.79, 0.774, 0.774, 0.79, 0.822, 0.866, 0.926, 1, 0.982, 0.972, 0.982, 1, 0.996, 0.994, 0.996, 1);
    --elastic: linear(0, 0.22 2%, 0.64 6%, 1.02 10%, 1.18 14%, 1.2 17%, 1.1 22%, 0.97 28%, 0.93 34%, 0.98 42%, 1.02 52%, 1 60%, 1);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
  }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); min-height: 100dvh; overflow-x: clip; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
  h1 { font-size: clamp(2.5rem, 6vw + .5rem, 4.75rem); font-weight: 700; }
  h2 { font-size: clamp(1.9rem, 3.4vw + .6rem, 3.1rem); }
  h3 { font-size: 1.35rem; }
  p { margin: 0; text-wrap: pretty; }
  img, svg { max-width: 100%; display: block; }
  a { color: inherit; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
  ::selection { background: var(--yellow); color: var(--ink); }
  [hidden] { display: none !important; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 12px; z-index: 200; transition: top .2s; }
  .skip:focus { top: 1rem; }
}

/* ───────────────────────── Intro (igual que el preloading de la app) ───────────────────────── */
@layer intro {
  .intro { position: fixed; inset: 0; z-index: 1000; background: var(--cream); display: grid; place-items: center; overflow: hidden; transition: opacity .6s ease, visibility .6s; }
  .intro.is-leaving { opacity: 0; visibility: hidden; }
  html.intro-active { overflow: hidden; }
  html:not(.intro-active) .intro { display: none; }

  /* 1 unidad = fracción del ancho: el logo completo (645×248) ocupa ~86 % del ancho en móvil y se limita en escritorio */
  .lockup { --u: clamp(.42px, calc(80vw / 645), 1.45px); position: relative; width: calc(645 * var(--u)); height: calc(248 * var(--u)); }
  .lockup img { position: absolute; display: block; max-width: none; }
  .lockup .sym { left: 0; top: calc((248 - 214) / 2 * var(--u)); width: calc(230 * var(--u)); height: calc(214 * var(--u)); }
  .lockup .word { left: calc(270 * var(--u)); top: 0; width: calc(375 * var(--u)); height: calc(248 * var(--u)); }
  .lockup .symbox { position: absolute; inset: 0; animation: shift 0.75s var(--ease-out) 2.25s both, hop .5s ease-out 2.1s both; }
  /* el dibujo empieza centrado y se desliza a su lugar */
  @keyframes shift { from { transform: translateX(calc(207.5 * var(--u))); } to { transform: translateX(0); } }
  @keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(-22 * var(--u)); } }

  .piece { animation: drop .75s var(--bounce) both; animation-delay: var(--d); }
  @keyframes drop { from { transform: translateY(calc(-340 * var(--u))); opacity: 0; } 12% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }

  .star { transform-origin: 50% 20%; animation: starIn .9s var(--elastic) 1.5s both; }
  @keyframes starIn { from { transform: scale(0) rotate(-52deg); opacity: 0; } 8% { opacity: 1; } to { transform: scale(1) rotate(0); opacity: 1; } }
  .face { transform-origin: 50% 16%; animation: pop .35s var(--ease-out) 1.85s both; }
  .spark-a { transform-origin: 74% 7%; animation: spark 1s var(--elastic) 2s both, twinkle 2.2s ease-in-out 3.6s infinite; }
  .spark-b { transform-origin: 28% 20%; animation: spark 1s var(--elastic) 2.15s both, twinkle 2.6s ease-in-out 3.9s infinite; }
  @keyframes spark { from { transform: scale(0); } to { transform: scale(1); } }
  @keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  @keyframes twinkle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

  /* letras: a · t · ı · p · a · y, una tras otra y rebotando */
  .letter { transform-origin: 50% 70%; animation: letter .75s var(--bounce) both; animation-delay: calc(2.84s + var(--i) * .215s); }
  @keyframes letter { from { transform: translateY(calc(-190 * var(--u))) scale(1.08, .94); opacity: 0; } 14% { opacity: 1; } to { transform: translateY(0) scale(1); opacity: 1; } }
  .word-star { transform-origin: 28% 36%; animation: starIn .8s var(--elastic) 3.75s both; }
  .kids { transform-origin: 10% 76%; animation: kids .7s var(--elastic) 4s both; }
  @keyframes kids { from { transform: scale(0); opacity: 0; } 10% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

  .intro-skip { position: absolute; right: 1.25rem; bottom: 1.25rem; font: 700 .95rem var(--font-body); background: transparent; border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; opacity: 0; animation: fadeIn .4s ease 1s forwards; }
  .intro-skip:hover { background: var(--navy); color: var(--cream); }
  @keyframes fadeIn { to { opacity: 1; } }

  @media (prefers-reduced-motion: reduce) {
    .lockup *, .lockup { animation-duration: .01ms !important; animation-delay: 0s !important; }
    .intro-skip { animation: none; opacity: 1; }
  }
}

/* ───────────────────────── Layout ───────────────────────── */
@layer layout {
  .wrap { width: var(--wrap); margin-inline: auto; }
  section { padding-block: clamp(4rem, 9vw, 7.5rem); }
  .eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 800 .85rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--yellow-soft); padding: .4rem .9rem; border-radius: 999px; }
  .section-head { max-width: 46rem; display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
  .section-head p { font-size: 1.2rem; color: var(--muted); }
  .center { text-align: center; margin-inline: auto; justify-items: center; }

  /* encabezado */
  .site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
  .site-header.is-stuck { background: color-mix(in srgb, var(--cream) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .brand img { height: 46px; width: auto; }
  .nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .nav-links a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .95rem; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
  .nav-links a:hover { background: var(--cream-2); }
  .nav-links a[aria-current="true"] { background: var(--navy); color: var(--cream); }
  .menu-btn { display: none; width: 48px; height: 48px; border-radius: 16px; border: 2px solid var(--navy); background: var(--paper); font-size: 1.2rem; cursor: pointer; }
  @media (max-width: 920px) {
    .menu-btn { display: inline-grid; place-items: center; }
    .nav-links { position: absolute; inset: calc(var(--header-h) - 6px) 1rem auto 1rem; flex-direction: column; align-items: stretch; background: var(--paper); border: 2px solid var(--line); border-radius: 24px; padding: .75rem; box-shadow: var(--pencil), 0 24px 48px -24px rgb(31 35 64 / .35); transform-origin: top right; scale: .9; opacity: 0; visibility: hidden; transition: scale .25s var(--ease-out), opacity .2s, visibility .2s; }
    .nav-links.is-open { scale: 1; opacity: 1; visibility: visible; }
    .nav-links a { justify-content: center; min-height: 52px; }
    .nav-cta-desktop { display: none; }
  }

  /* hero */
  .hero { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem)); padding-bottom: clamp(3rem, 7vw, 5rem); position: relative; isolation: isolate; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .hero h1 em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); padding-inline: .1em; }
  .hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
  .hero-copy p.lead { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); color: var(--muted); max-width: 34rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
  .hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font-weight: 700; font-size: .98rem; }
  .hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
  .hero-trust i { color: var(--teal-ink); }
  @media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy { justify-items: center; text-align: center; } .hero-actions, .hero-trust { justify-content: center; } }

  /* flotantes decorativos */
  .floaties { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .floaties i { position: absolute; color: var(--yellow); opacity: .9; animation: float 7s ease-in-out infinite; }
  .floaties i:nth-child(2n) { color: var(--teal); animation-duration: 9s; animation-delay: -3s; }
  .floaties i:nth-child(3n) { color: var(--pink); animation-duration: 8s; animation-delay: -5s; }
  @media (max-width: 920px) { .floaties i:nth-child(2), .floaties i:nth-child(6) { display: none; } }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(12deg); } }

  .greca { height: 36px; background: url("../img/greca.svg") repeat-x center / auto 100%; }

  /* footer */
  .site-footer { background: var(--navy); color: #e9e9fb; padding-block: 4rem 2rem; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
  .footer-grid h3 { font-size: 1rem; color: var(--yellow); margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; }
  .footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
  .footer-grid a { text-decoration: none; opacity: .92; } .footer-grid a:hover { text-decoration: underline; opacity: 1; }
  .footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; }
  .footer-brand p { max-width: 22rem; opacity: .85; }
  .footer-dev { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-radius: 20px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); }
  .footer-dev p { margin: 0; font-size: .95rem; opacity: .92; } .footer-dev a { color: var(--yellow); }
  .lr-btn { display: inline-flex; align-items: center; gap: .8rem; background: #fff; color: var(--ink) !important; border-radius: 14px; padding: .55rem 1.1rem .55rem .8rem; text-decoration: none; box-shadow: 0 4px 0 rgb(0 0 0 / .35); transition: transform .15s; min-height: 52px; }
  .lr-btn:hover { transform: translateY(-2px); } .lr-btn i { font-size: 1.6rem; color: var(--navy); } .lr-btn strong { display: block; font: 600 1.05rem/1.1 var(--font-display); } .lr-btn small { display: block; font-size: .72rem; color: var(--muted); }
  .footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .16); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .92rem; opacity: .85; }
  @media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
}

/* ───────────────────────── Componentes ───────────────────────── */
@layer components {
  /* botones con sombra de lápiz, como en la app */
  .btn { --bg: var(--cta); --sh: var(--cta-shadow); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 56px; padding: 0 1.7rem; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); font: 600 1.15rem var(--font-display); text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--sh); transition: transform .12s, box-shadow .12s, filter .2s; }
  .btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 0 var(--sh); }
  .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sh); }
  .btn.alt { --bg: var(--paper); --sh: var(--line); border: 2px solid var(--navy); }
  .btn.navy { --bg: var(--navy); --sh: #14153f; --fg: var(--cream); }
  .btn.sm { min-height: 44px; padding: 0 1.2rem; font-size: 1rem; }
  .btn[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }
  .store { display: inline-flex; align-items: center; gap: .8rem; background: var(--ink); color: #fff; border-radius: 16px; padding: .6rem 1.25rem .6rem 1rem; text-decoration: none; min-height: 58px; box-shadow: 0 5px 0 #000; transition: transform .12s, box-shadow .12s; }
  .store:hover { transform: translateY(-1px); } .store:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
  .store i { font-size: 1.9rem; } .store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; } .store strong { display: block; font: 600 1.15rem/1.1 var(--font-display); }
  .store .soon { margin-left: .3rem; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: .1rem .55rem; font: 800 .7rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; }

  /* revelado al hacer scroll */
  .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); transition-delay: var(--rd, 0s); }
  .reveal.is-in { opacity: 1; translate: 0 0; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } html { scroll-behavior: auto; } }

  /* ── teléfono interactivo ── */
  .phone-stage { position: relative; display: grid; place-items: center; padding: 1rem 0 2rem; }
  .phone-stage::before { content: ""; position: absolute; width: min(430px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); opacity: .35; z-index: -1; filter: blur(2px); }
  .phone-stage .mascot { position: absolute; width: clamp(70px, 9vw, 110px); right: 4%; top: 2%; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgb(0 0 0 / .08)); }
  .phone { width: min(340px, 86vw); aspect-ratio: 9 / 18.6; background: var(--ink); border-radius: 48px; padding: 11px; box-shadow: 0 30px 60px -20px rgb(43 45 110 / .5), 0 10px 0 #14153f; position: relative; rotate: -2deg; transition: rotate .5s var(--ease-out); }
  .phone:hover { rotate: 0deg; }
  @media (max-width: 520px) { .phone { aspect-ratio: 9 / 16.4; } }
  .phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; background: #000; border-radius: 99px; z-index: 5; }
  .screen { width: 100%; height: 100%; background: #fff6e9; border-radius: 38px; overflow: hidden; position: relative; display: flex; flex-direction: column; container-type: inline-size; }
  .screen-tabs { display: flex; gap: .25rem; margin: 52px 14px 6px; background: #f3e6d3; padding: 4px; border-radius: 999px; }
  .screen-tabs button { flex: 1; border: 0; background: transparent; padding: .45rem .5rem; border-radius: 999px; font: 700 .82rem var(--font-body); cursor: pointer; display: inline-flex; gap: .4rem; justify-content: center; align-items: center; min-height: 36px; }
  .screen-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .1); }
  .pane { padding: 8px 14px 14px; display: none; flex: 1; flex-direction: column; gap: 10px; overflow: hidden; }
  .pane.is-active { display: flex; animation: paneIn .4s var(--ease-out); }
  @keyframes paneIn { from { opacity: 0; translate: 0 10px; } }
  .ph-head { display: flex; align-items: center; gap: 10px; }
  .avatar { width: 38px; height: 38px; border-radius: 50%; background: #ffd23f; color: #5a3d00; display: grid; place-items: center; font: 600 1.1rem var(--font-display); flex: none; }
  .ph-head .hi { font: 600 1.1rem/1.1 var(--font-display); } .ph-head small { display: block; font: 700 .65rem var(--font-body); color: var(--muted); }
  .pts-pill { margin-left: auto; display: inline-flex; gap: .3rem; align-items: center; background: #fff; border-radius: 999px; padding: .3rem .7rem; font: 600 1rem var(--font-display); box-shadow: 0 3px 0 var(--line); }
  .pts-pill i { color: #ffc400; font-size: .85rem; } .pts-pill img { width: 18px; height: 18px; }
  .goal-card { background: var(--blue); color: #fff; border-radius: 22px; padding: 14px; display: grid; gap: 6px; position: relative; }
  .goal-card .k { font: 800 .6rem var(--font-body); letter-spacing: .08em; color: #d6e1ff; text-transform: uppercase; }
  .goal-card .t { font: 600 1.25rem/1.1 var(--font-display); }
  .goal-card .big { font: 600 1.9rem/1 var(--font-display); } .goal-card .big span { font: 700 .72rem var(--font-body); color: #d6e1ff; margin-left: .3rem; }
  .goal-card .mini { position: absolute; right: 10px; top: 10px; width: 40px; }
  .track { position: relative; height: 12px; background: rgb(255 255 255 / .24); border-radius: 99px; margin-top: 4px; }
  .track .fill { height: 100%; width: var(--p, 0%); background: var(--yellow); border-radius: 99px; transition: width .8s var(--elastic); }
  .track b { position: absolute; top: -3px; width: 3px; height: 18px; background: rgb(255 255 255 / .6); border-radius: 2px; }
  .goal-card .hint { font: 800 .62rem var(--font-body); color: #d6e1ff; display: flex; justify-content: space-between; }
  .today { background: #fff; border-radius: 18px; padding: 12px; display: grid; gap: 8px; box-shadow: 0 5px 0 var(--line); }
  .today .row { display: flex; align-items: center; gap: 10px; }
  .today .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
  .today .tt { font: 600 1.05rem/1.1 var(--font-display); } .today small { font: 700 .68rem var(--font-body); color: var(--muted); }
  .today .due { font: 800 .62rem var(--font-body); color: #8a3b00; background: #ffe3cc; padding: .15rem .5rem; border-radius: 8px; justify-self: end; }
  .kid-btn { border: 0; width: 100%; min-height: 46px; border-radius: 99px; background: var(--cta); color: var(--ink); font: 600 1.05rem var(--font-display); box-shadow: 0 4px 0 var(--cta-shadow); cursor: pointer; display: inline-flex; gap: .5rem; align-items: center; justify-content: center; transition: transform .1s, box-shadow .1s; }
  .kid-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cta-shadow); }
  .kid-btn[disabled] { background: var(--leaf-soft); box-shadow: none; color: #25601b; cursor: default; }
  .status { border-radius: 14px; padding: 10px; font: 700 .78rem/1.25 var(--font-body); display: flex; gap: .5rem; align-items: center; }
  .status.wait { background: #fff0d6; color: #8a4b00; } .status.ok { background: var(--leaf-soft); color: #25601b; }
  .rev-card { background: #fff; border-radius: 16px; padding: 12px; display: grid; gap: 8px; box-shadow: 0 2px 8px rgb(0 0 0 / .06); }
  .rev-card header { display: flex; gap: 8px; align-items: center; font: 700 .85rem var(--font-body); }
  .rev-card .quote { background: #f7f7fa; border-radius: 10px; padding: 10px; font: italic 600 .8rem/1.35 var(--font-body); }
  .rev-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
  .rev-actions button { min-height: 42px; border-radius: 12px; border: 1px solid #c6c6c8; background: #fff; font: 700 .85rem var(--font-body); cursor: pointer; }
  .rev-actions button.ok { background: #0062d1; color: #fff; border-color: #0062d1; }
  .rev-actions button[disabled] { opacity: .45; cursor: not-allowed; }
  .empty-pane { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); font: 700 .85rem var(--font-body); gap: .5rem; padding: 1rem; }
  .toast { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--ink); color: #fff; border-radius: 14px; padding: .65rem .9rem; font: 700 .8rem var(--font-body); display: flex; gap: .5rem; align-items: center; translate: 0 140%; transition: translate .4s var(--elastic); z-index: 4; }
  .toast.is-on { translate: 0 0; }
  .hint-tap { margin-top: 1.25rem; text-align: center; color: var(--muted); font-weight: 700; font-size: .95rem; display: inline-flex; gap: .5rem; align-items: center; justify-self: center; }
  canvas#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 400; }

  /* ── pasos interactivos ── */
  .steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
  .step-list { display: grid; gap: .8rem; align-content: start; }
  .step-btn { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; cursor: pointer; box-shadow: var(--pencil); transition: border-color .2s, transform .2s, background .2s; }
  .step-btn:hover { transform: translateX(4px); }
  .step-btn[aria-selected="true"] { border-color: var(--navy); background: #fffdf8; }
  .step-num { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; background: var(--bg, var(--yellow-soft)); color: var(--navy); transition: rotate .4s var(--elastic); }
  .step-btn[aria-selected="true"] .step-num { rotate: -8deg; }
  .step-btn h3 { font-size: 1.2rem; margin-bottom: .15rem; } .step-btn p { color: var(--muted); font-size: .98rem; line-height: 1.4; }
  .step-panel { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); position: relative; overflow: hidden; display: grid; align-content: center; gap: 1rem; min-height: 340px; }
  .step-panel .deco { position: absolute; right: -30px; bottom: -34px; font-size: 11rem; color: rgb(255 255 255 / .07); }
  .step-panel [role="tabpanel"] { display: none; gap: 1rem; animation: paneIn .45s var(--ease-out); position: relative; }
  .step-panel [role="tabpanel"].is-active { display: grid; }
  .step-panel h3 { font-size: 1.8rem; color: var(--yellow); }
  .chips { display: flex; flex-wrap: wrap; gap: .5rem; } .chip { display: inline-flex; align-items: center; gap: .45rem; background: rgb(255 255 255 / .12); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .95rem; }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

  /* ── constructor de metas ── */
  .builder { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--pencil); overflow: hidden; border: 2px solid var(--line); }
  .builder-controls { padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.25rem; align-content: start; }
  .field { display: grid; gap: .45rem; } .field label { font-weight: 800; display: flex; justify-content: space-between; } .field label output { color: var(--blue); font-family: var(--font-display); font-size: 1.2rem; }
  .field input[type="text"], .field select { min-height: 50px; border: 2px solid var(--line); border-radius: 14px; padding: 0 1rem; background: #fff; width: 100%; }
  .field input:focus, .field select:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 4px rgb(31 181 168 / .25); }
  input[type="range"] { accent-color: var(--orange); width: 100%; height: 28px; cursor: pointer; }
  .builder-preview { background: var(--blue-soft); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-content: start; container-type: inline-size; }
  .builder-preview .sum { background: var(--blue); color: #fff; border-radius: 20px; padding: 1.1rem 1.3rem; display: grid; gap: .25rem; }
  .builder-preview .sum strong { font: 600 clamp(1.3rem, 7cqi, 1.9rem)/1.1 var(--font-display); } .builder-preview .sum span { color: #d6e1ff; font-weight: 700; }
  .cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: .4rem; }
  .cal i { font-style: normal; aspect-ratio: 1; border-radius: 11px; background: #fff; display: grid; place-items: center; font: 600 .95rem var(--font-display); color: var(--navy); box-shadow: 0 3px 0 #c9d6ff; animation: cellIn .4s var(--elastic) both; animation-delay: calc(var(--n) * 14ms); }
  .cal i.milestone { background: var(--yellow); box-shadow: 0 3px 0 #d9a60a; } .cal i.last { background: var(--leaf); box-shadow: 0 3px 0 #4f9e44; }
  @keyframes cellIn { from { scale: 0; } }
  .legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; font-weight: 700; color: var(--muted); } .legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .4rem; vertical-align: -1px; background: #fff; box-shadow: 0 2px 0 #c9d6ff; }
  .legend .m::before { background: var(--yellow); box-shadow: none; } .legend .l::before { background: var(--leaf); box-shadow: none; }
  @media (max-width: 820px) { .builder { grid-template-columns: 1fr; } }

  /* ── bento (contenedores con container queries) ── */
  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .tile { container-type: inline-size; position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 2.6vw, 1.9rem); display: grid; align-content: start; gap: .8rem; box-shadow: var(--pencil); border: 2px solid transparent; overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s; --mx: 50%; --my: 0%; }
  .tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my), rgb(255 201 60 / .22), transparent 70%); opacity: 0; transition: opacity .3s; }
  .tile:hover { transform: translateY(-4px); border-color: var(--navy); } .tile:hover::after { opacity: 1; }
  .tile .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; background: var(--c, var(--yellow-soft)); color: var(--navy); transition: rotate .4s var(--elastic); }
  .tile:hover .ico { rotate: -10deg; scale: 1.06; }
  .tile h3 { font-size: clamp(1.15rem, 5.4cqi, 1.6rem); } .tile p { color: var(--muted); font-size: clamp(.95rem, 3.6cqi, 1.05rem); line-height: 1.5; }
  .tile.span-3 { grid-column: span 3; } .tile.span-2 { grid-column: span 2; } .tile.span-4 { grid-column: span 4; }
  .tile.dark { background: var(--navy); color: var(--cream); } .tile.dark p { color: #c9caf0; } .tile.dark .ico { background: var(--yellow); }
  .tile.teal { background: var(--teal-soft); } .tile.pink { background: var(--pink-soft); } .tile.blue { background: var(--blue-soft); } .tile.leaf { background: var(--leaf-soft); }
  /* si el contenedor es ancho, el icono pasa al lado del texto */
  @container (min-width: 480px) { .tile.wide-row { grid-template-columns: auto 1fr; column-gap: 1.4rem; align-items: center; } .tile.wide-row .ico { grid-row: span 2; width: 72px; height: 72px; font-size: 2rem; } }
  .tile ul.ticks { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .45rem; font-weight: 700; } .tile ul.ticks li { display: flex; gap: .6rem; align-items: baseline; } .tile ul.ticks i { color: var(--teal-ink); }
  .tile.dark ul.ticks i { color: var(--yellow); }
  @media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile.span-3, .tile.span-2, .tile.span-4 { grid-column: span 2; } .tile.half { grid-column: span 1; } }
  @media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile.span-3, .tile.span-2, .tile.span-4, .tile.half { grid-column: auto; } }

  /* ── familias: pestañas ── */
  /* Personajes: un nivel por fila (icono, texto y personajes); las deidades cierran la pirámide */
  #personajes .section-head { justify-items: center; }
  .levels { container-type: inline-size; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
  .level { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; align-items: center; background: var(--lv-soft); border: 2px solid var(--lv); border-radius: var(--radius); padding: clamp(1rem, 2.4vw, 1.5rem); }
  .level-ico { width: 76px; height: 76px; }
  .level-head { display: grid; gap: .15rem; min-width: 0; }
  .level-n { font: 800 .8rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .75; }
  .level h3 { color: var(--lv); font-size: clamp(1.3rem, 3vw, 1.7rem); }
  .level p { color: var(--ink); opacity: .8; }
  .level .chars { grid-column: 1 / -1; list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
  .level .chars li { display: grid; justify-items: center; gap: .2rem; font: 600 1rem var(--font-display); }
  .level .chars img { width: 104px; height: 104px; transition: scale .35s var(--elastic); }
  .level .chars li:hover img { scale: 1.08; }
  @container (min-width: 760px) { .level { grid-template-columns: auto minmax(0, 1fr) auto; } .level .chars { grid-column: auto; margin: 0; flex-wrap: nowrap; } }
  .level.gods { --lv: var(--navy); --lv-soft: #e8e3ff; background: linear-gradient(135deg, #fdf3d0, #e3f0ff 55%, #ece4ff); }
  .level.gods .chars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: .6rem; margin-top: .6rem; }
  .level.gods .chars img { width: 100%; max-width: 84px; height: auto; aspect-ratio: 1; }
  .level.gods .chars li { font-size: .9rem; text-align: center; }
  #stageSeg { max-width: 100%; }
  @media (max-width: 520px) { #stageSeg button { padding: 0 .75rem; gap: .4rem; font-size: 1rem; } }
  @media (max-width: 520px) { .level .chars img { width: 88px; height: 88px; } .level .chars { gap: .4rem .8rem; } }
  .seg { display: inline-flex; background: #f3e6d3; border-radius: 999px; padding: 5px; gap: 4px; }
  .seg button { border: 0; background: transparent; min-height: 50px; padding: 0 1.5rem; border-radius: 999px; font: 600 1.1rem var(--font-display); cursor: pointer; display: inline-flex; gap: .6rem; align-items: center; transition: background .25s, box-shadow .25s; }
  .seg button[aria-selected="true"] { background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .12); }
  .audience { margin-top: 2rem; }
  .audience [role="tabpanel"] { display: none; } .audience [role="tabpanel"].is-active { display: block; animation: paneIn .5s var(--ease-out); }

  /* ── seguridad ── */
  .safety { background: var(--navy); color: var(--cream); border-radius: clamp(28px, 5vw, 56px); padding: clamp(2rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
  .safety h2 { color: #fff; } .safety .section-head p { color: #c9caf0; }
  .safety .eyebrow { background: var(--yellow); }
  .safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
  .safe { background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); border-radius: 22px; padding: 1.4rem; display: grid; gap: .6rem; transition: background .3s, transform .3s var(--ease-out); }
  .safe:hover { background: rgb(255 255 255 / .14); transform: translateY(-3px); }
  .safe i { font-size: 1.6rem; color: var(--yellow); } .safe h3 { font-size: 1.15rem; } .safe p { color: #c9caf0; font-size: .98rem; line-height: 1.5; }
  .safety .btns { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

  /* ── planes ── */
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
  .plan { background: var(--paper); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1.2rem; align-content: start; box-shadow: var(--pencil); border: 3px solid transparent; position: relative; transition: transform .3s var(--ease-out); }
  .plan:hover { transform: translateY(-6px) rotate(-.4deg); }
  .plan.featured { border-color: var(--navy); background: #fffdf8; }
  .plan .badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; background: var(--navy); color: var(--cream); padding: .3rem 1rem; border-radius: 999px; font: 800 .78rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .plan h3 { font-size: 1.7rem; display: flex; gap: .6rem; align-items: center; } .plan h3 i { --fa-display: grid; flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; background: var(--c); }
  .plan .for { color: var(--muted); }
  .plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
  .plan li { display: flex; gap: .7rem; align-items: baseline; font-weight: 600; } .plan li i { color: var(--teal-ink); font-size: .9rem; } .plan li i.no { color: #b9a994; }
  .plan li.dim { color: #8b8478; }
  .price-note { margin-top: 1.5rem; display: flex; gap: .8rem; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 700; }
  .plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 54rem; margin-inline: auto; }
  .plan .price { font: 600 1rem var(--font-body); color: var(--muted); margin: 0; }
  .plan .price strong { font: 700 1.9rem var(--font-display, inherit); color: var(--ink, inherit); margin-right: .25rem; }
  .plan .price span { display: block; font-size: .85rem; }
  @media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

  /* ── FAQ ── */
  .faq { display: grid; gap: .8rem; max-width: 52rem; margin-inline: auto; }
  .faq details { background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--pencil); border: 2px solid transparent; transition: border-color .2s; }
  .faq details[open] { border-color: var(--navy); }
  .faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font: 600 1.18rem var(--font-display); display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 64px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary i { transition: rotate .35s var(--elastic); color: var(--orange); } .faq details[open] summary i { rotate: 45deg; }
  .faq .ans { padding: 0 1.4rem 1.3rem; color: var(--muted); } .faq .ans a { color: var(--blue); font-weight: 700; }
  @supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease-out), content-visibility .35s allow-discrete; } .faq details[open]::details-content { height: auto; } }

  /* ── CTA final ── */
  .cta-final { background: var(--yellow); border-radius: clamp(28px, 5vw, 56px); padding: clamp(2.2rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; box-shadow: 0 8px 0 #d9a60a; }
  .cta-final p { font-size: 1.2rem; margin: 1rem 0 1.6rem; max-width: 30rem; } .cta-final .stores { display: flex; flex-wrap: wrap; gap: .9rem; }
  .cta-final img { width: min(230px, 60%); margin-inline: auto; animation: float 5s ease-in-out infinite; }
  @media (max-width: 760px) { .cta-final { grid-template-columns: 1fr; text-align: center; } .cta-final p { margin-inline: auto; } .cta-final .stores { justify-content: center; } .cta-final img { order: -1; width: 120px; } }
}

/* ───────────────────────── Legal ───────────────────────── */
@layer legal {
  .legal-top { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2rem; }
  .legal-hero { background: var(--paper); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--pencil); display: grid; gap: .9rem; }
  .legal-hero .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-weight: 700; } .legal-hero .meta i { color: var(--orange); margin-right: .4rem; }
  .legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 5rem; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--paper); border-radius: var(--radius-sm); padding: 1.2rem; box-shadow: var(--pencil); max-height: calc(100dvh - var(--header-h) - 2rem); overflow: auto; }
  .toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
  .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; counter-reset: t; }
  .toc a { display: flex; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .95rem; counter-increment: t; line-height: 1.3; }
  .toc a::before { content: counter(t) "."; color: var(--orange); min-width: 1.5em; } .toc a:hover { background: var(--cream-2); } .toc a[aria-current="true"] { background: var(--navy); color: var(--cream); } .toc a[aria-current="true"]::before { color: var(--yellow); }
  .doc { background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 3rem); box-shadow: var(--pencil); counter-reset: s; }
  .doc section { padding: 0; margin-bottom: 2.4rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
  .doc h2 { font-size: 1.65rem; margin-bottom: 1rem; counter-increment: s; display: flex; gap: .7rem; align-items: baseline; }
  .doc h2::before { content: counter(s) "."; color: var(--orange); }
  .doc h3 { font-size: 1.15rem; margin: 1.3rem 0 .5rem; }
  .doc p, .doc li { color: #2e3150; } .doc p + p { margin-top: .9rem; }
  .doc ul, .doc ol { padding-left: 1.4rem; display: grid; gap: .45rem; margin: .8rem 0; }
  .doc a { color: var(--blue); font-weight: 700; }
  .doc .table-wrap { overflow-x: auto; margin: 1rem 0; border: 2px solid var(--line); border-radius: 16px; }
  .doc table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .96rem; }
  .doc th, .doc td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; } .doc th { background: var(--cream-2); font-family: var(--font-display); font-weight: 600; } .doc tr:last-child td { border-bottom: 0; }
  .callout { display: flex; gap: 1rem; background: var(--teal-soft); border-radius: 18px; padding: 1.1rem 1.3rem; margin: 1.2rem 0; color: var(--teal-ink); font-weight: 600; } .callout i { margin-top: .25rem; font-size: 1.2rem; }
  .callout.warn { background: #fff0d6; color: #7a4300; }
  .ph { background: var(--yellow-soft); border-radius: 6px; padding: 0 .35em; font-weight: 800; box-decoration-break: clone; }
  @media (max-width: 920px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }
  @media print { .site-header, .site-footer, .toc, .intro { display: none !important; } body { background: #fff; } .doc, .legal-hero { box-shadow: none; } }
}

@layer utils {
  .stack { display: grid; gap: 1rem; }
  .mt-4 { margin-top: 3rem; }
  .text-center { text-align: center; }
}

/* ───────────────────────── Libro de Reclamaciones ───────────────────────── */
@layer legal {
  .lr-title { display: flex; gap: 1.2rem; align-items: center; }
  .lr-book { width: 72px; height: 72px; border-radius: 22px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-size: 2rem; flex: none; box-shadow: 0 5px 0 #14153f; }
  .lr-provider { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-top: .6rem; }
  .lr-provider div { background: var(--cream); border-radius: 14px; padding: .7rem .9rem; } .lr-provider small { display: block; color: var(--muted); font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; } .lr-provider strong { font-family: var(--font-display); font-weight: 600; } .lr-provider a { color: var(--blue); }
  .lr-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 5rem; align-items: start; }
  .lr-aside { display: grid; gap: .9rem; position: sticky; top: calc(var(--header-h) + 1rem); }
  .lr-card { background: var(--paper); border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: var(--pencil); display: grid; gap: .3rem; }
  .lr-card i { font-size: 1.3rem; color: var(--orange); } .lr-card h2 { font-size: 1.1rem; } .lr-card p { color: var(--muted); font-size: .95rem; line-height: 1.45; }
  .lr-form fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
  .lr-form legend { font: 600 1.35rem var(--font-display); display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; padding: 0; }
  .lr-form legend span { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-size: 1.05rem; }
  .lr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .lr-grid .full { grid-column: 1 / -1; }
  .lr-form label { display: grid; gap: .4rem; font-weight: 800; font-size: .95rem; position: relative; }
  .lr-form input:not([type="checkbox"]):not([type="radio"]), .lr-form select, .lr-form textarea { font: 400 1rem var(--font-body); min-height: 50px; border: 2px solid var(--line); border-radius: 14px; padding: .7rem 1rem; background: #fff; width: 100%; color: var(--ink); }
  .lr-form textarea { resize: vertical; line-height: 1.5; }
  .lr-form input:focus, .lr-form select:focus, .lr-form textarea:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 4px rgb(31 181 168 / .25); }
  .lr-form input:user-invalid, .lr-form textarea:user-invalid { border-color: #d92d20; }
  .lr-form .check { display: flex; gap: .6rem; align-items: center; font-weight: 700; } .lr-form .check input { width: 22px; height: 22px; accent-color: var(--orange); flex: none; }
  .lr-form .consent { align-items: flex-start; margin-bottom: 1rem; } .lr-form .consent input { margin-top: 2px; } .lr-form .consent a { color: var(--blue); }
  .lr-guardian { background: var(--cream); border-radius: 16px; padding: 1rem; display: grid; gap: .8rem; }
  .seg-radio { display: flex; flex-wrap: wrap; gap: .6rem; }
  .seg-radio label { display: inline-flex; flex-direction: row; gap: .55rem; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem; cursor: pointer; min-height: 48px; transition: border-color .2s, background .2s; }
  .seg-radio label:has(input:checked) { border-color: var(--navy); background: var(--yellow-soft); }
  .seg-radio input { accent-color: var(--navy); width: 18px; height: 18px; }
  .count { justify-self: end; font-weight: 700; font-size: .8rem; color: var(--muted); }
  .lr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .lr-form .msg { padding: .9rem 1.1rem; border-radius: 14px; font-weight: 700; margin-bottom: 1rem; } .lr-form .msg.err { background: #fee4e2; color: #b42318; }
  .lr-done { text-align: center; display: grid; gap: 1rem; justify-items: center; }
  .lr-done:focus { outline: none; }
  .lr-done h2::before { content: none; }
  .lr-ok { font-size: 4rem; color: var(--leaf); animation: pop .6s var(--elastic) both; }
  .lr-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
  .lr-copy { text-align: left; width: 100%; white-space: pre-wrap; background: var(--cream); border-radius: 16px; padding: 1.1rem; font: 600 .92rem/1.55 var(--font-body); margin: 0; }
  @media (max-width: 920px) { .lr-layout { grid-template-columns: 1fr; } .lr-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
  @media (max-width: 560px) { .lr-grid { grid-template-columns: 1fr; } .lr-title { flex-direction: column; align-items: flex-start; } }
  @media print { .lr-actions, .lr-aside { display: none !important; } }
}

/* ── Páginas de cuenta (verificar correo, contraseña nueva, invitación) ── */
@layer utils {
  .acc-card { max-width: 34rem; margin: 2rem auto 3rem; background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 2.6rem); box-shadow: var(--pencil); text-align: center; }
  .acc-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: .8rem 0 .6rem; }
  .acc-card p { color: #2e3150; }
  .acc-card .btn { margin-top: 1.4rem; }
  .acc-icon { width: 72px; height: 72px; border-radius: 22px; display: inline-grid; place-items: center; font-size: 2rem; background: var(--yellow); color: var(--ink); }
  .acc-icon.ok { background: var(--leaf-soft, #dff3d4); color: #2f7a2b; }
  .acc-icon.bad { background: #fde3dc; color: #b42318; }
  .acc-form { text-align: left; display: grid; gap: 1rem; margin-top: 1.4rem; }
  .acc-form .btn { width: 100%; margin-top: .4rem; }
  .acc-form .acc-show { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
  .acc-form .acc-show input { width: 20px; height: 20px; margin: 0; }
  .acc-error { color: #b42318; font-weight: 800; margin: 0; }
  .acc-steps { text-align: left; display: grid; gap: .7rem; padding-left: 1.4rem; margin: 1.2rem 0; }
  .acc-note { font-size: .95rem; color: var(--muted) !important; margin-top: 1rem; }
}
