/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sour Gummy", sans-serif;
  background: #ffffff;
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
}


@font-face {
  font-family: 'LucidityCondensed';
  src: url('fonts/LucidityCondensed.woff2') format('woff2'),
       url('fonts/LucidityCondensed.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem; /* Asegura espacio lateral en móviles */
}


.festejada {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1.5s ease-out;
}

.subtitulo {
  font-size: 1.5rem;
  color: #ffe3f4;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fadeUpHero 1.5s ease-out;
}

.frase {
  font-size: 1.1rem;
  color: #fefefe;
  padding: 0 1rem;
  animation: fadeUpHero 2s ease-out;
}

.subtitulo {
  font-size: 1.5rem;
  color: #ffe3f4;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fadeUpHero 1.5s ease-out;
}

.frase {
  font-size: 1.1rem;
  color: #fefefe;
  padding: 0 1rem;
  animation: fadeUpHero 2s ease-out;
}

@keyframes fadeUpHero {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Bienvenida personalizada */
.bienvenida {
  background: linear-gradient(180deg, #f5e7f6, #f7edf8);
  padding: 4rem 2rem;
  text-align: center;
}

.bienvenida h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.bienvenida p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.5s ease;
}

/* Footer */
.footer {
  background: #f7f7f7;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
}

.footer a {
  font-weight: bold;
  color: #6b2cf5;
}

/* Animaciones */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

/* Responsivo */
@media (max-width: 768px) {
  .festejada {
    font-size: 4.2rem;
  }

  .subtitulo {
    font-size: 2.2rem;
  }

  .frase {
    font-size: 1.3rem;
  }

  .bienvenida h2 {
    font-size: 1.6rem;
  }
}
.fondo-animado {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* EVENTO */

.evento {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #f9f2fa, #fbf6fc);
  text-align: center;
}

.timeline-item.evento-final .evento-card {
  background-color: #f5e7f6;
  color: #6b2cf5;
  font-weight: bold;
  font-style: italic;
}


.evento h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 2rem;
}

.evento-card {
  background: #fff;
  border: 2px solid #dedbff;
  border-radius: 1rem;
  padding: 2rem;
  margin: 1rem auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.evento-imagen {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  object-fit: cover;
}



.evento-card:hover {
  transform: translateY(-5px);
}

.evento-card h3 {
  font-size: 1.4rem;
  color: #8b3df6;
  margin-bottom: 1rem;
}

.evento-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.btn-mapa {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background: #8b3df6;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-mapa:hover {
  background: #6b2cf5;
}



/* SECCION MIS MOMENTOS */


.galeria-festejada {
  background: linear-gradient(180deg, #f7edf8, #f9f2fa);
  padding: 4rem 2rem;
  text-align: center;
}

.galeria-festejada h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 0.5rem;
}

.galeria-festejada .descripcion {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  padding: 0 1rem;
}

.galeria-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}

/* SECCION CUENTA REGRESIVA */
.contador {
  background: linear-gradient(180deg, #fbf6fc, #fcf9fd);
  padding: 1rem 1rem;
  text-align: center;
}

.contador h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 2rem;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

#countdown div {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 80px;
}

#countdown span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #6b2cf5;
}

#countdown small {
  font-size: 0.85rem;
  color: #777;
}



/* SECCION ITINERARIO */
.itinerario {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #fcf9fd, #fdfcfe);
  text-align: center;
}


.evento-icono {
  display: block;
  margin: 0 auto 0.5rem;
  width: 40px;
  height: 40px;
  object-fit: contain;
}


.itinerario h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 600px;
  padding-left: 2.5rem;
}

.timeline-line {
  position: absolute;
  left: 12px;
  top: 0;
  width: 4px;
  height: 0; /* Se animará con JS */
  background: #d1c5ff;
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-30px);
  z-index: 1;
  transition: transform 0.3s, opacity 0.3s;
}

.timeline-item.active::before {
  background: #6b2cf5;
  transform: scale(1.1);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 5px;
  width: 15px;
  height: 15px;
  background: #bbb;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e6e0ff;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hora {
  font-weight: bold;
  font-size: 1rem;
  color: #6b2cf5;
  margin-bottom: 0.3rem;
}

.evento {
  font-size: 1rem;
  color: #444;
}

.evento small {
  display: block;
  font-size: 0.85rem;
  color: #777;
}



/* SECCION VESTIMENTA */
.vestimenta {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #fdfcfe, #fefefe);
  text-align: center;
}

.vestimenta .seccion-icono {
  font-size: 3rem;
  color: #8b3df6;
  margin-bottom: 0.5rem;
}


.vestimenta h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 2rem;
}

.dresscode-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.dress-item {
  background: #fff;
  border: 2px solid #e7dcff;
  padding: 1.5rem;
  border-radius: 12px;
  width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dress-item img {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}


.dress-item:hover {
  transform: translateY(-5px);
}

.dress-item img {
  width: 90px;
  height: auto;
  margin-bottom: 1rem;
}

.dress-item p {
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
}


/* FORMULARIO */

.confirmacion {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #fefefe, #fefefe);
  text-align: center;
}
.confirmacion .seccion-icono {
  font-size: 2.8rem;
  color: #ff7a59;
  margin-bottom: 0.5rem;
}

/* Tarjeta RSVP visual */
.confirmacion .container {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.confirmacion h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 1rem;
}

.confirmacion p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555;
}

