:root {
  --bg-crema: #fdfcf8;
  --txt-eucalipto: #5c7c66;
  --btn-menta: #a8d0b3;
  --acento-champagne: #d4af37;
  --txt-oscuro: #333333;
  --blanco: #ffffff;
} /* --- ESTILOS GENERALES --- */

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

body {
  background-color: var(--bg-crema);
  font-family: "Lato", sans-serif;
  color: var(--txt-oscuro);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--txt-eucalipto);
  font-weight: 600;
}

/* Contenedor centralizado */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animación de aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- 1. SECCIÓN INICIO (HERO) --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Imagen de fondo de prueba - Cambia esta URL por tu imagen de flores */
  background:
    linear-gradient(rgba(253, 252, 248, 0.7), rgba(253, 252, 248, 0.7)),
    url("background.jpg") center/cover no-repeat fixed;
}
.hero .subtitle {
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: #555;
}
.hero h1 {
  font-size: 4rem;
  font-style: italic;
  margin-bottom: 20px;
}

/* --- 2. PADRES --- */
.seccion {
  padding: 80px 0;
  text-align: center;
}
.seccion-titulo {
  font-size: 2.2rem;
  margin-bottom: 40px;
}
.padres-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.padres-col {
  background: var(--blanco);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  min-width: 250px;
}
.padres-col h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.padres-col p {
  margin-bottom: 7px;
}
.padres-col img {
  max-width: 20%;
  height: auto;
}

/* --- 3. GALERÍA --- */
.seccion-titulo-with-subtitle {
  font-size: 2.2rem;
}
.subseccion-titulo {
  font-size: 1rem;
  margin-bottom: 40px;
}
.subseccion-titulo-savedate {
  font-size: 1.7rem;
  margin-bottom: 40px;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.galeria-grid img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}
.galeria-grid img:hover {
  transform: scale(1.03);
}

/* --- MAPAS Y PINES --- */
.mapas-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  justify-content: center;
}

.mapa-box {
  flex: 1;
  min-width: 100%;
  max-width: 500px;
}

.mapa-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* Keeps the map rectangular */
  background-color: #eef2f0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: 2px solid var(--btn-menta);
}

/* Replace these URLs with real images of a US map and a Japan map (PNG with transparent background is best) */
.us-map {
  background-image: url("estados-unidos-de-america.png");
  background-size: 100%;
  background-position: center;
}

.jp-map {
  background-image: url("mapajapon.png");
  background-size: 76%;
  background-position: center;
}

.pin {
  position: absolute;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transform: translate(
    -50%,
    -100%
  ); /* Centers the bottom tip of the pin exactly on the coordinate */
  z-index: 10;
}

.pin-icon {
  font-size: 2rem;
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
}

.pin:hover .pin-icon {
  transform: scale(1.2) translateY(-5px);
}

/* Animation to draw attention to the pins */
.pulse {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background-color: var(--txt-eucalipto);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  animation: pulsing 2s infinite;
}

@keyframes pulsing {
  0% {
    transform: translateX(-50%) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translateX(-50%) scale(3);
    opacity: 0;
  }
}

/* --- MODAL (POP-UP WINDOW) --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: var(--bg-crema);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  padding: 30px;
  border-radius: 15px;
  position: relative;
  overflow-y: auto; /* Scroll if there are many pictures */
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #999;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: var(--txt-oscuro);
}

.modal-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.modal-galeria img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- 4. UBICACIÓN --- */
.ubicacion-card-grid {
  display: flex;
  flex-wrap: wrap; /* Permite que se acomoden lado a lado o caigan si no caben */
  gap: 30px;
  justify-content: center;
}

.ubicacion-card {
  background: var(--blanco);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  min-width: 650px;
  flex: 1;
  min-width: 280px; 
  text-align: center;
}
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: var(--txt-eucalipto);
  color: var(--blanco);
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.1rem;
  transition: background 0.3s;
}
.btn:hover {
  background-color: #4a6352;
}
.map-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

/* --- 5. ITINERARIO (TIMELINE) --- */
.timeline {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--acento-champagne);
  top: 0;
  bottom: 0;
  left: 30px;
  margin-left: -1px;
}
.evento {
  padding: 10px 0 30px 70px;
  position: relative;
}
.evento-emoji {
  position: absolute;
  left: 15px;
  top: 10px;
  width: 30px;
  height: 30px;
  background: var(--bg-crema);
  border-radius: 50%;
  z-index: 1;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.evento h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--txt-oscuro);
}
.evento p {
  color: #666;
  font-size: 0.9rem;
}

/* --- 6. CÓDIGO DE VESTIMENTA --- */
.dresscode-container {
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.dresscode-img {
  width: 100%;
  min-height: 490px;
  background: url("Codigodevestimenta.png") center/contain no-repeat;
  background-color: var(--bg-crema);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.dresscode-texto {
  min-width: 300px;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- 7. MESA DE REGALOS --- */
.regalos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.regalo-card {
  background: var(--blanco);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

/* --- 8. CONTADOR --- */
.contador-seccion {
  background-color: var(--txt-eucalipto);
  color: var(--blanco);
}
.contador-seccion h2 {
  color: var(--blanco);
}
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.time-box {
  text-align: center;
}
.time-box .numero {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
  display: block;
}
.time-box .texto {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- 9. BOTÓN RSVP FINAL --- */
.btn-rsvp-final {
  display: inline-block;
  padding: 18px 45px;
  background-color: var(--txt-eucalipto);
  color: var(--blanco);
  text-decoration: none;
  border-radius: 50px; /* Bordes muy redondeados para un look moderno */
  font-size: 1.2rem;
  font-family: "Lato", sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(92, 124, 102, 0.3);
}

.btn-rsvp-final:hover {
  background-color: var(--btn-menta);
  color: var(--txt-oscuro);
  transform: translateY(-5px); /* Efecto de que el botón se levanta un poco */
  box-shadow: 0 8px 20px rgba(168, 208, 179, 0.5);
}

/* Responsive extra */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 3rem;
  }
  .padres-grid,
  .regalos-grid {
    flex-direction: column;
  }
}
