:root{
  --color-base1: #948737; 
  --body-cont-gen-box-shadow:#333232;
}

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

  
  body {
    font-family: 'Montserrat', sans-serif;
    color: #3b3b3b;
    background: #faf9f7;
    text-align: center;
  }

  .body-cont-general{
   
  }

    /* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--crema);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Contenido */
.loader {
  text-align: center;
  color: var(--gris);
  font-family: 'Poppins', sans-serif;
}

/* Spinner animado */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid var(--dorado);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

  /* Oculta la invitación al inicio */
#mainContent {
  opacity: 0;
  transition: opacity 1.2s ease;

  width: 100%;
  box-shadow: 5px 5px 10px var(--body-cont-gen-box-shadow);
  margin: 0 auto;
}

@media(min-width: 1000px){

  #mainContent {
    max-width: 500px;
  }
}


  /* HERO VIDEO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay elegante */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Contenido encima del video */
.hero-content {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  text-align: center;
}


@media (min-width: 1000px) {
  .hero-video {
    filter: brightness(0.9);
  }

  .hero h1 {
    font-size: 4rem;
  }
}
  
  .hero h1 {
    font-family:  "Dancing Script", cursive;
    font-size: 5rem;
    letter-spacing: 2px;
  }
  
  .hero-frase {
    font-style: italic;
    font-size: 4rem;
    margin: 15px 0 30px;
  }
  
  button {
    padding: 14px 34px;
    border-radius: 40px;
    border: none;
    background: #c6a46e;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }

  .countdown {
    margin-top: 30px;
    margin-bottom: 30px;
  
    font-family: 'Playfair Display', serif; /* Elegante */
    font-size: 3rem;
  
    letter-spacing: 2px;
    text-transform: uppercase;
  
    color: rgba(255, 255, 255, 0.9);
  }
  
  /* Ajuste para secciones claras */
  .section .countdown {
    color: #3b3b3b;
  }
  
  /* Responsive */
  @media (min-width: 1000px) {
    .countdown {
      font-size: 4rem;
      letter-spacing: 1px;
    }
  }


  /* Text after hero */

  .text-after-hero {
    font-family: "Buda", serif;
    font-weight: 300;
    font-style: normal;
    color: var(--color-base1);
  }

  /* PADRES */
  
  .padres {
    width: 100%;
    height: 80vh;

    background-image: url('img/padres.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: var(--color-base1);
    font-family: cursive;
    font-size: 3rem;
    text-shadow:
    2px 2px 0 #faf6f6;

  }

  .padres-nombres {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 50px;
    text-shadow:
    2px 2px 0 #faf6f6;
  }

  .padres-nombres-col{
    display: flex;
    flex-direction: column;
  }

  .padres-nombres p {
    width: 20%;
    height: 10vh;
    text-shadow:
    2px 2px 0 #faf6f6;
  }

  /* DRESS CODE */

  .dress-code {
    width: 100%;
    height: auto;
  }

  .dress-code img {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* CEREMONY */

  .ceremony-img {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 50vh;

    background-image: url(img/ceremoni.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

  /* RECEPTION */

  .reception-img {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 50vh;

    background-image: url(img/reception.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }
  
  /* SECCIONES */
  .section {
    padding: 0;
  }
  
  .section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 40px;
    margin-top: 40px;
  }
  
  .section img{
    width: 70%;
    height: auto;
    border-radius: 12px;

  }

  /* FRASE */
  .quote {
    padding: 80px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    background: #f3f1ee;
  }
  
  /* INFO */
  .info-grid {
    margin-top: 40px;

    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .info-grid span {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--color-base1);
  }
  
  .info-grid p {
    margin-top: 8px;
    font-size: 3rem;
  }
  
  /* BOTONES */

  button {
    background: var(--color-base1);
    
  }

  .btn {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 36px;
    border-radius: 40px;
    background: var(--color-base1);
    color: white;
    text-decoration: none;
    margin-bottom: 30px;
  }
  
  .btn.dark {
    background: var(--color-base1);
  }

  #soundToggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
  
    width: 48px;
    height: 48px;
  
    border-radius: 50%;
    border: none;
  
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
  
    color: #fff;
    font-size: 18px;
  
    cursor: pointer;
  
    z-index: 9999;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    transition: transform 0.2s ease, background 0.2s ease;
  }
  
  /* Music boton Hover desktop */
  #soundToggle:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.7);
  }
  
  /* Music boton Ajuste para iPhone con barra inferior */
  @supports (padding: env(safe-area-inset-bottom)) {
    #soundToggle {
      bottom: calc(24px + env(safe-area-inset-bottom));
    }
  }
  
  
  /* IMAGEN FULL */
  .image-section img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* GALERÍA */
  .gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .gallery img {
    width: 260px;
    border-radius: 12px;
  }
  
  /* RSVP */
  .subtext {
    color: #777;
    margin-bottom: 20px;
  }
  
  /* FOOTER */
  footer {
    background: var(--color-base1);
    color: white;
    padding: 50px 20px;
    font-family: 'Playfair Display', serif;
  }
  