:root {
  --bg: #1d0b17;
  --bg-2: #3b1433;
  --cream: #fff1f4;
  --muted: #dcbac7;
  --pink: #ff8fb8;
  --pink-soft: #ffb8d0;
  --wine: #a3285e;
  --paper: #fff7f9;
  --ink: #47222f;
  --icing: #fff8f0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* ---------- Barra de scroll ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-soft), var(--pink));
}
::-webkit-scrollbar-thumb:hover { background: var(--pink); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--pink) var(--bg); }
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background: radial-gradient(120% 70% at 50% 0%, var(--bg-2) 0%, var(--bg) 65%) fixed, var(--bg);
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }

#sky, #confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sky { z-index: 0; }
#confetti { z-index: 30; }
main { position: relative; z-index: 1; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pink);
}
h1 {
  font-weight: 300;
  font-size: clamp(2.7rem, 10vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: .45em 0 .7em;
}
h1 em { font-style: italic; color: var(--pink-soft); }
h2 {
  font-weight: 300;
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: .35em 0 .45em;
  text-wrap: balance;
}
h2 em { font-style: italic; color: var(--pink); }
.lead { color: var(--muted); max-width: 34ch; margin: 0 auto; text-wrap: balance; }

.screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) 16px;
  text-align: center;
}
.ornament { text-align: center; color: var(--pink); opacity: .5; font-size: .9rem; }

/* ---------- Animaciones de entrada ---------- */
.fade-up { animation: fadeUp 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Contraseña ---------- */
.gate { transition: opacity .6s ease, scale .6s ease; }
.gate.leaving { opacity: 0; scale: .96; }
.lock { width: 64px; height: 64px; color: var(--pink); filter: drop-shadow(0 8px 24px rgba(255, 143, 184, .35)); }
.lock .shackle { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.lock.open .shackle { transform: translate(14px, -6px) rotate(18deg); transform-origin: 44px 30px; }
.gate-title { font-size: clamp(2.4rem, 9vw, 4rem); margin: .35em 0 .3em; }
.gate .lead { max-width: 30ch; font-style: italic; font-size: 1.1rem; }
.gate-form { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 34px; width: 100%; }
.date-pick { display: flex; gap: 10px; width: min(420px, 100%); }
.date-pick label { display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: left; }
.date-pick label:nth-child(2) { flex: 1.6; }
.date-pick span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--pink); padding-left: 4px; }
.date-pick select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 0 34px 0 14px;
  border: 1px solid rgba(255, 143, 184, .35);
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff8fb8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 13px center / 11px no-repeat,
    rgba(255, 255, 255, .04);
  color: var(--cream);
  color-scheme: dark;
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
/* lista desplegable (Windows/Android/Firefox la pintan en blanco si no se fija) */
.date-pick select option {
  background-color: #2a1024;
  color: var(--cream);
  font-family: var(--serif);
}
.date-pick select option:checked { background-color: #a3285e; color: #fff; }
.date-pick select option[value=""] { color: var(--muted); }
.date-pick select:hover, .date-pick select:focus { border-color: var(--pink); background-color: rgba(255, 143, 184, .08); }
.date-pick select:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.gate-form .btn { min-width: 180px; }
.gate-msg { min-height: 1.6em; font-family: var(--hand); font-size: 1.55rem; color: var(--pink-soft); }
.gate-msg.bad { color: var(--muted); }
.shake { animation: shake .45s ease; }
@keyframes shake {
  20%, 60% { translate: -8px 0; }
  40%, 80% { translate: 8px 0; }
}

/* ---------- Sobre ---------- */
.envelope {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 3 / 2;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 900px;
}
.envelope:not(.open) { animation: fadeUp 1.1s cubic-bezier(.2, .7, .2, 1) .35s both, float 4.5s ease-in-out 1.5s infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }

.envelope > span { position: absolute; border-radius: 6px; }
.env-back {
  inset: 0;
  z-index: 1;
  background: #e898b2;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .7);
}
.env-letter {
  left: 6%; right: 6%; top: 7%; bottom: 6%;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 9%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1) .45s;
}
.env-front {
  inset: 0;
  z-index: 3;
  background: linear-gradient(160deg, #fbc9d8, #f0a7c0);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  left: 0; right: 0; top: 0; height: 60%;
  z-index: 4;
  background: linear-gradient(180deg, #f5b6ca, #e693ae);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), z-index 0s .3s;
}
.envelope .seal {
  left: 50%; top: 56%;
  z-index: 5;
  width: 56px; height: 56px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #d6508a, var(--wine) 70%);
  color: #ffe3ec;
  font-style: italic;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 0 0 4px rgba(255, 255, 255, .08);
  transition: opacity .3s, transform .3s;
}
.envelope.open { cursor: default; }
.envelope.open .seal { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-letter { transform: translateY(-48%); }

.hint {
  margin-top: 30px;
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--muted);
  transition: opacity .4s;
}
.hint.gone { opacity: 0; }

/* ---------- Carta ---------- */
.letter {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(32px, 7vw, 68px) clamp(24px, 7vw, 68px);
  text-align: left;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(214, 186, 160, .35), transparent 60%),
    var(--paper);
  border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75);
  rotate: -.6deg;
}
.letter p { font-family: var(--hand); font-size: clamp(1.45rem, 4.4vw, 1.8rem); line-height: 1.35; }
.letter #letterBody p { margin-top: 1em; }
.letter #letterBody:first-child p:first-child { margin-top: 0; }
.letter-greeting { font-weight: 700; }
.letter-bye { margin-top: 1.4em; }
.letter-sign { font-weight: 700; font-size: clamp(1.8rem, 5.5vw, 2.2rem) !important; color: var(--wine); }

