/* ==========================
   RESET & BASE
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", sans-serif;
  background: radial-gradient(circle at top, #121528, #02030a);
  color: #f4f2e9;
}

.hidden {
  display: none;
}

.locked {
  overflow: hidden;
}

/* ==========================
   INTRO SCREEN
========================== */

#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.9)
    ),
    url("../img/castillo-magia.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* MODO SOLO ESCUDO AL ABRIR LA CARTA */
#intro-screen.intro-clean {
  background-image: radial-gradient(circle at center, #05030c 0%, #000000 70%);
}

/* cuando está en modo intro-clean, ocultamos contenido del intro */
#intro-screen.intro-clean .intro-inner,
#intro-screen.intro-clean .intro-owl-wrapper,
#intro-screen.intro-clean #shooting-stars {
  display: none;
}

/* ======== BÚHOS (DELANTE + DETRÁS) ======== */

/* ======== BÚHOS (DELANTE + DETRÁS) ======== */

.intro-owl-wrapper {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;   /* más espacio para centrar el búho grande */
  pointer-events: none;
  display: flex;          /* centra el búho dentro */
  justify-content: center;
  align-items: center;
}

/* Búho delantero */
.intro-owl-front {
  z-index: 5;
  animation: owl-flight-front 2.6s ease-out forwards;
}

/* Búho trasero */
.intro-owl-back {
  z-index: 1;
  opacity: 0;
  animation: owl-appear-back 0.7s ease-out 2.4s forwards,
             owl-hover 1.4s ease-in-out 3.1s infinite alternate;
}

/* Tamaño ajustado */
.intro-owl-front .intro-owl-img {
  width: 180%;
}

.intro-owl-back .intro-owl-img {
  width: 160%; /* no más grande que el delantero */
}

/* Estilo general */
.intro-owl-wrapper .intro-owl-img {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.8))
          drop-shadow(0 0 16px rgba(255, 255, 255, 0.4));
  transform-origin: 50% 20%;
}

/* Aleteo */
.intro-owl-back .intro-owl-img {
  animation: owl-flap 0.35s ease-in-out 3.1s infinite alternate;
}

/* Vuelo búho delantero */
@keyframes owl-flight-front {
  0% {
    transform: translateX(-50%) translate3d(-60vw, -40vh, 0) scale(0.25);
    opacity: 0;
    filter: blur(2px);
  }
  20% {
    opacity: 1;
  }
  55% {
    transform: translateX(-50%) translate3d(-10vw, -12vh, 0) scale(0.6);
    filter: blur(0.8px);
  }
  85% {
    transform: translateX(-50%) translate3d(0, -4vh, 0) scale(0.95);
    filter: blur(0.2px);
  }
  100% {
    transform: translateX(-50%) translate3d(0, -2vh, 0) scale(1);
    opacity: 0;
    filter: blur(0);
  }
}

@keyframes owl-appear-back {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes owl-hover {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    transform: translateX(-50%) translateY(-8px) scale(1.02);
  }
}

@keyframes owl-flap {
  0% {
    transform: scaleY(1) rotate(0deg);
  }
  50% {
    transform: scaleY(0.95) rotate(-1.5deg);
  }
  100% {
    transform: scaleY(1.02) rotate(1.5deg);
  }
}

/* ======== SOBRE ======== */

.intro-envelope-wrapper {
  max-width: 300px;
  width: 80%;
  aspect-ratio: 4/3;
  margin: auto;
  opacity: 0;
  /* Empieza un poco más arriba, como si estuviera a la altura de las patas del búho */
  transform: translateY(-40px) scale(0.9);
  transform-origin: 50% 0%; /* anima desde arriba (patas) */
  cursor: pointer;
  position: relative;
  z-index: 3;
  animation: envelope-from-owl 0.9s ease-out forwards;
  animation-delay: 2.6s; /* sincronizado con el vuelo del búho frontal */
}

.intro-envelope-img {
  width: 100%;
  border-radius: 12px;
}

.intro-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle,
      rgba(255, 250, 200, 0.36) 0%,
      rgba(255, 230, 140, 0.20) 20%,
      rgba(255, 200, 90, 0.12) 40%,
      rgba(255, 190, 60, 0.08) 60%,
      transparent 80%
  );
  filter: blur(18px);
  border-radius: 60% 40% 50% 70% / 65% 45% 55% 60%; /* forma irregular mágica */
  opacity: 0;
  transition: opacity .5s ease, transform .6s ease;
  transform: scale(0.9) rotate(0deg);
  pointer-events: none;
}

