/* RESET Y ESTILOS BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  overflow-x: hidden;
  color: #333;
  background-color: #fff;
}

/* CONTENEDOR DE LA FOTO */
#photo-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transition: opacity 0.8s ease-out;
  opacity: 0;
}

/* CONTENIDO PRINCIPAL */
.content {
  min-height: 100vh;
  padding-top: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100vh 20px 50px;
}

/* SECCIÓN "NOS CASAMOS" */
.announcement {
  text-align: center;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
  max-width: 800px;
  width: 90%;
}

.announcement h1 {
  font-size: 3.5rem;
  color: #222;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.invitation-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
}

/* CUENTA REGRESIVA */
.countdown {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
  width: 100%;
}

#countdown-timer {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

#countdown-timer div {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  min-width: 80px;
  text-align: center;
}

#countdown-timer span {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

/* BOTÓN RSVP */
.rsvp {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
  margin-bottom: 50px;
}

#rsvp-link {
  display: inline-block;
  padding: 15px 30px;
  background: #8e44ad;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background 0.3s;
}

#rsvp-link:hover {
  background: #732d91;
}

/* SECCIONES DE UBICACIÓN */
.location-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  background-color: #f5f0e6;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
  position: relative;
}

.location-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.location-info {
  text-align: center;
  width: 100%;
}

.location-info h2 {
  font-size: 2rem;
  color: #5a3921;
  margin-bottom: 15px;
}

.time-info {
  font-size: 1.1rem;
  color: #7a5c3c;
  margin-bottom: 25px;
  font-weight: 500;
}

.map-container {
  height: 250px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* CLASES PARA ACTIVAR TRANSICIONES */
.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.show-section {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .announcement h1 {
    font-size: 2.5rem;
  }
  
  .invitation-text {
    font-size: 1rem;
  }
  
  #countdown-timer {
    gap: 10px;
  }
  
  #countdown-timer div {
    min-width: 70px;
    padding: 10px 15px;
  }
  
  #countdown-timer span {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .location-section {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
  
  .location-image {
    width: 50%;
    height: 100vh;
    margin-bottom: 0;
    border-radius: 0;
  }
  
  .location-info {
    width: 50%;
    padding: 40px;
  }
}