*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rose: #ff8fab;
  --rose-deep: #e05780;
  --blush: #ffc2d4;
  --wine: #2a0818;
  --cream: #fff0f5;
  --text: #ffe8f0;
  --text-soft: rgba(255, 232, 240, 0.78);
  --gold: #ffd4a8;
  --magenta: #c44dff;
  --bg-body: #0a0008;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body, #0a0008);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

/* ─── Fondo inmersivo ─── */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(224, 87, 128, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(196, 77, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255, 143, 171, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0a0008 0%, #1a0512 35%, #120010 70%, #0a0008 100%);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(15deg) brightness(1.08); }
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: rgba(255, 80, 130, 0.35);
  top: 5%;
  left: -60px;
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: rgba(196, 77, 255, 0.25);
  bottom: 15%;
  right: -40px;
  animation-delay: -3s;
}

.orb-3 {
  width: 140px;
  height: 140px;
  background: rgba(255, 200, 150, 0.2);
  top: 45%;
  left: calc(50% - 70px);
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(20px, -25px) scale(1.15); opacity: 1; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.floating-hearts {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-heart {
  position: absolute;
  bottom: -50px;
  animation: riseHeart linear infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px rgba(255, 100, 150, 0.4));
}

@keyframes riseHeart {
  0% { transform: translateY(0) rotate(0deg) scale(0.5); opacity: 0; }
  8% { opacity: 0.5; }
  92% { opacity: 0.25; }
  100% { transform: translateY(-115vh) rotate(720deg) scale(1.1); opacity: 0; }
}

.sparkles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 6px 1px rgba(255, 200, 220, 0.8);
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

.shooting-stars,
.card-stars {
  position: absolute;
  inset: -40%;
  z-index: 30;
  pointer-events: none;
  overflow: visible;
}

.card-stars.wishes-on .shooting-star {
  pointer-events: auto;
  cursor: pointer;
}

.card-stars.wishes-on .shooting-star::before {
  content: "";
  position: absolute;
  inset: -24px -40px;
}

.card-stars .shooting-star {
  position: absolute;
}

.shooting-star {
  position: absolute;
  width: var(--length, 130px);
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 180, 210, 0.35) 20%,
    rgba(255, 255, 255, 1) 65%,
    rgba(255, 220, 240, 0.85) 100%
  );
  border-radius: 100px;
  box-shadow:
    0 0 10px 1px rgba(255, 200, 230, 0.7),
    0 0 20px 2px rgba(255, 143, 171, 0.25);
  transform: rotate(var(--angle, -38deg)) translateX(0);
  transform-origin: right center;
  opacity: 0;
  will-change: transform, opacity;
  animation: shootingStarCross var(--cycle, 7s) linear var(--delay, 0s) infinite;
}

.shooting-star::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 10px 3px rgba(255, 255, 255, 0.95),
    0 0 18px 5px rgba(255, 180, 220, 0.7);
}

@keyframes shootingStarCross {
  0%, 74%, 100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(0) scaleX(0.7);
  }
  5% {
    opacity: 0.5;
    transform: rotate(var(--angle)) translateX(calc(var(--end, 600px) * 0.05)) scaleX(0.85);
  }
  15% {
    opacity: 1;
    transform: rotate(var(--angle)) translateX(calc(var(--end, 600px) * 0.15)) scaleX(1);
  }
  55% {
    opacity: 1;
    transform: rotate(var(--angle)) translateX(calc(var(--end, 600px) * 0.55)) scaleX(1);
  }
  70% {
    opacity: 0.9;
    transform: rotate(var(--angle)) translateX(var(--end, 600px)) scaleX(1);
  }
  73% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(calc(var(--end, 600px) + 100px)) scaleX(0.8);
  }
}

/* ─── Tarjeta principal ─── */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(8px + var(--safe-top)) 10px calc(10px + var(--safe-bottom));
}

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(
    165deg,
    rgba(80, 20, 45, 0.72) 0%,
    rgba(35, 8, 25, 0.88) 50%,
    rgba(25, 5, 20, 0.92) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 143, 171, 0.35);
  border-radius: 32px;
  padding: 30px 24px calc(34px + var(--safe-bottom));
  box-shadow:
    0 0 0 1px rgba(255, 180, 200, 0.08) inset,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(224, 87, 128, 0.25),
    0 0 200px rgba(196, 77, 255, 0.1);
  animation: cardIn 1s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 100dvh;
  -webkit-overflow-scrolling: touch;
}