.intro-envelope-wrapper:hover .intro-glow {
  opacity: 1;
  transform: scale(1.2) rotate(4deg);
}



.intro-envelope-wrapper:hover .intro-glow {
  opacity: 1;
}

/* Nueva animación: cae desde los pies del búho */
@keyframes envelope-from-owl {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(0.85) rotate(-4deg);
  }
  40% {
    opacity: 1;
    transform: translateY(-25px) scale(1) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}


/* ======== TEXTO DEL INTRO ======== */

.intro-fade {
  opacity: 0;
  transform: translateY(12px);
  position: relative;
  z-index: 4;
  animation: intro-fade-in 0.7s ease-out forwards;
  animation-delay: 2.9s;
}

@keyframes intro-fade-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Títulos mágicos generales */

.intro-title,
.hero-title,
.nav-logo {
  font-family: "Cinzel Decorative", "Cinzel", serif;
}

.intro-title {
  color: #ffd866;
  text-shadow: 0 0 6px rgba(255, 216, 102, 0.8),
    0 0 16px rgba(255, 216, 102, 0.5);
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.intro-text {
  font-size: 0.9rem;
  color: #c7c3b8;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.intro-action {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.85;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
}

/* ==========================
   ESTRELLAS FUGACES INTRO
========================== */

#shooting-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  animation: shootingStar 3s linear infinite;
}

.star:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0.3s;
}
.star:nth-child(2) {
  top: 30%;
  left: 80%;
  animation-delay: 1s;
}
.star:nth-child(3) {
  top: 60%;
  left: 20%;
  animation-delay: 1.8s;
}
.star:nth-child(4) {
  top: 15%;
  left: 60%;
  animation-delay: 2.5s;
}
.star:nth-child(5) {
  top: 70%;
  left: 10%;
  animation-delay: 3.1s;
}

@keyframes shootingStar {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  10% { opacity: 1; }
  30% {
    opacity: 1;
    transform: translate(120px, 80px) scale(1.8);
    box-shadow: 0 0 12px 5px rgba(255, 255, 255, 0.9);
  }
  60% {
    opacity: 0.6;
    transform: translate(200px, 150px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(260px, 200px) scale(0.8);
  }
}

/* ==========================
   ANIMACIÓN ESCUDO
========================== */

#crest-animation {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}

#crest-animation.visible {
  animation: crest-reveal 1.8s ease-out forwards;
}

.crest-img {
  max-width: 260px;
  width: 70vw;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 18px rgba(255, 230, 140, 0.8));
}

@keyframes crest-reveal {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(40px);
    filter: blur(4px) drop-shadow(0 0 0 rgba(0, 0, 0, 0.8));
  }
  40% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
    filter: blur(0px) drop-shadow(0 0 20px rgba(255, 230, 140, 1))
      drop-shadow(0 0 40px rgba(255, 230, 140, 0.9));
  }
  75% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* ==========================
   FONDO PRINCIPAL
========================== */

body.main-bg {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 10, 0.27),
      rgba(0, 0, 0, 0.285)
    ),
    url("../img/inicio.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

@media (min-width: 900px) {
  body.main-bg {
    background-attachment: fixed;
  }
}

/* Ajuste Patronus en móvil */
@media (max-width: 700px) {
  body.main-bg {
    background-attachment: scroll;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: top center;
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 10, 0.27),
        rgba(0, 0, 0, 0.285)
      ),
      url("../img/fondo-patronus.png");
    background-color: #6b695a;
  }
}

