/* =========================================================
   QuiénMeToca — amigo invisible online
   1. Tokens · 2. Base · 3. Cabecera · 4. Hero + herramienta
   5. Pasos · 6. Chips/exclusiones · 7. Resultados
   8. Revelación (rasca) · 9. Contenido · 10. Anuncios
   11. Lista de deseos · 12. Ladrón · 13. Pie · 14. Impresión
   ========================================================= */

/* 1. Tokens */
:root {
  --paper: #fff8ef;
  --paper-2: #fdeedd;
  --card: #ffffff;
  --ink: #221c2e;
  --ink-2: #5b5468;
  --line: #ecdfcf;
  --red: #e0453d;
  --red-d: #b8322b;
  --green: #1d6b57;
  --green-l: #e3f2ec;
  --gold: #e3ae45;
  --gold-d: #b8862a;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(34, 28, 46, .06), 0 10px 30px -12px rgba(34, 28, 46, .18);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--f-body);
  padding: .85em 1.3em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px -8px var(--red); }
.btn-primary:hover { background: var(--red-d); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178944; color: #fff; }
.btn-sm { padding: .55em .9em; font-size: .9rem; }
.btn-big { padding: 1.05em 2em; font-size: 1.15rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  width: 100%;
  padding: .7em .85em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
textarea { resize: vertical; min-height: 96px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3em; }
.field { margin-bottom: .9rem; }
.hint { font-size: .85rem; color: var(--ink-2); margin: .3em 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .9rem; }

/* 3. Cabecera */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: .45em; font: 700 1.25rem var(--f-display); color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: .45em .8em; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

/* 4. Hero + herramienta */
.hero { padding: 8px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .25em; }
.hero h1 em { font-style: italic; color: var(--red); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34ch; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: .6em; align-items: flex-start; font-size: .95rem; }
.trust li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-l); color: var(--green); font-weight: 700; font-size: .8rem; margin-top: 2px; }

.tool-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.noscript-note { padding: 24px; text-align: center; color: var(--ink-2); }

/* 5. Pasos */
.steps-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.steps-nav button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 12px 6px; font: 600 .82rem var(--f-body); color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative;
}
.steps-nav button .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: .8rem; }
.steps-nav button[aria-selected="true"] { color: var(--ink); }
.steps-nav button[aria-selected="true"] .n { background: var(--red); border-color: var(--red); color: #fff; }
.steps-nav button.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.steps-nav button[aria-selected="true"]::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--red); }
.step { padding: 22px 22px 18px; }
.step h2 { font-size: 1.35rem; margin-bottom: .2em; }
.step-sub { color: var(--ink-2); font-size: .95rem; margin-bottom: 1rem; }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 1rem; flex-wrap: wrap; }
.step-actions .btn:only-child { margin-left: auto; }

