/* =====================================================================
   Regala con ilusión · estilos
   Paleta: pino, papel kraft, arándano y oro viejo
   ===================================================================== */
:root {
  --pine: #123528;
  --pine-2: #1b4a39;
  --paper: #f6efe3;
  --kraft: #d8b98a;
  --kraft-2: #c9a572;
  --kraft-ink: #3b2a17;
  --cranberry: #b5223c;
  --cranberry-2: #8e1a2f;
  --gold: #e5b04a;
  --gold-2: #b88327;
  --ink: #2a211b;
  --muted: #6e5f52;
  --snow: #fffdf8;

  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --f-body: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: max(16px, env(safe-area-inset-left));
  --gutter-r: max(16px, env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--pine);            /* el "rebote" de iOS arriba y abajo se ve verde */
}
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font: 17px/1.55 var(--f-body);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.locked { overflow: hidden; }

button, a, input { touch-action: manipulation; }
button { font: inherit; cursor: pointer; color: inherit; -webkit-appearance: none; appearance: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.hand { font-family: var(--f-hand); font-weight: 700; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--kraft-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.noscript { text-align: center; padding: 20px; background: var(--gold); margin: 0; }

/* ---------- Nieve ---------- */
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ---------- Cabecera ---------- */
.hero {
  position: relative;
  color: var(--snow);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(229,176,74,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(181,34,60,.22), transparent 60%),
    var(--pine);
  padding-bottom: 90px;
  overflow: hidden;
}
.lights { position: absolute; top: 0; left: 0; width: 100%; height: 70px; overflow: visible; pointer-events: none; }
.lights .wire { fill: none; stroke: #0a1f17; stroke-width: 2; }
.lights .bulb { animation: twinkle 2.6s ease-in-out infinite; }
.lights .bulb ellipse { filter: drop-shadow(0 0 6px currentColor); }
.lights .bulb rect { fill: #2c3b33; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 55% { opacity: .95; } }

.bar {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 0 auto;
  padding: calc(58px + env(safe-area-inset-top)) var(--gutter-r) 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  font-family: var(--f-display); font-size: 1.4rem; line-height: 1.1; color: var(--snow);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.brand i, .foot-brand i { font-family: var(--f-hand); font-style: normal; font-weight: 700; color: var(--gold); font-size: 1.15em; }
.brand-bow { display: inline-block; transform: rotate(-12deg); }
.snow-toggle {
  flex: none; min-height: 40px; min-width: 44px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: var(--snow); border-radius: 999px; padding: 6px 14px; font-size: .9rem;
}
.snow-toggle[aria-pressed="false"] { opacity: .55; }

.hero-in { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 30px var(--gutter-r) 0 var(--gutter); }
.kicker { color: var(--gold); font-size: clamp(1.25rem, 5.4vw, 1.5rem); line-height: 1.15; margin: 0 0 10px; transform: rotate(-2deg); display: inline-block; }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.15rem, 8.6vw, 4.6rem); line-height: 1.05; letter-spacing: -.015em;
  margin: 0 0 18px; max-width: 15ch;
  overflow-wrap: break-word;
}
.scribble { position: relative; white-space: nowrap; color: var(--gold); }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.scribble path {
  fill: none; stroke: var(--cranberry); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .5s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { max-width: 52ch; font-size: 1.06rem; color: #dfe9e2; margin: 0 0 22px; }

.countdown {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  background: rgba(0,0,0,.18); border: 1px dashed rgba(229,176,74,.55);
  border-radius: 14px; padding: 10px 16px; margin-bottom: 26px; max-width: 100%;
}
.countdown b { font-family: var(--f-display); font-weight: 400; font-size: 2rem; color: var(--gold); line-height: 1; }
.countdown span { color: #dfe9e2; }
.countdown em { font-family: var(--f-hand); font-style: normal; font-size: 1.25rem; line-height: 1.15; color: #f3c7cf; flex-basis: 100%; }

/* Buscador con forma de etiqueta */
.tag-search { max-width: 520px; }
.tag-search label { display: block; font-size: 1.35rem; line-height: 1.15; color: var(--snow); margin-bottom: 8px; transform: rotate(-1deg); transform-origin: left; }
.tag-input {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  background: var(--kraft); color: var(--kraft-ink);
  border-radius: 6px 14px 14px 6px;
  padding: 6px 6px 6px 44px;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
}
.tag-input::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--pine); box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.tag-input .nr { font-family: var(--f-mono); font-size: .95rem; opacity: .7; flex: none; }
.tag-input input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--kraft-ink);
  font: 500 18px var(--f-mono);       /* >=16px: iOS no hace zoom al tocar */
  padding: 10px 2px; outline: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.tag-input input::-webkit-search-cancel-button,
.tag-input input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.tag-input input::placeholder { color: rgba(59,42,23,.55); font-family: var(--f-body); font-size: 16px; }
.tag-input .clear {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(59,42,23,.12); color: var(--kraft-ink); font-size: 1.3rem; line-height: 1;
}
.tag-input .go {
  border: 0; background: var(--cranberry); color: #fff; font-size: 1.3rem;
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  transition: transform .15s;
}

.hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.hills path { fill: var(--paper); }

/* ---------- Secciones ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter); }
.sec-title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.55rem, 6vw, 2.3rem);
  margin: 0; line-height: 1.15; color: var(--pine);
}
.arrow-note { font-size: 1.3rem; color: var(--cranberry); margin-left: 6px; display: inline-block; transform: rotate(-4deg) translateY(-2px); }

.who { padding: 10px 0 28px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.who-card {
  position: relative; text-align: left;
  border: 2px solid var(--pine); border-radius: 18px;
  background: var(--snow);
  padding: 18px 18px 20px;
  box-shadow: 5px 6px 0 var(--pine);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background .2s;
  display: flex; flex-direction: column; gap: 4px;
}
.who-card:nth-child(1) { transform: rotate(-1deg); }
.who-card:nth-child(2) { transform: rotate(.7deg); }
.who-card:nth-child(3) { transform: rotate(-.4deg); }
.who-card:active { transform: translate(3px, 4px); box-shadow: 2px 2px 0 var(--pine); }
.who-card.on { background: var(--cranberry); color: #fff; border-color: var(--cranberry-2); box-shadow: 5px 6px 0 var(--cranberry-2); }
.who-card.on small { color: #ffdbe1; }
.who-emoji { font-size: 2.3rem; line-height: 1; margin-bottom: 4px; }
.who-card b { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; }
.who-card small { color: var(--muted); font-size: .92rem; line-height: 1.35; }

.shelf { padding: 22px 0 40px; scroll-margin-top: 8px; outline: none; }
.shelf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shelf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.count { font-family: var(--f-hand); font-size: 1.35rem; color: var(--cranberry); margin-left: 2px; white-space: nowrap; }

.pill-btn {
  min-height: 44px; border: 0; font-weight: 800; padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s, box-shadow .15s;
}
.surprise { background: var(--gold); color: var(--kraft-ink); box-shadow: 0 3px 0 var(--gold-2); }
.surprise:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-2); }
.list-btn { background: var(--snow); color: var(--cranberry); box-shadow: inset 0 0 0 2px var(--cranberry); }
.list-btn[aria-pressed="true"] { background: var(--cranberry); color: #fff; }
.badge { background: var(--cranberry); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .8rem; display: inline-grid; place-items: center; }
.list-btn[aria-pressed="true"] .badge { background: #fff; color: var(--cranberry); }
.badge.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }

.banner {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 14px;
  background: var(--snow); border: 2px dashed var(--cranberry);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.banner p { margin: 0; flex: 1 1 220px; }
.banner .pill-btn { background: var(--cranberry); color: #fff; padding: 8px 16px; }
.banner .link-btn { min-height: 44px; }

.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 18px 0 26px; }
.filters > * { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-wrap { position: relative; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); }
.chips-wrap::after { /* pista visual de que se puede deslizar */
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 36px; pointer-events: none;
  background: linear-gradient(90deg, rgba(246,239,227,0), var(--paper));
}
.chips.scroll {
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 2px var(--gutter-r) 2px var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll::after { content: ""; flex: 0 0 20px; }
.chips button {
  white-space: nowrap; font-size: .93rem; font-weight: 600; flex: none;
  min-height: 40px; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid #cdbba4; background: transparent; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.chips button.on { background: var(--pine); border-color: var(--pine); color: var(--snow); }

/* ---------- Etiquetas de regalo ---------- */
.grid {
  display: grid; gap: 40px 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr));
  padding-top: 18px;
}
.gift {
  --rot: 0deg;
  position: relative;
  transform: rotate(var(--rot));
  filter: drop-shadow(0 10px 16px rgba(60,40,20,.16));
  animation: drop .55s cubic-bezier(.3,1.4,.5,1) both;
  animation-delay: var(--d, 0s);
  min-width: 0;
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-26px) rotate(calc(var(--rot) * -3)); }
  to   { opacity: 1; transform: rotate(var(--rot)); }
}
.gift::before {
  content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 34px;
  background: repeating-linear-gradient(180deg, #a77b4a 0 3px, #8a6236 3px 6px);
  transform: rotate(8deg); transform-origin: bottom; z-index: 2;
}
.tag {
  position: relative;
  background: var(--kraft);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.04)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
  color: var(--kraft-ink);
  padding: 34px 18px 18px;
  border-radius: 4px 4px 14px 14px;
  clip-path: polygon(16% 0, 84% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  min-height: 100%;
  display: flex; flex-direction: column; gap: 8px;
}
.tag::before {
  content: ""; position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px var(--kraft-2), inset 0 1px 2px rgba(0,0,0,.35);
}
.tag-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stamp {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 2rem; line-height: 1;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--kraft-2);
  transform: rotate(-8deg);
}
.photo {
  margin: 0 -4px; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper);
  box-shadow: 0 0 0 3px var(--paper);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.tag-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.code { font: 500 .9rem var(--f-mono); letter-spacing: .04em; border: 1.5px solid currentColor; border-radius: 4px; padding: 2px 7px; opacity: .8; transform: rotate(3deg); white-space: nowrap; }
.top-badge { font: 700 .72rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; background: var(--cranberry); color: #fff; padding: 3px 8px; border-radius: 999px; transform: rotate(-3deg); }
.tag h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.26rem; line-height: 1.2; margin: 4px 0 0; overflow-wrap: break-word; }
.tag p { margin: 0; font-size: .97rem; line-height: 1.45; color: #4a3826; flex: 1; }
.note { font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.1; color: var(--cranberry); transform: rotate(-2deg); margin: 2px 0 0; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; }
.meta span { background: rgba(255,255,255,.45); border-radius: 999px; padding: 2px 9px; }
.actions { display: flex; gap: 8px; margin-top: 6px; align-items: stretch; }
.buy {
  flex: 1; min-width: 0; min-height: 48px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--cranberry); color: #fff; text-decoration: none; font-weight: 800; text-align: center;
  box-shadow: 0 3px 0 var(--cranberry-2);
  transition: transform .15s, box-shadow .15s;
}
.buy:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cranberry-2); }
.buy .arr { transition: transform .2s; }
.icon-btn {
  flex: none; width: 48px; min-height: 48px; border-radius: 10px;
  border: 0; background: rgba(255,255,255,.5); color: var(--cranberry);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  transition: transform .15s, background .15s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.fav[aria-pressed="true"] { background: var(--cranberry); color: #fff; }
.fav.pop { animation: bump .35s; }
/* Etiqueta estrecha (móvil pequeño, ventana Sorpréndeme): botón de compra en su propia fila */
.tag { container-type: inline-size; }
@container (max-width: 290px) {
  .actions { flex-wrap: wrap; }
  .buy { flex: 1 1 100%; }
  .icon-btn { flex: 1 1 0; width: auto; }
}
.fine { font-size: .72rem; color: #6d5a44; text-align: center; margin: -2px 0 0; }

.gift.hit .tag { box-shadow: inset 0 0 0 3px var(--gold); }
.gift.hit { animation: drop .55s cubic-bezier(.3,1.4,.5,1) both, wiggle 1s .6s ease-in-out 2; }
@keyframes wiggle {
  0%,100% { transform: rotate(var(--rot)); }
  25% { transform: rotate(calc(var(--rot) + 3deg)); }
  75% { transform: rotate(calc(var(--rot) - 3deg)); }
}

.more-wrap { text-align: center; padding: 34px 0 0; }
.more { background: var(--pine); color: var(--snow); padding: 12px 26px; }
.empty { text-align: center; padding: 30px 0 10px; }
.empty .hand { font-size: 1.7rem; color: var(--muted); margin: 0 0 8px; }
.link-btn { border: 0; background: none; color: var(--cranberry); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 8px; }

/* ---------- Cómo funciona ---------- */
.how { padding: 10px 0 30px; }
.how-list { list-style: none; counter-reset: paso; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.how-list li { counter-increment: paso; position: relative; background: var(--snow); border-radius: 16px; padding: 18px 18px 18px 64px; border: 1.5px solid #e4d6c2; }
.how-list li::before {
  content: counter(paso); position: absolute; left: 16px; top: 14px;
  font-family: var(--f-display); font-size: 1.6rem; color: var(--snow); background: var(--pine);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; line-height: 1;
}

/* ---------- Ventana ---------- */
.modal {
  border: 0; padding: 24px 18px 22px; border-radius: 20px;
  width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4);
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(10,30,22,.65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.modal-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--muted); }
.modal-kicker { font-size: 1.6rem; color: var(--cranberry); margin: 0 0 14px; text-align: center; padding: 0 30px; }
.modal .gift { animation: none; transform: none; }
.modal .gift::before { display: none; }
.spin { text-align: center; font-size: 4rem; height: 96px; line-height: 96px; }
.spin-title { text-align: center; font-family: var(--f-display); font-size: 1.15rem; min-height: 2.6em; color: var(--muted); }
.modal .again { display: flex; margin: 16px auto 0; }

.confetti { position: fixed; top: 0; left: 0; width: 9px; height: 14px; z-index: 2147483647; pointer-events: none; border-radius: 2px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--pine); color: var(--snow); padding: 12px 18px; border-radius: 12px;
  font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 32px); text-align: center;
  transition: transform .3s cubic-bezier(.3,1.4,.5,1), opacity .3s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Pie ---------- */
.foot { position: relative; background: var(--pine); color: #cfe0d6; margin-top: 30px; padding: 70px var(--gutter-r) calc(40px + env(safe-area-inset-bottom)) var(--gutter); }
.hills-top { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; }
.hills-top path { fill: var(--paper); }
.foot-in { max-width: 1120px; margin: 0 auto; }
.foot-brand { font-family: var(--f-display); font-size: 1.6rem; color: var(--snow); margin: 0; }
.foot-sign { font-size: 1.4rem; line-height: 1.15; color: var(--gold); margin: 4px 0 18px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: var(--snow); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.disclosure { font-size: .85rem; max-width: 70ch; opacity: .85; }
.foot-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .9rem; }
.foot a { color: #cfe0d6; }
.foot-nav a { display: inline-block; padding: 10px 0; }

/* ---------- Temporada general: sin decoración navideña ---------- */
.t-general .lights, .t-general #snow, .t-general .snow-toggle, .t-general .countdown { display: none !important; }
.t-general .bar { padding-top: calc(28px + env(safe-area-inset-top)); }

/* ---------- Páginas legales y 404 ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) var(--gutter-r) 60px var(--gutter); }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; color: var(--pine); line-height: 1.15; }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; margin-top: 1.6em; color: var(--pine); }
.legal a { color: var(--cranberry); }
.legal .back { display: inline-block; padding: 10px 0; font-weight: 700; }
.lost { text-align: center; padding-top: 12vh; }
.lost .big { font-size: 5rem; line-height: 1; margin: 0; }
.lost .pill-btn { background: var(--cranberry); color: #fff; text-decoration: none; margin-top: 10px; }

/* ---------- Solo con ratón (en móvil el hover se queda "pegado") ---------- */
@media (hover: hover) and (pointer: fine) {
  .who-card:hover { transform: rotate(0) translate(-2px,-4px); box-shadow: 8px 10px 0 var(--pine); }
  .who-card.on:hover { box-shadow: 8px 10px 0 var(--cranberry-2); }
  .gift { transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
  .gift:hover { transform: rotate(0) translateY(-6px); }
  .buy:hover { box-shadow: 0 4px 0 var(--cranberry-2); }
  .buy:hover .arr { transform: translateX(4px); }
  .icon-btn:hover { background: rgba(255,255,255,.75); }
  .fav[aria-pressed="true"]:hover { background: var(--cranberry-2); }
  .surprise:hover { transform: translateY(-2px) rotate(-2deg); }
  .chips button:hover { border-color: var(--pine); }
  .chips button.on:hover { border-color: var(--pine); }
  .tag-input .go:hover { transform: translateX(2px); }
  .socials a:hover { background: rgba(255,255,255,.16); }
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .who-grid { grid-template-columns: 1fr; gap: 14px; }
  .who-card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 2px; padding: 14px 16px; }
  .who-emoji { font-size: 2rem; margin: 0; grid-row: span 2; }
  .grid { gap: 44px 16px; }
  .hero { padding-bottom: 70px; }
  .hills { height: 60px; }
  .arrow-note { display: block; margin: 2px 0 0; }
  .shelf-head { align-items: flex-start; }
  .shelf-actions { width: 100%; }
  .shelf-actions .pill-btn { flex: 1; }
  .gift { --rot: 0deg !important; }   /* en una columna, rectas: se leen mejor */
}
@media (max-width: 360px) {
  .brand { font-size: 1.2rem; }
  .snow-lbl { display: none; }
  .tag-input .nr { display: none; }
  .tag-input { padding-left: 36px; }
  .countdown b { font-size: 1.7rem; }
  .chips button { font-size: .88rem; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scribble path { stroke-dashoffset: 0; }
}