.card > *:not(.card-stars) {
  position: relative;
  z-index: 1;
}

.card-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 200, 220, 0.06) 50%,
    transparent 60%
  );
  animation: shimmerSweep 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%) skewX(-10deg); }
  100% { transform: translateX(200%) skewX(-10deg); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(50px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Header ─── */
.header {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
}

.ornament {
  font-size: 0.85rem;
  color: var(--rose);
  letter-spacing: 0.4em;
  margin-bottom: 12px;
  opacity: 0.85;
  animation: ornamentGlow 3s ease-in-out infinite;
}

@keyframes ornamentGlow {
  0%, 100% { opacity: 0.6; text-shadow: 0 0 8px rgba(255, 143, 171, 0.4); }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(255, 143, 171, 0.8); }
}

.header-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 12px;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(255, 143, 171, 0.5);
}

.name-her {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff 0%, var(--blush) 30%, var(--rose) 60%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 100, 150, 0.5));
  animation: staggerIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             nameShimmer 4s linear infinite;
  animation-delay: calc(0.1s * var(--i) + 0.3s), 1.2s;
}

@keyframes nameShimmer {
  to { background-position: 200% center; }
}

.name-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255, 100, 150, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  animation: nameGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nameGlowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -30%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -30%) scale(1.2); }
}

.header-from {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-soft);
  font-weight: 300;
}

.header-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.layout-festive .header-subtitle {
  color: #ffd700;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.layout-festive .name-her {
  font-size: clamp(2.4rem, 10vw, 3rem);
}

.name-dev {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--rose);
  text-shadow: 0 0 16px rgba(255, 143, 171, 0.6);
}

.ornament-line {
  width: 80px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  box-shadow: 0 0 12px rgba(255, 143, 171, 0.6);
}

.anim-item {
  opacity: 0;
  animation: staggerIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.1s * var(--i) + 0.3s);
}

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Progreso corazones ─── */
.progress {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.progress-dot {
  width: 14px;
  height: 14px;
  position: relative;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-dot::before {
  content: "♥";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 143, 171, 0.25);
  transition: all 0.4s ease;
}

.progress-dot.active::before {
  color: var(--rose);
  font-size: 18px;
  filter: drop-shadow(0 0 10px rgba(255, 100, 150, 0.9));
  animation: heartBeat 1s ease-in-out infinite;
}

.progress-dot.active::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 143, 171, 0.4);
  animation: dotRing 1.5s ease-out infinite;
}

.progress-dot.done::before {
  color: var(--rose-deep);
  font-size: 16px;
  filter: drop-shadow(0 0 6px rgba(224, 87, 128, 0.6));
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

@keyframes dotRing {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

/* ─── Intro & Compliment ─── */
.content { min-height: 240px; }

.intro {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}

.hidden-intro { opacity: 0; }

.intro.reveal {
  animation: introReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.compliment {
  text-align: center;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.compliment .btn-continue {
  display: block;
  margin: 0 auto;
}

.compliment-box {
  position: relative;
  padding: 24px 20px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 100, 150, 0.12), rgba(196, 77, 255, 0.08));
  border: 1px solid rgba(255, 143, 171, 0.3);
  box-shadow:
    0 0 40px rgba(255, 80, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.compliment-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 100, 150, 0.15) 0%, transparent 60%);
  animation: complimentGlow 4s ease-in-out infinite;
}

@keyframes complimentGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.compliment-emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.anim-sparkle {
  animation: sparkle 2.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 8px rgba(255, 200, 100, 0.6)); }
  50% { transform: scale(1.25) rotate(15deg); filter: drop-shadow(0 0 20px rgba(255, 200, 100, 1)); }
}

.compliment-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.compliment-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.compliment-text .highlight {
  font-style: normal;
  font-weight: 700;
  font-size: 1.05em;
  background: linear-gradient(90deg, #fff, var(--blush), var(--rose), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nameShimmer 3s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 143, 171, 0.4));
}

.btn-continue {
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  min-height: 54px;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(224, 87, 128, 0.55),
    0 0 0 1px rgba(255, 200, 220, 0.2) inset;
  animation: btnEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both,
             btnGlow 2.5s ease-in-out 1.2s infinite;
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  animation: shimmerSweep 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(224, 87, 128, 0.55); }
  50% { box-shadow: 0 12px 48px rgba(224, 87, 128, 0.8), 0 0 0 4px rgba(255, 143, 171, 0.15); }
}

