/* =========================================================
   Paleta y tipografías (tomadas del video de ejemplo)
   ========================================================= */
:root {
  --bg: #f7f2f5;
  --bg-2: #f1ebf3;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --line: rgba(120, 90, 105, 0.14);
  --ink: #2a2226;
  --ink-soft: #4a3f45;
  --muted: #8e8389;
  --wine: #9b1035;
  --wine-dark: #7a0c2a;
  --heart: #c8102e;
  --wave-off: #d8ced3;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 26px;
  --shadow: 0 10px 40px -12px rgba(90, 40, 60, 0.18), 0 2px 8px rgba(90, 40, 60, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ---------- utilidades ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--sm { font-size: 9.5px; letter-spacing: 0.3em; }
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  margin-top: 10px;
  color: var(--ink);
}
.subtitle { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 10px auto 0; max-width: 300px; }
.glass {
  background: var(--card);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.center { text-align: center; }

/* Aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter 1s ease;
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* =========================================================
   PORTADA
   ========================================================= */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 22px;
  background: linear-gradient(180deg, #faf6f8 0%, var(--bg-2) 100%);
  transition: opacity 1.1s ease, filter 1.1s ease, transform 1.1s ease;
}
.cover.gone { opacity: 0; filter: blur(12px); transform: scale(1.04); pointer-events: none; }
.cover-card {
  width: 100%;
  max-width: 340px;
  padding: 36px 26px 30px;
  text-align: center;
  animation: floatIn 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.cover-top { line-height: 1.9; max-width: 260px; margin: 0 auto 4px; text-wrap: balance; }
.cover-name { font-family: var(--serif); font-weight: 400; font-size: 46px; margin-top: 6px; line-height: 1.1; }
.cover-divider { width: 44px; height: 1px; background: var(--muted); opacity: .5; margin: 16px auto; }
.cover-from { font-size: 14px; color: var(--ink-soft); }
.cover-from strong { font-weight: 600; }
.cover-quote { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-top: 18px; }
.cover-hint { margin-top: 34px; font-size: 12.5px; color: var(--muted); animation: floatIn 1.2s .3s both; }
.heart-btn { margin-top: 22px; width: 120px; height: 120px; display: grid; place-items: center; animation: floatIn 1.2s .5s both; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.heart-svg {
  width: 84px; height: 84px;
  overflow: visible;
  animation: breathe 2.2s ease-in-out infinite;
  transition: filter .6s ease;
}
.heart-outline { fill: none; stroke: var(--wine); stroke-width: .9; transition: stroke .6s ease, stroke-width .6s ease; }
/* Nivel del líquido: se mueve con transform desde JS */
.heart-level { transform: translateY(22px); transition: transform .7s cubic-bezier(.3,1.4,.5,1); }
.liquid { fill: var(--heart); animation: wave 1.6s linear infinite; }
.liquid--back { fill: #e0526b; opacity: .55; animation-duration: 2.4s; animation-direction: reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-12px); } }
.heart-btn.tap .heart-svg { animation: beat .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes beat { 0% { transform: scale(1); } 35% { transform: scale(.88); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.heart-btn.filled .heart-outline { stroke: var(--heart); stroke-width: 1.2; }
.heart-btn.filled .heart-svg {
  animation: pop .9s cubic-bezier(.2,1.6,.4,1) both;
  filter: drop-shadow(0 10px 24px rgba(200, 16, 46, .45));
}
.heart-count { margin-top: 6px; min-height: 18px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--wine); transition: opacity .3s ease; }
.cover-hint { transition: opacity .3s ease; }
/* Corazoncitos que saltan del corazón en cada toque */
.spark { position: fixed; z-index: 80; pointer-events: none; color: var(--heart); font-size: 14px; animation: spark .9s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes spark {
  from { transform: translate(-50%, -50%) scale(.6); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); opacity: 0; }
}
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pop { 0% { transform: scale(.8); } 45% { transform: scale(1.35); } 70% { transform: scale(1.1); } 100% { transform: scale(1.22); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* =========================================================
   APP
   ========================================================= */
.app { max-width: 480px; margin: 0 auto; padding-bottom: 40px; }
.section { padding: 64px 22px 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 72vh; min-height: 460px; max-height: 720px; overflow: hidden; border-radius: 0 0 30px 30px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.app.open .hero-img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(25,8,15,.72) 100%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; color: #fff; padding: 0 20px; }
.hero-name { font-family: var(--serif); font-weight: 400; font-size: 44px; margin-top: 4px; }
.hero-couple { font-family: var(--serif); font-style: italic; font-size: 16px; opacity: .92; margin-top: 2px; }
.hero-meta { margin-top: 14px; font-size: 9.5px; }
.app .hero-text > * { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.app.open .hero-text > * { opacity: 1; transform: none; }
.app.open .hero-text > *:nth-child(2) { transition-delay: .25s; }
.app.open .hero-text > *:nth-child(3) { transition-delay: .45s; }
.app.open .hero-text > *:nth-child(4) { transition-delay: .65s; }

/* ---------- Canción ---------- */
.disc-wrap { position: relative; width: 190px; height: 190px; margin: 26px auto 22px; }
.disc {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(90, 30, 50, .45), inset 0 0 0 6px rgba(255,255,255,.5);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
}
.disc img { width: 100%; height: 100%; object-fit: cover; }
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.0) 30%, rgba(0,0,0,.18) 100%); }
.disc.spinning { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--wine); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(155, 16, 53, .6);
  transition: transform .2s ease, background .2s ease;
  flex-shrink: 0;
}
.play-btn:active { transform: scale(.92); }
.play-btn svg { width: 20px; height: 20px; fill: currentColor; }
.play-btn .i-pause, .play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
.play-btn--lg { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); z-index: 2; }
.play-btn--lg:active { transform: translate(-50%, -50%) scale(.92); }
.play-btn--lg svg { width: 24px; height: 24px; }
.song-title { font-family: var(--serif); font-weight: 400; font-size: 20px; }
#songArtist { margin-top: 6px; }
.yt-wrap {
  width: 200px; height: 113px; margin: 18px auto 0;
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
  opacity: .9;
}
.yt-wrap iframe { width: 100%; height: 100%; display: block; border: 0; }
.yt-wrap.sp { width: 100%; max-width: 340px; height: 80px; border-radius: 12px; opacity: 1; }
.yt-wrap:empty, .yt-wrap.hidden { display: none; }
.song-hint { font-size: 12px; color: var(--muted); margin-top: 10px; min-height: 1em; }
.song-link { display: inline-block; margin-top: 6px; padding: 8px 16px; border-radius: 99px; background: rgba(155,16,53,.08); color: var(--wine); text-decoration: none; font-weight: 500; }

/* ---------- Galería ---------- */
.carousel { margin: 24px -22px 0; }
.track {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 22px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  flex: 0 0 76%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow);
  transform: scale(.94);
  opacity: .75;
  transition: transform .5s ease, opacity .5s ease;
  background: #e9e1e6;
}
.slide.active { transform: scale(1); opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-count {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 500; letter-spacing: .05em;
  color: #fff; background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 4px 8px; border-radius: 99px;
}
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.nav-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  font-size: 18px; line-height: 1; color: var(--ink-soft);
  display: grid; place-items: center;
}
.dots { display: flex; gap: 5px; align-items: center; }
.dot { width: 5px; height: 5px; border-radius: 99px; background: #d4c9cf; transition: width .35s ease, background .35s ease; }
.dot.active { width: 18px; background: var(--wine); }

/* ---------- Carta ---------- */
.letter-body { margin-top: 18px; }
.letter-body p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.letter-body p:first-child { font-size: 18px; color: var(--ink); }
.letter-sign { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }
.letter-dash { margin-top: 14px; }

/* ---------- Contador + Línea del tiempo ---------- */
.counter {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 260px; margin: 24px auto 0; padding: 22px 18px 18px;
}
.counter-num { font-family: var(--serif); font-size: 50px; line-height: 1; color: var(--wine); font-variant-numeric: lining-nums tabular-nums; }
.counter-since { font-size: 11.5px; color: var(--muted); }
.where { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.where svg { width: 15px; height: 15px; fill: var(--wine); }

.timeline { list-style: none; position: relative; margin-top: 30px; padding-left: 22px; text-align: left; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1.5px;
  background: linear-gradient(180deg, var(--wine), rgba(155,16,53,.12));
  border-radius: 2px;
}
.t-item { position: relative; margin-bottom: 16px; }
.t-item::before {
  content: ""; position: absolute; left: -22px; top: 24px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--wine); box-shadow: 0 0 0 4px rgba(155,16,53,.12);
}
.t-card { display: flex; gap: 12px; padding: 16px; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.t-date { display: flex; align-items: center; gap: 5px; }
.t-date svg { width: 11px; height: 11px; fill: none; stroke: var(--muted); stroke-width: 2; }
.t-title { font-family: var(--serif); font-weight: 400; font-size: 17px; margin: 4px 0 6px; color: var(--ink); }
.t-text { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.t-body { flex: 1; min-width: 0; }
.t-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.t-thumb { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px -4px rgba(90,40,60,.3); transition: transform .2s ease; }
.t-thumb:active { transform: scale(.95); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 20px;
  background: rgba(25, 10, 18, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.94); transition: transform .35s ease; }
.lightbox.show img { transform: none; }

/* ---------- Mensaje de voz ---------- */
.voice { padding: 20px 18px 18px; }
.voice-head { display: flex; align-items: center; gap: 12px; }
.mic { width: 34px; height: 34px; border-radius: 50%; background: var(--wine); display: grid; place-items: center; }
.mic svg { width: 17px; height: 17px; fill: #fff; }
.voice-from { font-size: 14px; font-weight: 600; margin-top: 2px; }
.wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 64px; margin: 18px 0 14px; cursor: pointer; touch-action: none; }
.wave span { flex: 1; max-width: 4px; border-radius: 4px; background: var(--wave-off); transition: background .15s ease; }
.wave span.on { background: var(--wine); }
.voice-controls { display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 3px; border-radius: 3px; background: var(--wave-off); overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: var(--wine); }
.voice-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }

/* ---------- Mapa ---------- */
.map-wrap { position: relative; margin-top: 24px; }
.map { height: 270px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #e8e3e6; z-index: 0; }
.map-fallback { height: 100%; display: grid; place-items: center; font-size: 13px; color: var(--muted); padding: 20px; }
.map-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 500; pointer-events: none;
  background: rgba(30, 20, 25, .78); color: #fff;
  font-size: 11px; padding: 6px 12px; border-radius: 99px; white-space: nowrap;
}
.pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  background: var(--wine); transform: rotate(-45deg);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(155,16,53,.45);
  border: 2px solid #fff;
}
.pin span { transform: rotate(45deg); color: #fff; font: 600 12px var(--sans); }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper { border-radius: 16px; }
.leaflet-popup-content { font-family: var(--serif); font-size: 14px; margin: 10px 14px; }
.places { list-style: none; margin-top: 20px; text-align: left; }
.place { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.place-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--wine); color: #fff; font-size: 11px; font-weight: 600;
  display: grid; place-items: center; margin-top: 2px;
}
.place-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place-name { font-family: var(--serif); font-size: 15.5px; }
.tag { font-size: 9.5px; padding: 3px 8px; border-radius: 99px; background: rgba(155,16,53,.1); color: var(--wine); font-weight: 500; }
.place-text { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 4px; }
.place-detail { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.place-detail svg { width: 11px; height: 11px; fill: var(--muted); }

/* ---------- Foto final ---------- */
.final { position: relative; margin-top: 64px; height: 78vh; min-height: 480px; max-height: 760px; overflow: hidden; }
.final-img { width: 100%; height: 100%; object-fit: cover; }
.final-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,242,245,0) 30%, rgba(247,242,245,.75) 66%, var(--bg) 100%); }
.final-text { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; padding: 0 22px; }
.final-heart { font-size: 26px; color: var(--ink); display: inline-block; animation: breathe 2.4s ease-in-out infinite; }
.final-names { font-family: var(--serif); font-weight: 400; font-size: 32px; margin-top: 6px; }
.final-phrase { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); margin: 8px 0 14px; }

/* ---------- Última sorpresa ---------- */
.surprise { padding-top: 40px; padding-bottom: 60px; }
.brand { color: var(--muted); }
.surprise-card { margin-top: 70px; padding: 34px 24px 28px; }
.bubble-heart {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(155,16,53,.08); color: var(--heart); font-size: 20px;
  animation: breathe 2s ease-in-out infinite;
}
.surprise-title { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; margin-top: 16px; }
.surprise-text { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.surprise-italic { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); margin-top: 4px; }
.btn-wine {
  margin-top: 26px; padding: 14px 26px; border-radius: 99px;
  background: var(--wine); color: #fff; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 28px -8px rgba(155,16,53,.65);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: glow 2.6s ease-in-out infinite;
}
.btn-wine:active { transform: scale(.96); }
@keyframes glow { 0%,100% { box-shadow: 0 12px 28px -8px rgba(155,16,53,.55); } 50% { box-shadow: 0 12px 34px -4px rgba(155,16,53,.8); } }
.btn-soft { padding: 10px 20px; border-radius: 99px; background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   QUIZ + VALE
   ========================================================= */
.quiz {
  position: fixed; inset: 0; z-index: 60;
  background: linear-gradient(180deg, #faf6f8 0%, var(--bg-2) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.quiz.show { opacity: 1; pointer-events: auto; }
.quiz-close { position: absolute; top: 18px; right: 20px; font-size: 26px; color: var(--muted); width: 36px; height: 36px; }
.quiz-stage, .voucher-stage { width: 100%; max-width: 380px; text-align: center; transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
.quiz-intro { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); max-width: 300px; margin: 0 auto; }
.quiz-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 18px; }
.quiz-card { padding: 22px 18px; text-align: left; transition: opacity .35s ease, transform .35s ease; }
.quiz-card.leaving { opacity: 0; transform: translateX(-24px); }
.quiz-card.entering { opacity: 0; transform: translateX(24px); }
.q-title { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; margin: 8px 0 18px; }
.q-opt {
  display: block; width: 100%; text-align: left;
  padding: 13px 16px; margin-top: 10px;
  border-radius: 99px; background: rgba(255,255,255,.85);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--ink);
  transition: background .3s ease, color .3s ease, transform .2s ease;
}
.q-opt.right { background: var(--wine); color: #fff; border-color: var(--wine); box-shadow: 0 10px 22px -8px rgba(155,16,53,.6); }
.q-opt.wrong { animation: shake .45s ease; background: rgba(200,16,46,.08); color: var(--wine); }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.quiz-feedback { font-family: var(--serif); font-size: 17px; margin-top: 18px; min-height: 26px; color: var(--ink-soft); }
.quiz-feedback.ok { color: var(--wine); }
.quiz-feedback.no { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }

.voucher-stage { position: absolute; opacity: 0; transform: scale(.94); filter: blur(8px); pointer-events: none; padding: 0 20px; }
.quiz.done .quiz-stage { opacity: 0; filter: blur(8px); pointer-events: none; }
.quiz.done .voucher-stage { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .4s; }
.ticket {
  position: relative;
  padding: 26px 22px 22px;
  border: 1.5px dashed rgba(155,16,53,.45);
  border-radius: 22px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-2); border: 1.5px solid rgba(155,16,53,.3);
  transform: translateY(-50%);
}
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.scissors { width: 18px; height: 18px; fill: var(--wine); margin: 0 auto 8px; display: block; }
.ticket-text { font-family: var(--serif); font-size: 21px; line-height: 1.4; margin: 12px 0 14px; color: var(--ink); }
.voucher-stage .brand { margin-top: 18px; }

/* ---------- Corazones flotantes ---------- */
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.fheart { position: absolute; bottom: -30px; color: var(--heart); animation: rise linear forwards; opacity: .9; }
@keyframes rise { to { transform: translateY(-110vh) rotate(var(--r, 20deg)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

@media (min-width: 700px) {
  .hero { border-radius: 0 0 30px 30px; }
  .final { border-radius: 30px; margin-left: 12px; margin-right: 12px; }
}
