/* --------------------------------------
   GENERAL
-------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #f7f4ef, #ece6dc);
  font-family: "Playfair Display", serif;
  overflow-x: hidden;
}

/* --------------------------------------
   INTRO (SOBRE)
-------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  z-index: 10;
  transition: opacity 1.5s ease;
  flex-direction: column;
}

.intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

.hint {
  font-size: 24px;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-top: 15px;
  text-align: center;
  transition: opacity 0.6s ease;
}
.hint.hide {
  opacity: 0;
  pointer-events: none;
}

/* Sobre */
.envelope {
  position: relative;
  cursor: pointer;
  perspective: 800px;
  width: 75%;
  max-width: 500px;
}
.envelope img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.envelope-img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

/* Solapa */
.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/solapasuperior.png") center / cover
    no-repeat;
  transform-origin: top center;
  transition: transform 1.4s ease;
  z-index: 5;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.1));
}

/* Sello */
.seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -25%);
  z-index: 6;
  width: 25%;
  height: auto;
}
.seal img {
  width: 100%;
  display: block;
}

/* Tarjeta */
.card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transform: translate(-50%, -50%) rotateX(-90deg);
  opacity: 0;
  transition:
    transform 1s ease,
    opacity 1s ease;
  z-index: 7;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}
.card h2 {
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  margin: 10px 0;
}
.card p {
  margin: 5px 0;
  font-size: 14px;
}
.card-photo {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Animaciones del sobre */
.envelope.open .flap {
  transform: rotateX(180deg);
}
.envelope.open .seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}
.envelope.show-card .card {
  transform: translate(-50%, -50%) rotateX(0deg);
  opacity: 1;
}

/* --------------------------------------
   CONTENIDO
-------------------------------------- */
.content {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5px;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.content.show {
  opacity: 1;
}

.nombres {
  display: flex;
  align-items: center; /* Alinea verticalmente */
  justify-content: center; /* Centra horizontalmente */
  gap: 10px; /* Espacio entre los nombres y el "&" */
}

.nombres h1 {
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
  margin: 0;
}

.nombres h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin: 0;
}

/* Hero / Cabecera */
.hero .img-head img {
  width: 50%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero h1 {
  font-family: "Great Vibes";
  font-size: 64px;
  margin: 10px 0 5px;
}
.hero .place {
  font-size: 1.1rem;
  color: #4a4a4a;
  text-transform: uppercase;
  margin-top: 5px;
  font-family: "Playfair Display", serif;
}

.location-icon {
  color: #b8860b; /* dorado oscuro */
  margin-right: 8px; /* espacio entre el icono y el texto */
}

.img-event img {
  width: 50px;
}

.divider {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(to right, transparent, #c4a484, transparent);
}

.itinerary .timeline::before {
  background: linear-gradient(
    to bottom,
    transparent,
    var(--olive),
    transparent
  );
}

.map-wrapper {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  padding: 20px;
  margin-top: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(122, 143, 106, 0.25);
}

.asistencia {
  position: relative;
  padding: 120px 20px;
  overflow: hidden;
}

/* Contenido protegido */
.asistencia-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.asistencia-content .title-section {
  font-family: "Playfair Display", serif;
  text-align: center;
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: bold;
  color: #4b6f6a;
}

.asistencia-flores {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.asistencia-content .btn {
  color: white;
  background-color: #4b6f6a;
  font-family: "Playfair Display", serif;
  text-align: center;
  letter-spacing: 1.5px;
}

.flor {
  position: absolute;
  width: 100px;
  opacity: 0.7;
}

/* Arriba */
.f3 {
  top: 20px;
  left: 20%;
}

.f2 {
  top: 20px;
  right: 32%;
  width: 80px;
}

/* Laterales */
.f1 {
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.f4 {
  top: 55%;
  right: 16%;
  transform: translateY(-50%);
}

.f5 {
  top: 5px;
  left: 37%;
  transform: translateX(-50%);
}

.f6 {
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
}

.f8 {
  top: 10px;
  left: 60%;
  transform: translateX(-50%);
  width: 25px;
}

/* --------------------------------------
   FECHA ELEGANTE
-------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap");

.fecha-elegante {
  font-family: "Playfair Display", serif;
  text-align: center;
  color: #333;
  width: fit-content;
  margin: 0 auto;
}
.fecha-elegante .mes {
  text-transform: uppercase;
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 5px;
  color: #4a4a4a;
}
.fecha-elegante .centro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.fecha-elegante .numero {
  font-size: 5rem;
  line-height: 1;
  font-weight: 400;
}
.fecha-elegante .lateral {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  min-width: 120px;
}
.fecha-elegante .bordeado {
  border-top: 1px solid #c4a484;
  border-bottom: 1px solid #c4a484;
}
.fecha-elegante .anio {
  font-size: 1.5rem;
  margin-top: 5px;
  color: #4a4a4a;
}

.title-section {
  font-family: "Playfair Display", serif;
  text-align: center;
}

.polaroid-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.polaroid {
  background: #fff;
  padding: 12px 12px 30px;
  width: 220px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.polaroid:nth-child(2) {
  transform: rotate(2deg);
}

.polaroid:nth-child(3) {
  transform: rotate(-1deg);
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

.polaroid figcaption {
  font-family: "Great Vibes", cursive;
  font-size: 20px;
  text-align: center;
  margin-top: 10px;
  color: #555;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------
   SECCIONES
-------------------------------------- */
.section {
  opacity: 0;
  width: 95%;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section .itinerary {
  width: 50%;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Countdown */
.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}
.countdown div {
  text-align: center;
}
.countdown small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}
.countdown span {
  display: inline-block;
  min-width: 40px;
  font-size: 36px;
  font-weight: bold;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.countdown span.change {
  transform: translateY(-10px);
  opacity: 0.5;
}

/* Map */
.map iframe {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  border: none;
}

/* Timeline / Itinerario */
.timeline {
  list-style: none;
  padding: 0;
  font-size: 18px;
}
.timeline li {
  margin: 15px 0;
}

/* RSVP */
.rsvp {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
}
.rsvp input,
.rsvp select,
.rsvp textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
}
.rsvp button {
  padding: 12px;
  border: none;
  border-radius: 30px;
  background: #c8aa96;
  color: white;
  font-size: 16px;
}

/* Bus */
.bus {
  list-style: none;
  padding: 0;
  font-size: 18px;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.gallery img {
  width: 100%;
  border-radius: 12px;
}

/* Botón álbum */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  background: #4b6f6a;
  color: white;
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #b89278;
}

/* Música input */
.music-input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  max-width: 400px;
  margin: auto;
  display: block;
}

/* Itinerario */
.itinerary {
  background: #fcfaf3;
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 10px 50px;
  margin: 40px auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  max-width: 800px;
}
.itinerary h2 {
  margin-top: 0px;
  font-family: "Playfair Display", serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --------------------------------------
   BOTÓN MÚSICA FLOTANTE
-------------------------------------- */
.music-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.music-toggle i {
  font-size: 20px;
  color: #4b6f6a;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.music-toggle.paused {
  opacity: 0.55;
}

.music-toggle.playing {
  opacity: 1;
}

/* Botón música oculto hasta abrir el sobre */
.music-toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Se muestra cuando se abre el sobre */
.music-toggle.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Oculto completamente hasta abrir el sobre */
.music-toggle.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.7);
}

/* --------------------------------------
   TARJETAS PARADAS AUTOBÚS
-------------------------------------- */
/* Contenedor de las tarjetas */
.bus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 40px auto 0;
}

/* Tarjetas individuales */
.bus-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Botón fijo abajo */
.bus-card .bus-btn {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: #4b6f6a;
}

/* Hover */
.bus-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.22);
}

