/* ==========================================================
   Bajo la misma luna — invitación de cita
   ========================================================== */

:root {
  --ink: #08040f;
  --plum-900: #0d0718;
  --plum-800: #170d28;
  --plum-700: #241336;
  --wine: #3a1630;
  --rose: #f2a7bd;
  --rose-deep: #d9748f;
  --gold: #e9c98f;
  --gold-deep: #c89b53;
  --cream: #f7ecdf;
  --muted: rgba(247, 236, 223, 0.68);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Times New Roman", serif;
  --script: "Great Vibes", "Segoe Script", cursive;

  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at 50% -12%, #3a1b4e 0%, transparent 62%),
    radial-gradient(900px 620px at 88% 18%, #4a2140 0%, transparent 58%),
    radial-gradient(820px 620px at 8% 78%, #231436 0%, transparent 62%),
    var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   Escenario de fondo
   ========================================================== */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.moon {
  position: absolute;
  top: clamp(38px, 7vh, 90px);
  right: clamp(18px, 7vw, 110px);
  width: clamp(100px, 17vw, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fffdf7 0 8%, transparent 9%),
    radial-gradient(circle at 62% 58%, rgba(200, 172, 128, 0.35) 0 9%, transparent 10%),
    radial-gradient(circle at 44% 72%, rgba(200, 172, 128, 0.28) 0 6%, transparent 7%),
    radial-gradient(circle at 38% 34%, #fffaf0 0%, #f3e4c8 46%, #dcc39a 72%, #bfa072 100%);
  box-shadow:
    0 0 60px 18px rgba(247, 226, 190, 0.26),
    0 0 190px 70px rgba(217, 116, 143, 0.16);
  opacity: 0.92;
  animation: moonPulse 14s ease-in-out infinite alternate;
}

.moon::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 226, 190, 0.16), transparent 66%);
}

@keyframes moonPulse {
  from { box-shadow: 0 0 54px 16px rgba(247, 226, 190, 0.22), 0 0 170px 60px rgba(217, 116, 143, 0.12); }
  to   { box-shadow: 0 0 76px 24px rgba(247, 226, 190, 0.32), 0 0 220px 86px rgba(217, 116, 143, 0.2); }
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #fff6e6;
  opacity: var(--o, 0.5);
  box-shadow: 0 0 6px 1px rgba(255, 244, 222, 0.7);
  animation: twinkle var(--d, 5s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  from { opacity: calc(var(--o, 0.5) * 0.35); transform: scale(0.8); }
  to   { opacity: var(--o, 0.5); transform: scale(1.15); }
}

.bats {
  position: absolute;
  inset: 0;
}

.bat {
  position: absolute;
  top: 101%;
  left: var(--left, 50%);
  width: var(--size, 34px);
  height: calc(var(--size, 34px) * 0.62);
  background: url("assets/bat.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: batFly var(--dur, 28s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.bat--rose {
  filter: brightness(0) saturate(100%) invert(76%) sepia(28%) saturate(1100%) hue-rotate(294deg) brightness(1.05);
}

.bat--gold {
  filter: brightness(0) saturate(100%) invert(86%) sepia(35%) saturate(560%) hue-rotate(352deg) brightness(1.02);
}

@keyframes batFly {
  0% {
    transform: translate3d(0, 0, 0) rotate(-7deg) scaleX(1);
    opacity: 0;
  }
  6% { opacity: var(--op, 0.32); }
  25% {
    transform: translate3d(calc(var(--drift, 10vw) * 0.45), -30vh, 0) rotate(6deg) scaleX(0.92);
  }
  52% {
    transform: translate3d(calc(var(--drift, 10vw) * -0.22), -64vh, 0) rotate(-5deg) scaleX(1);
  }
  78% { opacity: var(--op, 0.32); }
  100% {
    transform: translate3d(var(--drift, 10vw), -124vh, 0) rotate(8deg) scaleX(0.9);
    opacity: 0;
  }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.glow--rose {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: 32vh;
  background: radial-gradient(circle, rgba(170, 60, 110, 0.32), transparent 68%);
}

.glow--gold {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  bottom: 4vh;
  background: radial-gradient(circle, rgba(201, 155, 83, 0.2), transparent 68%);
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 35%, rgba(6, 3, 12, 0.55) 78%, rgba(4, 2, 9, 0.9) 100%),
    linear-gradient(180deg, rgba(8, 4, 15, 0.35), transparent 22%, transparent 72%, rgba(8, 4, 15, 0.85));
}

/* ==========================================================
   Estructura general
   ========================================================== */

.stage {
  position: relative;
  z-index: 1;
}

.hero,
.final {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(26px, 6vw, 64px) 20px clamp(38px, 7vw, 78px);
  gap: clamp(8px, 1.5vw, 16px);
}

.kicker {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.58rem, 1.5vw, 0.72rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.88;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-wrap: balance;
  text-shadow: 0 0 44px rgba(242, 167, 189, 0.18);
}

h1 {
  font-size: clamp(2.15rem, 8.2vw, 4.4rem);
  line-height: 1.06;
}

h1 em {
  display: inline-block;
  margin-left: 0.08em;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.35em;
  line-height: 0.8;
  letter-spacing: 0;
  background: linear-gradient(120deg, #f7d7ae 8%, var(--rose) 48%, #e7a9c3 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(242, 167, 189, 0.32));
}

.lead {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1.02rem, 2.7vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
}

.lead strong {
  color: var(--rose);
  font-weight: 600;
}

/* ==========================================================
   Lottie
   ========================================================== */

.lottie-frame {
  position: relative;
  width: min(88vw, 500px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.lottie-frame::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 116, 143, 0.28), rgba(120, 55, 120, 0.12) 55%, transparent 72%);
  filter: blur(28px);
  z-index: 0;
}

.lottie {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  /* El Lottie original es negro: lo volvemos luz de luna */
  filter: invert(1) sepia(0.18) saturate(1.4) hue-rotate(312deg) brightness(1.06)
    drop-shadow(0 0 18px rgba(242, 167, 189, 0.22));
}

.lottie svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.lottie-caption {
  position: absolute;
  z-index: 2;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  font-family: var(--script);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  color: rgba(247, 236, 223, 0.56);
  letter-spacing: 0.01em;
}

.hero-lottie {
  margin: clamp(-18px, -2vw, 0px) 0 clamp(-12px, -1.4vw, 0px);
}

/* ==========================================================
   CTA
   ========================================================== */

.cta {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: clamp(4px, 1vw, 12px);
  padding: 17px 44px 15px;
  border: 1px solid rgba(233, 201, 143, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(70, 32, 60, 0.9), rgba(27, 13, 38, 0.94));
  color: var(--cream);
  cursor: pointer;
  box-shadow:
    0 22px 55px -22px rgba(217, 116, 143, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 0 rgba(233, 201, 143, 0.4);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  animation: ctaPulse 3.4s ease-in-out infinite;
}

.cta-main {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 3.3vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.cta-sub {
  font-family: var(--display);
  font-size: clamp(0.54rem, 1.5vw, 0.62rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px) scale(1.025);
  border-color: var(--gold);
  box-shadow:
    0 30px 70px -24px rgba(242, 167, 189, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 6px rgba(233, 201, 143, 0.08);
  outline: none;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 22px 55px -22px rgba(217, 116, 143, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 0 rgba(233, 201, 143, 0.28); }
  50%      { box-shadow: 0 24px 62px -20px rgba(217, 116, 143, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 10px rgba(233, 201, 143, 0.02); }
}

.hint {
  margin: 4px 0 0;
  font-size: clamp(0.76rem, 2vw, 0.88rem);
  letter-spacing: 0.02em;
  color: rgba(247, 236, 223, 0.4);
}

/* ==========================================================
   Overlay de la invitación
   ========================================================== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(10px, 3vw, 30px);
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(74, 33, 64, 0.6), transparent 64%),
    rgba(6, 3, 12, 0.84);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  animation: fadeIn 0.4s ease both;
}

.ask-card {
  position: relative;
  margin: auto;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr;
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(233, 201, 143, 0.26);
  border-radius: 26px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(90, 40, 76, 0.42), transparent 62%),
    linear-gradient(158deg, #1d0f2c 0%, #150a21 46%, #0c0615 100%);
  box-shadow:
    0 50px 130px -40px #000,
    0 0 90px -30px rgba(217, 116, 143, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: cardIn 0.7s var(--ease-out) both;
  overflow: hidden;
}

.ask-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(233, 201, 143, 0.09);
  border-radius: 20px;
  pointer-events: none;
}

.ask-card:focus {
  outline: none;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 236, 223, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 236, 223, 0.65);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.close:hover,
.close:focus-visible {
  background: rgba(242, 167, 189, 0.14);
  color: var(--cream);
  transform: rotate(90deg);
  outline: none;
}

/* ---------- Carta de tarot ---------- */

.tarot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(300px, 100%);
}

.media {
  position: relative;
  overflow: hidden;
}

.tarot-media {
  width: 100%;
  aspect-ratio: 816 / 1277;
  border: 1px solid rgba(233, 201, 143, 0.55);
  border-radius: 16px;
  background: #130a1e;
  box-shadow:
    0 0 0 6px rgba(233, 201, 143, 0.07),
    0 0 0 7px rgba(233, 201, 143, 0.18),
    0 30px 60px -24px rgba(217, 116, 143, 0.6),
    0 20px 50px -24px #000;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.tarot-media:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow:
    0 0 0 6px rgba(233, 201, 143, 0.09),
    0 0 0 7px rgba(233, 201, 143, 0.24),
    0 38px 70px -24px rgba(217, 116, 143, 0.72),
    0 24px 60px -24px #000;
}

.tarot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tarot figcaption {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.78;
}

/* ---------- Texto ---------- */

.ask-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ask-body h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.9rem);
  line-height: 1.06;
}

.ask-body h2 em {
  display: inline-block;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.22em;
  line-height: 0.9;
  color: var(--rose);
  text-shadow: 0 0 34px rgba(242, 167, 189, 0.4);
}

.ask-text {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1rem, 2.5vw, 1.14rem);
  line-height: 1.55;
  color: var(--muted);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  width: 100%;
}

.btn-yes,
.btn-no {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-yes {
  padding: 15px 34px;
  border: 0;
  background: linear-gradient(135deg, #f7d4b2 0%, var(--rose) 48%, #eccb98 100%);
  color: #2c0d1e;
  font-size: clamp(1.02rem, 2.6vw, 1.16rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 45px -18px rgba(242, 167, 189, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.3s;
}

.btn-yes:hover,
.btn-yes:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 26px 58px -18px rgba(242, 167, 189, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  outline: none;
}

.btn-yes .heart {
  font-size: 0.95em;
  color: #7a1938;
  animation: beat 1.8s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.22); }
  32% { transform: scale(0.96); }
  48% { transform: scale(1.14); }
}

.btn-no {
  padding: 14px 30px;
  border: 1px solid rgba(247, 236, 223, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: clamp(0.98rem, 2.4vw, 1.06rem);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-no:hover {
  background: rgba(242, 167, 189, 0.08);
  color: var(--cream);
}

.choices.is-alone {
  justify-content: center;
}

.btn-no.is-fleeing {
  position: fixed;
  z-index: 320;
  margin: 0;
  background: rgba(26, 13, 40, 0.96);
  border-color: rgba(242, 167, 189, 0.38);
  color: rgba(247, 236, 223, 0.82);
  box-shadow: 0 22px 50px -18px #000, 0 0 26px -8px rgba(242, 167, 189, 0.45);
  transition:
    left 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
    top 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
    background 0.3s,
    color 0.3s;
}

.no-note {
  min-height: 1.5em;
  margin: 2px 0 0;
  font-style: italic;
  font-size: clamp(0.86rem, 2.2vw, 0.98rem);
  color: var(--rose);
  opacity: 0.9;
}

/* ==========================================================
   Pantalla final
   ========================================================== */

.final {
  animation: finalIn 0.9s var(--ease-out) both;
  gap: clamp(6px, 1.2vw, 12px);
}

.final h2 {
  font-size: clamp(1.95rem, 6.6vw, 3.5rem);
}

.final h2 em {
  display: inline-block;
  font-family: var(--script);
  font-style: normal;
  font-size: 1.3em;
  line-height: 0.85;
  color: var(--gold);
  text-shadow: 0 0 32px rgba(233, 201, 143, 0.45);
}

.final h2:focus,
.final h2:focus-visible {
  outline: none;
}

.final-lottie {
  width: min(80vw, 380px);
  margin: clamp(-14px, -2vw, -2px) 0 clamp(-10px, -1.5vw, 0px);
}

.final-quote {
  margin: 2px 0 0;
  max-width: 40ch;
  font-style: italic;
  font-size: clamp(1.02rem, 2.8vw, 1.24rem);
  line-height: 1.55;
  color: var(--muted);
}

.polaroid {
  position: relative;
  margin: clamp(14px, 3vw, 24px) 0 0;
  padding: 11px 11px 8px;
  width: min(74vw, 272px);
  background: linear-gradient(180deg, #f9f2e7, #e7dbc8);
  border-radius: 3px;
  box-shadow: 0 26px 50px -22px #000, 0 3px 8px rgba(0, 0, 0, 0.45);
  transform: rotate(-2.6deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 74px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(242, 226, 199, 0.5);
  border-left: 1px dashed rgba(120, 90, 60, 0.18);
  border-right: 1px dashed rgba(120, 90, 60, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1px);
}

.polaroid:hover {
  transform: rotate(0.4deg) scale(1.025);
  box-shadow: 0 34px 64px -24px #000, 0 4px 10px rgba(0, 0, 0, 0.45);
}

.polaroid-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #140a22;
}

.polaroid-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03) brightness(0.97);
}

.polaroid figcaption {
  margin-top: 9px;
  font-family: var(--script);
  font-size: 1.34rem;
  line-height: 1;
  color: #40263a;
}

.details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(16px, 3vw, 24px);
}

.chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 118px;
  padding: 10px 18px;
  border: 1px solid rgba(233, 201, 143, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(4px);
}

.chip-label {
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.chip-value {
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  color: var(--cream);
}

.final-note {
  margin: 14px 0 0;
  font-style: italic;
  font-size: clamp(0.94rem, 2.4vw, 1.06rem);
  color: rgba(247, 236, 223, 0.55);
}

.ghost-btn {
  margin-top: 14px;
  padding: 9px 20px;
  border: 1px solid rgba(247, 236, 223, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 236, 223, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  color: var(--cream);
  border-color: rgba(242, 167, 189, 0.4);
  background: rgba(242, 167, 189, 0.06);
  outline: none;
}

/* ---------- Fallback elegante si falta una imagen ---------- */

.media-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(217, 116, 143, 0.28), transparent 62%),
    linear-gradient(160deg, #2c1538, #130a1e 72%);
}

.media.is-missing img {
  display: none;
}

.media.is-missing .media-fallback {
  display: grid;
}

.fallback-bat {
  width: min(78%, 190px);
  aspect-ratio: 1280 / 773;
  background: url("assets/bat.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.32;
}

.fallback-title {
  font-family: var(--script);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
  color: var(--rose);
}

.fallback-sub {
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: rgba(233, 201, 143, 0.75);
}

.polaroid .fallback-title {
  color: var(--rose);
  font-size: 1.5rem;
}

/* ==========================================================
   Confeti de corazones y murciélagos
   ========================================================== */

.burst {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  left: 50%;
  top: 48%;
  opacity: 0;
  width: 26px;
  height: 26px;
  animation: burst 2s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}

.particle.is-bat {
  width: 34px;
  height: 22px;
  background: url("assets/bat.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
}

.particle.is-heart {
  color: var(--rose);
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  text-shadow: 0 0 18px rgba(242, 167, 189, 0.85);
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  12% { opacity: 1; }
  70% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.05) rotate(var(--rot));
  }
}

/* ==========================================================
   Animaciones base
   ========================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.965); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes finalIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 780px) {
  .ask-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: 22px 18px 26px;
    border-radius: 22px;
  }

  .ask-body {
    align-items: center;
    width: 100%;
  }

  .ask-body h2 {
    font-size: clamp(1.7rem, 7.4vw, 2.3rem);
  }

  .ask-text {
    max-width: 32ch;
  }

  .choices {
    justify-content: center;
    gap: 12px;
  }

  .btn-yes {
    padding: 14px 28px;
  }

  .btn-no {
    padding: 13px 24px;
  }

  .tarot {
    max-width: min(230px, 31vh);
  }

  .tarot-media {
    max-height: none;
  }

  .tarot figcaption {
    font-size: 0.56rem;
  }

  .close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .moon {
    opacity: 0.7;
    top: 3vh;
    right: 4vw;
  }

  .hero {
    padding-top: 34px;
  }

  .lottie-frame {
    width: min(90vw, 430px);
  }

  .lottie-caption {
    bottom: 0%;
  }

  .final-lottie {
    width: min(70vw, 288px);
    margin-top: -6px;
  }

  .final-quote {
    max-width: 88vw;
    font-size: 1rem;
    line-height: 1.5;
  }

  .final-quote br {
    display: none;
  }

  .polaroid {
    width: min(58vw, 205px);
    margin-top: 14px;
  }

  .polaroid figcaption {
    font-size: 1.12rem;
    margin-top: 7px;
  }

  .details {
    margin-top: 18px;
  }

  .chip {
    min-width: 104px;
    padding: 8px 14px;
  }

  .hero,
  .final {
    justify-content: flex-start;
    padding-top: max(30px, env(safe-area-inset-top));
  }

  .hero {
    min-height: 100svh;
    justify-content: center;
  }

  .final {
    padding-top: clamp(38px, 8vh, 70px);
  }
}

@media (max-width: 380px) {
  .tarot {
    max-width: 190px;
  }

  .lead {
    max-width: 27ch;
  }

  .cta {
    padding: 15px 28px 13px;
  }
}

@media (max-height: 700px) and (max-width: 780px) {
  .tarot {
    max-width: 150px;
  }

  .ask-card {
    gap: 14px;
  }

  .ask-body h2 {
    font-size: 1.55rem;
  }
}

/* ==========================================================
   Accesibilidad: menos movimiento
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bat {
    animation: none !important;
    opacity: 0.14;
    top: var(--top, 30%);
  }

  .cta,
  .btn-yes .heart {
    animation: none;
  }
}
