/* =========================================
   IMPORTACIÓN DE FUENTES
========================================= */
@import url('https://fonts.cdnfonts.com/css/miama');
@import url('https://fonts.googleapis.com/css2?family=Alkatra:wght@700&family=Cairo:wght@600;1000&family=Montserrat:ital,wght@0,100;1,100&display=swap');

/* =========================================
   ANIMACIONES DE APARICIÓN
========================================= */
h1, h2, p, img, .box, .container-img {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Times New Roman', Times, serif;
  background-color: #f7f3ed;
  margin: 0;
  padding: 0;
}

/* Paleta de colores reutilizable */
.main-backgroundcolor { background-color: #B7AA92; }
.main-fontcolor { color: #B7AA92; }

/* =========================================
   ENCABEZADOS Y TEXTOS
========================================= */
h1 {
  font-family: 'Montserrat', 'Cairo', 'Alkatra', sans-serif;
  text-align: center;
  padding: 10px;
}

h2 {
  font-size: 1.5rem;
  text-align: center;
  padding: 0.4rem 0.5rem;
}

p {
  font-family: 'Cairo', 'Alkatra', sans-serif;
  text-align: center;
  padding: 0.4rem 0.5rem;
}

/* =========================================
   SECCIÓN PRINCIPAL
========================================= */
.mainText {
  font-family: 'Miama', sans-serif;
  font-size: 4rem;
}

/* =========================================
   CAJAS Y FECHAS
========================================= */
.box {
  padding: 10px 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 25px;
}

.box img {
  width: 100px;
  margin-bottom: 10px;
}

.date-celebration {
  display: flex;
  flex-direction: row;
  font-size: 2rem;
}

.date-celebration > div {
  width: 50%;
}

.date-celebration > div:first-child {
  border-right: 1px solid;
}

.hour {
  display: flex;
  align-items: center;
}
.hour span {
  font-size: 1rem;
}

/* =========================================
   UBICACIÓN (BOTÓN)
========================================= */
.ubication {
  width: 100%;
  max-width: 300px;
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #B7AA92;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.ubication:hover {
  background-color: #B7AA92;
  color: #fff;
}

/* =========================================
   GALERÍA / COLLAGE
========================================= */
.collage {
  padding: 15px;
  margin-bottom: 15px;
}

.container-img {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px;
  grid-gap: 20px;
}

.container-img .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container-img .box-img:nth-child(1) {
  grid-column-start: span 2;
}
.container-img .box-img:nth-child(4) {
  grid-row-start: span 2;
}

/* =========================================
   SECCIÓN HERO (PORTADA)
========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  object-position: center;
  animation: zoomIn 20s ease infinite alternate;
}
@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.overlay-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.countdown-unit {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
}

.countdown-unit span {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
}

.name-overlay {
  font-family: 'Times New', Serief; /* Fuente de la pareja */
  font-size: 7rem;
  font-weight: bold;
  line-height: 1.1;
  padding: 0 20px;
}

.name-overlay span {
  display: block;
}

/* =========================================
   PANEL DE NAVEGACIÓN
========================================= */
.panel-navegacion {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

.panel-navegacion ul {
  list-style: none;
  padding: 10px 5px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.panel-navegacion li {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.panel-navegacion li a {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.panel-navegacion li img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.panel-navegacion .activo {
  background-color: #a0885e;
}
.panel-navegacion .activo img {
  filter: brightness(0) invert(1);
}
.panel-navegacion li:hover {
  background-color: rgba(160, 136, 94, 0.2);
}
.panel-navegacion .activo:hover {
  background-color: #8c734d;
}

/* =========================================
   FORMULARIO RSVP
========================================= */
#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 400px;
  margin: auto;
}

#rsvp-form input,
#rsvp-form select,
#rsvp-form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

#rsvp-form button {
  background-color: #a0885e;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

#rsvp-form button:hover {
  background-color: #8c734d;
}

#form-message {
  margin-top: 10px;
  font-weight: bold;
}

/* Marco QR */
#qrcode-container {
  display: inline-block;
  padding: 15px;
  border: 5px solid #B7AA92;
  border-radius: 12px;
  background-color: #fff;
}


/* =========================================
   WEDDING SECTION
========================================= */
.wedding-section {
    font-family: 'Montserrat', sans-serif;
    color: #4a4a4a;
    padding: 20px 20px;
}

/* Invitación */
.wedding-section .box {
    padding: 10px 0px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.wedding-section .mainText {
    font-family: 'Miama', cursive;
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: -20px;
    text-align: center;
    letter-spacing: 3px;
  
    /* --- Color dorado estático --- */
    color: #867a52;

    /* --- Sombra suave para resaltar --- */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

}

.wedding-section .divider {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.wedding-section .divider::before,
.wedding-section .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(to right, transparent, #B7AA92, transparent);
}

.wedding-section .divider::before { left: 0; }
.wedding-section .divider::after { right: 0; }

.wedding-section .divider-icon {
    display: inline-block;
    font-size: 2rem;
    color: #D4AF37;
}

/* Detalles */
.wedding-section .details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0px 20px;
}

.wedding-section .details .box {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wedding-section .details .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(183, 170, 146, 0.3);
}

.wedding-section .details .box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.wedding-section .details .box h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #B7AA92;
    margin-bottom: 15px;
}

/* Date Celebration */
.wedding-section .date-celebration {
    display: flex;
    margin: 20px 0;
    gap: 20px;
}

.wedding-section .date-celebration > div:first-child {
    border-right: 2px solid #B7AA92;
}

.wedding-section .date-celebration p {
    font-size: 1.8rem;
    font-weight: 600;
    color: #B7AA92;
}

.wedding-section .hour span {
    font-size: 1rem;
}

/* Ubicación */
.wedding-section .ubication {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    padding: 15px 30px;
    border: 2px solid #B7AA92;
    border-radius: 25px;
    background: white;
    color: #B7AA92;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 20px;
}

.wedding-section .ubication:hover {
    background: linear-gradient(135deg, #B7AA92, #D4AF37);
    color: white;
    border-color: #D4AF37;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(183, 170, 146, 0.4);
}

/* Itinerario */
.wedding-section #itinerario {
    padding: 80px 20px;
    background: white;
}

.wedding-section .header-itinerario h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #B7AA92;
    margin-bottom: 5px;
    text-align: center;
}

