html, body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.body {
        height: 100%;
        width: 100%;     
}

#myVideo{
  cursor: pointer;
}
#volume{
  position:absolute;
  top: 50%;
  right: 1em;
  cursor: pointer;
  opacity: 0.4;
}

.mensaje{
  position: relative;
}

.arab{
  color:white;
  font-size: larger;
  position: absolute;
  left: 40%;
  top: 70%;
  z-index: 300;
  opacity: 0.5;
  transform: translateX(-50%);
  transform: translateY(-50%);
}

.carta-container {
    position: absolute;
    overflow: hidden;
    width: 100vw; /* **IMPORTANTE:** Debe coincidir con el ancho total de tus dos imágenes combinadas */
    height: 100vh; /* **IMPORTANTE:** Debe coincidir con la altura de tus imágenes */
    max-width: 100vw;
    background-color: transparent; /* No necesitamos un fondo aquí si las imágenes lo cubren */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    top: 0;
}

/* Estilos de las imágenes de las solapas */
.mitad-carta {
    position: absolute;
    width: 100%; /* La mitad del ancho del contenedor */
    height: 100vh;
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
    transition: transform 0.5s ease-in-out; 
    z-index: 10; 
}

.izquierda {
    left: -10%;
}

.derecha {
    right: -48%;
}


.prioritario{

    margin-top: -3em;
    padding-top: 4em;
    background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(165, 82, 0, 0.298) 5%,  
    rgba(166, 89, 0, 0.257) 30%, 
    rgba(166, 111, 0, 0.257) 80%, 
    rgba(0, 0, 0, 0) 100%);    
}


.contenido-invitacion {
    /* ... (Mismos estilos que antes) ... */
    position: relative;
    text-align: center;
    padding: 20px;
    opacity: 0; 
    transition: opacity 1s ease-in 1s; 
    max-width: 100%;
    z-index: 5;
}

/* --- CLASES PARA LA APERTURA (El JavaScript se mantiene igual) --- */
.carta-abierta{
  pointer-events: none;
}

.carta-abierta .izquierda {
    transform: translateX(-100%); /* Desliza la mitad izquierda */
}

.carta-abierta .derecha {
    transform: translateX(100%); /* Desliza la mitad derecha */
}

.carta-abierta .contenido-invitacion {
    opacity: 1; 
}

.carta-abierta .monograma-sello {
    opacity: 0; 
    pointer-events: none;
}

.mensajito{
  
  z-index: 400;
}

input .entrada{ 
    margin: 3em;
}

.textoespecial{
  color: rgb(0, 4, 255);
}
.tx2 {
  font-family: "WindSong", cursive;
  font-weight: 400;
  font-style: normal;
}

.windsong-medium {
  font-family: "WindSong", cursive;
  font-weight: 500;
  font-style: normal;
}


.tx1 {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.tx3 {
  font-family: "Cardo", serif;
  font-weight: 400;
  font-style: normal;
}


.tx4 {
  font-family: "Lexend Tera", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -2px;

  /* Efecto de reflejo plateado animado diagonal */
  background: linear-gradient(
    135deg,
    #707070 0%,
    #707070 35%,
    #ffffff 48%,
    #ffffff 52%,
    #f2f2f2 55%,
    #707070 65%,
    #707070 100%
  );
  background-size: 300% 300%;
  color: #fff; /* Fallback */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine-silver 5s infinite;
}

@keyframes shine-silver {
  0% {
    background-position: 0% 0%;
  }
  40% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 100% 100%; /* Pausa prolongada en el último color */
  }
}

.dia{
  
}


.nombres{
  display: flex; 
  justify-content: center;
  align-items: center; 
  width: 100%;
  height: 30vh;
  position: relative; 
  
}
.nombres img{
  position: absolute;
  height: 70%;
  z-index: 30;
  opacity: 0.5;
}
.nombres .novios{
  font-size: 2.8em;
  z-index: 40;

}

.principal .mediaderecha .graficos{
  display: grid;
}


.video-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}






.contenedor {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0);
    
}

.seccion-fondo {
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;   
    background-color: rgba(0, 0, 0, 0);
}

.padres{
  font-size: 1.3em;
  font-weight: 500;
}

#scene{
  background-color: #00000000;
  margin-bottom: 0;
}

.sektion{
}

.slide {
  position: absolute;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide::before {
  overflow: hidden;
  background-size: cover;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(
    to right, /* Dirección del degradado */
    rgb(0, 0, 0) ,
    rgb(0, 0, 0) , /* Color inicial opaco (ej. negro) */
    rgba(0, 0, 0, 0) ,
    rgba(0, 0, 0, 0) ,
    rgba(0, 0, 0, 0) ,
    rgba(0, 0, 0) ,  /* Transparente en un punto medio */
    rgb(0, 0, 0)  /* Mantener la transparencia hasta el final */
  );
  z-index: 1; /* Asegura que el degradado esté sobre la imagen */
}

.image {
  height: 100vh;
  width: 100%;
  object-fit: cover;
}

.seccion-encima {
    position: absolute;
    width: 100%;
    max-width: 100vw;
    align-items: center;
    justify-content: center;
    height: 100%;
    top: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0);
    opacity: 100%;
    overflow-x: hidden;
}