/* ==========================
   NAVBAR
========================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.nav-logo {
  color: #fdf8ff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-menu {
  display: none;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    gap: 1rem;
  }
}

.nav-menu a {
  color: #c4a8ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* ==========================
   HERO
========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fog-front {
  opacity: 0.5;
  animation: fog-move-front 26s linear infinite;
}

@keyframes fog-move-back {
  0% { transform: translate3d(-20px, 0, 0); }
  50% { transform: translate3d(20px, 10px, 0); }
  100% { transform: translate3d(-20px, 0, 0); }
}

@keyframes fog-move-front {
  0% { transform: translate3d(20px, 5px, 0); }
  50% { transform: translate3d(-30px, -10px, 0); }
  100% { transform: translate3d(20px, 5px, 0); }
}

.hero-inner {
  max-width: 420px;
  width: 100%;
}

.hero-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fffd04;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: 1.8rem;
  text-transform: uppercase;
}

.hero-name {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  color: #ffd866;
  font-size: 2.6rem;
  display: block;
  margin-top: 0.3rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(255, 216, 102, 0.9),
    0 0 18px rgba(255, 216, 102, 0.6);
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  color: #f2e9ff;
  margin: 1rem auto 0.6rem;
  max-width: 300px;
}

.hero-parents-card {
  margin: 0.8rem auto 1rem;
  padding: 0.9rem 1rem;
}

.hero-parents-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #ffffff;
}

.hero-date {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #ffe9b8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  margin-top: 1rem;
}

@media (max-width: 420px) {
  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}

.hero-countdown {
  font-weight: 700;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.time-box {
  background: #ffffff10;
  padding: 0.6rem;
  border-radius: 10px;
  width: 70px;
  text-align: center;
}

.time-number {
  color: #d4af37;
  font-size: 1.3rem;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #f2dff7;
}

/* BOTONES GENÉRICOS */

.btn {
  border: 1px solid #d4af3780;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: #d4af37;
  color: #000;
}

.btn-outline {
  color: #c7a600;
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.16);
}

/* ==========================
   SECCIONES GENERALES
========================== */

section {
  padding: 3rem 1rem;
}

.section-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  text-align: center;
  margin-bottom: 0.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a1404;
}

.section-title-direccion {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  text-align: center;
  margin-bottom: 0.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fef7ff;
}

/* Subtítulo reutilizado para texto más largo */
.section-subtitle {
  max-width: 620px;
  margin: 0.2rem auto 1.8rem;
  text-align: center;
  color: #3a1404;
  font-size: 1.3rem;
  line-height: 1.6;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-panel {
  padding: 6.5rem 1.2rem 6rem;
  border-radius: 26px;
  position: relative;
}

/* ==========================
   DETALLES
========================== */

#detalles {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem 3.5rem;
  overflow: hidden;
}

#detalles::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to bottom,
      rgba(20, 10, 35, 0),
      rgba(10, 5, 20, 0.94)
    ),
    url("../img/detalles.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.details-grid {
  max-width: 620px;
    margin: 0.2rem auto 1.8rem;
  display: grid;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1rem;
  border-radius: 12px;
}

/* Cards suaves */
#detalles .card-soft {
  
  max-width: 420px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.card-soft::before {
    text-align: center;
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top left,
    rgba(255, 214, 255, 0),
    transparent 60%
  );
  opacity: 1;
  pointer-events: none;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 214, 255, 0.15);
  border: 1px solid rgba(255, 214, 255, 0.6);
  color: #ffd6ff;
  margin-bottom: 0.6rem;
}

.card-tag-soft {
  background: rgba(255, 229, 239, 0.16);
  border-color: rgba(255, 203, 230, 0.8);
}

.card h3 {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.info-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.4rem 0;
  font-size: 0.9rem;
}

.info-label {
  min-width: 90px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffd6ff;
  opacity: 0.9;
}

.info-text {
  font-size: 0.9rem;
  color: #fef7ff;
}

.info-note {
    text-align: center;
  margin-top: 0.7rem;
  font-size: 1rem;
  color: #c7a600;
}

.btn-small {
  margin-top: 0.7rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.75rem;
}

/* ==========================
   UBICACIÓN
========================== */

#ubicacion {
  position: relative;
  z-index: 2;
  padding: 6rem 1rem 3.5rem;
  overflow: hidden;
}

#ubicacion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to bottom,
      rgba(8, 12, 25, 0),
      rgba(2, 4, 12, 0.94)
    ),
    url("../img/ubi.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.map-card iframe {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  border: 0;
}
.map-card iframe{
  position: relative;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(10, 6, 20, 0.35);
  border: 3px solid rgba(255, 230, 160, 0.55);
  box-shadow:
    0 0 12px rgba(255, 230, 160, 0.35),
    inset 0 0 18px rgba(255, 230, 160, 0.2);
  animation: mapGlow 3.6s ease-in-out infinite;
}