.chips-select { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-select button {
  appearance: none; cursor: pointer; font: 600 .9rem var(--f-body);
  padding: .5em .9em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.chips-select button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 6. Chips de personas y exclusiones */
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; min-height: 40px; }
.person {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: .35em .35em .35em .8em; border-radius: 999px; font-weight: 600; font-size: .92rem;
  animation: pop .25s ease;
}
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 700; }
.person button { appearance: none; border: 0; background: transparent; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; color: var(--ink-2); font-size: 1rem; line-height: 1; }
.person button:hover { background: #fff; color: var(--red); }
.empty { color: var(--ink-2); font-size: .9rem; font-style: italic; }
.count { font-size: .85rem; color: var(--ink-2); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

.excl-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.excl-row .x { font-weight: 700; color: var(--red); }
.excl-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.excl-list li { display: inline-flex; align-items: center; gap: .4em; background: #fdecea; color: var(--red-d); border-radius: 999px; padding: .3em .35em .3em .8em; font-size: .9rem; font-weight: 600; }
.excl-list button { appearance: none; border: 0; background: transparent; cursor: pointer; color: inherit; font-size: 1rem; width: 24px; height: 24px; border-radius: 50%; }
.excl-list button:hover { background: #fff; }

.toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; margin: 0; }
.toggle input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex: none; }
.toggle strong { display: block; }
.toggle span { font-size: .88rem; color: var(--ink-2); }

.check { display: flex; gap: .6em; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-size: .92rem; margin-top: 12px; }
.check.ok { background: var(--green-l); color: var(--green); }
.check.bad { background: #fdecea; color: var(--red-d); }

.summary { display: grid; gap: 6px; background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; font-size: .95rem; margin-bottom: 14px; }
.summary b { font-weight: 600; }
.draw-zone { text-align: center; padding: 6px 0 4px; }
.shuffler { height: 2.6em; font: 700 1.6rem var(--f-display); color: var(--red); display: grid; place-items: center; overflow: hidden; }

/* 7. Resultados */
.results-head { background: var(--green); color: #fff; padding: 20px 22px; }
.results-head h2 { color: #fff; font-size: 1.4rem; margin-bottom: .2em; }
.results-head p { margin: 0; opacity: .9; font-size: .95rem; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.links .who { font-weight: 600; display: flex; align-items: center; gap: .5em; min-width: 0; }
.links .who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links .acts { display: flex; gap: 6px; }
.sent { appearance: none; cursor: pointer; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; width: 28px; height: 28px; color: #d9cfc2; font-weight: 700; }
.sent[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.results-foot { padding: 16px 22px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: .86rem; color: var(--ink-2); padding: 12px 22px 0; margin: 0; }
.warn-local { background: #fff4d6; color: #7a5a12; font-size: .88rem; padding: 10px 22px; margin: 0; }

/* 8. Revelación */
.reveal { padding: 10px 0 30px; }
.reveal-card { max-width: 560px; margin: 0 auto; text-align: center; }
.reveal-card .event-name { display: inline-block; background: var(--paper-2); border-radius: 999px; padding: .35em 1em; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.reveal-card .hello { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.ticket {
  position: relative; margin: 18px auto 10px; width: min(100%, 460px); aspect-ratio: 16 / 9;
  border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 2px dashed var(--gold);
  display: grid; place-items: center; overflow: hidden; user-select: none;
}
.ticket .prize { padding: 20px; }
.ticket .prize small { display: block; color: var(--ink-2); font-size: .9rem; margin-bottom: 6px; }
.ticket .prize strong { font: 700 clamp(2rem, 8vw, 3rem) var(--f-display); color: var(--red); word-break: break-word; line-height: 1.1; }
.ticket canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s ease; }
.ticket canvas.gone { opacity: 0; pointer-events: none; }
.linkish { appearance: none; border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.not-you { font-size: .85rem; color: var(--ink-2); margin-top: 6px; }
.after-reveal { margin-top: 26px; text-align: left; display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.25rem; }
.details { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.details li { display: flex; gap: .7em; }
.details .ic { flex: none; width: 26px; text-align: center; }
.idea-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idea-list li { background: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.snowball { text-align: center; background: var(--ink); color: #fff; }
.snowball h2 { color: #fff; }
.snowball p { opacity: .85; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

body.participant-mode .seo-only { display: none; }

/* Billete decorativo del hero */
.demo-ticket { margin-top: 30px; width: 300px; transform: rotate(-4deg); background: #fff; border: 2px dashed var(--gold); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.demo-ticket small { color: var(--ink-2); font-size: .82rem; }
.demo-ticket .strip { position: relative; margin-top: 6px; height: 54px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; padding-left: 14px; font: 700 1.7rem var(--f-display); color: var(--red); background: #fff; }
.demo-ticket .strip::after { content: ""; position: absolute; inset: 0 0 0 46%; background: linear-gradient(120deg, #f3d27a, #e3ae45 50%, #f7dd92); clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 8% 70%, 2% 40%, 10% 15%); }
.demo-ticket .coin { position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 1.4rem; z-index: 1; }

/* 9. Contenido */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head p { color: var(--ink-2); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.how li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.section.alt .how li { background: var(--paper); }
.how li::before { counter-increment: s; content: counter(s); font: 700 2.4rem var(--f-display); color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.how p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border-radius: var(--radius); padding: 20px; background: var(--paper); border: 1px solid var(--line); }
.feature .emo { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { appearance: none; cursor: pointer; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .55em 1.1em; font: 600 .95rem var(--f-body); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.gift-grid li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.variants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.variant { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px 20px; }
.variant p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }
.more-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-link { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.tool-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tool-link .emo { font-size: 1.6rem; }
.tool-link b { display: block; margin: 6px 0 2px; }
.tool-link span { font-size: .9rem; color: var(--ink-2); }
.tool-link.soon { opacity: .6; pointer-events: none; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--paper-2); border-radius: 999px; padding: .15em .6em; margin-left: .3em; vertical-align: middle; }

/* Productos de regalo (afiliados) */
.cat-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 18px; }
.cat-filter button { flex: none; white-space: nowrap; appearance: none; cursor: pointer; border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: .4em .85em; font: 600 .85rem var(--f-body); color: var(--ink-2); }
.cat-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gift-group { margin-bottom: 22px; }
.gift-group h4 { font: 700 1.05rem var(--f-display); margin: 0 0 .6em; }
.gift-panel { display: none; }
.gift-panel.active, .gift-panels.show-all .gift-panel { display: block; }
.gift-panels.show-all .gift-panel.none { display: none; }
.tier-title { display: none; font-size: 1.35rem; margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.gift-panels.show-all .tier-title { display: block; }
.gift-panels.show-all .gift-panel + .gift-panel { margin-top: 18px; }
.gift-panel .gift-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prod { padding: 0 !important; overflow: hidden; }
.prod a { display: flex; flex-direction: column; gap: 10px; padding: 10px; height: 100%; text-decoration: none; color: var(--ink); }
.prod a:hover { color: var(--ink); }
.prod a:hover .prod-img img { transform: scale(1.04); }
.prod-img { aspect-ratio: 1 / 1; border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; text-align: center; padding: 6px; }
.prod:not(.has-img) .prod-img { background: var(--paper); }
.prod-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.ph { font-size: 2.4rem; line-height: 1; }
.ph-name { font-size: .78rem; color: var(--ink-2); line-height: 1.3; }
.prod .btn { width: 100%; margin-top: auto; }
.aff-note { font-size: .82rem; color: var(--ink-2); margin: 6px 0 0; }
.foot-aff { font-size: .78rem; opacity: .7; margin: 18px 0 0; }
.idea-list.rv-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rv-prods li.prod { background: #fff; border: 1px solid var(--line); border-radius: 12px; }

/* 10. Anuncios (huecos vacíos) */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed #cfc3b3; border-radius: 12px; background: repeating-linear-gradient(45deg, #faf3ea, #faf3ea 10px, #f6ecdf 10px, #f6ecdf 20px);
  color: #9b8f80; font: 700 .9rem var(--f-body); letter-spacing: .2em;
}
.ad-slot small { display: block; font-weight: 500; letter-spacing: 0; font-size: .75rem; margin-top: 2px; }
.ad-leaderboard { min-height: 100px; max-width: 970px; margin: 0 auto; }
.ad-incontent { min-height: 250px; max-width: 728px; margin: 0 auto; }
.ad-box { min-height: 250px; width: 100%; max-width: 336px; margin: 0 auto; }
.ad-wrap { padding: 26px 0; }

.ad-pop { border: 0; padding: 0; border-radius: 20px; width: min(420px, 100% - 32px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.ad-pop::backdrop { background: rgba(34, 28, 46, .55); }
.ad-pop .pop-in { padding: 18px; position: relative; }
.ad-pop .pop-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; font-size: 1.2rem; }
.ad-pop .pop-close:hover { background: var(--line); }
.ad-pop .pop-title { font-weight: 600; margin: 4px 40px 12px 2px; }
.ad-pop .pop-foot { text-align: center; margin-top: 12px; }

.ad-toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 10px; transform: translateY(140%); transition: transform .4s ease;
}
.ad-toast.show { transform: none; }
.ad-toast .ad-slot { min-height: 90px; }
.ad-toast .toast-close { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .9rem; box-shadow: var(--shadow); }

/* 11. Lista de deseos */
.wish-items { display: grid; gap: 8px; }
.wish-item { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; }
.icon-btn { appearance: none; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; width: 44px; cursor: pointer; font-size: 1rem; color: var(--ink-2); }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.fieldset legend { font: 700 1.05rem var(--f-display); margin-bottom: .5em; padding: 0; }
.wish-view h2 { font-size: 1.15rem; margin-top: 1.1em; }
.wish-view ul { padding-left: 1.2em; margin: 0; }
.wish-view .no li::marker { content: "✕  "; color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.facts div { background: var(--paper); border-radius: 12px; padding: 8px 12px; }
.facts dt { font-size: .78rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 600; }
.share-box { display: flex; gap: 8px; margin-top: 10px; }
.share-box input { flex: 1; font-size: .85rem; }

/* 12. Ladrón */
.game { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.game > div { padding: 24px 22px; text-align: center; }
.game > div + div { border-left: 1px solid var(--line); }
.die {
  width: 120px; height: 120px; margin: 10px auto 16px; border-radius: 24px; background: #fff;
  border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 16px; gap: 4px;
}
.die i { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); align-self: center; justify-self: center; visibility: hidden; }
.die i.on { visibility: visible; }
.die.rolling { animation: roll .5s ease; }
@keyframes roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(.85); } 100% { transform: rotate(360deg) scale(1); } }
.die-result strong { display: block; font: 700 1.5rem var(--f-display); color: var(--red); }
.die-result p { color: var(--ink-2); margin: 4px 0 0; min-height: 3em; }
.timer { font: 700 clamp(3rem, 10vw, 4.2rem)/1 var(--f-display); font-variant-numeric: tabular-nums; margin: 16px 0; }
.timer.end { color: var(--red); }
.timer-ctrl { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.minutes { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; font-size: .9rem; }
.minutes input { width: 80px; text-align: center; }

/* 13. Pie */
.site-footer { background: var(--ink); color: #d8d2e2; padding: 40px 0 28px; margin-top: 30px; font-size: .92rem; }
.site-footer a { color: #fff; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.legal-page { padding: 20px 0 50px; }
.legal-page h1 { font-size: 2.2rem; }
.todo { background: #fff4d6; padding: .1em .4em; border-radius: 4px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-copy .trust, .demo-ticket { display: none; }
  .lead { max-width: none; }
  .how, .features, .more-tools, .gift-grid { grid-template-columns: 1fr 1fr; }
  .gift-panel .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 6px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 4px; margin: 0 -6px; padding-bottom: 2px; }
  .nav a { flex: none; white-space: nowrap; font-size: .85rem; padding: .4em .7em; }
  .hero h1 { font-size: 1.85rem; }
  .lead { font-size: 1rem; margin-bottom: 0; }
  .step { padding: 18px 16px 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child { grid-column: 1 / -1; }
  .how, .features, .more-tools, .gift-grid, .variants, .idea-list, .facts { grid-template-columns: 1fr; }
  .gift-panel .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .prod .btn { font-size: .8rem; padding: .65em .4em; }
  .idea-list.rv-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tabs button { flex: none; white-space: nowrap; }
  .cat-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .excl-row { grid-template-columns: 1fr auto 1fr; }
  .excl-row .btn { grid-column: 1 / -1; }
  .links li { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .links .acts { grid-column: 1 / -1; }
  .links .acts .btn { flex: 1; }
  .wish-item { grid-template-columns: 1fr auto; }
  .wish-item input[type="url"] { grid-column: 1; grid-row: 2; }
  .game { grid-template-columns: 1fr; }
  .game > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 40px 0; }
  .ad-toast { left: 12px; right: 12px; width: auto; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* 14. Impresión (tarjetas presenciales) */
.print-area { display: none; }
@media print {
  body { background: #fff; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block !important; }
  .print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
  .print-card { border: 1px dashed #999; border-radius: 4mm; break-inside: avoid; height: 80mm; display: grid; grid-template-rows: 1fr 1fr; }
  .print-card > div { display: grid; place-items: center; text-align: center; padding: 4mm; }
  .print-card .outside { border-bottom: 1px dashed #999; position: relative; }
  .print-card .outside::after { content: "✂ doblar por aquí"; position: absolute; bottom: -2.2mm; left: 50%; transform: translateX(-50%); background: #fff; font-size: 7pt; color: #999; padding: 0 2mm; }
  .print-card .inside { transform: rotate(180deg); }
  .print-card .big { font: 700 18pt Georgia, serif; }
  .print-card small { font-size: 8pt; color: #555; }
}
