:root{
  --color-base1: #948737; 
  --body-background: #d3cd72;
  --h2-color: #143b16;
  --texto-oscuro:#655c1f;
}
html {
  overflow-x: hidden;
}

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

  
  body {
    font-family: 'Montserrat', sans-serif;
    color: var(--h2-color);
    background: var(--body-background);
    text-align: center;
    overflow-x: hidden;
  }

  /* HERO VIDEO */
.hero {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-image: url('img/hero.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

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

/* hero image */

.princess{
  width: 100%;
  height: auto;
  border-radius: 0%;
  animation: fadeIn 2s ease forwards;
  z-index: 0;
}

/* 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;
}

/* FIX IPHONE */
@supports (-webkit-touch-callout: none) {

  .hero{
    background-attachment: scroll;
  }

}

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

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

  .herosig{
    width: 20%;
    height: 15%;
    position: absolute;
    top:30%;
    left:0px;
    padding: 10px 10px;
    border: 2px solid #c6a46e;
    background: linear-gradient(#ae8d5867,#f3f1ee6b) ;
    font-size: 2rem;
    cursor:pointer;
    color:#655c1f;
  }

  @media(max-width:1440px){
    button {
      position: absolute;
      bottom: 10px;
      left: 36vw;
      padding: 10px 44px;
      border-radius: 40px;
      border: none;
      background: #c6a46e;
      color: white;
      font-size: 2rem;
      cursor: pointer;
    }
  }
 

  .cont-countdown{
    width: 100%;
    height: 30vh;
    background-image: url('img/fondoSambreros.webp');
  }

  .countdown {
    padding-top: 11vh;
    
    font-family: 'Playfair Display', serif; /* Elegante */
    font-size: 3rem;
  
    letter-spacing: 2px;
    text-transform: uppercase;
  
    color: var(--texto-oscuro);
    text-shadow: 3px 3px 3px var(--body-background);
  }

  @media(max-width:1440px){
    .countdown{
      padding-top: 11vh;
      font-size: 4rem;
    }
  }
  
  /* Ajuste para secciones claras */
  .section .countdown {
    color: #3b3b3b;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .countdown {
      padding-top: 80px;
      font-size: 2rem;
      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;
    padding: 0px 20px ;

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

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

    color: var(--texto-oscuro);
    font-family: cursive;
    font-size: 3.5rem;
    text-shadow:
    2px 2px 0 #faf6f6;

  }

  /* FIX IPHONE */
@supports (-webkit-touch-callout: none) {

  .padres{
    background-attachment: scroll;
  }

}

  @media(max-width:1440px){
    .padres{
      font-size: 4rem;
    }
  }

  .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: 30vw;
    height: 10vh;
    text-shadow:
    2px 2px 0 #faf6f6;
  }

  /* DRESS CODE */

  .dress-code {
    width: 90vw;
    height: auto;
    background-image: url("img/fondoSambreros.webp");
  }

  .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.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

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

    width: 100%;
    height: 50vh;

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

  /* FIX IPHONE */
@supports (-webkit-touch-callout: none) {

  .ceremony-img{
    background-attachment: scroll;
  }

  .ceremony2-img{
    background-attachment: scroll;
  }


}

  @media(max-width:768px ){

  }

  /* RECEPTION */

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

    width: 100%;
    height: 50vh;

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

  /* FIX IPHONE */
@supports (-webkit-touch-callout: none) {

  .reception-img{
    background-attachment: scroll;
  }

}
  
  /* SECCIONES */
  .section {
    padding: 0;
    background-image: url("img/fondoSambreros.webp");
  }
  
  .section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding-top: 15px;
    padding-bottom: 10px;
  }

  @media(max-width:1440px){
    .section h2{
      font-size: 3.5rem;
    }
  }
  
  .section img{
    width: 70vw;
    height: auto;
    border-radius: 12px;

  }

  /* FRASE */
  .quote {
    padding: 80px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    background: #f3f1ee;
    text-shadow: 1px 1px 1px #a8a0a07e;
  }

  @media(max-width:1440px){
    .quote {
      font-size: 3rem;
    }
  }
  
  /* INFO */
  .info-grid {
    margin-top: 40px;

    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .info-grid span {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--color-base1);
  }
  
  .info-grid p {
    margin-top: 8px;
    font-size: 1.5rem;
  }
  
  @media(max-width:1440px){
    .info-grid span{
      font-size: 3.2rem;
    }
    .info-grid p{
      font-size: 2.7rem;
    }
  }

  /* 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);
  }

  @media(min-width: 768px){
    .btn{
      font-size: 2.5rem;
    }
  }

  #soundToggle {
    position: fixed;
    bottom: 24px;
    left: 0px;
  
    width: 48px;
    height: 48px;
  
    border-radius: 50%;
    border: none;
  
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
  
    color: #fff;
    font-size: 2rem;
  
    cursor: pointer;
  
    z-index: 9999;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    transition: transform 0.2s ease, background 0.2s ease;
  }

  @media(max-width:1440px){
    #soundToggle{
      padding: 35px 35px;
      width: auto;
      font-size: 3rem;
    }
  }
  
  /* 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: var(--texto-oscuro);
    margin-bottom: 20px;
  }

  @media(max-width:1440px){
    .subtext{
      font-size: 2.5rem;
    }
  }
  
  /* FOOTER */
  footer {
    background: var(--color-base1);
    color: white;
    padding: 50px 20px;
    font-family: 'Playfair Display', serif;
  }

  @media(max-width:1440px){
    footer{
      font-size: 2rem;
    }
    
  }

  /*  animaciones */

  @keyframes fadeIn{
    from{ opacity: 0; transform: scale(.95); z-index: -2;}
    to{ opacity: 1; transform: scale(1); z-index: -2;}
  }

  
  