.countdown{
  padding-right: 1em;
  padding-left: 1em; 
}

.date{
  font-size: 1.3em;
  margin-bottom: 0;
}

.time{
  font-size: 0.6em;
}


@media (max-width: 768px) {
  .principal .mediaderecha .graficos{
    font-family: 'Times New Roman', Times, serif;
    visibility: hidden;
  }
}

@media (max-width: 580px) {
  .principal .mediaderecha .graficos{
    font-family: 'Times New Roman', Times, serif;
    visibility: hidden;
  }
  .derecha{
    right:-86%;
  }
  .mitad-carta{
    width: 130%;
  }

  #volume{
  position:absolute;
  top: 90%;
  right: 7vw;
  cursor: pointer;
  opacity: 0.4;
  }
  
  .slide{
    left:0;
    width: 100%;

  }
 

  .slide::before{
  
    background: linear-gradient(
    to right, /* Dirección del degradado */
    rgba(0, 0, 0, 0.37) , /* Color inicial opaco (ej. negro) */
    rgba(0, 0, 0, 0) ,
    rgba(0, 0, 0, 0) ,
    rgba(0, 0, 0, 0) ,
    rgba(0, 0, 0, 0.37)   /* Transparente en un punto medio */
      /* Mantener la transparencia hasta el final */
  );
  }
  .image{
    position: relative;
    left: 50%;
  }
  .image::before{
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    content: "";
    background: linear-gradient(to bottom,
    #000000 0%,
    #00000000 10%,
    #00000000 90%,
    #000 100%);
  }
  
  
  .arab{
    left:15%;
  }
}





@keyframes fadeInOut {
  0% { opacity: 0; }
  30%{opacity: 0.5;} 
  70%{opacity: 0.5;}/* El elemento comienza completamente transparente */
  100% { opacity: 0; } /* El elemento se vuelve completamente visible */
 
}

.btn:disabled {
    cursor: not-allowed;
}


.separador{
  position: relative;
  z-index: 10;
  padding-top: 7em;
  padding-left: 7em;
  padding-right: 3em;
  padding-bottom: 2em;
  text-align: end;
 
  font-size: smaller;
  margin: 0;
}
.frase{
  font-size: 14px;
  text-shadow: none;
}



.boton-plateado {
  background: linear-gradient(
    135deg,
    #e0e0e0 0%,  /* Un tono gris claro para el brillo inicial */
    #ccccccc8 50%, /* Un gris más claro en el centro */
    #cccccc00 100% /* El mismo tono gris claro del inicio */
  );
  text-decoration: none;
  color: #1a1a1a; /* Color del texto */
  border: 1px solid #eee; /* Borde blanco o gris claro */
  border-radius: 10px; /* Esquinas redondeadas */
  padding: 15px 30px; /* Espaciado interno */
  font-size: 18px; /* Tamaño de la fuente */
  cursor: pointer; /* Cambia el cursor al pasar por encima */
  transition: background 0.3s ease; /* Transición suave al pasar el ratón */
}

/* Efecto de brillo al pasar el ratón */
.boton-plateado:hover {
  background: linear-gradient(
    to right,
    #e0e0e0 0%,
    #ffffff 50%, /* Brillo intenso al pasar el ratón */
    #e0e0e0 100%
  );
  color: #000; /* Oscurecer el texto */
}

/* Slider Horizontal Móvil */
.horizontal-slider-container {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.horizontal-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 0 20px;
    /* Ocultar scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-slider::-webkit-scrollbar {
    display: none;
}

.horizontal-slider img {
    flex: 0 0 80%;
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    scroll-snap-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Efecto dorado para nombres intermedios */
.efecto-dorado {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #ffffff 35%,
    #e8c15a 45%,
    #bd8d2c 50%,
    #e8c15a 55%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 300% 300%;
  color: #ffffff; /* Fallback */
  -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff61;
  background-clip: text;
  animation: shine-gold 5s infinite;
}

@keyframes shine-gold {
  0% {
    background-position: 0% 0%;
  }
  40% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Efecto dorado brillante sobre el sello */
.sello-dorado {
  position: relative;
  -webkit-mask-image: url('../lacre4.png');
  mask-image: url('../lacre4.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  overflow: hidden;
}

.sello-dorado::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(232, 193, 90, 0.2) 40%,
    rgba(232, 193, 90, 0.8) 50%,
    rgba(255, 255, 255, 0.9) 52%,
    rgba(232, 193, 90, 0.8) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine-sello 5s infinite;
  pointer-events: none;
  z-index: 600;
}

@keyframes shine-sello {
  0% { left: -150%; }
  40% { left: 150%; }
  100% { left: 150%; }
}