/* ===== Legalmente Abogada · invitación de Abril ===== */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --pink: #ff3d9a;
  --pink-2: #ff7ac0;
  --pink-soft: #ffd1e8;
  --blush: #fff0f7;
  --purple: #5b2a86;
  --purple-2: #8e4fd0;
  --night: #2a0f45;
  --red: #c8102e;
  --gold: #f5c04a;
  --ink: #3a1236;
  --f-head: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  --f-script: 'Pacifico', cursive;
  --f-body: 'Poppins', system-ui, sans-serif;
  --f-type: 'Special Elite', 'Courier New', monospace;
  --spring: cubic-bezier(.2, .9, .3, 1.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #ffe0f0 0, transparent 40%),
    radial-gradient(circle at 90% 60%, #ffd9ee 0, transparent 45%),
    var(--blush);
  overflow-x: clip;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
mark { background: linear-gradient(transparent 55%, var(--pink-soft) 55%); color: inherit; padding: 0 .15em; }

/* ---------- Capas globales ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 900; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 800; background: rgba(255, 61, 154, .15); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--purple-2), var(--gold)); border-radius: 0 4px 4px 0; box-shadow: 0 0 12px var(--pink); }

.bg-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-hearts span {
  position: absolute; bottom: -40px; opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
  10% { opacity: .5; }
  90% { opacity: .35; }
  100% { transform: translateY(-110vh) translateX(40px) rotate(25deg); opacity: 0; }
}
main, .foot { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* ---------- Intro: el sobre ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 3.2rem;
  background:
    radial-gradient(circle at 50% 40%, #ff7ac0 0, #ff3d9a 55%, #c2185b 100%);
  transition: opacity .8s ease, visibility .8s, transform .8s ease;
}
.intro::before {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(#fff 1.5px, transparent 2px);
  background-size: 38px 38px;
  animation: drift 14s linear infinite;
}
@keyframes drift { to { background-position: 76px 76px; } }
.intro.gone { opacity: 0; visibility: hidden; transform: scale(1.08); pointer-events: none; }

.env {
  position: relative; width: min(84vw, 340px); aspect-ratio: 17 / 11;
  border: 0; background: none; padding: 0; perspective: 900px;
  animation: envfloat 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
@keyframes envfloat { 50% { transform: translateY(-10px) rotate(-1deg); } }
.env > span { position: absolute; display: block; }
.env__back { inset: 0; background: #ff9ccc; border-radius: 10px; box-shadow: 0 25px 50px rgba(60, 0, 40, .4); }
.env__front {
  inset: 0; z-index: 3; background: #ffb6dc; border-radius: 10px;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env__flap {
  left: 0; right: 0; top: 0; height: 58%; z-index: 4; background: #ff6fb5; border-radius: 10px 10px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform .6s ease, z-index 0s .3s;
}
.env__letter {
  left: 6%; right: 6%; top: 8%; height: 86%; z-index: 2;
  background: #fff; border-radius: 8px; padding: 1rem .8rem; text-align: center;
  display: flex; flex-direction: column; justify-content: flex-start; gap: .1rem; padding-top: .9rem;
  transition: transform .9s var(--spring) .5s, z-index 0s .5s;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .1);
}
.env__letter small { font-size: .62rem; text-transform: uppercase; letter-spacing: .15em; color: var(--purple); font-weight: 700; }
.env__letter strong { font-family: var(--f-script); font-weight: 400; font-size: clamp(1.4rem, 7vw, 2rem); color: var(--pink); line-height: 1.2; word-break: break-word; }
.env__letter em { white-space: nowrap; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--purple); }
.env__seal {
  left: 50%; top: 46%; width: 54px; height: 54px; z-index: 5; margin: -27px 0 0 -27px;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #ff4d6d, var(--red) 65%, #7a0a1c);
  color: #ffd1dc; font-family: var(--f-script); font-size: 1.7rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 -3px 6px rgba(0, 0, 0, .25);
  transition: transform .4s ease, opacity .4s ease;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { scale: 1.12; } }
.env.open { animation: none; }
.env.open .env__seal { transform: scale(0) rotate(90deg); opacity: 0; animation: none; }
.env.open .env__flap { transform: rotateX(180deg); z-index: 1; }
.env.open .env__letter { transform: translateY(-62%) scale(1.06); z-index: 6; }
.intro__hint { position: relative; color: #fff; font-weight: 600; letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .8rem 1.5rem;
  background: var(--bg); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 0 rgba(91, 42, 134, .9), 0 12px 24px rgba(255, 61, 154, .35);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(91, 42, 134, .9), 0 4px 10px rgba(255, 61, 154, .3); }
.btn--big { font-size: 1.05rem; padding: 1rem 1.9rem; }
.btn--small { padding: .5rem 1.1rem; font-size: .9rem; box-shadow: 0 4px 0 rgba(91, 42, 134, .9); }
.btn--light { --bg: #fff; color: var(--purple); box-shadow: 0 6px 0 var(--pink-2), 0 12px 24px rgba(0, 0, 0, .12); }
.btn--ghost { --bg: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn--ghost:active { transform: translateY(2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 4.5rem 1.25rem 5.5rem;
  display: grid; gap: 2.2rem; align-content: center; justify-items: center; text-align: center;
  max-width: 1180px; margin: 0 auto;
}
.hero__text { display: grid; gap: 1rem; justify-items: center; max-width: 620px; }
.kicker {
  font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--purple);
  background: #fff; padding: .4rem 1rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(91, 42, 134, .15);
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(1.2deg) scale(1.03); } }
.title { display: grid; line-height: .95; }
.title__script {
  font-family: var(--f-script); font-weight: 400; color: var(--pink);
  font-size: clamp(2rem, 9vw, 4rem); transform: rotate(-4deg); margin-bottom: -.12em; position: relative; z-index: 1;
  text-shadow: 3px 3px 0 #fff, 0 6px 18px rgba(255, 61, 154, .35);
}
.title__big {
  font-family: var(--f-head); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.3rem, 16.5vw, 7.6rem); letter-spacing: .01em;
  background: linear-gradient(100deg, var(--pink) 0%, #ff8fcb 25%, var(--purple-2) 50%, var(--pink) 75%, #ff8fcb 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #fff) drop-shadow(6px 7px 0 rgba(91, 42, 134, .35));
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { background-position: -250% 0; } }
.lead { font-size: clamp(1rem, 3.6vw, 1.2rem); max-width: 34ch; }
.lead b { color: var(--pink); }

.hero__photo { position: relative; width: min(78vw, 360px); justify-self: center; }
.photo { transform: rotate(3deg); transition: transform .3s ease; will-change: transform; }
.photo__frame {
  position: relative; padding: 9px; border-radius: 22px; overflow: hidden;
  background: conic-gradient(from var(--a), var(--pink), var(--gold), var(--purple-2), var(--pink-2), var(--pink));
  animation: spinborder 6s linear infinite;
  box-shadow: 0 25px 50px rgba(255, 61, 154, .4), 0 8px 0 #fff;
}
@keyframes spinborder { to { --a: 360deg; } }
.photo__frame img { border-radius: 15px; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.photo__shine {
  position: absolute; inset: 9px; border-radius: 15px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  background-size: 250% 100%; animation: shine 3.8s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
.photo__tag {
  position: absolute; left: 50%; bottom: -14px; translate: -50% 0; white-space: nowrap;
  background: var(--purple); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; border: 2px solid #fff;
}
.badge { position: absolute; width: 36%; left: -8%; bottom: 8%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); z-index: 3; }
.badge__spin { transform-origin: 100px 100px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker {
  position: absolute; font-size: clamp(1.8rem, 7vw, 2.8rem); z-index: 4; user-select: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); animation: floaty 4s ease-in-out infinite;
  transition: translate .25s ease-out;
}
.s1 { top: -4%; left: -7%; animation-delay: -.5s; }
.s2 { top: 6%; right: -8%; animation-delay: -1.2s; }
.s3 { top: 44%; right: -10%; animation-delay: -2s; }
.s4 { bottom: 2%; right: -6%; animation-delay: -.8s; }
.s5 { top: 36%; left: -9%; animation-delay: -2.6s; }
.s6 { top: -8%; right: 28%; animation-delay: -1.7s; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(8deg); } }

.scrollcue {
  position: absolute; bottom: 1.2rem; left: 50%; translate: -50% 0; text-decoration: none; color: var(--purple);
  display: grid; justify-items: center; font-size: .78rem; font-weight: 600; width: max-content;
}
.scrollcue i { font-style: normal; font-size: 1.6rem; animation: bob 1.2s ease-in-out infinite; color: var(--pink); }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- Cintas ---------- */
.tapes { position: relative; height: 128px; overflow: hidden; z-index: 2; }
.tape { position: absolute; left: -5%; width: 110%; padding: .6rem 0; overflow: hidden; color: #fff; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .95rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.tape--a { top: 22px; background: var(--pink); transform: rotate(-2.2deg); }
.tape--b { top: 62px; background: var(--purple); transform: rotate(1.6deg); }
.tape__track { display: inline-flex; width: max-content; animation: marq 26s linear infinite; }
.tape--b .tape__track { animation-direction: reverse; }
.tape__track span { padding-right: 1.5rem; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: 4.5rem 1.25rem; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; justify-items: center; }
.sec--pink, .sec--night { max-width: none; }
.sec--pink > *, .sec--night > * { max-width: 960px; width: 100%; }
.sec--pink { background: linear-gradient(160deg, var(--pink) 0%, #ff6fb5 50%, var(--pink-2) 100%); color: #fff; overflow: hidden; }
.sec--pink::before, .sec--night::before {
  content: ''; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: radial-gradient(#fff 1.2px, transparent 1.8px); background-size: 32px 32px;
}
.sec--night { background: radial-gradient(circle at 50% 0, #4b1c78 0, var(--night) 70%); color: #fff; overflow: hidden; }
.sec > * { position: relative; }

.h2 { font-family: var(--f-head); font-weight: 400; text-align: center; font-size: clamp(2rem, 8.5vw, 3.5rem); line-height: 1.05; color: var(--purple); }
.h2 small { display: block; font-family: var(--f-body); font-weight: 700; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--pink); margin-bottom: .6rem; }
.sec--pink .h2, .h2--light { color: #fff; text-shadow: 3px 3px 0 rgba(91, 42, 134, .45); }
.sec--pink .h2 small { color: var(--purple); background: #fff; display: table; margin: 0 auto .7rem; padding: .25rem .8rem; border-radius: 999px; text-shadow: none; }
.h2--light small { color: var(--gold); }
.sub { text-align: center; max-width: 42ch; opacity: .92; }
.note { font-weight: 600; text-align: center; font-size: 1.05rem; }

/* ---------- Reveal al scrollear ---------- */
.js .reveal { opacity: 0; transform: translateY(46px) scale(.95); transition: opacity .7s ease, transform .9s var(--spring); }
.js .reveal[data-r="left"] { transform: translateX(-36px) rotate(-3deg); }
.js .reveal[data-r="right"] { transform: translateX(36px) rotate(3deg); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Expediente (papel) ---------- */
.paper {
  position: relative; width: 100%; max-width: 680px; padding: 2rem 1.3rem 1.6rem 3.4rem; border-radius: 6px;
  font-family: var(--f-type); font-size: clamp(.92rem, 3.4vw, 1.08rem); line-height: 1.9; color: #2b2b3a;
  background:
    linear-gradient(90deg, transparent 2.6rem, rgba(220, 40, 80, .55) 2.6rem, rgba(220, 40, 80, .55) calc(2.6rem + 2px), transparent calc(2.6rem + 2px)),
    repeating-linear-gradient(#fffdf7 0, #fffdf7 1.8rem, #cfe6ff 1.8rem, #cfe6ff calc(1.8rem + 1px));
  box-shadow: 0 2px 0 #fff, 0 20px 40px rgba(91, 42, 134, .22);
  transform-origin: top center;
}
.paper::before { content: ''; position: absolute; left: .9rem; top: 1.2rem; bottom: 1.2rem; width: 10px; background: radial-gradient(circle, var(--blush) 4px, #d8c6cf 5px, transparent 6px) 0 0 / 10px 3.2rem repeat-y; }
.paper__head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .72rem; letter-spacing: .08em; color: var(--purple); }
.paper__caratula { font-family: var(--f-head); font-weight: 400; font-size: clamp(1.3rem, 5.4vw, 1.9rem); line-height: 1.25; margin: .7rem 0 1rem; color: var(--pink); text-align: center; }
.paper p { margin-bottom: 1rem; }
.paper b { color: var(--purple); }
.caret { display: inline-block; width: .55ch; height: 1.1em; background: var(--pink); vertical-align: -.15em; margin-left: 2px; animation: blink .6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.paper__sign { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.sign { white-space: nowrap; font-family: var(--f-script); font-size: clamp(1.3rem, 6vw, 2rem); color: var(--purple); clip-path: inset(0 100% 0 0); transition: clip-path 1.6s ease .3s; transform: rotate(-4deg); }
.paper.signed .sign { clip-path: inset(0 0 0 0); }
.paper__stamp {
  border: 4px double var(--red); color: var(--red); font-family: var(--f-head); text-transform: uppercase; text-align: center;
  padding: .3rem .9rem; font-size: 1.3rem; line-height: 1.1; border-radius: 8px; opacity: 0; rotate: -14deg; scale: 2.4;
}
.paper__stamp small { font-family: var(--f-type); font-size: .7rem; letter-spacing: .1em; }
.paper.signed .paper__stamp { animation: slam .55s var(--spring) 1.8s forwards; }
@keyframes slam { 0% { opacity: 0; scale: 2.4; } 60% { opacity: 1; scale: .92; } 100% { opacity: .88; scale: 1; } }

/* ---------- Audiencia ---------- */
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; width: 100%; max-width: 480px; }
.count__box { background: #fff; color: var(--purple); border-radius: 16px; padding: .8rem .2rem; text-align: center; box-shadow: 0 6px 0 var(--purple), 0 14px 24px rgba(0, 0, 0, .15); }
.count__box b { display: block; font-family: var(--f-head); font-weight: 400; font-size: clamp(1.7rem, 8vw, 2.6rem); line-height: 1; color: var(--pink); font-variant-numeric: tabular-nums; }
.count__box span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.count__pending { text-align: center; font-weight: 600; font-size: 1.05rem; }
.gavel { display: block; width: 120px; height: 100px; margin: 0 auto .4rem; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.gavel__arm { transform-box: view-box; transform-origin: 46px 82px; animation: gavel 1.6s ease-in-out infinite; }
@keyframes gavel { 0%, 38% { transform: rotate(-34deg); } 50% { transform: rotate(3deg); } 56% { transform: rotate(-9deg); } 62%, 66% { transform: rotate(0deg); } 100% { transform: rotate(-34deg); } }
.gavel__hit { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hitfx 1.6s ease-out infinite; }
@keyframes hitfx { 0%, 47% { opacity: 0; transform: scale(.4); } 52% { opacity: 1; transform: scale(1.1); } 72%, 100% { opacity: 0; transform: scale(1.5); } }
span.gavel { font-size: 3.2rem; width: auto; height: auto; animation: none; }
[hidden] { display: none !important; }

.tickets { display: grid; gap: 1rem; width: 100%; margin-top: .6rem; }
.ticket {
  position: relative; background: #fff; color: var(--ink); border-radius: 18px; padding: 1.3rem 1rem 1.1rem; text-align: center; display: grid; gap: .1rem;
  box-shadow: 0 8px 0 rgba(91, 42, 134, .8), 0 16px 26px rgba(0, 0, 0, .15);
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket__ico { font-size: 2rem; }
.ticket small { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.ticket strong { font-family: var(--f-head); font-weight: 400; font-size: 1.6rem; color: var(--purple); }
.ticket em { font-style: normal; font-size: .82rem; opacity: .75; }

/* ---------- Línea de tiempo ---------- */
.tl { list-style: none; margin: 1rem 0 0; padding: 0; position: relative; width: 100%; display: grid; gap: 2rem; --p: 0; }
.tl__line { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--pink-soft); }
.tl__line::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%); border-radius: 4px; background: linear-gradient(var(--pink), var(--purple-2)); box-shadow: 0 0 14px var(--pink); }
.tl__item { position: relative; padding-left: 62px; }
.tl__node {
  position: absolute; left: 0; top: 6px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-head); font-size: 1.5rem; color: #fff; background: var(--pink); border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--pink), 0 8px 16px rgba(255, 61, 154, .4); transition: transform .5s var(--spring), background .4s;
}
.js .tl__item:not(.in) .tl__node { transform: scale(.4); background: var(--pink-soft); }
.card {
  position: relative; background: #fff; border-radius: 22px; padding: 1.2rem 1.2rem 1.3rem; border: 2px solid var(--pink-soft);
  box-shadow: 0 8px 0 var(--pink-soft), 0 18px 30px rgba(91, 42, 134, .12); transition: transform .3s var(--spring), box-shadow .3s;
}
.card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 12px 0 var(--pink-soft), 0 24px 34px rgba(91, 42, 134, .18); }
.card__ico { position: absolute; right: .9rem; top: -1.1rem; font-size: 2.2rem; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15)); animation: floaty 3.6s ease-in-out infinite; }
.card small { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.card h3 { font-family: var(--f-head); font-weight: 400; font-size: 1.45rem; color: var(--purple); margin: .15rem 0 .35rem; line-height: 1.15; padding-right: 2.4rem; }
.card p { font-size: .95rem; }
.link { display: inline-block; margin-top: .7rem; color: var(--pink); font-weight: 700; text-decoration: none; }
.chips { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--blush); border: 2px solid var(--pink-soft); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; font-weight: 600; color: var(--purple); transition: transform .2s var(--spring), background .2s; }
.chips li:hover { transform: scale(1.1) rotate(-3deg); background: var(--pink-soft); }
.chips--big { justify-content: center; }
.chips--big li { font-size: 1.05rem; padding: .5rem 1.1rem; background: #fff; }

/* ---------- Juego ---------- */
.game { width: 100%; max-width: 440px; display: grid; gap: 1rem; justify-items: center; }
.stage {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; cursor: crosshair; user-select: none;
  border: 6px solid #fff; box-shadow: 0 0 0 4px var(--pink), 0 24px 50px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 61, 154, .35);
  -webkit-tap-highlight-color: transparent;
}
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stage canvas, .stage__proj { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__paint.wash { animation: washaway .9s ease-in forwards; }
@keyframes washaway { to { transform: translateY(40px); opacity: 0; filter: blur(6px); } }
.stage.hit .stage__img { animation: hit .28s ease; }
@keyframes hit { 30% { transform: scale(1.04) rotate(-.8deg); } 60% { transform: scale(.985) rotate(.6deg); } }
.proj { position: absolute; left: 0; top: 0; font-size: 2rem; will-change: transform; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.stage__hint { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; background: rgba(42, 15, 69, .8); color: #fff; font-weight: 600; font-size: .85rem; padding: .4rem 1rem; border-radius: 999px; pointer-events: none; transition: opacity .4s; animation: bob2 1.4s ease-in-out infinite; }
@keyframes bob2 { 50% { translate: -50% -6px; } }
.stage__hint.off { opacity: 0; }
.stamp {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; text-align: center; pointer-events: none;
  translate: -50% -50%; rotate: -12deg; scale: 3; opacity: 0; padding: .5rem 1.3rem; border: 6px solid var(--red); border-radius: 12px; color: var(--red); background: rgba(255, 255, 255, .85);
  font-family: var(--f-head); text-transform: uppercase; line-height: 1.05;
}
.stamp span { font-size: 1.4rem; }
.stamp b { font-weight: 400; font-size: 2.8rem; letter-spacing: .04em; }
.stamp.show { animation: stampin 1.5s var(--spring) forwards; }
@keyframes stampin { 0% { opacity: 0; scale: 3; } 14% { opacity: 1; scale: .95; } 22% { scale: 1.04; } 30%, 80% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }

.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.tool {
  display: inline-flex; align-items: center; gap: .4rem; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff;
  border-radius: 999px; padding: .5rem .95rem; font-weight: 600; font-size: .88rem; transition: transform .2s var(--spring), background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.tool span { font-size: 1.15rem; }
.tool:hover { transform: translateY(-2px); }
.tool:active { transform: scale(.94); }
.tool.is-on { background: var(--pink); border-color: #fff; box-shadow: 0 0 20px rgba(255, 61, 154, .7); transform: scale(1.06); }
.tool--no { border-style: dashed; border-color: rgba(255, 120, 120, .7); }
.tool--no.is-on { background: var(--red); }
.game__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.game__count b { font-family: var(--f-head); font-weight: 400; font-size: 1.6rem; color: var(--gold); }
.toast { min-height: 1.6em; text-align: center; font-weight: 600; color: var(--pink-soft); }

/* ---------- Reglamento ---------- */
.rules { display: grid; gap: 1.4rem; width: 100%; }
.rule { position: relative; border-radius: 22px; padding: 1.5rem 1.3rem; overflow: hidden; }
.rule h3 { font-family: var(--f-head); font-weight: 400; font-size: 1.8rem; margin-bottom: .3rem; }
.rule--ok { background: linear-gradient(135deg, #fff, var(--pink-soft)); border: 3px solid var(--pink); box-shadow: 0 8px 0 var(--pink); }
.rule--ok h3 { color: var(--pink); }
.rule--no { background: #fff; border: 3px solid var(--red); box-shadow: 0 8px 0 var(--red); padding-top: 2.4rem; padding-bottom: 4.2rem; }
.rule--no h3 { color: var(--red); }
.rule__tape { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: repeating-linear-gradient(-45deg, #ffd23f 0 16px, #222 16px 32px); animation: tapemove 1.2s linear infinite; background-size: 45px 100%; }
@keyframes tapemove { to { background-position: 45px 0; } }
.rule__stamp { position: absolute; right: 1rem; bottom: .9rem; rotate: -8deg; font-family: var(--f-head); text-transform: uppercase; font-size: 1.3rem; color: var(--red); border: 4px double var(--red); padding: .1rem .7rem; border-radius: 6px; opacity: .8; }
.accept { text-align: center; display: grid; gap: .8rem; margin-top: .6rem; }
.accept h3 { font-family: var(--f-script); font-weight: 400; font-size: 1.7rem; color: var(--pink); }

/* ---------- Dress code ---------- */
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; }
.sw { background: #fff; color: var(--ink); border-radius: 20px; padding: .8rem; display: grid; gap: .1rem; text-align: center; box-shadow: 0 6px 0 rgba(91, 42, 134, .8); transition: transform .3s var(--spring); }
.sw:hover { transform: translateY(-6px) rotate(-2deg); }
.sw i { display: block; height: 74px; border-radius: 14px; background: var(--c); margin-bottom: .5rem; box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .1), inset 0 6px 10px rgba(255, 255, 255, .5); }
.sw b { font-family: var(--f-head); font-weight: 400; color: var(--purple); font-size: 1.15rem; }
.sw small { font-size: .75rem; opacity: .75; }

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; }
.stat { background: #fff; border-radius: 20px; padding: 1.1rem .6rem; text-align: center; border: 2px solid var(--pink-soft); box-shadow: 0 6px 0 var(--pink-soft); display: grid; gap: .1rem; }
.stat span { font-size: 2rem; }
.stat b { font-family: var(--f-head); font-weight: 400; font-size: 2.3rem; color: var(--pink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { font-size: .78rem; font-weight: 600; color: var(--purple); }

/* ---------- RSVP ---------- */
.rsvp { width: 100%; max-width: 440px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); border-radius: 24px; padding: 1.4rem; backdrop-filter: blur(6px); }
.rsvp label { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .3rem; font-weight: 600; font-size: .9rem; text-align: left; }
.rsvp input, .rsvp select {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; padding: .8rem 1rem; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--ink); outline: none;
}
.rsvp input:focus, .rsvp select:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 61, 154, .35); }

/* ---------- Footer / sticky ---------- */
.foot { text-align: center; padding: 3.5rem 1.25rem 5.5rem; display: grid; gap: .8rem; justify-items: center; background: var(--night); color: #fff; }
.foot__script { font-family: var(--f-script); font-size: 2.2rem; color: var(--pink-2); }
.sticky {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 140%; z-index: 700;
  background: var(--pink); color: #fff; font-weight: 700; text-decoration: none; padding: .62rem 1.2rem; font-size: .9rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 0 var(--purple), 0 12px 24px rgba(0, 0, 0, .3); transition: translate .5s var(--spring);
}
.sticky.show { translate: -50% 0; animation: pulsebtn 2.4s ease-in-out infinite; }
@keyframes pulsebtn { 50% { scale: 1.06; } }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; text-align: left; padding: 5rem 2rem 6rem; gap: 3rem; }
  .hero__text { justify-items: start; }
  .title__big { font-size: clamp(3.8rem, 9vw, 7.4rem); }
  .tickets { grid-template-columns: repeat(3, 1fr); }
  .rules { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }

  .tl { gap: 2.6rem; }
  .tl__line { left: 50%; margin-left: -2px; }
  .tl__item { width: 50%; padding-left: 0; padding-right: 54px; }
  /* el primer hijo es la línea, así que los artículos impares son nth-child(even) */
  .tl__item:nth-child(even) .tl__node { left: auto; right: -24px; }
  .tl__item:nth-child(odd) { margin-left: 50%; padding-right: 0; padding-left: 54px; }
  .tl__item:nth-child(odd) .tl__node { left: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bg-hearts { display: none; }
}

/* ---------- Celulares chicos ---------- */
@media (max-width: 380px) {
  .kicker { font-size: .68rem; letter-spacing: .1em; padding: .4rem .8rem; }
  .title__big { font-size: clamp(3rem, 15vw, 7.6rem); }
  .h2 { font-size: clamp(1.8rem, 8vw, 3.5rem); }
  .card h3 { font-size: 1.3rem; }
  .btn--big { font-size: .95rem; padding: .9rem 1.2rem; }
}