.confirmado {
  font-size: 1.2rem;
  color: #4caf50;
  font-weight: bold;
  margin-top: 1rem;
}

.confirmado-info {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
}

form {
  margin-top: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

select {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.btn-confirmar {
  background-color: #ff7a59;
  padding: 0.6rem 1.5rem;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-confirmar:hover {
  background-color: #e7573a;
}

.error {
  color: red;
  font-weight: bold;
  margin-top: 1rem;
}



/* MUSICA */

.musica {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #fefefe, #ffffff);
  text-align: center;
}

.musica h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 1rem;
}

.musica p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.spotify-player {
  max-width: 400px;
  margin: 0 auto;
}


/* MESA DE REGALOS */

.regalos {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  text-align: center;
}

.regalos h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 1rem;
}

.regalos h2 i {
  margin-right: 0.5rem;
}

.regalos p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.regalo-opciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.regalo-card {
  background: #fff;
  border: 2px solid #e0d2ff;
  padding: 2rem;
  border-radius: 14px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.regalo-card:hover {
  transform: translateY(-8px);
}

.regalo-card i {
  font-size: 2.5rem;
  color: #8b3df6;
  margin-bottom: 1rem;
}

.regalo-card h3 {
  font-size: 1.2rem;
  color: #6b2cf5;
  margin-bottom: 0.5rem;
}

.regalo-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.btn-regalo {
  display: inline-block;
  background-color: #8b3df6;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-regalo:hover {
  background-color: #6b2cf5;
}


/* ALBUM DE RECUERDOS*/

.album-digital {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  text-align: center;
}

.album-digital h2 {
  font-size: 2rem;
  color: #6b2cf5;
  margin-bottom: 1rem;
}

.album-digital h2 i {
  margin-right: 0.5rem;
}

.album-digital p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.btn-album {
  display: inline-block;
  background-color: #6b2cf5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-album:hover {
  background-color: #5422bd;
}


/* CIERRE*/

.cierre {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.cierre-img-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.cierre-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
}

.cierre-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  z-index: 1;
}

.cierre-texto {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  opacity: 0;
  animation: cierreFadeIn 2s ease-out forwards;
  animation-delay: 1.5s;
}

.cierre-texto h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Pacifico', cursive;
}

.cierre-texto p {
  font-size: 1.2rem;
}

@keyframes cierreFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* REPRODUCTOR*/

.audio-player-local {
  margin: 2rem auto 2rem auto; /* centrado + separación arriba y abajo */
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.09);
  max-width: 180px;
}


.audio-player-local button {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #6b2cf5;
  cursor: pointer;
}

.progress-container {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #6b2cf5;
  transition: width 0.3s ease;
}

/* HERO - Imagen a pantalla completa con fade-in */
.poolparty-hero {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000; /* opcional, mientras carga */
}

.poolparty-hero .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeInHero 1.5s ease-out forwards;
  opacity: 0;
}

/* Fade-in suave */
@keyframes fadeInHero {
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}


.pantalla-bienvenida {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(145deg, #d8bfff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.pantalla-bienvenida::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('fotos/emma1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25; /* Ajusta la opacidad aquí */
  z-index: 0;
  pointer-events: none;
}

#btn-entrar {
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  color: #6b2cf5;
  font-size: 1.3rem;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 40px;
  font-family: 'Quicksand', sans-serif;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 550px;
}

#btn-entrar:hover {
  background-color: #f0e8ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(107, 44, 245, 0.2);
}

.emoji-sobre {
  display: block;
  font-size: 2rem;
  margin-top: 0.2rem;
}



@keyframes fadeInBtn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: fadeInHero 1.5s ease-out forwards;
}

@keyframes fadeInHero {
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.reproductor-fondo {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  display: none; /* Oculto al inicio */
}

.contador {
  overflow-x: auto;
}


#toggleAudioFondo {
  background-color: #6b2cf5;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  font-size: 1rem; /* tamaño más pequeño */
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

#toggleAudioFondo:hover {
  background-color: #5422bd;
}


@media (max-width: 480px) {
  #countdown div {
    min-width: 60px;
    padding: 0.6rem;
  }

  #countdown span {
    font-size: 1.3rem;
  }

  #countdown small {
    font-size: 0.75rem;
  }
}

.nota-color-lila {
  font-size: 0.95rem;
  color: #6b2cf5;
  margin-top: 1.5rem;
  font-weight: 500;
  background: #f5e7f6;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  display: inline-block;
  max-width: 90%;
  text-align: center;
}

.foto-momento {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.foto-momento-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.foto-momento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  animation: cierreFadeIn 2s ease-out forwards;
  animation-delay: 0.5s;
}

.foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  z-index: 1;
}

@keyframes cierreFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.pantalla-bienvenida::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('fotos/emma1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeInBackground 2s ease-in-out forwards;
  animation-delay: 0.3s;
  z-index: 0;
  pointer-events: none;
}

@keyframes fadeInBackground {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}