.btn-continue:active { transform: scale(0.95); }

/* ─── Preguntas ─── */
.question-wrap.hidden { display: none; }

.question-wrap.slide-in { animation: slideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.question-wrap.slide-out { animation: slideOut 0.35s ease forwards; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideOut {
  to { opacity: 0; transform: translateX(-40px) scale(0.96); }
}

.question-emoji {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(255, 100, 150, 0.5));
  animation: emojiPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.emoji-main { font-size: 3rem; line-height: 1; display: inline-block; }
.emoji-particle { position: absolute; left: 50%; top: 50%; font-size: 1.2rem; pointer-events: none; opacity: 0; }

.anim-wave .emoji-main { transform-origin: 70% 80%; animation: waveHand 0.9s ease-in-out infinite; }
@keyframes waveHand { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(20deg); } 75% { transform: rotate(-10deg); } }

.anim-chat .emoji-main { animation: chatBounce 1.4s ease-in-out infinite; }
.anim-chat .emoji-particle.p-0 { left: 28%; top: 20%; animation: chatBubble1 2.2s ease-in-out infinite; }
.anim-chat .emoji-particle.p-1 { left: 72%; top: 18%; animation: chatBubble2 2.2s ease-in-out infinite 0.6s; }
@keyframes chatBounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.08); } }
@keyframes chatBubble1 { 0%, 100% { opacity: 0; transform: translateY(8px) scale(0.6); } 30%, 70% { opacity: 0.9; transform: translateY(-14px) scale(1); } }
@keyframes chatBubble2 { 0%, 100% { opacity: 0; transform: translateY(6px) scale(0.5); } 35%, 75% { opacity: 0.8; transform: translateY(-18px) scale(0.95); } }

.anim-coffee .emoji-main { animation: coffeeBob 2.5s ease-in-out infinite; }
.anim-coffee .steam { position: absolute; top: 8px; width: 8px; height: 18px; border-radius: 50%; border: 2px solid transparent; border-bottom-color: rgba(255, 220, 230, 0.4); opacity: 0; }
.anim-coffee .steam.s1 { left: calc(50% - 18px); animation: steamRise 2s ease-out infinite; }
.anim-coffee .steam.s2 { left: calc(50% - 4px); animation: steamRise 2s ease-out infinite 0.5s; }
.anim-coffee .steam.s3 { left: calc(50% + 10px); animation: steamRise 2s ease-out infinite 1s; }
@keyframes coffeeBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes steamRise { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-32px); } }

.anim-kiss .emoji-main { animation: kissTilt 1.6s ease-in-out infinite; }
.anim-kiss .emoji-particle.p-0 { animation: kissFly1 2.4s ease-out infinite; }
.anim-kiss .emoji-particle.p-1 { animation: kissFly2 2.4s ease-out infinite 0.5s; }
.anim-kiss .emoji-particle.p-2 { font-size: 1rem; animation: kissFly3 2.4s ease-out infinite 1s; }
.anim-kiss .emoji-particle.p-3 { animation: kissFly4 2.4s ease-out infinite 1.5s; }
@keyframes kissTilt { 0%, 100% { transform: scale(1) rotate(0deg); } 30% { transform: scale(1.1) rotate(-8deg); } 60% { transform: scale(1.06) rotate(5deg); } }
@keyframes kissFly1 { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + 50px), calc(-50% - 60px)) scale(1.2); } }
@keyframes kissFly2 { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% - 55px), calc(-50% - 55px)) scale(1.1); } }
@keyframes kissFly3 { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + 25px), calc(-50% - 70px)) scale(1.3); } }
@keyframes kissFly4 { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% - 35px), calc(-50% - 65px)) scale(1); } }