.bus-card.parada-1 {
  background-image: url("../assets/images/parada1.png");
}

.bus-card.parada-2 {
  background-image: url("../assets/images/parada2.png");
}

.paper-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 4 / 3;
  margin: 0px auto 0px;
  background-image: url("../assets/images/tarjeta_agradecimiento.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.15));
}

.paper-card p {
  max-width: 80%;
  margin: 0;
  font-family: "Allura", cursive;
  font-size: 2.4rem;
  line-height: 1.6;
  color: #000000;
  text-align: center;
}

.bus-section {
  margin-bottom: 15px;
}

.map-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;

  background-color: #4b6f6a; /* tu verde */
  color: white;
  text-decoration: none;

  letter-spacing: 1.5px;
  font-size: 1rem;

  border-radius: 30px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.map-btn:hover {
  background-color: #3f5e5a;
  transform: translateY(-2px);
}

.footer {
  width: 100%;
  margin-top: 60px;
  padding: 20px 10px;
  background-color: #4b6f6a;
  text-align: center;
}

.footer-text {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.footer-text span {
  margin-left: 5px;
  font-family: "Great Vibes", cursive;
  font-size: 1.4rem;
  color: #ffffff;
}



  
/* --------------------------------------
   RESPONSIVE
-------------------------------------- */
@media (max-width: 600px) {
  .content h1 {
    font-size: 48px;
  }
  .img-head img {
    width: 100%;
    max-width: none;
  }
  .fecha-elegante .centro {
    gap: 10px;
  }
  .fecha-elegante .lateral {
    font-size: 1rem;
    min-width: 80px;
  }
  .fecha-elegante .numero {
    font-size: 3.5rem;
  }
  .envelope {
    width: 90%;
  }
  .hint {
    font-size: 16px;
    margin-top: 10px;
  }
  .hero .img-head img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .polaroid {
    width: 180px;
  }
  .itinerary {
    padding: 30px 15px;
  }

  .itinerary h2 {
    margin-top: 0px;
  }

  .asistencia {
    padding-top: 20px;
    padding-bottom: 10px;
    border-radius: 20px;
  }

  /* Ocultar la flor 4 */
  .asistencia .f4 {
    display: none;
  }

  /* Todas las flores arriba */
  .asistencia .flor {
    top: 0; /* arriba del título */
    transform: translateY(0);
    width: 50px; /* tamaño uniforme, puedes ajustar */
  }

  /* Distribución horizontal */
  .asistencia .f1 {
    left: -40%;
    width: 200px;
  }
  .asistencia .f2 {
    left: 15%;
    width: 40px;
  }
  .asistencia .f3 {
    left: 40%;
  }
  .asistencia .f5 {
    left: 75%;
  }
  .asistencia .f6 {
    left: 90%;
    width: 100px;
  }

  .section .itinerary {
    width: 100%;
  }
  .section img {
    width: 100%;
  }

  .music-toggle {
    width: 46px;
    height: 46px;
    bottom: 16px;
    right: 16px;
  }

  .music-toggle i {
    font-size: 18px;
  }

  .bus-card {
    aspect-ratio: 3 / 2;
  }

  .bus-card .bus-btn {
    bottom: 14px;
    font-size: 1rem;
    padding: 10px 18px;
  }

  .paper-card {
    background-size: 100%;
  }

  .paper-card p {
    font-size: 1.6rem;
    max-width: 85%;
  }

  .map-btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
  }
}