@keyframes mapGlow {
  0%   { box-shadow: 0 0 10px rgba(255,230,160,0.25); }
  50%  { box-shadow: 0 0 18px rgba(255,230,160,0.5); }
  100% { box-shadow: 0 0 10px rgba(255,230,160,0.25); }
}

@media (min-width: 768px) {
  .map-card iframe {
    height: 320px;
  }
}

/* ==========================
   SECCIÓN RSVP (PERGAMINO)
========================== */

#rsvp {
  position: relative;
  z-index: 2;
  padding: 7.5rem 1rem 3.5rem;
  overflow: hidden;
  color: #3b2714; /* tinta sobre pergamino */
}

#rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to bottom,
      rgba(10, 30, 20, 0),
      rgba(13, 14, 5, 0)
    ),
    url("../img/rsvp.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#rsvp .section-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
}

/* Texto principal sobre el pergamino */
#rsvp .hero-subtitle {
  font-weight: 700;
  max-width: 100%;
  margin: 0 0 0.8rem;
  color: #4b2b16;
  font-size: 0.95rem;
}

/* Padres: solo texto, sin caja */
#rsvp .hero-parents-card {
  margin: 0.8rem auto 0.5rem;
  padding: 0;
  border: none;
  background: transparent;
}

#rsvp .hero-parents-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #2a170b;
}

/* Fecha */
#rsvp .hero-date {
  font-weight: 700;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #5b341a;
}

/* Countdown tipo “impreso” */
#rsvp .hero-countdown {
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.8rem;
}

#rsvp .time-box {
  background: transparent;
  border: none;
  padding: 0;
  width: auto;
}

#rsvp .time-number {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  color: #3b2714;
}

#rsvp .time-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a5030;
}

/* Nota */
#rsvp .hero-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #4b2b16;
}

/* Bloque WhatsApp estilo texto */
#rsvp .whatsapp-card {
  margin-top: 1.6rem;
  padding: 0;
  border: none;
  background: transparent;
  position: static;
}

#rsvp .whatsapp-card::before {
  content: none;
}

#rsvp .whatsapp-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #2a170b;
}

#rsvp .whatsapp-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: #4b2b16;
  margin-bottom: 1rem;
}

#rsvp .whatsapp-note {
  font-weight: 700;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #5b341a;
  align-items: center; /* Centra verticalmente imagen y texto */
  gap: 10px; /* Espacio entre la imagen y el texto */
}
#rsvp .whatsapp-note .icono {
  width: 90px; /* Tamaño pequeño para la imagen */
  
  /* O puedes usar: max-width: 100%; */
}


/* Botón verde sobre el pergamino */
#rsvp .btn-whatsapp {
  background: #8040007c;
  border-color: #a39a16;
  color: #022c11;
  font-weight: 600;
  display: block;
  text-align: center;
}

/* Sutil realce de texto pergamino (opcional) */
#rsvp .hero-subtitle,
#rsvp .hero-parents-title,
#rsvp .hero-date,
#rsvp .whatsapp-text,
#rsvp .whatsapp-note,
#rsvp .whatsapp-title {
  text-shadow: 0 1px 1px rgba(255, 248, 220, 0.6);
}

/* En móvil, más aire arriba */
@media (max-width: 600px) {
  #rsvp {
    padding-top: 6rem;
  }

  #rsvp .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
  }
  #rsvp .hero-parents-title {
    font-size: 1.3rem;
  }
  #rsvp .hero-date {
    font-size: 1rem;
  }
  #rsvp .time-number {
    font-size: 1.5rem;
  }
  #rsvp .time-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }
  #rsvp .hero-note {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  #rsvp .whatsapp-title {
    font-size: 1.2rem;
  }
  #rsvp .whatsapp-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }
  #rsvp .whatsapp-note {
      font-weight: 700;
    font-size: 0.9rem;
  }
  #rsvp .btn-whatsapp {
    font-size: 0.9rem;
    padding: 0.85rem 1.6rem;
  }
}

/* ==========================
   WHATSAPP CARD GENÉRICA
   (por si la usas en otras secciones)
========================== */

.whatsapp-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 20px;
  position: relative;
}

.whatsapp-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top left,
    rgba(110, 231, 183, 0.26),
    transparent 60%
  );
  opacity: 0.8;
  pointer-events: none;
}

