/* Tu Carta Mágica · the real order form (hub + Papá Noel + Reyes), 2026-11-20.
   Spec: design/canvas/ (NoelDatos…NoelPreparando, Datos…Preparando, Hub) + escritorio.css + carta.css + the
   2026-11-20 decisions in CLAUDE.md (selection language, letter card, logo rule, AI line, no gift question). */

/* ---------- fonts (self-hosted, subset to Latin + Spanish) ---------- */
@font-face{font-family:Cinzel;src:url(/fonts/cinzel-700.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Figtree;src:url(/fonts/figtree-vf.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Gentium Book Plus";src:url(/fonts/gentium-regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Alex Brush";src:url(/fonts/alexbrush.woff2) format("woff2");font-display:swap}

/* ---------- characters ---------- */
:root{--txt:#f2ecdd;--gold:#d9b45a;--gold-t:#f0cf7a;--sel-bg:#3a3016}
body.noel{--bg:#0d2318;--card:#163a2a;--line:#2e5a45;--bord:#6f8f7f;--soft:#d5e4da;--act:#c8352e;--act-t:#fff;--prog:#c8352e;--dot:#21493a;--sheet:#10281d}
body.reyes{--bg:#0d1430;--card:#18214a;--line:#3a4580;--bord:#6b79b8;--soft:#c9cfe8;--act:#d9b45a;--act-t:#14100a;--prog:#d9b45a;--dot:#2a3570;--sheet:#121a3d}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.tcm-app{margin:0;min-height:100vh;background:var(--bg);color:var(--txt);font-family:Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:clip}
.tcm-app a{color:var(--gold)}
.tcm-app a:hover{color:var(--gold-t)}
.tcm-app button{font:inherit}
.tcm-app a:focus-visible,.tcm-app button:focus-visible,.tcm-app input:focus-visible,.tcm-app summary:focus-visible{outline:3px solid #fff;outline-offset:3px}
.tcm-app input[type=text]:focus-visible,.tcm-app input[type=email]:focus-visible{outline-offset:1px;border-color:var(--gold)!important}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- backgrounds: snow (Papá Noel) / night sky (Reyes), filled by app.js ---------- */
.fondo{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1;opacity:0;transition:opacity 1.6s ease}.fondo.vivo{opacity:1}
.noel .fondo i{position:absolute;top:-20px;border-radius:50%;animation:nv-fall linear infinite;will-change:transform}
.noel .fondo i u{position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.95) 0,rgba(255,255,255,.75) 35%,rgba(255,255,255,0) 70%);
  animation:nv-sway ease-in-out infinite alternate}
.fondo.pausa *{animation-play-state:paused!important}
@keyframes nv-fall{from{transform:translate3d(0,0,0)}to{transform:translate3d(var(--dx),calc(100vh + 40px),0)}}
@keyframes nv-sway{from{transform:translateX(calc(var(--sw) * -1))}to{transform:translateX(var(--sw))}}
.reyes .fondo i{position:absolute;border-radius:50%;background:#fff;animation:st-tw ease-in-out infinite alternate}
.reyes .fondo i.w{background:#fff1cf;box-shadow:0 0 4px 1px rgba(255,236,190,.55)}
@keyframes st-tw{from{opacity:var(--lo)}to{opacity:var(--hi)}}
.reyes .fondo b{position:absolute;width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);animation:st-gl ease-in-out infinite}
.reyes .fondo b::before,.reyes .fondo b::after{content:"";position:absolute;left:50%;top:0;width:1.5px;height:100%;margin-left:-.75px;
  background:linear-gradient(transparent,#fff6dc 45%,#fff 50%,#fff6dc 55%,transparent);border-radius:1px}
.reyes .fondo b::after{transform:rotate(90deg)}
@keyframes st-gl{0%,100%{transform:scale(.35) rotate(0deg);opacity:.25}50%{transform:scale(1) rotate(8deg);opacity:.95}}
/* shooting star (2026-11-20, user: "¿funciona en el sitio más apropiado?"): the bright head leads (it travels down to
   the left); phones: a short streak in the empty top-right corner, beside the seal, never across the title; computers:
   in the right margin, outside the content column. Fixed place (the JS --x/--y are not used any more). */
.reyes .fondo s{position:absolute;top:1.5%;left:calc(100% - 92px);width:70px;height:1.5px;border-radius:1px;opacity:0;
  --tx:-62px;--ty:28px;
  background:linear-gradient(90deg,rgba(255,248,226,.95),rgba(255,244,214,.35) 35%,rgba(255,244,214,0));transform:rotate(-24deg);
  animation:st-sh var(--d) linear infinite;animation-delay:var(--dl)}
@media (min-width:1024px){.reyes .fondo s{top:4%;left:calc(100% - 170px);width:110px;--tx:-120px;--ty:53px}}
@media (min-width:1600px){.reyes .fondo s{top:8%;left:calc(100% - 260px);width:120px;--tx:-200px;--ty:89px}}
@keyframes st-sh{0%,92%{opacity:0;translate:0 0}93%{opacity:1}100%{opacity:0;translate:var(--tx) var(--ty)}}

/* ---------- page frame ---------- */
.app{position:relative;z-index:0;max-width:560px;margin:0 auto;padding:20px 22px 0;display:flex;flex-direction:column;gap:20px;min-height:100vh}
.app h1{margin:0;font:700 26px/1.2 Cinzel,Georgia,serif}
.app h1:focus{outline:none}
.sub{margin:-12px 0 0;font-size:15px;line-height:1.45;color:var(--soft)}
.paso{display:flex;flex-direction:column;gap:20px}
.campo{display:flex;flex-direction:column;gap:8px}
.etq{font-size:14px;font-weight:600}
.etq small{font-weight:400;color:var(--soft);font-size:14px}
.nota{font-size:15px;line-height:1.45;color:var(--soft);margin:0}
.ok-t{font-size:15px;line-height:1.45;color:#9fd8a8}
.aviso{font-size:15px;line-height:1.45;color:var(--gold-t)}
input.txt{font:inherit;font-size:17px;color:var(--txt);background:var(--card);border:1px solid var(--line);border-radius:12px;padding:13px 14px;width:100%}
input.txt::placeholder{color:#a8b6ae}
.reyes input.txt::placeholder{color:#a3aacb}

/* ---------- header: back · progress path · small decorative seal (logo rule 2026-11-20) ---------- */
.cab{display:flex;align-items:center;gap:12px}
.atras{width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--card);border:0;cursor:pointer;color:var(--txt);text-decoration:none}
.prog{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.prog-l{position:relative;display:grid;align-items:center;height:22px}
.prog-l .pl-base,.prog-l .pl-done{position:absolute;top:10px;height:2px}
.prog-l .pl-base{background:var(--dot)}
.prog-l .pl-done{background:var(--prog)}
.prog-l>span.p{display:flex;justify-content:center;position:relative}
.prog-l .d{width:12px;height:12px;border-radius:6px;background:var(--bg);border:2px solid var(--dot)}
.prog-l .d.ok{background:var(--prog);border-color:var(--prog)}
.prog-n{display:grid;font-size:13px;line-height:1.2;color:var(--soft)}
.prog-n span{text-align:center}
.prog-n .on{color:var(--txt);font-weight:700}
.twinkle{animation:tw 2.4s ease-in-out infinite;transform-origin:center;transform-box:fill-box}
@keyframes tw{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
.marca-form{display:flex;align-items:center;gap:10px;flex:none;color:var(--txt)}
.marca-form img{width:42px;height:42px;display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))}
.marca-form b{display:none;font:700 13px/1 Cinzel,Georgia,serif;letter-spacing:.14em;text-transform:uppercase}
.cab h1{font-size:22px;flex:1}

/* ---------- options: one selection language (gold) for both characters, a tick, never colour alone ---------- */
.ops{display:flex;flex-wrap:wrap;gap:8px}
.op{font:inherit;font-size:15px;font-weight:600;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:0 14px;border-radius:22px;cursor:pointer;background:var(--card);color:var(--txt);border:1px solid var(--bord);text-align:left}
.op.ico{padding-left:11px}
.op svg{flex:none}
.op[aria-pressed="true"]{background:var(--sel-bg);color:var(--gold-t);border:2px solid var(--gold);padding:0 13px}
.op.ico[aria-pressed="true"]{padding-left:10px}
.op[aria-pressed="true"]::after{content:"";flex:none;width:15px;height:15px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.6l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.6l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
@media (hover:hover){.op[aria-pressed="false"]:hover{border-color:rgba(242,236,221,.75);background-image:linear-gradient(rgba(255,255,255,.08),rgba(255,255,255,.08))}}
.edades{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.op.edad{position:relative;height:50px;padding:0;border-radius:12px;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.op.edad[aria-pressed="true"]{padding:0}
.op.edad[aria-pressed="true"]::after{position:absolute;top:2px;right:2px;width:11px;height:11px}
.mas{font:inherit;font-size:15px;font-weight:600;align-self:flex-start;min-height:44px;padding:0 16px;border-radius:22px;background:none;border:1.5px solid var(--gold);color:var(--gold-t);cursor:pointer;margin-top:-6px}
@media (hover:hover){.mas:hover{background:rgba(217,180,90,.12)}}
.campo.consejo{border-top:1px solid var(--line);padding-top:22px;margin-top:4px;gap:10px}
.campo.consejo .mas{margin-top:-2px}
.cuenta{font-size:14px;font-weight:700;color:var(--gold)}
.sug{display:flex;flex-wrap:wrap;gap:8px}
.enlace{align-self:flex-start;font:inherit;font-size:14.5px;font-weight:600;min-height:44px;padding:0 2px;background:none;border:0;color:var(--gold-t);text-decoration:underline;cursor:pointer}
.pide{display:flex;flex-direction:column;gap:10px;background:color-mix(in srgb,var(--card) 70%,#000);border:1px solid var(--gold);border-radius:14px;padding:16px}
.pide b{font:700 20px/1.25 Cinzel,Georgia,serif}
.pide span{font-size:15px;line-height:1.5;color:#e4dfd0}
.pedido{display:flex;flex-direction:column;gap:6px;background:color-mix(in srgb,var(--card) 70%,#000);border:1px solid #9fd8a8;border-radius:14px;padding:14px 16px}
.pedido b{font-size:15px;line-height:1.4;color:#9fd8a8}
.pedido span{font-size:15px;line-height:1.5;color:#e4dfd0}

/* ---------- cover step (before the name) ---------- */
.portada{align-items:center;text-align:center;gap:16px;padding-top:6px}
.portada h1{font-size:25px}
.p-sello{width:88px;height:88px;display:block;filter:drop-shadow(0 3px 5px rgba(0,0,0,.4))}
.p-lead{margin:-4px 0 0;font-size:16px;line-height:1.45;color:var(--soft);max-width:34ch}
.p-video{margin:0;width:100%;display:flex;flex-direction:column;gap:8px;align-items:center}
.p-img{position:relative;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--card);box-shadow:0 10px 26px rgba(0,0,0,.4)}
.p-img img{display:block;width:100%;height:100%;object-fit:cover}
.etq-img{position:absolute;top:10px;left:12px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#fff;background:rgba(0,0,0,.5);padding:3px 8px;border-radius:6px}
.p-gratis{max-width:36ch}
.portada .cta{width:100%;box-shadow:none}

/* ---------- main button: sticky on phones; the label says what's missing ---------- */
.cta{position:sticky;bottom:max(12px,env(safe-area-inset-bottom));z-index:5;display:flex;flex-direction:column;gap:10px;margin-top:auto;
  box-shadow:0 -16px 22px 10px var(--bg);background:var(--bg);border-radius:14px}
.btn-p{display:block;width:100%;font:inherit;text-align:center;font-weight:700;font-size:16px;padding:15px 18px;border-radius:14px;border:0;cursor:pointer;background:var(--act);color:var(--act-t);text-decoration:none}
/* not ready yet (2026-11-20, user: the dashed outline "doesn't show the King's colour" and looked broken): a solid,
   softened version of the same colour (Papá Noel's red / the chosen King's accent), light label that says what's missing */
.btn-p:disabled{cursor:not-allowed;background:color-mix(in srgb,var(--act) 24%,var(--card));color:#f2ecdd;
  border:1.5px solid color-mix(in srgb,var(--act) 60%,transparent);padding:13.5px 16.5px;font-weight:600}
/* .con-rey stripe removed 2026-11-20: the whole button now carries the King's colour */
.cta .error{margin:0;color:#ffb4ac;font-size:15px;text-align:center}
.cta small{text-align:center;font-size:15px;color:var(--soft)}

/* ---------- King cards: neutral until chosen; the face ring carries his colour ---------- */
.reyes-l{display:flex;flex-direction:column;gap:12px}
.rey{--acc:#d9b45a;display:flex;align-items:center;gap:14px;padding:16px;border-radius:16px;cursor:pointer;min-height:104px;
  background:var(--card);border:1px solid var(--bord);color:var(--txt);text-align:left;width:100%}
.rey img{width:80px;height:105px;flex:none;margin-top:-22px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.45))}
.rey .t{display:flex;flex-direction:column;gap:3px;flex:1}
.rey .n{font:700 19px/1.2 Cinzel,Georgia,serif}
.rey .l{font-size:14px;color:var(--soft)}
.rey .tick{flex:none;width:24px;height:24px;border-radius:12px;background:var(--acc);display:none;align-items:center;justify-content:center}
.rey[aria-pressed="true"]{background:#1f2550;border:2px solid var(--acc);padding:15px}
.rey[aria-pressed="true"] .tick{display:flex}
.rey[disabled]{cursor:default;opacity:.55}
.rey .pronto{flex:none;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--soft);border:1px solid var(--line);border-radius:999px;padding:4px 10px}
@media (hover:hover){.rey:not([disabled])[aria-pressed="false"]{transition:border-color .2s,background .2s}.rey:not([disabled])[aria-pressed="false"]:hover{border-color:var(--acc);background:#1c2652}}

/* ---------- summary, switches, consent ---------- */
.resumen{background:var(--card);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:6px}
.resumen .q{font-size:15px;color:var(--soft)}
.resumen .k{font-size:20px;font-weight:700}
.resumen dl{display:grid;grid-template-columns:82px 1fr;gap:6px 10px;font-size:14px;color:#d3e2d8;margin:0}
.reyes .resumen dl{color:#d6dbf0}
.resumen dt{color:var(--soft)}.resumen dd{margin:0}
.resumen button{align-self:flex-start;font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:0 8px;background:none;border:0;color:var(--gold);cursor:pointer;margin-left:-8px}
.interr{display:flex;gap:12px;align-items:center;background:transparent;border:1px dashed color-mix(in srgb,var(--line) 85%,transparent);border-radius:14px;padding:11px 14px;cursor:pointer}
.interr .t{flex:1;display:flex;flex-direction:column;gap:2px}
.interr b{font-size:15px;font-weight:600}
.interr .d{font-size:14.5px;line-height:1.4;color:var(--soft);margin-top:2px}
.opc{font-size:13px;font-weight:400;color:var(--soft);opacity:.85}
.sw{appearance:none;-webkit-appearance:none;width:46px;height:28px;border-radius:14px;background:rgba(255,255,255,.30);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55);
  position:relative;flex:none;margin:0;cursor:pointer;transition:background .2s}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#f2ecdd;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .2s}
.sw:checked{background:var(--gold)}
.sw:checked::after{transform:translateX(18px)}
.casillas{display:flex;flex-direction:column;gap:12px;font-size:15px;line-height:1.4;color:#d3e2d8;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:8px 14px}
.casillas a{display:inline-block;padding:11px 3px;margin:-11px -3px}
.casillas label{display:flex;gap:12px;align-items:center;min-height:44px;cursor:pointer}
.casillas input{width:24px;height:24px;margin:0;flex:none;accent-color:var(--gold)}
.trampa{position:absolute;left:-9999px;width:1px;height:1px}
.ts{min-height:0}
.ia-nota{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.45;color:#a9bdb0;margin:0}
.reyes .ia-nota{color:#a9b0cf}
.ia-nota svg{flex:none}
.ia-nota a{color:inherit!important;text-decoration:underline;text-underline-offset:2px;white-space:nowrap;display:inline-block;padding:13px 6px;margin:-13px -6px}
.ia-nota{align-items:center}.ia-nota svg{margin-top:0}

/* ---------- "Revisa tu correo" ---------- */
.hecho{align-items:center;text-align:center;padding-top:44px}
.hecho h1{font-size:24px;line-height:1.3}
.sobre-foto{width:200px;height:auto;filter:drop-shadow(0 12px 18px rgba(0,0,0,.45));transform:rotate(-4deg);animation:llega .8s cubic-bezier(.2,.9,.3,1.2) both}
@keyframes llega{from{opacity:0;transform:translateY(-28px) rotate(-12deg)}to{opacity:1;transform:rotate(-4deg)}}
.pasos3{width:100%;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;text-align:left;font-size:15px;line-height:1.45}
.pasos3>span{display:flex;gap:10px}.pasos3>span>strong{color:var(--gold-t);flex:none}
.btn-s{display:block;width:100%;text-align:center;text-decoration:none;background:var(--card);color:var(--txt);border:1px solid var(--line);font:inherit;font-weight:600;font-size:15px;padding:14px 18px;border-radius:14px;cursor:pointer}

/* ---------- "La carta se va escribiendo" (carta.css, paths for the live site) ---------- */
.carta{--acc:#764e16;--ink:#321c0e;--ih:44px;--seal:50px;position:relative;color:var(--ink);font-family:"Gentium Book Plus",Georgia,serif;
  background:#ecdcba url(/carta_papel.webp) center/cover;border-radius:3px;padding:14px 18px;display:block;
  box-shadow:inset 0 0 26px 3px rgba(150,104,48,.40),inset 0 0 2px 1px rgba(120,80,30,.35),0 10px 26px rgba(0,0,0,.42)}
.carta.c-noel{--acc:#80241c}
.c-head{display:flex;align-items:flex-end;gap:12px}
.c-ico{height:var(--ih);width:auto;flex:none;display:block}
.c-cap{display:block;font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--acc);padding-bottom:4px}
.c-rule{display:block;margin-top:8px;height:6px;opacity:.9;background:linear-gradient(var(--acc),var(--acc)) 0 0/100% 1px no-repeat,linear-gradient(var(--acc),var(--acc)) 0 100%/100% 2px no-repeat}
.c-mast{flex:1;min-width:0}
.c-date{display:none;text-align:right;font-style:italic;font-size:12.5px;margin-top:12px}
.c-hola{display:block;margin-top:12px;font-size:16px;line-height:1.2}
.c-nombre{font-family:"Alex Brush",cursive;font-size:34px;line-height:1;color:var(--acc);padding:0 2px 0 3px;position:relative;top:3px}
.c-body{margin-top:8px}
.c-p{margin:0 0 5px;font-size:14px;line-height:1.38}
.c-p.viejo,.c-open,.c-lin{display:none}
.c-lin{height:9px;margin:0 0 4px;background:linear-gradient(var(--ink),var(--ink)) 0 55%/100% 1px no-repeat;opacity:.14;border-radius:1px}
.c-lin:nth-of-type(odd){width:82%}
.c-sign{display:flex;align-items:center;gap:8px;margin-top:10px}
.c-seal{width:var(--seal);height:var(--seal);flex:none;transform:rotate(9deg);filter:drop-shadow(0 2px 2px rgba(60,10,10,.35))}
.c-sig{flex:1;min-width:0}
.c-con{display:block;font-style:italic;font-size:12px}
.c-firma{display:block;min-height:34px;font-family:"Alex Brush",cursive;font-size:32px;line-height:1.05;color:var(--ink);border-bottom:1px solid var(--ink);padding:0 2px 2px;white-space:nowrap}
.c-tit{display:block;font-style:italic;font-size:11.5px;margin:3px 0 0 14px}
@media (max-width:600px){
  .carta{--ih:34px;padding:10px 16px 12px}
  .c-cap{font-size:10.5px;padding-bottom:2px}.c-rule{margin-top:5px}
  .c-hola{margin-top:6px;font-size:15px}.c-nombre{font-size:28px;top:2px}
  .c-body{margin-top:2px}.c-p{margin:0;font-size:14px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .c-lin,.c-sign{display:none}
  .c-body:has(.c-p[data-l]) .c-p:not([data-l]){display:none}
}
.ink{animation:ink .7s ease-out}
@keyframes ink{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ---------- bottom sheet "Ver todas…" ---------- */
.velo{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:40}
.hojita{position:fixed;left:0;right:0;bottom:0;margin:0 auto;width:100%;max-width:480px;height:75dvh;z-index:41;background:var(--sheet);
  border-radius:16px 16px 0 0;border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(0,0,0,.45);display:flex;flex-direction:column}
.hojita .grab{flex:none;width:36px;height:4px;border-radius:2px;background:var(--line);margin:8px auto 0}
.hojita .h-cab{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 16px 0 20px;min-height:52px}
.hojita h2{margin:0;font:700 20px/1.2 Cinzel,Georgia,serif}
.hojita .listo{font-size:15px;font-weight:700;min-height:44px;min-width:64px;padding:0 14px;border-radius:12px;background:none;border:0;color:var(--gold);cursor:pointer}
.hojita .h-el{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px 10px;border-bottom:1px solid var(--line);min-height:44px}
.hojita .fichas{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.hojita .vacio{font-size:14px;color:var(--soft)}
.ficha{font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px 0 12px;border-radius:18px;background:var(--sel-bg);color:var(--gold-t);border:1.5px solid var(--gold);cursor:pointer}
.hojita .zona{position:relative;flex:1;min-height:0}
.hojita .scroll{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 20px}
.hojita .h-pie{flex:none;padding:10px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}

/* ---------- picture footer ---------- */
.pie{position:relative;height:300px;margin:28px -22px 0;background:var(--pie) center 70%/cover no-repeat;color:#f2ecdd;display:flex;flex-direction:column;
  justify-content:flex-end;align-items:center;gap:6px;padding:0 22px 14px;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6),0 0 10px rgba(0,0,0,.35)}
.noel .pie{--pie:url(/pie_noel.webp);--pie-w:url(/pie_noel_fundido.webp)}
.reyes .pie{--pie:url(/pie_reyes.webp);--pie-w:url(/pie_reyes_fundido.webp)}
.pie::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(var(--bg) 0%,color-mix(in srgb,var(--bg) 55%,transparent) 26%,transparent 46%,transparent 58%,rgba(4,6,14,.72) 82%,rgba(4,6,14,.9) 100%)}
.pie>*{position:relative}
.pie .marca{display:flex;align-items:center;gap:8px;font:700 14px/1 Cinzel,Georgia,serif;letter-spacing:.06em}
.pie .marca img{width:30px;height:30px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.5))}
.pie nav{display:flex;flex-wrap:wrap;justify-content:center;gap:0 12px;font-size:13px}
.pie nav a{color:#e9e1d0;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
.pie .otro{font-size:14px;color:var(--gold-t);text-decoration:none;font-weight:600;display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
.noel .pie .otro{color:#f0a59f}
.pie small{font-size:12px;color:#b9b2a3}

/* ---------- tablet / desktop ---------- */
@media (min-width:601px){
  .pie{margin:40px calc(50% - 50vw) 0;height:clamp(260px,21vw,380px);background:var(--pie-w) center top/cover no-repeat}
  .pie::before{background:linear-gradient(transparent 0%,transparent 55%,rgba(4,6,14,.72) 82%,rgba(4,6,14,.9) 100%)}
  .pie .marca{font-size:16px}.pie .marca img{width:34px;height:34px}.pie nav{font-size:13.5px;gap:0 18px}
  .hojita{max-width:640px;height:min(78vh,720px);bottom:50%;transform:translateY(50%);border-radius:20px}
}
@media (min-width:1024px){
  .app{max-width:1080px;display:grid;grid-template-columns:minmax(0,540px) minmax(0,440px);column-gap:56px;row-gap:0;justify-content:center;align-content:start;padding:32px 24px 0}
  .app>.cab{grid-column:1/-1;margin-bottom:30px}
  .app>.paso{grid-column:1;grid-row:2}
  .app>.lado{grid-column:2;grid-row:2;position:sticky;top:28px;align-self:start}
  .app>.pie{grid-column:1/-1;grid-row:3}
  .app>.hecho{grid-column:1/-1;max-width:600px;justify-self:center}
  .app h1{font-size:36px}
  .cta{position:static;box-shadow:none;margin-top:12px}
  .marca-form img{width:46px;height:46px}.marca-form b{display:block}
  .carta{--ih:66px;--seal:80px;padding:32px 44px 30px;min-height:420px;box-shadow:inset 0 0 44px 5px rgba(150,104,48,.40),inset 0 0 2px 1px rgba(120,80,30,.35),0 18px 44px rgba(0,0,0,.45)}
  .carta.c-noel{--ih:84px}
  .carta .c-head{flex-direction:column;align-items:center;gap:10px}
  .carta .c-mast{flex:none;width:100%}
  .carta .c-cap{text-align:center;font-size:13px;padding:0}
  .carta .c-rule{margin-top:10px}
  .carta .c-date{display:block}
  .carta .c-hola{font-size:20px;margin-top:22px}
  .carta .c-nombre{font-size:52px;top:5px}
  .carta .c-body{margin-top:16px}
  .carta .c-p{font-size:17.5px;line-height:1.5;margin-bottom:10px}
  .carta .c-p.viejo,.carta .c-open{display:block}
  .carta .c-lin{display:block;height:13px;margin-bottom:6px}
  .carta .c-sign{margin-top:30px;gap:14px}
  .carta .c-con{font-size:14px}
  .carta .c-firma{font-size:44px;min-height:50px}
  .carta .c-tit{font-size:13.5px}
  .resumen{padding:26px 28px;gap:10px}.resumen .k{font-size:26px}.resumen dl{font-size:16px}
  .hecho .sobre-foto{width:260px}.hecho h1{font-size:32px}
}
@media (prefers-reduced-motion:reduce){
  .fondo{display:none}.twinkle,.ink,.sobre-foto{animation:none!important}.sw,.sw::after{transition:none}
}

/* =========================================================================================================
   HUB (index.html): cream + burgundy parent brand, the two worlds as dark cards (design/canvas/Hub.dc.html)
   ========================================================================================================= */
body.hub-b{margin:0;background:#F8EEDC url(/papel.webp) 0 0/768px 768px;color:#3a2326;font-family:Figtree,system-ui,sans-serif;overflow-x:clip}
.hub-b a{color:#730A0E}
.hub-b a:focus-visible,.hub-b summary:focus-visible{outline:3px solid #730A0E;outline-offset:3px}
.hub p{max-width:72ch}
.hub{width:100%;background:transparent;display:flex;flex-direction:column;gap:26px;padding:22px 22px 0;position:relative}
.hub .top{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:4px}
.hub .top img{width:88px;height:88px;filter:drop-shadow(0 3px 4px rgba(115,10,14,.25))}
.hub .top .nom{font:700 20px/1 Cinzel,Georgia,serif;letter-spacing:.08em;color:#730A0E}
.hub h1{margin:0;text-align:center;font:700 25px/1.22 Cinzel,Georgia,serif;color:#4a0a0e}
.hub .lead{margin:10px auto 0;text-align:center;font-size:16px;line-height:1.5;color:#5b3a3d}
.hub .gratis{display:inline-flex;align-self:center;gap:8px;align-items:center;font-size:15px;font-weight:600;color:#730A0E;background:#f3e6d2;border:1px solid #e3cfae;padding:7px 14px;border-radius:999px;margin-top:-8px}
.hub h2{margin:0;font:700 21px/1.2 Cinzel,Georgia,serif;color:#4a0a0e;text-align:center}
.mundos{display:flex;flex-direction:column;gap:18px}
.mundo{display:flex;flex-direction:column;position:relative;border-radius:20px;overflow:hidden;text-decoration:none;color:#f2ecdd!important;box-shadow:0 10px 24px rgba(74,10,14,.28);isolation:isolate}
.mundo .img{aspect-ratio:16/9;background:center/cover no-repeat;position:relative}
.mundo .img::after{content:"";position:absolute;inset:0}
.mundo .cuerpo{padding:14px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.mundo .tit{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:53px}
.hub .mundo h2{margin:0;text-align:left;color:inherit;font:700 23px/1.15 Cinzel,Georgia,serif}
.mundo .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mundo p{margin:0 0 8px;font-size:15px;line-height:1.45}
.mundo .btn{margin-top:auto;display:block;text-align:center;font-weight:700;font-size:16px;padding:14px 16px;border-radius:14px;color:#fff}
.mundo.m-reyes{background:#121a3d}
.mundo.m-reyes .fecha{color:#e9cf8a;font-weight:600}
.mundo.m-reyes p{color:#d5d9ee}
.mundo.m-reyes .btn{background:#d9b45a;color:#0d1430}
.mundo.m-noel{background:#14261f}
.mundo.m-noel .fecha{color:#f0a59f;font-weight:600}
.mundo.m-noel p{color:#d3e2d8}
.mundo.m-noel .btn{background:#c8352e}
.caras{display:flex}
.caras img{width:40px;height:53px;margin-left:-8px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.caras img:first-child{margin-left:0}
.etq-img{position:absolute;top:10px;left:12px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#fff;background:rgba(0,0,0,.45);padding:3px 8px;border-radius:6px;z-index:2}
.pasos-h{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.pasos-h li{display:flex;gap:14px;align-items:flex-start;background:#fff9f0;border:1px solid #ecdcc2;border-radius:14px;padding:12px 14px}
.pasos-h .n{flex:none;width:34px;height:34px;border-radius:50%;background:#730A0E;color:#FBF4EA;font:700 17px/1 Cinzel,Georgia,serif;display:flex;align-items:center;justify-content:center}
.pasos-h b{display:block;font-size:16px;color:#4a0a0e;margin-bottom:2px}
.pasos-h span{font-size:15px;line-height:1.4;color:#5b3a3d}
.pronto-h{display:flex;flex-direction:column;gap:8px}
.pronto-h .t{text-align:center;font-size:15px;font-weight:600;color:#7d5f62;letter-spacing:.06em;text-transform:uppercase}
.pronto-h .fila{display:flex;gap:10px}
.pronto-h .fila div{flex:1;text-align:center;font-size:15px;padding:12px 8px;border-radius:12px;background:rgba(115,10,14,.06);color:#7d5f62;cursor:default;user-select:none}
.conf{display:flex;flex-direction:column;gap:10px;background:#730A0E;color:#FBF4EA;border-radius:16px;padding:16px 18px}
.conf div{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.4}
.conf svg{flex:none;margin-top:1px}
.conf a{color:#e9cf8a;display:inline-block;padding:12px 2px;margin:-12px 0}
.faq{display:flex;flex-direction:column;gap:10px}
.faq details{background:#fff9f0;border:1px solid #ecdcc2;border-radius:14px;padding:0 14px}
.faq summary{cursor:pointer;font-weight:600;font-size:16px;color:#4a0a0e;padding:14px 0;list-style:none;display:flex;justify-content:space-between;gap:10px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;color:#730A0E;flex:none;line-height:1}
.faq details[open] summary::after{content:"\2212"}
.faq details p{margin:0 0 14px;font-size:15px;line-height:1.5;color:#5b3a3d}
/* hub footer (2026-11-20, user: "the footer of the main page doesn't work well"): the two content-aware scenes
   (camels left, Papá Noel right; their skies are transparent, so the page colour shows through), blended into each
   other in the middle, and the text on a solid bar under them, never over the pictures */
.pie-h{--ph:170px;--bar:#2e0a0d;position:relative;margin:6px -22px 0;padding:calc(var(--ph) + 10px) 22px 14px;color:#f2ecdd;
  display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;
  background:linear-gradient(transparent var(--ph),var(--bar) var(--ph))}
.pie-h .m{position:absolute;top:0;height:var(--ph);width:calc(50% + 50px);background-repeat:no-repeat;background-size:auto 100%}
.pie-h.v .m1{background-image:url(/pie_reyes_fundido.webp)}.pie-h.v .m2{background-image:url(/pie_noel_fundido.webp)}
.pie-h .m1{left:0;background-position:78% 100%;
  -webkit-mask-image:linear-gradient(to left,transparent,#000 100px);mask-image:linear-gradient(to left,transparent,#000 100px)}
.pie-h .m2{right:0;background-position:46% 100%;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 100px);mask-image:linear-gradient(to right,transparent,#000 100px)}
.pie-h::before{content:"";position:absolute;left:0;right:0;top:calc(var(--ph) - 46px);height:47px;z-index:1;pointer-events:none;
  background:linear-gradient(rgba(46,10,13,0),var(--bar))}
.pie-h>*:not(.m){position:relative;z-index:2}
/* phones (2026-11-20, design review: two squeezed half-scenes looked cropped by accident): one whole scene, the
   season's character (hub.js adds .reyes-t from 25 Dec to 6 Jan); the other image is never requested */
@media (max-width:600px){
  .pie-h .m2{display:none}.pie-h.v .m2{background-image:none}
  .pie-h .m1{width:100%;-webkit-mask-image:none;mask-image:none;background-size:cover}
  .pie-h.v .m1{background-image:url(/pie_noel_fundido.webp);background-position:44% 100%}
  .pie-h.v.reyes-t .m1{background-image:url(/pie_reyes_fundido.webp);background-position:72% 100%}
}
.pie-h .marca{display:flex;align-items:center;gap:8px;font:700 14px/1 Cinzel,Georgia,serif;letter-spacing:.06em}
.pie-h .marca img{width:30px;height:30px}
.pie-h nav{display:flex;flex-wrap:wrap;justify-content:center;gap:0 12px;font-size:14px}
.hub-b .pie-h nav a{color:#f0e6d6;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
.hub-b .pie-h nav a:hover{text-decoration:underline}
.pie-h small{font-size:12px;color:#cbbfb0}
@media (min-width:601px){
  .hub{display:grid;grid-template-columns:minmax(22px,1fr) minmax(0,640px) minmax(22px,1fr);gap:0;align-content:start;padding:0}
  .hub>*{grid-column:2;margin:0 0 30px}
  .hub .top{margin-top:34px;margin-bottom:22px}
  .hub>.pie-h{grid-column:1/-1;margin:20px 0 0;--ph:230px}
  .hub h1{font-size:32px}
  .hub .lead{max-width:56ch}
  .hub .gratis{justify-self:center}
}
@media (min-width:1024px){
  .hub{grid-template-columns:minmax(24px,1fr) minmax(0,1100px) minmax(24px,1fr)}
  .hub .top img{width:96px;height:96px}
  .hub .top .nom{font-size:24px}
  .hub h1{font-size:44px;max-width:24ch;margin:0 auto}
  .hub .lead{font-size:19px;margin-top:16px;max-width:60ch}
  .hub .gratis{margin-top:-14px;margin-bottom:38px;font-size:16px}
  .hub>.pie-h{--ph:290px}
  .hub h2{font-size:28px}
  .mundos{flex-direction:row;gap:28px}
  .mundos .mundo{flex:1 1 0;min-width:0;transition:transform .25s ease,box-shadow .25s ease}
  .mundos .mundo:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(74,10,14,.34)}
  .mundo .cuerpo{padding:18px 24px 24px}
  .mundo h3{font-size:28px}
  .mundo p{font-size:16.5px}
  .caras img{width:48px;height:63px}
  .pasos-h{flex-direction:row;gap:18px}
  .pasos-h li{flex:1 1 0;flex-direction:column;gap:12px;padding:20px 20px 22px}
  .conf{flex-direction:row;gap:28px;padding:22px 28px}
  .conf div{flex:1 1 0}
  .faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;align-items:start}
}
@media (prefers-reduced-motion:reduce){.mundos .mundo{transition:none}}

/* the footer sits at the bottom of the window when the page is shorter than it (2026-11-20, user: "the footer
   doesn't look at the bottom of the page"): the page column fills the window and the footer takes the spare space */
.app>.pie{margin-top:auto}
.hub{min-height:100vh}
.hub>.pie-h{margin-top:auto}
@media (min-width:601px){
  .app>.pie{margin-top:auto}
}
@media (min-width:1024px){
  .app{align-content:stretch;grid-template-rows:auto 1fr auto}
  .app>.paso,.app>.lado{align-self:center}
  .app>.paso.portada{grid-column:1/-1;grid-row:2;justify-self:center;width:100%;max-width:600px}
  .app>.pie{align-self:end;margin-top:40px}
}

/* picture footer, every page (2026-11-20, user: "why the footer isn't fixed on desktop"): like the hub, the scene
   on top and the seal, links and © on a solid bar under it, never over the picture (Papá Noel's hat, the camels) */
body .pie{--ph:190px;height:auto;padding:calc(var(--ph) + 8px) 22px 14px;justify-content:flex-start;gap:2px;text-shadow:none;
  background:linear-gradient(transparent var(--ph),var(--bar) var(--ph))}
.noel .pie{--bar:#08160f}
.reyes .pie{--bar:#080c1f}
body .pie::before{inset:0 0 auto 0;height:var(--ph);
  background:linear-gradient(transparent calc(100% - 50px),var(--bar)),linear-gradient(var(--bg) 0%,transparent 38%),var(--pie) center 22%/cover no-repeat}
.pie .marca img{filter:none}
@media (min-width:601px){
  body .pie{--ph:clamp(240px,20vw,360px)}
  body .pie::before{background:linear-gradient(transparent calc(100% - 60px),var(--bar)),var(--pie-w) center 15%/cover no-repeat}
}

/* crawlable text under the cover step (SEO, 2026-11-20) */
.info{width:100%;max-width:600px;margin:28px auto 8px;padding:0 2px;text-align:left;color:var(--soft,#d5e4da);font-size:16px;line-height:1.55}
.info h2{font:700 20px/1.25 Cinzel,Georgia,serif;color:var(--txt,#f2ecdd);margin:26px 0 8px}
.info h3{font-size:16px;font-weight:700;color:var(--txt,#f2ecdd);margin:16px 0 4px}
.info p,.info ol{margin:0 0 10px}.info ol{padding-left:22px}.info li{margin:4px 0}
.info a{color:var(--gold,#e9cf8a);text-decoration:underline;display:inline-block;min-height:24px}
.info .otro{margin-top:20px}
@media (min-width:1024px){.app>.info{grid-column:1/-1;grid-row:3;justify-self:center;margin-top:48px}
  .app:has(>.info)>.pie{grid-row:4}.app:has(>.info){grid-template-rows:auto auto auto 1fr}}

/* silent sample loops over the cover/card stills (fade in once playing) */
.vista{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .6s ease;pointer-events:none}
.vista.on{opacity:1}
@media (prefers-reduced-motion: reduce){:not(.lleno)>.vista{display:none}}
.p-img .etq-img{z-index:2}
.mundo .img,.p-img{cursor:pointer}
.con-sonido{position:absolute;right:10px;bottom:10px;z-index:3;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:0;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font:600 14px/1 Figtree,system-ui,sans-serif;cursor:pointer}
.con-sonido:focus-visible{outline:3px solid #fff;outline-offset:3px}
.lleno .vista{opacity:1;pointer-events:auto;background:#000}
.lleno .etq-img,.lleno .con-sonido{display:none}
.mundo a.cuerpo{color:inherit;text-decoration:none}
/* the clip overlaps its box by 1 px all round: a fractional-pixel gap let the still show as a hairline at the bottom */
.vista{inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px)}
.mundo .img{overflow:hidden}
/* our wax seal on the join between the clip and the card's panel, like a seal closing an envelope (owner, 2026-11-20: "1a, bigger, a little more to the right") */
.mundo a.cuerpo{position:relative;padding-top:42px}
.sello-j{position:absolute;top:-32px;left:30px;width:64px;height:64px;z-index:4;pointer-events:none;filter:drop-shadow(0 4px 6px rgba(0,0,0,.45))}
@media (min-width:1024px){.mundo a.cuerpo{padding-top:44px}.sello-j{left:36px}}

/* the printable letter's parchment, halfway between the flat cream and the PDF (owner, 2026-11-20): fixed behind the
   page so its aged rim frames the window; pipeline/tools/papel_hoja_web.py --base 249,240,218 --amp 1.6 --rim 0.9 --ancho 0.55 (option A) */
body.hub-b::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url(/papel_hoja_v.webp?v=2) center/100% 100% no-repeat}
@media (min-width:601px){body.hub-b::before{background-image:url(/papel_hoja_h.webp?v=2)}}
