:root {
  --bg: #eed0df;
  --panel: #171723;
  --panel-border: rgba(255, 255, 255, 0.1);
  --ink: #231631;
  --rose: #f03c8f;
  --rose-soft: #ffd6e6;
  --gold: #c9983f;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #eed0df;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

.scene {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding: 0;
}

.hero-layout {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.poster {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  aspect-ratio: 9 / 18;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #eed0df;
}

.poster::before {
  content: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0.8px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.24;
  pointer-events: none;
  z-index: 1;
}

.music-toggle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 24;
  border: 0;
  border-radius: 999px;
  background: rgba(74, 16, 50, 0.84);
  color: #fff3fb;
  font: 900 0.82rem/1 "Nunito", sans-serif;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(20, 8, 17, 0.38);
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.music-toggle.is-playing {
  background: linear-gradient(90deg, #f23f94, #ff5e9f);
}

.layer {
  position: absolute;
  opacity: 1;
}

img.layer {
  display: block;
  user-select: none;
  pointer-events: none;
}

.fondo {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
  transform-origin: 50% 50%;
}

.sticker {
  z-index: 6;
  filter: saturate(1.06) contrast(1.04) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.24));
}

.num3 {
  width: 68%;
  left: 20.2%;
  top: 34.8%;
  z-index: 16;
  transform-origin: 50% 85%;
  animation: balloon-three 4.8s ease-in-out infinite;
  will-change: transform;
}

.num0 {
  width: 68%;
  left: 20.9%;
  top: 34.8%;
  z-index: 16;
  transform-origin: 50% 85%;
  animation: balloon-zero 5.2s ease-in-out infinite 0.35s;
  will-change: transform;
}

@keyframes balloon-three {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg);
  }
  25% {
    transform: translate3d(-6px, -10px, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(2px, -16px, 0) rotate(0.5deg);
  }
  75% {
    transform: translate3d(7px, -8px, 0) rotate(2deg);
  }
}

@keyframes balloon-zero {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1.2deg);
  }
  25% {
    transform: translate3d(7px, -8px, 0) rotate(2.6deg);
  }
  50% {
    transform: translate3d(-3px, -15px, 0) rotate(-0.4deg);
  }
  75% {
    transform: translate3d(-8px, -9px, 0) rotate(-2.1deg);
  }
}

.nina {
  width: 60%;
  left: 25.5%;
  top: 22%;
  z-index: 18;
}

.globos {
  width: 45%;
  left: -10%;
  top: 16%;
  z-index: 8;
}

.beso {
  width: 34%;
  right: -8%;
  top: 14%;
  z-index: 9;
}

.sorpresa {
  width: 37%;
  right: -8%;
  top: 34%;
  z-index: 10;
}

.happy {
  width: 82%;
  left: 9%;
  top: 62%;
  z-index: 12;
}

.cartel {
  width: 44%;
  left: 55%;
  top: 28%;
  transform: translate(-50%, -50%);
  z-index: 11;
}

.info {
  left: 10%;
  top: 50.8%;
  width: 80%;
  color: var(--ink);
  text-align: center;
  z-index: 14;
}

.info h1 {
  margin: 0;
  font-family: "DM Serif Text", serif;
  font-size: clamp(2rem, 7.4vw, 2.45rem);
  line-height: 0.97;
  color: #1d1435;
}

.info .hours {
  margin: 0.25rem 0 0;
  font-weight: 900;
  color: #111126;
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
}

.info .place {
  margin: 0.12rem 0 0.36rem;
  font-size: clamp(1.1rem, 3.8vw, 1.25rem);
  font-weight: 900;
  color: #1f1a2f;
}

.info .line {
  margin: 0.2rem auto 0.3rem;
  font-size: clamp(0.62rem, 2.35vw, 0.79rem);
  line-height: 1.2;
  color: rgba(28, 15, 46, 0.95);
  width: 96%;
  font-weight: 800;
}

.info .cta {
  margin: 0;
  font-family: "Abril Fatface", serif;
  font-size: clamp(1.95rem, 7vw, 2.3rem);
  line-height: 1;
  color: #bc1e53;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.de-repente {
  margin: 0;
  position: absolute;
  left: -14%;
  top: -2%;
  color: var(--gold);
  text-align: left;
  font-family: "Abril Fatface", serif;
  font-style: italic;
  line-height: 0.82;
  letter-spacing: 0.25px;
  font-size: clamp(1.3rem, 5.1vw, 1.65rem);
  transform: rotate(-8deg);
  text-shadow: 0 2px 0 rgba(255, 245, 199, 0.82);
}

.de-repente span {
  color: #d9b35f;
}

.princess {
  width: 43%;
  top: 40%;
  bottom: 4%;
  z-index: 15;
}

