/* =========================================================
   Variables y reset
   ========================================================= */
:root {
  --cream: #fdf6ec;
  --warm-white: #fffaf5;
  --pink-pastel: #f7d9de;
  --pink-soft: #f3b9c8;
  --peach: #f6cca9;
  --burgundy: #8a2c42;
  --burgundy-dark: #5f1c2c;
  --text-dark: #4a2632;
  --text-muted: #8a6472;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 45px rgba(138, 44, 66, 0.16);
  --shadow-btn: 0 10px 24px rgba(138, 44, 66, 0.22);

  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Quicksand", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* nunca queremos scroll, ni por el boton que escapa */
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: linear-gradient(160deg, var(--cream) 0%, var(--pink-pastel) 55%, var(--peach) 100%);
  min-height: 100dvh;
  position: relative;
}

button {
  font-family: inherit;
}

/* =========================================================
   Fondo decorativo
   ========================================================= */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.blob-1 {
  width: 42vmax;
  height: 42vmax;
  top: -18vmax;
  left: -14vmax;
  background: radial-gradient(circle at 30% 30%, var(--pink-soft), transparent 70%);
}

.blob-2 {
  width: 38vmax;
  height: 38vmax;
  bottom: -16vmax;
  right: -12vmax;
  background: radial-gradient(circle at 60% 60%, var(--peach), transparent 70%);
}

.blob-3 {
  width: 26vmax;
  height: 26vmax;
  top: 30%;
  left: 60%;
  background: radial-gradient(circle, var(--pink-pastel), transparent 70%);
  opacity: 0.4;
}

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

.floating-heart {
  position: absolute;
  bottom: -10vh;
  font-size: 1.4rem;
  opacity: 0.35;
  animation: floatUp linear forwards;
  color: var(--pink-soft);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(-120vh) translateX(var(--drift, 20px)) rotate(25deg);
    opacity: 0;
  }
}

/* =========================================================
   Layout principal
   ========================================================= */
.stage {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 32px);
}

.screen {
  width: 100%;
  max-width: 480px;
  display: none;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen.fade-out {
  animation: screenFadeOut 0.55s ease forwards;
}

.screen.fade-in {
  animation: screenFadeIn 0.65s ease forwards;
}

@keyframes screenFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-14px) scale(0.97); }
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Pantalla 1: pregunta
   ========================================================= */
.card {
  width: 100%;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 48px) clamp(22px, 6vw, 40px);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(138, 44, 66, 0.06);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  line-height: 1.25;
  color: var(--burgundy);
  margin: 0 0 16px;
}

.subtext {
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 3vw, 1.05rem);
}

.buttons-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-yes {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: var(--warm-white);
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-yes:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(138, 44, 66, 0.3);
}

.btn-yes:active {
  transform: translateY(0) scale(0.98);
}

.btn-no-placeholder {
  visibility: hidden;
  background: var(--pink-pastel);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
}

/* El boton real que escapa, fuera del flujo del documento */
.btn-no {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  background: var(--pink-pastel);
  color: var(--burgundy);
  box-shadow: 0 8px 18px rgba(138, 44, 66, 0.18);
  opacity: 0;
  transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              top 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease,
              transform 0.2s ease;
  pointer-events: auto;
}

.btn-no.is-ready {
  opacity: 1;
}

.btn-no.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.btn-no.is-dodging {
  transform: scale(0.95) rotate(-4deg);
}

.no-message {
  position: fixed;
  z-index: 6;
  pointer-events: none;
  background: var(--burgundy);
  color: var(--warm-white);
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(138, 44, 66, 0.25);
}

.no-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Pantalla 2: revelacion
   ========================================================= */
.screen-reveal {
  text-align: center;
  gap: 22px;
}

.reveal-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
}

.line {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  color: var(--burgundy);
  opacity: 0;
  transform: translateY(14px);
}

.line-2 {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 600;
}

.line.show {
  animation: fadeInUp 0.7s ease forwards;
}

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

.plan-card {
  width: 100%;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 6vw, 42px) clamp(20px, 6vw, 36px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(138, 44, 66, 0.06);
  opacity: 0;
  transform: scale(0.9) translateY(16px);
  filter: blur(6px);
}

.plan-card.reveal {
  animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.plan-title {
  font-family: var(--font-heading);
  color: var(--burgundy);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  margin: 0 0 20px;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1rem, 3.6vw, 1.1rem);
  font-weight: 600;
  color: var(--text-dark);
  background: var(--pink-pastel);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  opacity: 0;
}

.plan-card.reveal .plan-list li {
  animation: fadeInUp 0.6s ease forwards;
}

.plan-card.reveal .plan-list li:nth-child(1) { animation-delay: 0.15s; }
.plan-card.reveal .plan-list li:nth-child(2) { animation-delay: 0.35s; }
.plan-card.reveal .plan-list li:nth-child(3) { animation-delay: 0.55s; }
.plan-card.reveal .plan-list li:nth-child(4) { animation-delay: 0.75s; }

.plan-icon {
  font-size: 1.3rem;
}

/* =========================================================
   Pregunta final: ¿aceptas?
   ========================================================= */
.accept-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.accept-block.show {
  animation: fadeInUp 0.7s ease forwards;
  pointer-events: auto;
}

.accept-question {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  color: var(--burgundy);
}

.accept-thanks {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0;
}

.accept-thanks.show {
  animation: fadeInUp 0.6s ease forwards;
}

/* =========================================================
   Particulas finales (corazones, petalos, estrellas, confeti)
   ========================================================= */
.particles {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  top: -8vh;
  will-change: transform, opacity;
  animation-name: fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateY(112vh) rotate(360deg);
    opacity: 0;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 380px) {
  .buttons-row {
    gap: 10px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-height: 560px) {
  .card {
    padding: 20px 22px;
  }

  .reveal-text {
    min-height: 60px;
  }

  .screen-reveal {
    gap: 12px;
  }

  .plan-list {
    gap: 8px;
  }

  .plan-list li {
    padding: 8px 14px;
  }
}

@media (max-height: 740px) {
  .screen-reveal {
    gap: 14px;
  }

  .plan-card {
    padding: 20px 20px;
  }

  .plan-title {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-no {
    transition: left 0.15s linear, top 0.15s linear, opacity 0.2s ease;
  }

  .line.show,
  .plan-card.reveal,
  .plan-card.reveal .plan-list li,
  .accept-block.show,
  .accept-thanks.show,
  .screen.fade-in,
  .screen.fade-out {
    animation-duration: 0.2s !important;
  }

  .floating-heart,
  .particle {
    display: none;
  }
}