@keyframes emojiPop {
  0% { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  70% { transform: scale(1.2) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.step-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
  background: rgba(255, 100, 150, 0.15);
  border: 1px solid rgba(255, 143, 171, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(255, 100, 150, 0.2);
  animation: tagPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes tagPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.question {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--cream);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.35em;
  text-shadow: 0 2px 20px rgba(255, 100, 150, 0.2);
}

.question .word {
  display: inline-block;
  opacity: 0;
  animation: wordIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.response {
  font-size: 0.95rem;
  color: var(--blush);
  font-style: italic;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 100, 150, 0.1);
  border-radius: 12px;
  border-left: 3px solid var(--rose);
  box-shadow: 0 0 20px rgba(255, 100, 150, 0.1);
}

.response.show { animation: responsePop 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes responsePop {
  from { opacity: 0; transform: translateX(-16px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ─── Botones ─── */
.actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

.btn-answer {
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--blush), var(--rose), var(--rose-deep));
  background-size: 200% auto;
  border: none;
  border-radius: 50px;
  padding: 18px 28px;
  min-height: 58px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(224, 87, 128, 0.5);
  animation: btnEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
             btnPulse 2.5s ease-in-out 1s infinite,
             btnGradient 4s linear infinite;
  transition: transform 0.15s;
}

@keyframes btnGradient {
  to { background-position: 200% center; }
}

@keyframes btnEnter {
  from { opacity: 0; transform: translateY(30px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(224, 87, 128, 0.5); }
  50% { box-shadow: 0 12px 48px rgba(224, 87, 128, 0.75), 0 0 0 5px rgba(255, 143, 171, 0.12); }
}

.btn-answer:active { transform: scale(0.93); animation: none; }

.btn-answer.final {
  font-size: 1.12rem;
  background: linear-gradient(135deg, #ffb3d0, var(--rose-deep), #c44dff);
  background-size: 200% auto;
  animation: btnEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
             btnPulseFinal 1.8s ease-in-out 0.8s infinite,
             btnGradient 3s linear infinite;
}

@keyframes btnPulseFinal {
  0%, 100% { box-shadow: 0 10px 40px rgba(224, 87, 128, 0.6); }
  50% { box-shadow: 0 16px 56px rgba(196, 77, 255, 0.5), 0 0 0 8px rgba(255, 143, 171, 0.15); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleOut 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* ─── Éxito ─── */
.footer { text-align: center; padding-top: 8px; position: relative; }

.footer.show .anim-item {
  opacity: 0;
  animation: staggerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.18s * var(--i) + 0.4s);
}

.success-ring {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 143, 171, 0.3);
  border-radius: 50%;
  animation: ringExpand 1.5s ease-out infinite;
}

@keyframes ringExpand {
  0% { transform: translateX(-50%) scale(0.5); opacity: 1; }
  100% { transform: translateX(-50%) scale(2); opacity: 0; }
}

.success-heart {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 24px rgba(255, 100, 150, 0.8));
}

.anim-success-emoji {
  display: inline-block;
  animation: heartPop 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both,
             successParty 1.5s ease-in-out 1.2s infinite;
}

@keyframes successParty {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  75% { transform: scale(1.2) rotate(10deg); }
}

@keyframes heartPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.4); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(90deg, var(--blush), white, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 20px rgba(255, 143, 171, 0.4));
}

.success-msg {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 18px;
}

.success-detail {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 100, 150, 0.12), rgba(196, 77, 255, 0.08));
  border-radius: 16px;
  border: 1px solid rgba(255, 143, 171, 0.25);
  box-shadow: 0 0 30px rgba(255, 100, 150, 0.1);
}

.wish-hint {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--blush);
  font-style: italic;
  animation: btnPulse 2.5s ease-in-out infinite;
}

.message-box {
  margin-top: 22px;
  text-align: left;
  animation: fadeUp 0.6s ease-out both;
}

.message-label {
  font-size: 0.92rem;
  color: var(--blush);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}

.message-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 143, 171, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  line-height: 1.5;
  margin-bottom: 10px;
}

.message-input:focus {
  outline: none;
  border-color: rgba(255, 143, 171, 0.6);
  box-shadow: 0 0 20px rgba(255, 100, 150, 0.15);
}

.btn-message-send {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8fab, #e05780);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(224, 87, 128, 0.35);
}

.btn-message-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message-sent {
  margin-top: 12px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--blush);
  animation: fadeUp 0.4s ease-out;
}

.wish-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 0, 8, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeUp 0.35s ease-out;
}