.wedding-section .header-itinerario p {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 3px;
    text-align: center;
}

.wedding-section .linea-tiempo {
    position: relative;
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wedding-section .linea-tiempo::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #B7AA92, #D4AF37);
    transform: translateX(-50%);
}

.wedding-section .evento {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.wedding-section .detalle-evento {
    position: absolute;
    width: 40%;
    right: 55%;
    text-align: right;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wedding-section .detalle-evento p:first-child {
    font-weight: 600;
    color: #B7AA92;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.wedding-section .detalle-evento p:last-child {
    font-size: 0.9rem;
    color: #666;
}

.wedding-section .icono-evento {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #B7AA92, #D4AF37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(183, 170, 146, 0.4);
    position: relative;
}

.wedding-section .icono-evento img {
    width: 40px;
    height: 40px;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media only screen and (min-width: 600px) {
  .details {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 15px;
  }
}

@media only screen and (min-width: 800px) {
  .mainImage {
    height: 600px;
  }
  .mainImage img {
    height: 100%;
  }
}

@media screen and (max-width: 800px) {
  .container-img {
    width: 95%;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    grid-template-rows: 200px;
  }
  .container-img .box-img:nth-child(1) {
    grid-column-start: span 1;
  }
}

@media screen and (max-width: 500px) {
  .container-img {
    width: 90%;
    grid-template-columns: 1fr;
  }
  .container-img .box-img img {
    height: 200px;
  }
}