.is-hidden {
  display: none;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  font-family: Georgia, serif;
  background: #F6F4F0;
  color: #1f1f1f;
}

/* cada pantalla ocupa toda la altura */
.screenP{
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}

.screen{
  min-height: auto;   /* 🔥 clave */
  width: 100%;
  position: relative;
  display: grid;
  place-items: center;
  padding: 60px 0;    /* controla el espacio real */
  position: relative;
}
/* fondo por variable */
.bg-cover{
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* overlay suave para que se lea el texto */
.overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.20);
  pointer-events: none;
}

/* contenido centrado */
.center{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px;
}

.title{
  font-size: clamp(3rem, 9vw, 7rem);
  color: #fff;
  letter-spacing: 2px;
}

.subtitle{
  margin-top: 10px;
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  color: rgba(255,255,255,0.9);
}

/* botón */
.btn{
  margin-top: 22px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

/* texto de hint */
.hint{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

/* secciones internas con fondo claro 
.content{
  position: relative;
  z-index: 2;
  max-width: 900px;
  background: rgba(255,255,255,0.78);
  background: transparent !important;
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  line-height: 1.7;
}*/
.content {
  position: relative;
  z-index: 2;
  max-width: 900px;

  /* Cristal */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);

  /* Detalles */
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  line-height: 1.7;

  /* Bordecito fino tipo vidrio */
  border: 1px solid rgba(255, 255, 255, 0.35);

  /* Sombra suave */
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.15);
}


/* animación suave al entrar */
.fade{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade.show{
  opacity: 1;
  transform: translateY(0);
}

.blur-overlay{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15); /* luz suave */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
  pointer-events: none;/* no bloquea clicks */
}

.center,
.content {
  position: relative;
  z-index: 2;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.img-box img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.text-box {
  text-align: center;
  font-family: 'Playfair Display', serif; /* o la que uses */
}

.text-box h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.text-box p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* 🔥 Responsive */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .text-box h2 {
    font-size: 2rem;
  }
}

.countdown-section {
  text-align: center;
  padding: 60px 20px;
}

.countdown-title {
  font-family: "Playfair Display", serif; /* cámbiala si usas otra */
  font-size: 4rem;
  color: #1f5b3a; /* verde */
  margin-bottom: 30px;
}

.countdown-frame {
  position: relative;
  max-width: 600px;   /* ajusta al tamaño de tu marco */
  margin: 0 auto;
  justify-content: center;
}

.frame-img {
  width: 100%;
  height: auto;
  display: block;
}

.countdown-box {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 20px;
}

.cd-item {
  width: 110px;
  height: 110px;
  background: #bfbfbf;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cd-num {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #111;
  line-height: 1;
}

.cd-label {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-top: 10px;
  color: #111;
}

/* responsive */
@media (max-width: 600px) {
  .countdown-title { font-size: 3rem; }
  .countdown-box { gap: 12px; }

  .cd-item {
    width: 80px;
    height: 80px;
  }

  .cd-num { font-size: 1.2rem; }
  .cd-label { font-size: 0.65rem; margin-top: 6px; }
}

.countdown-wrapper {
  max-width: 650px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.countdown-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section3-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.section3-intro p {
  font-size: 1.2rem;
  margin-bottom: 80px;
}

.section3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.section3-box h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.section3-box p {
  font-size: 1.1rem;
  margin: 12px 0;
}

/* responsive */
@media (max-width: 768px) {
  .section3-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .section3-intro p {
    margin-bottom: 50px;
  }
}
.events {
  padding: 80px 20px;
}

.events-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.event-card {
  text-align: center;
}

.event-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.event-card h3 {
  font-size: 1.8rem;
  margin: 0;
}

.event-line {
  height: 6px;
  max-width: 520px;
  margin: 25px auto;
  background: #d7c6b5; /* beige */
}

.event-card p {
  margin: 12px 0;
  font-size: 1.1rem;
}

.btn-map {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
}

.btn-map:hover {
  opacity: 0.85;
}

/* responsive */
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .event-line {
    max-width: 420px;
  }
}
.rsvp{
  padding: 70px 20px;
  text-align: center;
}

.rsvp-title{
  font-size: 2.6rem;
  margin: 0 0 10px;
}

.rsvp-sub{
  margin: 0 0 35px;
  font-size: 1.1rem;
}

.rsvp-form{
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 18px;
}

.rsvp-row label{
  display:block;
  font-weight: 700;
  margin-bottom: 8px;
}

.rsvp-row input,
.rsvp-row textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
}