.wish-modal-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(160deg, rgba(80, 20, 45, 0.95), rgba(25, 5, 20, 0.98));
  border: 1px solid rgba(255, 143, 171, 0.35);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 100, 150, 0.2);
}

.wish-modal-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(255, 143, 171, 0.15), transparent 60%);
  pointer-events: none;
}

.wish-modal-emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.wish-modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 6px;
}

.wish-modal-sub {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.wish-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 143, 171, 0.3);
  border-radius: 14px;
  padding: 14px;
  resize: none;
  margin-bottom: 14px;
  outline: none;
}

.wish-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.15);
}

.btn-wish-send {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  border: none;
  border-radius: 50px;
  padding: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 6px 24px rgba(224, 87, 128, 0.45);
}

.btn-wish-close {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px;
}

.wish-sent {
  margin-top: 12px;
  color: var(--blush);
  font-size: 0.95rem;
}

.hidden { display: none !important; }

.content.hide { animation: contentOut 0.5s ease forwards; }

@keyframes contentOut {
  to { opacity: 0; transform: scale(0.92); filter: blur(4px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 600;
}

.tap-burst {
  position: fixed;
  pointer-events: none;
  z-index: 50;
  font-size: 1.2rem;
  animation: burstUp 0.9s ease-out forwards;
}

@keyframes burstUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(1.4); }
}