.whatsapp-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.9);
  background: rgba(6, 95, 70, 0.4);
  color: #bbf7d0;
  margin-bottom: 0.5rem;
}

.whatsapp-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.whatsapp-text {
  font-size: 0.9rem;
  color: #e5fff3;
  margin-bottom: 1rem;
}

.btn-whatsapp {
  background: #22c55e;
  border-color: #16a34a;
  color: #022c11;
  font-weight: 600;
  display: block;
  text-align: center;
}

.btn-whatsapp:hover {
  background: #16a34a;
}

.whatsapp-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #d1fae5;
}

/* ==========================
   GALERÍA / MODAL
========================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.gallery-item {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #000c;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal.open {
  display: flex;
}

.modal-content {
  max-width: 90%;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* ==========================
   FORM BASE (por si lo usas)
========================== */

.rsvp-form {
  display: grid;
  gap: 1rem;
  background: #1118;
  padding: 1.5rem;
  border-radius: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #ffffff20;
  background: #0004;
  color: white;
}

/* ==========================
   FOOTER
========================== */

footer {
  position: relative;
  text-align: center;
  padding: 1rem;
  color: #c7c3b8;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 214, 255, 0.3);
}

footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(255, 214, 255, 0),
    rgba(255, 214, 255, 0.7),
    rgba(255, 214, 255, 0)
  );
  box-shadow: 0 0 12px rgba(255, 214, 255, 0.8);
}

.footer-inner span:first-child {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-credit {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #e7d6ff;
  opacity: 0.85;
}

.footer-credit a {
  color: #ffd6ff;
  font-family: "Cinzel Decorative", "Cinzel", serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 214, 255, 0.35);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.footer-credit a:hover {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255, 214, 255, 0.8),
    0 0 10px rgba(255, 214, 255, 0.6),
    0 0 18px rgba(255, 214, 255, 0.4);
  border-bottom-color: #ffd6ff;
}

/* ==========================
   BOTÓN MÚSICA
========================== */

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.music-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ==========================
   ESTRELLAS FUGACES GLOBALES
========================== */

#stars-global {
  display: none;          /* la muestra JS cambiando a block */
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1; /* debajo del contenido pero encima del fondo Patronus */
}

.gstar {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  opacity: 0;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: gstar 4s linear infinite;
}

.gstar:nth-child(1) {
  top: 5%;
  left: 20%;
  animation-delay: 0.4s;
}
.gstar:nth-child(2) {
  top: 25%;
  left: 70%;
  animation-delay: 1.2s;
}
.gstar:nth-child(3) {
  top: 60%;
  left: 15%;
  animation-delay: 2.1s;
}
.gstar:nth-child(4) {
  top: 40%;
  left: 55%;
  animation-delay: 2.8s;
}
.gstar:nth-child(5) {
  top: 75%;
  left: 30%;
  animation-delay: 3.4s;
}