.corona {
  width: 66%;
  right: -20%;
  bottom: -3%;
  z-index: 13;
  top: 64%;
}

.anniston {
  width: 40%;
  left: -6%;
  top: 5%;
  z-index: 15;
}

.side-stack {
  display: grid;
  gap: 0;
  width: 100%;
  background: url("imagenes/fondo.png") center top / cover repeat-y;
}

.card {
  background: linear-gradient(135deg, rgba(252, 217, 231, 0.62), rgba(252, 217, 231, 0.78));
  background-color: transparent;
  color: #45243a;
  border: 0;
  padding: 16px;
  box-shadow: none;
}

.card + .card {
  border-top: 1px solid rgba(106, 53, 83, 0.25);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: "DM Serif Text", serif;
  font-size: 1.55rem;
  color: #5a2141;
}

.section-icon {
  font-size: 0.95em;
  line-height: 1;
}

.card-copy {
  margin: 0 0 12px;
  color: #6a3553;
  line-height: 1.3;
}

.event-info-card {
  margin-top: 0;
}

.event-date {
  margin: 0;
  font-family: "DM Serif Text", serif;
  font-size: clamp(1.45rem, 4.6vw, 1.9rem);
  line-height: 1.1;
  color: #8b2a5e;
}

.costume-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid #7f1c4e;
  background:
    linear-gradient(90deg, #ffe58f, #ffd06b 45%, #ff9cd0 100%);
  color: #4a1132;
  font-family: "Abril Fatface", serif;
  font-size: clamp(1.3rem, 4.8vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 14px rgba(111, 25, 66, 0.25);
  transform: rotate(-2deg);
  animation: costume-banner-pop 2.2s ease-in-out infinite;
}

.costume-banner::before,
.costume-banner::after {
  content: "\26A0";
  font-size: 0.95em;
  line-height: 1;
  color: #7f1c4e;
}

@keyframes costume-banner-pop {
  0%,
  100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(-1deg) scale(1.04);
  }
}

.event-place {
  margin: 8px 0 0;
  font-size: 1.14rem;
  font-weight: 900;
  color: #4c1d37;
}

.event-text {
  margin: 8px 0 0;
  color: #5e2d48;
  line-height: 1.35;
  font-weight: 700;
}

.rsvp-form {
  display: grid;
  gap: 8px;
}

.rsvp-form label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #5f2a49;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(93, 47, 72, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: #3c1830;
  font: 700 0.95rem/1.2 "Nunito", sans-serif;
  padding: 10px 12px;
  outline: none;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: rgba(87, 56, 75, 0.78);
}

.rsvp-form button {
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f23f94, #ff5e9f);
  color: #fff;
  font: 900 0.95rem/1 "Nunito", sans-serif;
  padding: 12px 14px;
  cursor: pointer;
}

.rsvp-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rsvp-popup[hidden] {
  display: none;
}

.rsvp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 11, 23, 0.62);
  backdrop-filter: blur(3px);
}

.rsvp-popup__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  background: #ffe9f4;
  border: 3px solid #a62d67;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  padding: 22px 20px 18px;
  text-align: center;
  animation: popup-in 0.22s ease-out;
}

.rsvp-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #6a2347;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.rsvp-popup__image {
  display: block;
  width: min(46vw, 220px);
  height: auto;
  margin: 0 auto 10px;
  border-radius: 14px;
}

.rsvp-popup__title {
  margin: 6px 0 6px;
  font-family: "DM Serif Text", serif;
  font-size: 1.48rem;
  line-height: 1.05;
}

.rsvp-popup__text {
  margin: 0;
  color: #51253f;
  line-height: 1.35;
  font-weight: 800;
}

.rsvp-popup__action {
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f23f94, #ff5e9f);
  color: #fff;
  font: 900 0.9rem/1 "Nunito", sans-serif;
  padding: 11px 18px;
  cursor: pointer;
}

.rsvp-popup--happy .rsvp-popup__title {
  color: #93194b;
}

.rsvp-popup--sad .rsvp-popup__title {
  color: #5e2f55;
}

.rsvp-popup--error .rsvp-popup__title {
  color: #861a3f;
}

@keyframes popup-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: rgba(88, 45, 68, 0.85);
}

.hint code {
  color: #8e2d63;
}

.venue-name {
  margin: 0 0 4px;
  color: #4c1d37;
  font-weight: 900;
  font-size: 1.05rem;
}

.map-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  color: #7e2f5b;
  font-weight: 800;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .num3,
  .num0,
  .costume-banner,
  .rsvp-popup__card {
    animation: none;
    transform: none;
  }
}

@media (max-width: 500px) {
  .scene {
    padding: 0;
  }

  .info .line {
    width: 100%;
  }

  .card {
    padding: 14px;
  }
}