/* ─── Mobile / tablet invitación ─── */
@media (max-width: 768px) {
  body {
    align-items: stretch;
    padding: 0;
  }

  .card {
    max-width: 100%;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: calc(24px + var(--safe-top)) 18px calc(88px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .card::before { border-radius: 0; }

  .header {
    margin-bottom: 14px;
  }

  .name-her {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.08;
  }

  .header-from {
    font-size: 0.92rem;
    margin-top: 8px;
  }

  .intro {
    font-size: 1.08rem;
    margin-bottom: 14px;
    line-height: 1.65;
    padding: 0 2px;
  }

  .content {
    min-height: 0;
    flex: 0 0 auto;
  }

  .compliment {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
  }

  .compliment-box {
    margin-bottom: 0;
    padding: 18px 16px;
  }

  .compliment-label {
    margin-bottom: 10px;
    letter-spacing: 0.18em;
  }

  .compliment-text {
    font-size: 1.22rem;
    line-height: 1.62;
  }

  .btn-continue {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 22px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  /* Timeline/foto solo al terminar en móvil (no tapar el botón Continuar) */
  #app.flow-active .card-moments {
    display: none !important;
  }

  .card-moments {
    width: 100%;
    margin-top: 8px;
  }

  .timeline-block {
    margin: 18px 0 10px;
    padding: 0 2px;
  }

  .timeline-title {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .timeline-track {
    max-height: none;
    overflow: visible;
    gap: 8px;
  }

  .timeline-item {
    padding: 10px 12px;
  }

  .photo-moment {
    margin: 14px 0 8px;
    padding: 16px 12px 14px;
  }

  .photo-moment-frame {
    max-width: min(240px, 74vw);
  }

  .photo-moment-label {
    font-size: 0.98rem;
    margin-bottom: 12px;
  }

  .question {
    font-size: 1.32rem;
    line-height: 1.35;
  }

  .question-wrap {
    padding: 4px 0 8px;
  }

  .btn-answer {
    width: 100%;
    font-size: 1.05rem;
    min-height: 56px;
  }

  .actions {
    margin-top: 8px;
  }

  .footer {
    padding-top: 12px;
  }

  .music-toggle {
    bottom: calc(12px + var(--safe-bottom));
    right: 12px;
    font-size: 0.8rem;
    padding: 9px 14px;
  }

  .envelope-greeting {
    margin-bottom: 20px;
    padding: 0 8px;
  }

  .envelope {
    width: min(260px, 84vw);
    height: 170px;
  }

  .orb-1 { width: 160px; height: 160px; }
}

@media (max-width: 480px) {
  .card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .name-her { font-size: 2.35rem; }

  .compliment-text { font-size: 1.16rem; }

  .layout-letter .compliment-box {
    padding: 20px 16px 18px;
  }

  .letter-greeting { font-size: 1.1rem; }
  .letter-body, .letter-event-intro, .letter-farewell { font-size: 0.95rem; }
  .letter-meta p { font-size: 0.88rem; }
  .letter-sign-name { font-size: 1.2rem; }

  .emoji-main { font-size: 2.5rem; }

  .btn-answer {
    width: 100%;
    font-size: 1.08rem;
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Carta de apertura ─── */
.app-waiting {
  visibility: hidden;
  pointer-events: none;
}

.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeUp 0.7s ease-out;
}

.envelope-overlay.hidden {
  display: none;
}

.envelope-overlay.leaving {
  animation: envelopeLeave 0.65s ease-in forwards;
  pointer-events: none;
}

@keyframes envelopeLeave {
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

.envelope-greeting {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  color: var(--blush);
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.4;
  max-width: 320px;
}

.envelope-wrap {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  -webkit-tap-highlight-color: transparent;
}

.envelope {
  position: relative;
  width: min(280px, 78vw);
  height: 185px;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #b85575, #7a2848);
  border-radius: 10px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 100, 150, 0.15);
}

.envelope-front {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58%;
  background: linear-gradient(165deg, #e8809e, #c94d72);
  clip-path: polygon(0 100%, 50% 28%, 100% 100%);
  border-radius: 0 0 10px 10px;
  z-index: 3;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  background: linear-gradient(180deg, #f5a8be, #d66085);
  clip-path: polygon(0 0, 50% 72%, 100% 0);
  transform-origin: top center;
  transition: transform 0.85s cubic-bezier(0.34, 1.2, 0.64, 1);
  z-index: 4;
}

.envelope-letter {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  height: 148px;
  background: linear-gradient(180deg, #fffafc, #ffe8f2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.34, 1.1, 0.64, 1) 0.25s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 14px 14px 10px;
  text-align: left;
  overflow: hidden;
}

.envelope-letter-to {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #8e3055;
  line-height: 1.2;
}

.envelope-letter-text {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(100, 30, 55, 0.88);
  line-height: 1.45;
  overflow-y: auto;
  padding-right: 2px;
}

.envelope-letter-from {
  font-size: 0.78rem;
  color: rgba(142, 48, 85, 0.7);
  text-align: right;
  font-style: italic;
  margin-top: auto;
}

.envelope-seal {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 35% 35%, #ffb3c9, #e05780);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(224, 87, 128, 0.55);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.envelope.is-open .envelope-flap,
.envelope.is-opening .envelope-flap {
  transform: rotateX(180deg);
}

.envelope.is-open .envelope-seal,
.envelope.is-opening .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.envelope.is-open .envelope-letter {
  transform: translateY(-88px);
}

.envelope.is-open {
  margin-bottom: 20px;
}

.envelope-hint {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--text-soft);
  text-align: center;
  animation: btnPulse 2.5s ease-in-out infinite;
}

.envelope-hint.hidden {
  display: none;
}

/* ─── Partículas flotantes (temas) ─── */
.floating-particles,
.floating-hearts {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-particle,
.float-heart {
  position: absolute;
  bottom: -50px;
  animation: riseHeart linear infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px rgba(255, 100, 150, 0.4));
}

.particle-stars .float-particle {
  filter: drop-shadow(0 0 8px rgba(255, 220, 100, 0.5));
}

.particle-balloons .float-particle {
  filter: drop-shadow(0 0 6px rgba(255, 150, 200, 0.4));
}

/* ─── Gate / expirado ─── */
.gate-overlay,
.expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 0, 8, 0.92);
  padding: 24px;
}

.gate-box {
  background: rgba(255, 143, 171, 0.08);
  border: 1px solid rgba(255, 143, 171, 0.3);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.gate-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.gate-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--rose); margin-bottom: 8px; }
.gate-sub { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 16px; }
.gate-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 143, 171, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
}
.gate-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.gate-error { color: #ff8a8a; font-size: 0.85rem; margin-top: 10px; }

/* ─── Foto header ─── */
.photo-frame {
  width: 88px;
  height: 88px;
  margin: 8px auto 4px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 143, 171, 0.45);
  box-shadow: 0 0 24px rgba(255, 143, 171, 0.25);
}
.header-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Countdown ─── */
.countdown-block {
  text-align: center;
  padding: 12px 16px 4px;
  margin-bottom: 4px;
}
.countdown-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.countdown-digits {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
}

/* ─── Música ─── */
.music-toggle {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  right: 16px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 171, 0.4);
  background: rgba(20, 0, 12, 0.85);
  color: var(--rose);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

/* ─── Calendario ─── */
.btn-calendar {
  display: inline-block;
  margin: 12px auto 0;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 171, 0.45);
  background: rgba(255, 143, 171, 0.12);
  color: var(--rose);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-calendar:hover { background: rgba(255, 143, 171, 0.22); }

/* ─── Animaciones extra preguntas ─── */
.anim-ring .emoji-main { animation: ringPulse 1.8s ease-in-out infinite; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50% { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 12px gold); }
}

.anim-cake .emoji-main { animation: cakeBounce 1.2s ease-in-out infinite; }
@keyframes cakeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.anim-star .emoji-main { animation: starSpin 2s linear infinite; }
@keyframes starSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ─── Layouts por ocasión ─── */
.layout-letter .bg-mesh {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 215, 0, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0a0510, #120818);
}

.layout-letter .header-label {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  letter-spacing: 0.28em;
  color: var(--gold);
}

.layout-letter .compliment-box {
  text-align: left;
  padding: 28px 24px 24px;
  border-color: rgba(255, 215, 0, 0.28);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 215, 0, 0.04));
}