@keyframes gstar {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  10% { opacity: 1; }
  35% {
    opacity: 1;
    transform: translate(150px, 90px) scale(1.7);
  }
  70% {
    opacity: 0.6;
    transform: translate(240px, 160px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(300px, 220px) scale(0.8);
  }
}

/* ==========================
   LAYOUT TIPO LANDING (EXTRA)
========================== */

.section-block {
  padding: 3.2rem 1.4rem;
  position: relative;
  z-index: 2;
}

.section-block-dark {
  background: radial-gradient(circle at top, rgba(8, 7, 20, 0.92), #02030a);
}

.section-block-cards {
  background: radial-gradient(circle at top, rgba(26, 15, 44, 0.92), #050814);
}

.section-block-map {
  background: radial-gradient(circle at top, rgba(9, 21, 46, 0.95), #02040d);
}

.section-overline {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ffd6ff;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.section-title-big {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffeefc;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.8rem;
}

.section-lead {
  max-width: 620px;
  margin: 0 auto 1.8rem;
  text-align: center;
  color: #e7e2f8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Píldoras de info */

.pill-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 640px;
  margin: 0 auto;
}

.pill {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 214, 255, 0.35);
  background: radial-gradient(
    circle at top left,
    rgba(255, 214, 255, 0.15),
    transparent 65%
  );
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: space-between;
  align-items: center;
}

.pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffd6ff;
  opacity: 0.9;
}

.pill-value {
  font-size: 0.9rem;
  color: #fef7ff;
}

/* Grid 3 columnas */

.section-grid-3 {
  display: grid;
  gap: 1.4rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .section-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.info-card {
  background: rgba(4, 4, 14, 0.92);
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid rgba(255, 214, 255, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.info-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top left,
    rgba(255, 214, 255, 0.14),
    transparent 65%
  );
  opacity: 0.85;
  pointer-events: none;
}

.info-card-highlight {
  border-color: rgba(110, 231, 183, 0.7);
}

.info-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.info-card-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #fff2ff;
}

.info-card-text {
  font-size: 0.9rem;
  color: #f3e8ff;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.info-list {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.88rem;
  color: #f1e9ff;
}

.info-list li + li {
  margin-top: 0.25rem;
}

.info-card-note {
  font-size: 0.8rem;
  color: #e6d7ff;
}

.info-card-note.small {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Botón WhatsApp ancho */
.btn-whatsapp-wide {
  background: #22c55e;
  border: 1px solid #16a34a;
  color: #022c11;
  font-weight: 600;
  text-align: center;
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.btn-whatsapp-wide:hover {
  background: #16a34a;
}

/* Layout del mapa */
.map-layout {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.map-box iframe {
  width: 100%;
  border: 0;
  border-radius: 18px;
  min-height: 260px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

@media (min-width: 900px) {
  .map-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }

  .map-box iframe {
    min-height: 320px;
  }
}

.map-info {
  padding: 0.6rem 0.2rem;
}

/* Ajustes mobile layout extra */

@media (max-width: 600px) {
  .section-block {
    padding-inline: 1.1rem;
  }

  .pill {
    align-items: flex-start;
  }

  .pill-value {
    flex: 1 1 100%;
  }
}

/* ==========================
   DIVISOR ENTRE SECCIONES
========================== */
.section-divider {
  width: 100%;
  height: 140px;
  position: relative;
  z-index: 10;

  /* El truco: el divisor se superpone por ARRIBA y por ABAJO */
  margin-top: -60px;  /* sube dentro de la sección anterior */
  margin-bottom: -60px; /* baja dentro de la siguiente sección */

  /* Fondo mágico */
  /* background-image: url("../img/divider.png"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Suavizado de bordes */
  pointer-events: none;
}
@media (max-width: 600px) {
  .section-divider {
    height: 90px;
    margin-top: -40px;
    margin-bottom: -40px;
  }
}

/* ============================
   BRILLOS MÁGICOS ALEATORIOS
   ============================ */

#magic-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;       /* por encima del contenido pero debajo del botón de música si quieres */
  overflow: hidden;
}

/* Cada brillo individual */
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);

  /* brillo circular tipo luz mágica */
  background: radial-gradient(circle, #ffffff 0%, #ffe9a8 40%, transparent 70%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(255, 223, 150, 0.8);

  animation: sparkle-pop 1.8s ease-out forwards;
}

/* Crucecita de luz encima del punto */
.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 245, 210, 0.9);
  border-radius: 999px;
}

.sparkle::before {
  width: 2px;
  height: 14px;
}

.sparkle::after {
  width: 14px;
  height: 2px;
}

/* Animación: aparece, brilla y se desvanece */
@keyframes sparkle-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}
/* ============================
   SNITCH VOLADORA
   ============================ */
/* ============================
   SNITCH VOLADORA
   ============================ */
#snitch {
  position: fixed;
  width: 60px;                /* un poco más grande si quieres */
  height: 60px;
  background-image: url("../img/snitch.gif"); /* tu GIF aquí */
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 300;
  pointer-events: none;
  opacity: 0.95;

  /* empezamos fuera de pantalla, el JS luego lo recoloca */
  left: -100px;
  top: 50%;
  animation: snitch-flap 0.25s infinite alternate ease-in-out;
}

@keyframes snitch-flap {
  0% { transform: scale(0.94); }
  100% { transform: scale(1.04); }
}
.hp-divider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  color: #d4af37;
  font-size: 1.1rem;
  text-shadow: 0 0 6px rgba(255, 222, 150, 0.8);
}

.hp-divider-icon::before,
.hp-divider-icon::after {
  content: "";
  flex: 1;
  height: 2px;
  margin: 0 12px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 222, 150, 0.7),
    transparent
  );
  box-shadow: 0 0 8px rgba(255, 222, 150, 0.4);
}
