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

:root {
  --bg: #FDF3EA; --ink: #3A1F2B; --muted: #6B4F5A; --accent: #C8295A; --accent-2: #E8474F;
  --gold: #FFC93C; --pink: #FFD6DE; --yellow: #FFEFB3; --mint: #CFF0E0; --blue: #DCE4FF;
  --line: #EAD9CC; --radius: 22px;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Nunito, system-ui, sans-serif; font-size: 17px; line-height: 1.5;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; font-weight: 700; margin: 0; line-height: 1.08; }
a { color: inherit; }
.hidden { display: none !important; }

/* ---------- fondo con parallax ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); will-change: transform; }
.b1 { width: 420px; height: 420px; background: var(--pink); top: -140px; right: -160px; }
.b2 { width: 300px; height: 300px; background: var(--mint); top: 46vh; left: -170px; }
.b3 { width: 240px; height: 240px; background: var(--yellow); top: 120vh; right: -110px; }
.b4 { width: 340px; height: 340px; background: var(--blue); top: 190vh; left: -150px; }

/* ---------- barra superior ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 6px; background: rgba(58,31,43,.08); z-index: 50; }
.topbar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 0 6px 6px 0; transition: width .6s var(--ease); }
.counter {
  position: fixed; top: 14px; right: 14px; z-index: 50; background: var(--ink); color: #fff;
  font-family: Fredoka; font-weight: 600; font-size: 15px; padding: 6px 13px; border-radius: 999px;
  transform: translateY(-70px); transition: transform .5s var(--spring); box-shadow: 0 6px 18px rgba(58,31,43,.25);
}
.counter.show { transform: none; }
.counter.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 70px 22px 90px; max-width: 760px; margin: 0 auto; position: relative; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; color: var(--accent); box-shadow: 0 3px 0 var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,41,90,.5); } 70% { box-shadow: 0 0 0 10px rgba(200,41,90,0); } 100% { box-shadow: 0 0 0 0 rgba(200,41,90,0); } }

.clock { position: absolute; right: 22px; top: 70px; width: 104px; height: 104px; }
.clock svg { width: 100%; height: 100%; animation: wobble 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(58,31,43,.12)); }
.hand-m { transform-origin: 60px 60px; animation: spin 1.2s linear infinite; }
.hand-h { transform-origin: 60px 60px; animation: spin 14.4s linear infinite; }
.zz { position: absolute; left: -26px; bottom: 6px; font-size: 26px; animation: puff 1.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes puff { 0%,100% { transform: translateX(0); opacity: .9; } 50% { transform: translateX(-8px); opacity: .4; } }

.title { font-size: clamp(46px, 12vw, 92px); margin-top: 26px; letter-spacing: -.01em; }
.title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-right: .18em; }
.title .w > span { display: inline-block; transform: translateY(110%); animation: up .8s var(--ease) forwards; animation-delay: var(--d); }
.title .hl { background: var(--gold); border-radius: 16px; padding: 0 .16em; }
@keyframes up { to { transform: none; } }

.rise { opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease) forwards; animation-delay: var(--d); }
@keyframes rise { to { opacity: 1; transform: none; } }

.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 20px 0 0; }
.lead b { color: var(--ink); }
.cta {
  align-self: flex-start; margin-top: 28px; display: inline-flex; gap: 10px; align-items: center;
  background: var(--accent); color: #fff; text-decoration: none; font-family: Fredoka; font-weight: 600;
  font-size: 22px; padding: 15px 30px; border-radius: 999px; box-shadow: 0 6px 0 #8E1C40; transition: transform .2s, box-shadow .2s;
}
.cta:active { transform: translateY(5px); box-shadow: 0 1px 0 #8E1C40; }
.cta .arrow { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.stats { display: flex; gap: 10px; margin-top: 34px; }
.stats div { flex: 1; min-width: 0; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 3px 0 var(--line); }
.stats b { display: block; font-family: Fredoka; font-size: 26px; line-height: 1.1; color: var(--accent); }
.stats span { font-size: 13px; color: var(--muted); font-weight: 700; }
.scrollcue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 3px solid var(--ink); border-radius: 14px; opacity: .55; }
.scrollcue span { position: absolute; left: 50%; top: 7px; width: 5px; height: 9px; margin-left: -2.5px; background: var(--ink); border-radius: 3px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- cinta ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 13px 0; transform: rotate(-2deg); margin: 0 -20px 40px; box-shadow: 0 8px 0 rgba(58,31,43,.08); }
.track { display: inline-flex; gap: 38px; white-space: nowrap; animation: slide 22s linear infinite; font-family: Fredoka; font-weight: 600; font-size: 19px; padding-left: 38px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- preguntas ---------- */
main { max-width: 700px; margin: 0 auto; padding: 0 16px 40px; }
.tema { font-family: Fredoka; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 46px 6px 14px; display: flex; align-items: center; gap: 10px; }
.tema::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.tema.in::after { transform: scaleX(1); }

.card {
  background: #fff; border-radius: var(--radius); padding: 24px 20px 22px; margin-bottom: 20px;
  box-shadow: 0 6px 0 var(--line); position: relative; scroll-margin-top: 90px;
}
.reveal { opacity: 0; transform: translateY(46px) scale(.97) rotate(-1deg); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card .qhead { display: flex; gap: 12px; align-items: flex-start; }
.qnum {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: Fredoka; font-weight: 600; font-size: 18px; color: #fff; background: var(--accent);
  transform: scale(0) rotate(-120deg); transition: transform .7s var(--spring) .25s, background .3s;
}
.card.in .qnum { transform: none; }
.card.done .qnum { background: #2BA36B; }
.card h3 { font-size: 22px; padding-top: 6px; }
.nota { font-size: 14px; color: var(--muted); font-weight: 700; margin: 6px 0 0 52px; }
.card.need { animation: shake .5s; box-shadow: 0 6px 0 var(--line), 0 0 0 3px var(--accent); }
@keyframes shake { 20%,60% { transform: translateX(-9px); } 40%,80% { transform: translateX(9px); } }

.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; font: inherit; font-weight: 700; color: var(--ink); background: var(--bg);
  border: 2.5px solid transparent; border-radius: 16px; padding: 13px 15px; cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s var(--spring);
  opacity: 0; transform: translateX(-18px);
}
.card.in .opt { opacity: 1; transform: none; transition: background .25s, border-color .25s, transform .45s var(--spring), opacity .5s; transition-delay: 0s, 0s, calc(var(--i) * 60ms + 250ms), calc(var(--i) * 60ms + 250ms); }
.card.in .opt.touched { transition-delay: 0s; }
.opt:hover { background: #F9E7DA; }
.opt:active { transform: scale(.97); }
.opt .box { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #CDB5A6; display: grid; place-items: center; background: #fff; transition: all .3s var(--spring); }
.opt.multi .box { border-radius: 8px; }
.opt .box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--ease) .08s; }
.opt.sel { background: var(--pink); border-color: var(--accent); }
.opt.sel .box { background: var(--accent); border-color: var(--accent); transform: scale(1.12); }
.opt.sel .box svg { stroke-dashoffset: 0; }
.opt.sel.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.04); } }
.card[data-color="1"] .opt.sel { background: var(--yellow); }
.card[data-color="2"] .opt.sel { background: var(--mint); }
.card[data-color="3"] .opt.sel { background: var(--blue); }
.ripple { position: absolute; border-radius: 50%; background: rgba(200,41,90,.25); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* escala con emojis */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.scale .opt { flex-direction: column; gap: 4px; padding: 12px 2px; text-align: center; justify-content: center; font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }
.scale .emo { font-size: 34px; line-height: 1; transition: transform .4s var(--spring), filter .3s; filter: grayscale(.5); }
.scale .opt.sel .emo { transform: scale(1.3) rotate(-8deg); filter: none; animation: jump .6s var(--spring); }
.scale.has .opt:not(.sel) { opacity: .55; }
@keyframes jump { 30% { transform: translateY(-12px) scale(1.4) rotate(8deg); } }

/* texto */
.txt { margin-top: 18px; position: relative; }
.txt textarea { width: 100%; min-height: 120px; resize: vertical; font: inherit; font-weight: 700; color: var(--ink); background: var(--bg); border: 2.5px solid transparent; border-radius: 16px; padding: 14px; outline: none; transition: border-color .25s, background .25s; }
.txt textarea:focus { border-color: var(--accent); background: #fff; }
.txt .cnt { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 800; color: var(--muted); }

/* ---------- enviar ---------- */
.submit-wrap { text-align: center; padding: 30px 0 10px; }
.almost { font-family: Fredoka; font-weight: 600; font-size: 24px; margin: 0 0 16px; }
.send {
  position: relative; border: 0; cursor: pointer; font-family: Fredoka; font-weight: 600; font-size: 22px;
  color: #fff; background: var(--accent); padding: 18px 40px; border-radius: 999px; min-width: 270px; height: 66px;
  box-shadow: 0 7px 0 #8E1C40; transition: all .45s var(--spring);
}
.send:active { transform: translateY(5px); box-shadow: 0 2px 0 #8E1C40; }
.send .spinner, .send .ok { position: absolute; left: 50%; top: 50%; opacity: 0; transition: opacity .2s; }
.send .spinner { width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.send .ok { width: 34px; height: 34px; margin: -17px 0 0 -17px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.send.loading, .send.success { min-width: 66px; width: 66px; padding: 0; }
.send.loading .label, .send.success .label { opacity: 0; }
.send.loading .spinner { opacity: 1; }
.send.success { background: #2BA36B; box-shadow: 0 7px 0 #1C7149; }
.send.success .ok { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .15s, opacity .1s; }
.err { color: var(--accent); font-weight: 800; margin-top: 16px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* ---------- gracias ---------- */
.thanks { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(58,31,43,.45); backdrop-filter: blur(6px); animation: fade .4s; }
@keyframes fade { from { opacity: 0; } }
.thanks-card { background: #fff; border-radius: 28px; padding: 34px 26px 26px; max-width: 420px; text-align: center; animation: card-in .7s var(--spring); }
@keyframes card-in { from { transform: translateY(60px) scale(.85); opacity: 0; } }
.big-check svg { width: 88px; height: 88px; }
.big-check circle { fill: #2BA36B; transform-origin: center; animation: grow .5s var(--spring) .2s both; }
.big-check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .55s forwards; }
@keyframes grow { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h2 { font-size: 40px; margin-top: 10px; }
.thanks p { color: var(--muted); }
.thanks .num { color: var(--accent); font-family: Fredoka; font-size: 22px; }

.btn { display: inline-block; text-decoration: none; border: 0; cursor: pointer; font-family: Fredoka; font-weight: 600; font-size: 18px; color: #fff; background: var(--accent); padding: 13px 24px; border-radius: 999px; box-shadow: 0 5px 0 #8E1C40; margin-top: 8px; }
.btn.ghost { background: var(--bg); color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.already .card { margin-top: 10px; }
.already h2 { font-size: 26px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 20px 50px; }

@media (min-width: 700px) {
  .clock { width: 150px; height: 150px; top: 110px; }
  .card { padding: 30px 30px 28px; }
  .opts.two { grid-template-columns: 1fr 1fr; }
  .scale .opt { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