.layout-letter .compliment-glow { opacity: 0.35; }

.layout-letter .compliment .btn-continue {
  margin-top: 20px;
}

.invitation-letter {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
}

.letter-meta {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
}

.letter-meta p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.letter-meta-label {
  font-weight: 600;
  color: var(--gold);
  margin-right: 0.35rem;
}

.letter-greeting {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--cream);
}

.letter-body,
.letter-event-intro,
.letter-farewell {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.letter-event-intro {
  margin-top: 1.25rem;
  font-weight: 500;
}

.letter-event-details {
  margin: 0 0 1.25rem 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 215, 0, 0.35);
}

.letter-event-details p {
  margin: 0.35rem 0;
  font-size: 0.98rem;
}

.letter-event-details span {
  font-weight: 600;
  color: var(--gold);
  margin-right: 0.35rem;
}

.letter-farewell {
  margin-top: 1.25rem;
}

.letter-signature {
  margin-top: 1.75rem;
  font-family: var(--font-display);
}

.letter-signature p {
  margin: 0.2rem 0;
}

.letter-sign-name {
  font-size: 1.35rem;
  color: var(--cream);
  margin-top: 0.75rem !important;
}

.letter-sign-role {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.layout-festive .bg-mesh {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 215, 0, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(255, 71, 87, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #0a0510, #1a0818);
}
.layout-festive .compliment-box {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 48px rgba(255, 215, 0, 0.12);
}
.layout-festive .btn-continue,
.layout-festive .btn-answer.final {
  background: linear-gradient(135deg, #ffd700, #ff6b9d, #9b59b6);
}

.layout-party .bg-mesh {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255, 71, 87, 0.3) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 45%),
    linear-gradient(180deg, #0a0008, #180510);
}
.layout-party .floating-particles { opacity: 1.25; }
.layout-party .card {
  border-color: rgba(255, 71, 87, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.08) inset,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 71, 87, 0.2);
}
.layout-party .compliment-box {
  border-color: rgba(255, 71, 87, 0.35);
}
.layout-party .btn-continue,
.layout-party .btn-answer.final,
.layout-party .btn-rsvp-submit {
  background: linear-gradient(135deg, #ff4757, #ffa502, #9b59b6);
}
.layout-party .envelope-front {
  background: linear-gradient(165deg, #ff6b81, #ff4757);
}

.layout-spotlight .bg-mesh { background: radial-gradient(circle at 50% 30%, rgba(196, 30, 58, 0.45) 0%, transparent 45%), #0a0005; }
.layout-elegant .card { border: 1px solid rgba(218, 165, 32, 0.25); }

/* ─── Sobres temáticos ─── */
.envelope--gift .envelope-front { background: linear-gradient(135deg, var(--gold), var(--rose-deep)); }
.envelope--gift .envelope-seal { background: var(--rose); border-radius: 8px; padding: 4px 8px; }
.envelope--velvet .envelope-front { background: linear-gradient(160deg, #4a0020, #8b0000); box-shadow: inset 0 0 30px rgba(0,0,0,0.5); }
.envelope--velvet .envelope-seal { filter: drop-shadow(0 0 8px gold); }
.envelope--wax .envelope-seal { background: #722f37; border-radius: 50%; width: 48px; height: 48px; line-height: 48px; font-size: 1.2rem; }

/* ─── Foto al final ─── */
.photo-moment {
  position: relative;
  margin: 28px 0 8px;
  padding: 20px 16px 18px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 143, 171, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 143, 171, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: staggerIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.photo-moment-glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, rgba(255, 143, 171, 0.35), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.photo-moment-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.photo-moment-frame {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.88));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 143, 171, 0.35) inset;
  transform: rotate(-1.5deg);
}

.photo-moment-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
}

.photo-moment-gallery {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.photo-moment-thumb {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 143, 171, 0.35);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, transform 0.2s;
}

.photo-moment-thumb.active,
.photo-moment-thumb:hover {
  border-color: var(--rose);
  transform: scale(1.05);
}

.photo-moment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-romantic .photo-moment-frame {
  border-radius: 50%;
  padding: 10px;
  max-width: 200px;
}

.layout-romantic .photo-moment-img {
  border-radius: 50%;
  aspect-ratio: 1;
}

/* ─── Galería (legacy admin preview) ─── */
.gallery-block { margin: 12px 0 16px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 110px));
  justify-content: center;
  gap: 10px;
}
.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,143,171,0.25);
  background: rgba(0,0,0,0.15);
}
.gallery-block--single .gallery-grid {
  grid-template-columns: minmax(0, 200px);
}
.gallery-block--single .gallery-img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.gallery-block--multi .gallery-grid {
  max-height: 240px;
  overflow-y: auto;
  padding: 2px;
}
.layout-romantic .photo-frame {
  width: 104px;
  height: 104px;
  border-width: 3px;
  box-shadow: 0 0 28px rgba(255, 143, 171, 0.35);
}