.rsvp-btn{
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.rsvp-btn:hover{ opacity: .9; }
.carousel {
  position: relative;
  max-width: 700px;   /* 👈 MÁS CHICO */
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* .carousel-track img {
  width: 100%;
  height: 600px;      
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 20px;
} 
*/
.carousel-track img {
  width: 100%;
  height: 600px;        /* tu alto */
  flex-shrink: 0;
  object-fit: contain;  /* 🔥 NO RECORTA */
  /*background: #fff;      o transparente */
  background: transparent !important;
  border-radius: 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ====== MOBILE: que se vea chido ====== */
@media (max-width: 768px) {

  /* En cel NO centres vertical con grid, eso deja mucho “aire” */
  .screen {
    display: block;
    padding: 35px 0;
  }

  /* El fondo en cel mejor centrado para que salga el marco */
  .bg-cover {
    background-position: center center;
  }

  /* Tu caja blanca (content) más compacta */
  .content {
    width: min(92%, 900px);
    padding: 18px;
    border-radius: 16px;
  }

  /* Grid de 3 columnas -> 1 en cel */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: min(92%, 1200px);
  }

  /* Eventos 2 columnas -> 1 */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    width: min(92%, 1200px);
  }

  /* Contador más chico */
  .countdown-frame {
    max-width: 92%;
  }
  .cd-item {
    width: 70px;
    height: 70px;
  }
  .cd-num { font-size: 1.05rem; }
  .cd-label { font-size: 0.6rem; margin-top: 4px; }

  /* Carrusel: en cel no puede medir 600px de alto */
  .carousel {
    max-width: 92%;
  }
  .carousel-track img {
    height: 260px;
    object-fit: contain;
    /*background: rgba(255,255,255,0.55);*/
    background: transparent !important;
  }
}
.stars-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;

  background-image:
    radial-gradient(8px 8px at 10% 20%, rgba(255,255,210,1), transparent),
    radial-gradient(10px 10px at 30% 60%, rgba(255,255,210,.95), transparent),
    radial-gradient(9px 9px at 55% 18%, rgba(255,255,210,1), transparent),
    radial-gradient(12px 12px at 75% 45%, rgba(255,255,210,.9), transparent),
    radial-gradient(10px 10px at 22% 85%, rgba(255,255,210,.95), transparent);

  background-size: 360px 360px;

  animation:
    starsMove 120s linear infinite,
    starsBlink 3s ease-in-out infinite;

  filter:
    drop-shadow(0 0 14px rgba(255,240,180,1))
    drop-shadow(0 0 30px rgba(255,240,180,1))
    drop-shadow(0 0 50px rgba(255,240,180,.9));

  mix-blend-mode: screen;
}


.stars-overlay-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;

  background-image:
    radial-gradient(16px 16px at 20% 40%, rgba(255,255,230,1), transparent),
    radial-gradient(18px 18px at 60% 30%, rgba(255,255,230,1), transparent),
    radial-gradient(14px 14px at 80% 70%, rgba(255,255,230,1), transparent);

  background-size: 550px 550px;

  animation: starsBlinkStrong 2.2s ease-in-out infinite;

  filter:
    drop-shadow(0 0 30px rgba(255,255,220,1))
    drop-shadow(0 0 60px rgba(255,255,220,1))
    drop-shadow(0 0 90px rgba(255,255,220,.95));

  mix-blend-mode: screen;
}
.shooting-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

.shooting-stars::before,
.shooting-stars::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -30%;
  width: 250px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,1),
    rgba(255,255,255,0)
  );
  filter: drop-shadow(0 0 20px rgba(255,255,255,1));
  opacity: 0;
  transform: rotate(25deg);
  animation: shootingStar 6s linear infinite;
}

.shooting-stars::after {
  animation-delay: 3s;
  width: 300px;
}
@keyframes starsMove {
  from { background-position: 0 0; }
  to   { background-position: 2000px 2000px; }
}

@keyframes starsBlink {
  0%, 100% { opacity: .8; }
  50%      { opacity: 1; }
}

@keyframes starsBlinkStrong {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

@keyframes shootingStar {
  0% {
    transform: translateX(0) translateY(0) rotate(25deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  40% {
    transform: translateX(160vw) translateY(80vh) rotate(25deg);
    opacity: 0;
  }
  100% { opacity: 0; }
}
/* Capa de mariposas */
.butterflies {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
}

.butterflies.show {
  opacity: 1;
}

/* Mariposa individual */
.bfly {
  position: absolute;
  width: 100px;
  height: 100px;
  background-image: url("./archivos/mariposa.png"); /* <-- tu PNG */
  background-size: contain;
  background-repeat: no-repeat;
  animation: fly 3.8s ease-out forwards; /* más lento */
  filter: drop-shadow(0 0 12px rgba(255, 220, 150, 0.9));
}

/* Vuelo */
@keyframes fly {
  0% {
    transform: translate(0, 0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(10deg);
    opacity: 0;
  }
}