/* ---------- Contador ---------- */
.counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 20px);
  max-width: 640px;
  margin: 32px auto 28px;
}
.unit {
  padding: 18px 4px 14px;
  border: 1px solid rgba(255, 143, 184, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}
.unit b {
  display: block;
  font-weight: 300;
  font-size: clamp(1.5rem, 6.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.unit span { font-size: clamp(.58rem, 2vw, .72rem); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.counter-note { font-style: italic; }
.counter-intro { margin-top: 14px; font-style: italic; }

/* ---------- Polaroids ---------- */
.polaroid {
  padding: 10px 10px 0;
  border: 0;
  border-radius: 3px;
  background: #fffafb;
  color: var(--ink);
  text-align: center;
  cursor: zoom-in;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .75);
  rotate: var(--r, 0deg);
  transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1), rotate .35s, scale .35s;
}
.polaroid:hover { rotate: 0deg; scale: 1.03; }
.ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f1dfe5; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { display: block; padding: 10px 4px 14px; font-family: var(--hand); font-size: clamp(1.25rem, 3.8vw, 1.5rem); line-height: 1.15; }
.cap small {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a0828d;
}

/* ---------- Viajes ---------- */
.marquee, .carousel { width: 100vw; margin-left: calc(50% - 50vw); }
.marquee {
  overflow: hidden;
  margin-top: 34px;
  padding: 12px 0;
  border-block: 1px solid rgba(255, 143, 184, .18);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 50s linear infinite; }
.place, .sep { padding-right: 22px; white-space: nowrap; }
.place { font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.3; }
.place:nth-child(4n + 1) { color: var(--pink); }
.sep { color: var(--pink); font-size: .85rem; opacity: .7; }
@keyframes marquee { to { translate: -50% 0; } }

.carousel { position: relative; margin-top: 30px; }
.car-track {
  --h: min(320px, 62vw);
  display: flex;
  gap: 22px;
  padding: 24px calc(50vw - var(--h) * .4) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track .polaroid { flex: 0 0 auto; scroll-snap-align: center; }
/* foto completa, sin recortar caras: el ancho sale de la proporción real */
.car-track .ph { height: var(--h); aspect-ratio: var(--ar, 4 / 3); }
.car-btn {
  position: absolute;
  top: 46%;
  z-index: 2;
  width: 52px;
  height: 52px;
  translate: 0 -50%;
  border: 1px solid rgba(255, 241, 244, .25);
  border-radius: 50%;
  background: rgba(29, 11, 23, .75);
  backdrop-filter: blur(6px);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.car-btn:hover { border-color: var(--pink); background: rgba(58, 20, 51, .9); }
.car-btn.prev { left: max(16px, calc(50vw - 480px)); }
.car-btn.next { right: max(16px, calc(50vw - 480px)); }
/* en pantallas grandes la fila arranca alineada con el contenido y las flechas quedan fuera */
@media (min-width: 900px) {
  .car-track {
    padding-inline: max(24px, calc(50vw - 480px));
    scroll-padding-inline: max(24px, calc(50vw - 480px));
  }
  .car-track .polaroid { scroll-snap-align: start; }
  .car-btn.prev { left: calc(50vw - 548px); }
  .car-btn.next { right: calc(50vw - 548px); }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .car-btn.prev { left: 12px; }
  .car-btn.next { right: 12px; }
}
.swipe-hint { font-family: var(--hand); font-size: 1.3rem; color: var(--muted); }
@media (hover: none) { .car-btn { display: none; } }
@media (hover: hover) { .swipe-hint { display: none; } }
.trips-foot { margin-top: 10px; font-style: italic; }

/* ---------- Comidas ---------- */
.food {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 18px;
  margin-top: 52px;
  align-items: start;
}
@media (min-width: 560px) {
  .food { grid-template-columns: repeat(3, 1fr); gap: 44px 26px; }
}
@media (min-width: 900px) {
  .food { grid-template-columns: repeat(4, 1fr); gap: 52px 32px; }
  .food-item:nth-child(even) { margin-top: 56px; }
}
.dish {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.dish img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55));
  transition: rotate .7s cubic-bezier(.2, .7, .2, 1), scale .4s;
}
.dish:hover img { rotate: calc(var(--r, 0deg) + 25deg); scale: 1.04; }
.dish .cap { color: var(--cream); padding-bottom: 0; }
.dish .cap small { color: var(--muted); }

.lightbox { border: 0; padding: 0; margin: auto; background: transparent; max-width: min(92vw, 760px); color: var(--cream); }
.lightbox::backdrop { background: rgba(10, 5, 12, .88); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 100%; max-height: 78svh; margin: 0 auto; border-radius: 4px; }
.lightbox.cutout img { border-radius: 0; }
.lightbox p { margin-top: 12px; font-family: var(--hand); font-size: 1.7rem; text-align: center; }

/* ---------- Baraja ---------- */
.deck {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 3 / 4;
  margin: 40px auto 0;
  perspective: 1200px;
}
.deck::before, .deck::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: #7a1f4c;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.deck::before { rotate: 5deg; translate: 8px 6px; opacity: .55; }
.deck::after { rotate: -3deg; translate: -6px 4px; opacity: .8; }
.card {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.3, .7, .2, 1);
}
.card.flipped { transform: rotateY(180deg); }
.card.swap { animation: swap .7s ease-in-out; }
@keyframes swap {
  45% { translate: -130% 0; rotate: -14deg; opacity: 0; }
  55% { translate: 130% 0; rotate: 14deg; opacity: 0; }
}
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 24px;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
}
.back {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 143, 184, .07) 0 2px, transparent 2px 14px),
    var(--wine);
  border: 1px solid rgba(255, 143, 184, .35);
  outline: 1px solid rgba(255, 143, 184, .35);
  outline-offset: -12px;
}
.back-heart { font-size: 3.2rem; color: var(--pink); line-height: 1; }
.back-label { font-family: var(--hand); font-size: 1.5rem; color: var(--cream); }
.front { transform: rotateY(180deg); background: var(--paper); color: var(--ink); }
.front {
  gap: 10px;
  outline: 1.5px dashed rgba(214, 80, 138, .45);
  outline-offset: -14px;
}
.vale-num { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--wine); }
.vale-por { margin-top: 6px; font-style: italic; font-size: .95rem; color: #8a5a6d; }
.vale-title { font-family: var(--hand); font-weight: 700; font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.05; text-wrap: balance; }
.vale-note { font-size: .85rem; font-style: italic; line-height: 1.4; color: #8a5a6d; text-wrap: balance; }
.vale-hint { margin-top: 8px; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #b48a9b; }
.download { margin-top: 18px; }
.btn:disabled { opacity: .6; cursor: wait; }
.deck-count { margin-top: 26px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Tarta ---------- */
.cake {
  --lit: 1;
  --wind: 0;
  position: relative;
  width: 260px;
  height: 250px;
  margin: 60px auto 30px;
}
.cake .glow {
  position: absolute;
  left: 50%; top: -40px;
  width: 360px; height: 260px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 190, 100, .28), transparent);
  opacity: var(--lit);
  transition: opacity .5s;
  pointer-events: none;
}
.plate {
  position: absolute;
  bottom: 0; left: -22px; right: -22px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #f4ece4, #bfb0a6);
}
.tier { position: absolute; left: 50%; translate: -50% 0; border-radius: 14px 14px 10px 10px; }
.tier::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 50% 0, var(--icing) 7.5px, transparent 8px) 0 14px / 22px 12px repeat-x,
    linear-gradient(var(--icing), var(--icing)) 0 0 / 100% 15px no-repeat;
}
.tier.bottom {
  bottom: 12px;
  width: 240px; height: 94px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .55) 3px, transparent 3.5px) 0 62% / 24px 24px repeat-x,
    linear-gradient(180deg, #f3c4cb, #df92a0);
}
.tier.top {
  bottom: 102px;
  width: 176px; height: 74px;
  background: linear-gradient(180deg, #fbe8da, #ecc9b4);
}
.candles {
  position: absolute;
  left: 50%; bottom: 174px;
  translate: -50% 0;
  display: flex;
  align-items: flex-end;
  gap: var(--gap, 14px);
}
.candle {
  position: relative;
  width: 10px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 3px 3px 1px 1px;
  background: repeating-linear-gradient(135deg, #fff 0 6px, var(--pink-soft) 6px 12px);
  cursor: pointer;
}
/* zona táctil más grande */
.candle::before { content: ""; position: absolute; inset: -42px -10px -4px; }
.wick { position: absolute; left: 50%; top: -8px; width: 2px; height: 9px; margin-left: -1px; background: #3a2a2e; }
.flame {
  position: absolute;
  left: 50%; bottom: calc(100% + 5px);
  width: 16px; height: 28px;
  margin-left: -8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe8 0 20%, #ffd25e 45%, #ff8a2b 75%, rgba(255, 90, 30, 0) 100%);
  box-shadow: 0 0 22px 8px rgba(255, 180, 80, .4);
  transform-origin: 50% 90%;
  transform: skewX(calc(var(--wind) * -32deg));
  animation: flicker 1.4s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  transition: opacity .35s, scale .35s;
}
@keyframes flicker {
  0% { scale: 1 1; }
  30% { scale: .92 1.08; }
  60% { scale: 1.05 .95; }
  100% { scale: .96 1.06; }
}
.candle.out .flame { opacity: 0; scale: .2; animation: none; }
.candle.out::after {
  content: "";
  position: absolute;
  left: 50%; bottom: calc(100% + 4px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(225, 215, 225, .55);
  filter: blur(2px);
  animation: smoke 1.8s ease-out forwards;
}
@keyframes smoke {
  from { translate: -50% 0; scale: 1; opacity: .8; }
  to { translate: -20% -70px; scale: 5; opacity: 0; }
}

.actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mic-status { font-family: var(--hand); font-size: 1.35rem; color: var(--muted); min-height: 1.6em; }

.btn {
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: translate .2s, background-color .2s, border-color .2s;
}
.btn:hover { translate: 0 -2px; }
.btn.primary { background: var(--pink); color: #3a0f27; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(247, 236, 220, .28); }
.btn.ghost:hover { border-color: var(--pink); }

.finale { margin-top: 20px; }
.finale h2 { font-size: clamp(2.4rem, 9vw, 4.2rem); color: var(--pink-soft); font-style: italic; }
.final-text { max-width: 30ch; margin: 0 auto; font-size: 1.15rem; text-wrap: balance; }
.final-sign { margin: 18px 0 34px; font-family: var(--hand); font-size: 2rem; color: var(--pink); }

.footer {
  padding: 40px 16px 56px;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(220, 186, 199, .6);
}

/* ---------- Música ---------- */
.music {
  position: fixed;
  right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid rgba(255, 143, 184, .3);
  border-radius: 999px;
  background: rgba(29, 11, 23, .78);
  backdrop-filter: blur(8px);
  font-size: .8rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
}
.music:hover { border-color: var(--pink); }
.music.compact { justify-content: center; width: 44px; padding: 0; }
.music.compact .music-label { display: none; }
@media (hover: hover) {
  .music.compact:hover { width: auto; padding: 0 16px 0 14px; }
  .music.compact:hover .music-label { display: inline; }
}
.music-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--pink); transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.music[aria-pressed="false"] { opacity: .65; }
.music[aria-pressed="false"] .eq i { animation-play-state: paused; transform: scaleY(.3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; translate: none; }
}