/* ─── Timeline aniversario ─── */
.card-moments {
  width: 100%;
}

.card-moments.hidden {
  display: none !important;
}

.timeline-block { margin: 24px 0 8px; padding: 0 4px; }
.timeline-title { font-family: var(--font-display); color: var(--gold); text-align: center; margin-bottom: 12px; font-size: 1.1rem; }
.timeline-track { display: flex; flex-direction: column; gap: 10px; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.timeline-item { background: rgba(255,255,255,0.05); border-left: 3px solid var(--rose); border-radius: 0 10px 10px 0; padding: 10px 12px; animation: timelineIn 0.5s ease both; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-date { font-size: 0.72rem; color: var(--gold); display: block; margin-bottom: 2px; }
.timeline-item p { font-size: 0.82rem; color: var(--text-soft); margin-top: 4px; }
@keyframes timelineIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* ─── RSVP ─── */
.rsvp-wrap { text-align: center; padding: 8px 0; }
.rsvp-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.btn-rsvp { padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,143,171,0.35); background: rgba(255,255,255,0.06); color: var(--text); font-family: inherit; font-size: 1rem; cursor: pointer; }
.btn-rsvp.selected { border-color: var(--rose); background: rgba(255,143,171,0.15); }
.rsvp-extra { text-align: left; margin-top: 12px; }
.rsvp-extra label { display: block; font-size: 0.78rem; margin: 8px 0 4px; color: var(--text-soft); }
.rsvp-extra input, .rsvp-extra textarea { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,143,171,0.25); background: rgba(0,0,0,0.25); color: var(--text); font-family: inherit; }
.btn-rsvp-submit { width: 100%; margin-top: 12px; padding: 12px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff; font-weight: 600; cursor: pointer; }

/* ─── Animaciones de entrada ─── */
.entry-fx { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.entry-fx--confetti { background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 60%); animation: fxFade 2s ease forwards; }
.entry-fx--ring { background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.5) 0%, transparent 40%); animation: ringFlash 1.5s ease forwards; }
.entry-fx--candles { background: radial-gradient(ellipse at 50% 80%, rgba(255,180,80,0.35) 0%, transparent 50%); animation: fxFade 2s ease forwards; }
.entry-fx--hearts { background: radial-gradient(circle, rgba(255,143,171,0.35) 0%, transparent 55%); animation: fxFade 2s ease forwards; }
.entry-fx--stars { background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 50%); animation: fxFade 2s ease forwards; }
@keyframes fxFade { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ringFlash { 0% { opacity: 0; transform: scale(0.5); } 30% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.5); } }
