/* ---------------------- */
/* Estilos de la fuente */
/* ---------------------- */
@font-face {
  font-family: 'Astralaga';
  src: url('fonts/Astralaga-Medium.woff') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Battyna';
  src: url('fonts/Battyna-Regular.woff') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir-LT-Std-55-Roman.woff') format('truetype');
  font-weight:900;
  font-style: normal;
}

/* ---------------------- */
/* General */
/* ---------------------- */
body {
  margin: 0;
  touch-action: pan-y;
  font-family: 'Arial', sans-serif;
  background-color: #fdfcfb;
  color: #333;
  text-align: center;
  overflow-x: hidden;
}

h1, h2, p {
  margin: 10px 0;
}

/* ---------------------- */
/* Carta Animada */
/* ---------------------- */

/* PANTALLA DE CARGA */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Animación de la libélula */
#container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 0;
  padding-bottom: 62.5%;
}

#animation-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#libelula {
  position: absolute;
  transform-origin: center;
  width: 37.5%;
  height: 60%;
  z-index: 10;
}

#trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#logo {
  max-width: 300%;
  max-height: 300%;
  margin-top: 220%;
}

/* Desvanecer la pantalla de carga */
.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

@media (max-width: 768px) {
  #container {
      padding-bottom: 100%; /* Aumenta ligeramente la altura en móviles */
  }

  #logo-container {
  width: 250px; /* 300px de 800px */
  height: 250px;  /* 300px de 500px */
}
}
/* Media queries para ajustar en pantallas muy pequeñas */
@media (max-width: 480px) {
  #container {
      padding-bottom: 100%; /* Aumenta ligeramente la altura en móviles */
  }

  #logo-container {
  width: 250px; /* 300px de 800px */
  height: 250px;  /* 300px de 500px */

}

#logo {
  margin-top: 250%;
}
}



/* ---------------------- */
/* Contenido de Carta */
/* ---------------------- */

html, body {
  overflow-x: hidden;
  overflow-y: hidden;
}


.sobre-container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d6d6d6;
  z-index: 9999;
}

.sobre {
  position: relative;
  width: 100VW; /* Asegúrate de mantener el tamaño original */
  height: 100VH;
  perspective: 1000px;
  transition: transform 1s ease-in-out;
}

.capa {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
  backface-visibility: hidden;
  
}

.capa-top {
  background: url('images/top-layer.png') no-repeat center/cover;
  transform-origin: top center;
  z-index: 2;
}

.capa-medio {
  background: url('images/middle-layer.png') no-repeat center/cover;
  z-index: 0;
}

.capa-bottom {
  background: url('images/bottom-layer.png') no-repeat center/cover;
  z-index: 1;
  
}

.sello {
  position: absolute;
  width: 450px;
  height: 450px;
  background: url('images/sello.png') no-repeat center/contain;
  border-radius: 50%;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 3;
  transition: transform 1s ease-in-out, opacity 0.5s ease-in-out;
}

.abierto .capa-top {
  transform: rotateX(180deg);
}

.abierto .sello {
  transform: translate(-50%, -300%) rotateX(180deg);
  opacity: 0;
}

#contenidoPrincipal {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {

  .capa-top {
    transform-origin: top center;
    background-size: 300%;
    background-position:top;
    background-attachment: scroll;
    z-index: 2;
  }
  
  
  .capa-bottom {
    transform-origin: top center;
    background-size: 300%;
    background-position:bottom;
    background-attachment: scroll;
    z-index: 1;
    
  }

  
 
  
}


@media (max-width: 560px) {

  .capa-top {
    background-size: 300%;
    background-position:50% 0%;
    background-attachment: scroll;
    z-index: 2;
    height: 150%;
  }
  
  
  .capa-bottom {
    transform-origin: top center;
    background-size: 300%;
    background-position:bottom;
    background-attachment: scroll;
    z-index: 1;
    
  }
  .sello {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 53%;
  
}
}




/* ---------------------- */
/* Contenido Nav */
/* ---------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.navbar {
  display: flex;
  justify-content: space-between; /* Separa los elementos */
  align-items: center;
  background-color: #fff;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar a {
  margin:  20px; /* Espacio entre los botones */
  padding: 0px 20px; /* Agrega más espacio dentro de los botones */
  font-size: 16px; /* Tamaño de la fuente */
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1; /* Hace que la lista ocupe el espacio restante */
  justify-content:center ; /* Alinea los botones a la derecha */
  
}

.nav-list li {
  margin: 0 15px;
  font-family: 'Avenir';
}

.nav-list a {
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #0f0b01;
}

.logo {
  font-family: 'Astralaga', cursive;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  flex-grow: 1; /* Permite que el logo se quede en el centro */
}

/* ---------------------- */
/* Menú Hamburguesa */
/* ---------------------- */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1500;
  position: absolute;
  left: 20px; /* Mantiene el menú en la izquierda */
  top: 15px;
}
.bar {
  background-color: #333;
  height: 2px;
  width: 20px;
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-list.mobile-menu {
  display: none !important;
}

@media (max-width: 1090px) {
  .nav-list {
    position: fixed;
    top: 0;
    left: -100%; /* ✅ Desliza desde la izquierda */
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.4s ease-in-out;
    display: flex;
  
  }

  .nav-list.mobile-menu {
    display: flex !important;
  }
  
  .logo {
      font-size: 25px;
  }
  
  .nav-list.active {
    left: 0; /* ✅ Se muestra el menú */
  }
  
  .nav-list li {
    margin: 20px 0;
  }
  
  .nav-list a {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
  }
  
  .nav-list a:hover {
    color: #b88c6e;
  }

  .menu-toggle {
      display: flex;
  }
}



/* ---------------------- */
/* Animación del ícono cuando se abre carta */
/* ---------------------- */

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Contenedor de la página */
.page-content {
  display: none; /* Ocultar al inicio */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.page-content.mostrar {
  display: block;
  opacity: 1;
}


/* ---------------------- */
/*  Scrolling tipo parallax   */
/* ---------------------- */

* {
  box-sizing: border-box;
}
/* hide scrollbar */
::-webkit-scrollbar {
  width: 1px;
  height: 1px;
}
::-webkit-scrollbar-button {
  width: 1px;
  height: 1px;
}
.external {
  overflow: hidden;
  height: 100vh;
  overscroll-behavior-y:contain;
  -webkit-overscroll-behavior-y: none;
}


.horizontal-scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vh;
  transform: rotate(-90deg) translate3d(0,-100vh,0);
  transform-origin: right top;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0;
  height: 100vw;
  perspective: 1px;
  transform-style: preserve-3d;
  padding-bottom: 10rem;
}
.img-wrapper {
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  transform-origin: 50% 50%;
  transform: rotate(90deg) translateZ(.1px) scale(1) translateX(0px) translateY(-3vh);
  transition: 1s;
}
.img-wrapper:hover {
 min-height: 40vh;
}
.photo1 {
  transform: rotate(90deg) translateZ(-.2px) scale(1.5) translateX(-30%) translateY(-1vh);
}
.photo2 {
  transform: rotate(90deg) translateZ(.15px) scale(.95) translateX(-10%) translateY(14vh) ;
}
.photo3 {
  transform: rotate(90deg) translateZ(-.15px) scale(1.3) translateX(-20%) translateY(0%) ;
}
.photo4 {
  transform: rotate(90deg) translateZ(-.2px) scale(1.3) translateX(-30%) translateY(16vh) ;
}
.photo5 {
  transform: rotate(90deg) translateZ(.1px) scale(1) translateX(-150px) translateY(-3vh);
}
.photo6 {
  transform: rotate(90deg) translateZ(-.2px) scale(1.3) translateX(-50%) translateY(15vh);
}
.photo7 {
  transform: rotate(90deg) translateZ(.06px) scale(1) translateX(-70%) translateY(-6vh) ;
}
.photo8 {
  transform: rotate(90deg) translateZ(-.5px) scale(1.5) translateX(-7%) translateY(2vh);
}
.photo9 {
  transform: rotate(90deg) translateZ(.1px) scale(1.1) translateX(-190px) translateY(3vh);
}
.photo10 {
  transform: rotate(90deg) translateZ(-.2px) scale(1.5) translateX(-53%) translateY(-1vh);
}
.photo11 {
  transform: rotate(90deg) translateZ(-.2px) scale(1.5) translateX(-10vh) translateY(2vh) ;
}
.fastest {
  transform: rotate(90deg) translateZ(.22px) scale(1.4) translateX(-10vh) translateY(-15vh) ;
}

.scroll-info, header {
  position: absolute;
  left: 1rem;
}
header {
  bottom: 1rem;
}
.scroll-info {
  top: 1rem;
}
a {
  color: inherit;
  font-weight: 500;
  
}
h1 {
  font-weight: 300;
  font-size: 1rem;
}
.img-wrapper a {
  overflow: hidden;
  display: block;
  padding: 1vh ;
  background: #ffffff;
  box-shadow: 0 10px 50px #00000082;
  -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Estilo general para todas las imágenes */
.img-wrapper img {
  width: 100%;
  height: 100vh; /* Esto controla la altura visible */
  object-fit: cover;
  transition: object-position 0.3s, transform 0.3s;
  max-width: 28vh;
  max-height: 50vh;
  transition: .5s;
  vertical-align: top;
  filter: saturate(40%) sepia(30%) hue-rotate(5deg) grayscale(100%);
}


.img-wrapper.photo10 img {
  max-width: 30vh;
  max-height: 50vh;
}


a:hover img {
  filter: none;
}
p {
  margin: 0;
}
.scroll-info {
  display: flex;
  align-items: center;
}
.icon svg {
    width: 50px;
    fill: currentcolor;
}

@media (max-width: 768px) {
  .photo1 {
    transform: rotate(90deg) translateZ(-.2px) scale(1.5) translateX(10%) translateY(-1vh);
  }

  .photo9 {
    transform: rotate(90deg) translateZ(.1px) scale(1.1) translateX(-100px) translateY(3vh);
  }

  .photo10{
    transform: rotate(90deg) translateZ(-.2px) scale(1.5) translateX(37vh) translateY(-2vh);
  }
  .photo11 {
    transform: rotate(90deg) translateZ(-.2px) scale(1.5) translateX(-30vh) translateY(-3vh) ;
  }
}





/* ---------------------- */
/* Texto Superpuesto al scrolling */
/* ---------------------- */

.overlay { 
  position: absolute;
  bottom: 50%; /* Coloca el overlay en la parte inferior */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 2px 2px 5px rgba(36, 35, 35, 0.158);
  z-index: 1;
  text-align: center;
  font-family: 'Astralaga', cursive;
  white-space: nowrap;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none; /* Evita la selección de texto */
  pointer-events: none; /* Evita que el overlay intercepte eventos táctiles */
}

.overlay-container {
  min-width: max-content;
}

.overlay-text {
  display: flex;
  flex-direction: column;
}

.overlay h1 {
  font-size: 90px;
  font-weight: bold;
  white-space: nowrap;
  margin-bottom: 10px; /* Espaciado con los párrafos */
  transform: translateY(-60px); /* Sube el título */
}

.overlay p {
  font-size: 1.2rem;
  margin: 5px 0; /* Espaciado entre párrafos */
  transform: translateY(410px); /* Sube el título */
  color: #000000;
  font-family: 'avenir' ;
}


@media (max-width: 980px) {
  .overlay h1 {
    font-size: 70px;
  }
  
  .overlay p {
    font-size: 1rem;
  }

  .last {
    transform: rotate(90deg) translateZ(-.2px) scale(1.5) translateX(10vh) translateY(3vh) ;
  }
}

@media (max-width: 768px) {
  .overlay h1 {
    font-size: 54px;
    margin-bottom: -20px;
  }

  .overlay p {
    font-size: 1rem;
    transform: translateY(400px); /* Sube el título */
  }
}

@media (max-width: 400px) {
  .overlay h1 {
    margin-bottom: -20px;
    font-size: 44px;
  }


  .overlay p {
    font-size: 0.9rem;
    transform: translateY(320px); /* Sube el título */
  }
}

@media (max-width: 360px) {
  .overlay p {
    font-size: 0.7rem;
    transform: translateY(320px); /* Sube el título */
  }
}



/* ---------------------- */
/* cronograma
/* ---------------------- */


.schedule-section {
  position: relative;
  background-image: url('images/photo12.webp');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  text-align: center;
  padding: 160px 20px;
}

/* Fondo semitransparente */
.schedule-section .overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none; /* Para que no bloquee clics o scroll */
}

/* Asegurar que el contenido se mantenga por encima del fondo */
.schedule-section h2, .schedule-container {
  position: relative;
  z-index: 1;
}

.schedule-section h2 {
  font-family: 'Astralaga', cursive;
  font-size: 50px;
  margin-bottom: -50px;
  color: #ffffff;
  padding: 100px;
  position: relative; /* Lo ponemos en una capa superior */
}

.schedule-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* Permite que los elementos se acomoden en varias líneas */
  max-width: 1200px;
  margin: 0 auto;
}

/* Cada evento */
.event {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.event:hover {
  transform: translateY(-5px);
}

.event h3 {
  font-family: 'Astralaga', cursive;
  font-size: 34px;
  color: #ffffff;
  margin-bottom: 10px;
}

.event p {
  font-family: "Avenir";
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 10px;
}

.event img {
  width: 50px;
  height: auto;
}

/* Responsividad */
@media (max-width: 768px) {
  .schedule-section {
    background-position: 45% 55%;
  }

  .schedule-container {
    flex-direction: column;
    align-items: center;
  }

  .event {
    width: 80%; /* Ocupa más espacio en pantallas pequeñas */
    max-width: 300px;
  }

  .schedule-section h2 {
    padding: 10px;
    font-size: 40px;
  }
}

@media (max-width: 480px) {
    .schedule-section h2 {
      gap: 2px;
      padding: 10px;
      font-size: 40px;
  }

  .event {
    width: 90%;
  }
}



/* ---------------------- */
/* Sección de Ubicación */
/* ---------------------- */

.location-section {
  background-image: url('images/papelV.webp');
  background-size:cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  text-align: center;
  padding: 160px 20px;
  z-index: 0;
}

.location-title {
  position: relative;
  margin-bottom: 60px;
  padding-top: 40px;
  
}

.location-title h2 {
  font-family: 'Astralaga', cursive;
  font-size: 70px;
  margin: 0;
  color: #000;
  text-align: center;
}

.location-title h3 {
  font-family: 'Battyna', cursive;
  font-size: 74px;
  color: #000;
  margin: 0;
  position: absolute;
  left: 57%;
  top: 60%;
  transform: translateX(-30%) rotate(-9deg);
  z-index: 1;
  white-space: nowrap;
}

.location-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.location {
  display: grid;
  grid-template-columns: 180px auto; /* Ajuste de columnas */
  align-items: center; /* Alinea verticalmente los elementos */
  gap: 10px;
  padding: 1px;
}

.location-icon {
  width: 120px;
  height: auto;
  position: relative;
  top: 90px;
  left: 90px;
  grid-column: 1;

}

.location-time {
  font-family: 'Astralaga', cursive;
  font-size: 20px;
  margin-bottom: 10px;
  color: #000;
  position: relative;
  left: 60px;
  top: 40px; /* Posición fija para todos los horarios */
  transform: none;
  text-align: center;
  grid-column: 1;
}

.location-info {
  grid-column: 2;
  padding-left: 20px;
  text-align: left;
  margin-left: 200px;
}

.location-info h4 {
  font-family: 'Avenir', sans-serif;
  font-size: 20px;
  margin: 0 0 15px 0;
  color: #000;
  
}

.location-info h4,
.venue-name,
.venue-address,
.venue-city {
  text-align: left;
  margin: 5px 0;
  
}

.venue-name {
  font-family: 'Avenir', sans-serif;
  font-size: 18px;
  margin: 0 0 10px 0;
  color: #000;
}

.venue-address, .venue-city {
  font-family: 'Avenir', sans-serif;
  font-size: 16px;
  margin: 5px 0;
  color: #000;
}

.location-button {
  margin-top: 0px;
  padding: 10px 25px;
  background-color: #ffffff00;
  color: #000000;
  border: 1px solid #000000;
  font-family: 'Avenir', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color  0.5s ease;
  margin-left: 400px;
  grid-column: 2;
}

.location-button:hover {
  background-color: #5c5c5c;
}

@media (max-width: 1090px) {

  .location-container {
    gap: 40px; /* Reduce el espacio entre ubicaciones */
  }

  .location-title h2 {
    font-size: 60px;
   
  }

  .location-title h3 {
    right: 40%;
    font-size: 60px;
    top: 80%;
  }

  .location-button {
    margin-top: 10px;
  padding: 10px 25px;
  margin-left: 150px;
  grid-column: 2;
  }
}



/* Responsive */
@media (max-width: 768px) {

  .location-container {
    gap: 60px; /* Reduce el espacio entre ubicaciones */
  }

  .location-title h3 {
    right: 30%;
    font-size: 60px;
    top: 80%;
  }

   .location-icon {
    width: 100px;
    height: auto;
    position: static;
    margin-bottom: 10px;
  }

  .location {
    display: flex; /* Cambia a un diseño de fila */
    flex-direction: column; /* Apila los elementos en columna */
    align-items: center;
    text-align: center;
  }

  .location-time {
    left: 0;
    top: 0;
    font-size: 18px;
  }

  .location-info {
    margin-left: 0;
    text-align: start;
    padding: 10px 0;
  }

  .location-button {
    margin-left: 300px;
    width: 30%;
    padding: 5px 25px;
  }
}

@media (max-width: 480px) {
  .location-title h2 {
    font-size: 50px;
  }

  .location-title h3 {
    font-size: 50px;
    right:-30%;
    top: 80%;
  }

  .location-info h4,
.venue-name,
.venue-address,
.venue-city {
  text-align: center;
  
}

  .location-icon {
    margin-bottom: 10px;
  }

  .location-button {
    margin-left: 200px;
    width: 40%;
  }

}



/* ---------------------- */
/* Sección de Animación de Texto */
/* ---------------------- */

.text-animation-section {
  background: url('images/nuestra.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 10px 20px;
}

.content-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em 2em;
  margin: 1em auto;
  max-width: 1200px;
  --lgrad: linear-gradient(#ffffff 0 0);
  --thickness: 0.4em;
  --sz: 2em;
  border: solid var(--thickness) #9b9b9bc7;
  mask: var(--lgrad) padding-box,
    conic-gradient(at var(--sz) var(--sz), #0000 75%, #000 0%) 0 0 /
      calc(100% - var(--sz)) calc(100% - var(--sz));
  transition: border 0.4s ease-in-out;
}

.layer {
  position: relative;
  width: calc(6 * 1em);
  height: calc(5 * 1.5em); /* Cambiado de 4 a 5 filas */
  font-family: monospace;
  display: grid;
  grid-template-columns: repeat(6, 1em);
  grid-template-rows: repeat(5, 1.5em); /* Cambiado de 4 a 5 filas */
  line-height: 1.5;
  user-select: none;
  font-size: 4em;
}

.layer .word-group {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, 1em);
  grid-template-rows: repeat(5, 1.5em); /* Cambiado de 4 a 5 filas */
  white-space: pre;
  margin: auto;
  justify-content: center;
}


.layer .cell {
  margin: auto;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  color: rgba(32, 32, 32, 0.062);
  text-transform: uppercase;
  font-family: monospace;
}

@property --g-ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.word-group {
  --g-ang: 0deg;
  background: conic-gradient(
    at 0% 100%,
    transparent calc(var(--g-ang) - 270deg),
    #ffffff calc(var(--g-ang) - 270deg),
    #ffffffa8 calc(var(--g-ang) - 4deg),
    transparent var(--g-ang)
  );
  background-clip: text;
  color: transparent;
  animation: rot-ang 16s ease-in-out infinite;
}

.side-section {
  width: 100%;
  max-height: 300px;
  max-width: 0px;
  overflow: hidden;
  color: #fdfdfd;
  transition: all 1s ease-in-out;
  opacity: 0;
}

.content-wrap:hover {
  border: solid var(--thickness) #ffffff;
}

.content-wrap:hover .side-section {
  margin-left: 4em;
  max-width: 1000px;
  opacity: 1;
}

/* Animaciones */
/* Ajustar la duración total de la animación */
@keyframes rot-ang {
  20% { /* Cambiado de 25% a 20% para 5 grupos */
    --g-ang: 360deg;
  }
  20.000001% {
    --g-ang: 0deg;
  }
  100% {
    --g-ang: 0deg;
  }
}

/* Actualizar los delays de animación para 5 grupos */
.word-group:nth-child(1) { animation-delay: 0s; }
.word-group:nth-child(2) { animation-delay: 4s; }
.word-group:nth-child(3) { animation-delay: 8s; }
.word-group:nth-child(4) { animation-delay: 12s; }
.word-group:nth-child(5) { animation-delay: 16s; } /* Nueva línea */

/* Estilos para el botón */
/* Actualizar los estilos de la sección lateral */
.content-wrap {
  display: flex;
  flex-direction: column; /* Cambio importante */
  justify-content: center;
  align-items: center;
  padding: 1em 2em;
  margin: 1em auto;
  max-width: 1200px;
  /* Resto del CSS igual */
}

.side-section {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease-in-out;
  margin-top: 20px; /* Espacio desde la animación */
  background-color: #f9f5f200; /* Color de fondo suave */
  border-radius: 10px;
  padding: 0;
  text-align: center;
}

.side-section.active {
  max-height: 500px; /* Ajusta según tu contenido */
  opacity: 1;
  padding: 2em;
}
/* Estilos para el contenedor del texto y botón */
.side-section p {
  margin-bottom: 2em;
}

/* Actualizar los estilos del botón */
.button {
  font-size: 1.2em;
  padding: 0.6em 2em;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
}

.button:hover {
  background: #ffffff;
  color: #000000;
}

/* Ajustes responsivos */
@media screen and (max-width: 600px) {
  .content-wrap:hover .side-section {
    margin-left: 0;
    margin-top: 2em;
    max-height: 1000px;
    opacity: 1;
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ---------------------- */
/* Estilos para la sección del calendario - Completamente Responsivo */
/* ---------------------- */
.date-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem;
  background-image: url('images/papelV.webp');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
  z-index: 0;
}

/* Contenedor para elementos del calendario */
.date-section-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Texto introductorio */
.text-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.text-container p {
  font-family: 'Avenir', sans-serif;
  font-size: clamp(1rem, 3vw, 2rem); /* Texto responsivo */
  color: #000000;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Contenedor para el calendario */
.calendar-container {
  position: relative;
  background: #b9b8a9;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
   margin: 0 auto; /* Esto lo centrará */
  justify-content: center;
}

.calendar-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Header del calendario */
.calendar-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.calendar-header h2 {
  font-family: 'Astralaga', cursive;
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2rem); /* Texto responsivo */
  margin: 0;
  line-height: 1.2;
}

/* Estructura del calendario */
.calendar {
  width: 100%;
  display: grid;
  gap: 0.5rem;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-family: 'Avenir', sans-serif;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1rem;
  gap: 5px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  align-items: center;
}

/* Celdas de días */
.days div {
  aspect-ratio: 1/1; /* Mantiene las celdas cuadradas */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Avenir', sans-serif;
  font-size: clamp(0.8rem, 2vw, 1rem); /* Texto responsivo */
  color: #ffffff;
  position: relative;
}

/* Día resaltado */
.days div.highlight {
  position: relative;
  color: #ffffff;
  font-weight: bold;
  background: transparent !important;
}

/* Marcador circular */
.circle-marker {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  z-index: -1;
}

/* Contenedor de texto inferior */
.date-text-container {
  max-width: 450px;
  padding: 2rem;
  position: relative;
}

.date-text-container p {
  font-family: 'Battyna', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem); /* Texto responsivo */
  line-height: 1.1;
  color: #000000;
  text-align: center;
  margin: 0;
}

/* Flecha decorativa */
.arrow-container {
  position: absolute;
  width: 200px;
  height: 100px;
  pointer-events: none;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(150px, 50px) rotate(180deg);
  transform-origin: center;
  will-change: transform;
  display: none; /* Oculto por defecto, se muestra en pantallas grandes */
}

.curved-arrow {
  stroke: #000000;
  stroke-width: 3;
  fill: none;
  opacity: 0.8;
  stroke-dasharray: 5, 5;
  stroke-dashoffset: 500;
  animation: drawArrow 2s ease forwards;
}

@keyframes drawArrow {
  from {
    stroke-dashoffset: 500;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
}

/* Media Queries - Diseño responsivo */
/* Pantallas grandes - Layout horizontal */
@media (min-width: 1080px) {
  .date-section {
    padding: 5rem;
  }
  
  .date-section-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .calendar-container {
    margin-right: 2rem;
  }
  
  .date-text-container {
    padding: 3rem;
  }
  
  .date-text-container p {
    text-align: left;
  }
  
  .arrow-container {
    display: block; /* Mostrar flecha en pantallas grandes */
   
  }
}

/* Pantallas medianas */
@media (min-width: 768px) and (max-width: 1023px) {
  .date-section {
    padding: 4rem 2rem;
  }
  
  .calendar-container {
    max-width: 380px;
  }
  
  .circle-marker::before {
    width: 32px;
    height: 32px;
  }
}

/* Tablets y móviles grandes */
@media (min-width: 481px) and (max-width: 767px) {
  .date-section {
    padding: 3rem 1.5rem;
  }
  
  .calendar-container {
    max-width: 340px;
    padding: 1.5rem;
  }
  
  .circle-marker::before {
    width: 30px;
    height: 30px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .date-section {
    padding: 2rem 1rem;
    min-height: 0vh;
  }
  
  .text-container {
    margin-bottom: 2rem;
  }
  
  .calendar-container {
    max-width: 300px;
    padding: 1rem;
  }
  
  .calendar-header {
    margin-bottom: 1.5rem;
  }
  
  .weekdays, .days {
    gap: 3px;
  }
  
  .circle-marker::before {
    width: 26px;
    height: 26px;
  }
  
  .date-text-container {
    padding: 1.5rem 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 360px) {
  .date-section {
    padding: 1.5rem 0.5rem;
  }
  
  .calendar-container {
    padding: 0.8rem;
  }
  
  .weekdays div, .days div {
    font-size: 0.7rem;
  }
  
  .circle-marker::before {
    width: 22px;
    height: 22px;
  }
}

/* ---------------------- */
/* Cuenta Regresiva */
/* ---------------------- */

.countdown-section {
   background-image: url('images/papelV.webp');
  background-size:cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  text-align: center;
  padding: 0px 20px;
}

.countdown-section h2 {
  font-family: "Astralaga", cursive;
  font-size: 3rem; /* Tamaño más grande */
  font-weight: bold;
  text-align: center;
  margin-top: 0px; /* Centrar el título */
  margin-bottom: 50px; /* Espaciado entre el título y los números */
  color: #000000; /* Color elegante */
  text-transform: uppercase; /* Convierte el texto en mayúsculas */
  letter-spacing: 2px; /* Espaciado entre letras */
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 40px; /* Aumenta la separación entre los bloques */
  flex-wrap: wrap; /* Permite que se acomoden en varias líneas en pantallas pequeñas */
  padding: 20px 0;

}

#countdown div {
  font-family: 'Astralaga', cursive;
  display: flex;
  flex-direction: column; /* Hace que los números estén arriba y los textos abajo */
  align-items: center; /* Centra los elementos */
  font-size: 2rem; /* Tamaño de los números */
  font-weight: bold;
  color: #555;
  padding: 10px 20px; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    min-width: 120px; /* Ancho mínimo para evitar que se encojan demasiado */
}

#countdown span {
  font-size: 2rem; /* Tamaño grande para los números */
  font-weight: bold;
  color: #555;
}

#countdown div small {
  
  font-size: 1rem; /* Tamaño más pequeño para los textos */
  font-weight: normal;
  color: #555;
}

/* 📌 RESPONSIVIDAD */
@media (max-width: 768px) {
  #countdown {
      gap: 20px; /* Reduce la separación en pantallas más pequeñas */
  }

  #countdown div {
    font-size: 2rem;
      min-width: 100px; /* Reduce el ancho mínimo */
  }

  #countdown span {
      font-size: 2rem; /* Reduce el tamaño de los números */
  }

  #countdown small {
      font-size: 1rem; /* Reduce el tamaño del texto */
  }
}

@media (max-width: 480px) {
  #countdown {
      flex-direction: column; /* Apila los elementos verticalmente */
      align-items: center; /* Centra los bloques */
      gap: 15px; /* Reduce la separación en móviles */
  }

  #countdown div {
      width: 100px; /* Hace que los bloques tengan un ancho uniforme */
      padding: 10px; /* Ajusta el padding */
  }

  #countdown span {
      font-size: 2.2rem; /* Reduce aún más el tamaño en móviles */
  }

  #countdown small {
      font-size: 0.2rem; /* Hace los textos más pequeños en móviles */
  }
  .countdown-section h2 {
    font-size: 2rem; /* Tamaño más grande */
    }

}




/* ---------------------- */
/* Código de Vestimenta */
/* ---------------------- */
/* Ajustes en la Sección Código de Vestimenta */
.dress-code-section {
  background-image: url('images/codigo.png');
  background-size:cover;
  background-position: center;
  background-attachment: scroll;
  text-align: center;
  margin: 0px auto;
  padding: 150px 20px;
}

.dress-code-section h2 {
  font-size: 4rem;
  margin-top: 100px;
  color: #ffffff;
  font-family: 'Astralaga', cursive;
}

.dress-code-section h3 {
  font-family: 'Battyna', cursive;
  font-size: 64px;
  color: #f0f0f0;
  margin: 0 auto;
  margin-left: 500px;
  margin-top: -30px;
  text-align: center;
  transform:rotate(-9deg);
  z-index: 1;
  max-width: 90%;
}

/* Contenedor principal */
.dress-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 200px;
  flex-wrap: wrap;
  text-align: center;
}

/* Estilo de cada categoría (Mujeres y Hombres) */
.dress-code-item {
  width: 200px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px;
}


/* Caja de texto centrado */
.text-center-box {
  max-width: 800px;
  margin: 50px auto 20px auto;
  text-align: center;
  font-size: 1.2rem;
}

.text-center-box h4 {
  font-size: 1.2rem;
  color: #ffffff;
  font-family: 'Avenir', sans-serif;
  margin-bottom: 10px;
}

.text-center-box p {
  font-size: 1rem;
  color: #e0e0e0;
  font-family: 'Avenir', sans-serif;
  max-width: 500px;
  text-align: center;
  margin: 0px auto 20px auto;
}
@media (max-width: 980px) {
  .dress-code-section h3 {
    margin-left: 300px;
    margin-top: -20px;
    transform: rotate(0deg) ;
  }

}

/* Responsividad */
@media (max-width: 768px) {
  .dress-code-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .dress-code-section h2 {
    font-size: 3.2rem;
    margin-top: 100px;
  }

  .dress-code-section h3 {
    font-size: 50px;
    max-width: 80%;
    margin-left: 250px;
    margin-top: -20px;
  }
  
  .text-center-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .text-center-box p {
    font-size: 1rem;
  }

  .text-center-box {
    max-width: 90%;
  }

}

/* Responsividad */
@media (max-width: 480px) {

  .dress-code-section h2 {
    font-size: 3rem;
    margin-top: 100px;
  }

  .dress-code-section h3 {
    font-size: 40px;
    max-width: 80%;
    margin-left: 100px;
    margin-top: -10px;
  }
  
  .text-center-box h4 {
    font-size: .9rem;
    margin-bottom: 10px;
    
  }
  .text-center-box p {
    font-size: .8rem;
  }

  .text-center-box {
    max-width: 100%;
  }

  .dress-code-item {
    width: 130px;
    text-align: center;
    cursor: pointer;
    position: relative;
  }
}




/* ---------------------- */
/* Momentos especiales */
/* ---------------------- */

/* Galería de Fotos */
.photo-gallery {
  padding: 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.photo-gallery h2 {
  margin-bottom: 20px;
  font-size: 3.5rem;
  color: #000000;
  font-family: 'Astralaga', cursive;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Fila de fotos */
.photo-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Tamaños de las fotos */
/* Configuración inicial de los contenedores */
.photo-container {
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-50px);
  background-color: #f0f0f0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto; /* Asegura que respete su contenido */
  height: auto;
}

/* Tamaño ajustado de las imágenes */
.photo-container img {
  max-width: 100%; /* Imagen no excede el tamaño del contenedor */
  max-height: 100%; /* Imagen no excede la altura del contenedor */
  object-fit: cover; /* Llenar el contenedor sin distorsión */
  width: 100%; /* Ajustar a la anchura */
  height: 100%; /* Ajustar a la altura */
}

/* Ajuste para contenedores grandes */
.photo-container.large {
  width: 60%; /* Más pequeño que el ancho completo */
  aspect-ratio: 16 / 9; /* Proporción para fotos horizontales */
}

/* Ajuste para contenedores pequeños */
.photo-container.small {
  width: calc(30% - 10px); /* Más pequeño pero proporcional */
  aspect-ratio: 3 / 4; /* Proporción para fotos verticales */
}

/* Mostrar las imágenes con animación */
.photo-container.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Contenedor de la galería */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 20px; /* Asegura espacio suficiente */
}

/* Animación al hacer scroll */
.photo-container {
  transition: opacity 0.8s ease, transform 0.8s ease, transform 0.5s ease-out;
}

.photo-container:not(.visible) {
  transform: translateX(50px);
  opacity: 0;
}

/* Responsividad */
@media (max-width: 768px) {
  .photo-container.large {
    width: 90%; /* Más pequeño que el ancho completo */
    aspect-ratio: 16 / 9; /* Proporción para fotos horizontales */
  }
  
  /* Ajuste para contenedores pequeños */
  .photo-container.small {
    width: calc(50% - 10px); /* Más pequeño pero proporcional */
    aspect-ratio: 3 / 4; /* Proporción para fotos verticales */
  }
}


/* ---------------------- */
/* Mesa de Regalos */
/* ---------------------- */
/* Mesa de Regalos */
.gifts-section {
  margin: 20px auto;
  background-color: #1a1a1a; /* Color de fondo ajustable */
  text-align: center;
  padding: 80px 20px;
  border-radius: 15px; /* Bordes redondeados */
}

/* Estilo del título */
.gifts-section h2 {
  font-size: 4rem;
  color: #ffffff; /* Dorado elegante */
  font-family: 'Astralaga', cursive;
  text-align: center;
  padding: 20px;
}

/* Párrafo de indicación */
.gifts-section p {
  font-size: 1.5rem;
  color: #ffffff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 20px;
  max-width: 1500px;
  text-align: center;
  margin: 50px auto 80px auto;
  padding: 0 20px; /* Reduce el espacio lateral */
  font-family: "Avenir", sans-serif;
}

/* Contenedor de enlaces */
.gift-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
}


/* Imágenes de los logos */
.gift-link img {
  width: 400px; /* Tamaño ajustable */
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(2px 2px 5px rgba(255, 255, 255, 0.301));
}


/* Efecto hover */
.gift-link img:hover {
  transform: scale(1.1);
  opacity: 0.1;
}

/* Responsividad */
@media (max-width: 768px) {
  .gifts-section h2 {
    font-size: 3rem;
    padding: 0px;
  }
  
  
  .gifts-section p {
    font-size: 1.2rem;
  }
  .gift-links {
    gap: 40px;
  }

  .gift-link img {
    width: 300px; /* Tamaño ajustable */
    height: auto;
  }
}

@media (max-width: 520px){
  .gifts-section h2 {
    font-size: 2.5rem;
    padding: 0px;
  }
  .gifts-section p {
    font-size: 1rem;
  }
 
}

/* Estilos para los detalles de BBVA */
.bbva-details {
  display: none;
  opacity: 0;
  visibility: hidden;
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  padding: 30px;
  background-color: #f9f5f0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bbva-details.visible {
  display: block;
  opacity: 1;
  visibility: visible;
}

.bbva-details-content h3 {
  color: #000000;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.modal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.modal-info p {
  margin: 5px 0;
  color: #000000;
}

.copy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  width: 100%;
}

#account-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}

#copy-button {
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  min-width: 120px;
}

#copy-button:hover {
  background-color: #b6b6b6;
}

#copy-message {
  display: none;
  color: green;
  margin-top: 10px;
  font-size: 0.9rem;
}


/* ---------------------- */
/* confirmacion */
/* ---------------------- */
.confirmacion-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120vh;
  background-image: url('images/papelV.webp');
  background-size: cover; /* Mantiene el tamaño original de la imagen */
  background-position: center;
  background-attachment: scroll; /* Mantiene tu configuración original */
  overflow:  auto;
  min-height:  700px;
  z-index: 0;
}

.confirmation-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 60px; /* Espacio para el mensaje inferior */
}

/* Contenedor principal */
.container {
  position: relative;
  width: 400px;
  max-width: 90%;
}

/* Cuadro principal más alargado */
.codigo-box {
  position: relative;
  width: 420px;
  height: 600px;
  background: white;
  left: -160px;
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 2;
}


.codigo-box.hidden {
  opacity: 0;
  transform: translateY(20px);
}

.codigo-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.codigo-box h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 3em;
  margin-top: 4em;
}

/* Input de código */
.input-codigo {
  width: 100%;
  padding: 0.8em;
  border: none;
  border-bottom: 2px solid black;
  font-size: 1em;
  outline: none;
  background: transparent;
  text-align: center;
  color: #333;
  margin-top: 1em;
  
}

/* Botón de verificación */
.btn-verificar {
  margin-top: 30px;
  width: 100%;
  padding: 1em;
  border: 2px solid #000000;
  border-radius: 10px;
  background:#000000;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-verificar:hover {
  background: white;
  color: #000000;
}

/* Cuadro secundario (fondo negro con imagen) */
.cuadro-secundario {
  position: absolute;
  max-width:800px;
  height: 500px;
  background: black url("images/nuestra.png") no-repeat center center;
  background-size: cover;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items:end;
  justify-content:start;
  padding: 2em;
  z-index: 1;
}


/* Imagen de fondo */
.imagen-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.cuadro-secundario h2 {
  font-family: "Astralaga", sans-serif;
  font-size: 2em;
  padding: 0;
  text-align: center; /* Centra el texto */
  max-width: 100%;
  line-height: 1.4; /* Ajusta el espacio entre líneas */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra las palabras dentro del contenedor */
  margin-top: 4em;
  margin-bottom: 1em;
  max-width: 40%; /* Limita el ancho del texto dentro del cuadro */
  text-align: center;
}



/* Frase inspiradora */
.frase {
  font-family: "Avenir";
  font-size: .9em;
  color: #ccc;
  margin-left: auto;  /* Mueve la frase a la derecha */
  text-align: center;  /* Alinea el texto a la derecha */
  max-width: 39%; /* Limita el ancho del texto dentro del cuadro */

}

/* Nombre de la familia y mensaje */
.nombre-familia, .mensaje-personalizado {
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 1em;
}

.mensaje-fecha-confirmacion {
  position: absolute;
  bottom: 15%; /* En lugar de usar 'top', usamos 'bottom' con porcentaje */
  left: 0;
  right: 0;
  text-align: center;
  color: #937851;
  font-family: "Avenir", sans-serif;
  font-size: 1.3em;
  padding: 1px;
  margin: 0 auto;
  max-width: 80%;
  z-index: 5; /* Aseguramos que esté por encima de otros elementos */
}


@media (max-height: 800px) {
  .confirmacion-section {
    height: auto; /* Cambia a altura automática */
    min-height: 700px; /* Altura mínima */
    padding: 150px 0; /* Añade algo de padding arriba y abajo */
  }
  
}
/* Diseño responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .confirmacion-section {
    height: 100vh; /* Eliminar altura fija */
    padding: 20px 0; /* Agregar espacio vertical */
    position: relative; /* Permite posicionar elementos relativos */
    display: flex;
    flex-direction: row; /* Colocar los cuadros uno al lado del otro */
    align-items: center;
  }
  
  .mensaje-fecha-confirmacion {
    font-size: 1em;
    bottom: 10%; /* Ajuste para pantallas medianas */
    position: absolute;
  }
  .cuadro-secundario {
    position: static; /* Eliminar posicionamiento absoluto */
    width: 40%; /* Ocupa el 40% del ancho */
    height: 400px; /* Altura dinámica */
    z-index: 1; /* Asegura que esté detrás del cuadro principal */
    border-radius: 0; /* Elimina bordes redondeados */
    padding: 1em; /* Reduce padding */
    opacity: 0.8; /* Reduce la opacidad para que sea un fondo */
    order: 1; /* Colocar a la izquierda */
    border-radius:3px;
  }

  .container {
    position: static; /* Eliminar posicionamiento relativo */
    width: 60%; /* Ocupa el 60% del ancho */
    max-width: 100%;
    z-index: 2; /* Asegura que esté encima del cuadro secundario */
    order: 2; /* Colocar a la derecha */
  }

  .codigo-box {
    position: static; /* Eliminar posicionamiento absoluto */
    width:50%; /* Ocupar todo el ancho del contenedor */
    height: 450px; /* Altura dinámica */
    left: 0; /* Resetear posición */
    margin-bottom: 20px; /* Espacio entre los cuadros */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius:15px;
    background: rgba(252, 252, 252, 0.9); /* Fondo semi-transparente */
  }

  .codigo-box h2 {
    font-size: 1em;
    color: #333;
    margin-bottom: 3em;
    margin-top: 10em;
  }

  .cuadro-secundario h2 {
    font-family: "Astralaga", sans-serif;
    font-size: 1.3em;
    max-width: 100%;
    margin-top: 5em;
    margin-bottom: 5em;
  }
  .frase {
    font-family: "Avenir";
    font-size: .9em;
    color: #ccc;
    margin-left: auto;  /* Mueve la frase a la derecha */
    text-align: center;  /* Alinea el texto a la derecha */
    max-width: 100%; /* Limita el ancho del texto dentro del cuadro */
  
  }
 
}

@media (max-width: 480px) {
  
  .codigo-box {
    padding: 1em; /* Reducir padding aún más */
  }

  .cuadro-secundario {
    padding: 1em; /* Reducir padding */
  }

  .cuadro-secundario h2,
  .cuadro-secundario .frase {
    font-size: 0.9rem; /* Reducir tamaño de fuente */
  }
  .mensaje-fecha-confirmacion {
    font-size: 0.9em;
    bottom: 8%; /* Aún más cerca del borde para pantallas muy pequeñas */
    max-width: 90%; /* Un poco más ancho para que se ajuste mejor */
  }

}

@media (max-height: 800px) {
  .confirmacion-section {
    height: auto;
    min-height: 600px;
    padding: 170px 0
  }
  
  .cuadro-secundario {
    min-height: 300px;
    margin-bottom: 10px;
  }
  
  .codigo-box {
    min-height: 400px;
  }
  
  .mensaje-fecha-confirmacion {
    margin-top: 350px;
  }
}



/* ================================
   Estilos para el Modal de Confirmación
   ================================ */

/* Overlay del modal - cubre toda la pantalla */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Cuando el modal está activo */
.modal-overlay.active {
  display: flex;
}

body.modal-open {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.modal {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Contenedor del modal */
.modal-container {
  position: relative;
  width: 900px;
  max-width: 95%;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-out;
  display: flex;
  justify-content: center;
  height: 600px;
}

/* Animación de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cuadro secundario (fondo oscuro) - Imita tu cuadro-secundario */
.modal-box.secondary {
  position: absolute;
  width: 800px;
  height: 600px;
  background: #000000;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: start;
  padding: 2em;
}

.modal-title {
  font-family: "Astralaga", sans-serif;
  font-size: 2em;
  padding: 0;
  text-align: center; /* Centra el texto */
  line-height: 1.4; /* Ajusta el espacio entre líneas */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra las palabras dentro del contenedor */
  margin-top: 4em;
  margin-bottom: 1em;
  max-width: 40%; /* Limita el ancho del texto dentro del cuadro */
  text-align: center;
  color: white;
}


.modal-box.secondary h3 {
  font-family: "Avenir", sans-serif;
  font-size: 2em;
  color: white;
  padding: 2rem;
  text-align: center;
  max-width: 40%;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0em;
  margin-bottom: 0em;
}

.modal-message {
  font-family: "Avenir";
  font-size: .9em;
  color: #ccc;
  margin-top: 1em;
  margin-left: auto;  /* Mueve la frase a la derecha */
  text-align: center;  /* Alinea el texto a la derecha */
  max-width: 39%; /* Limita el ancho del texto dentro del cuadro */
}

/* Cuadro principal (cuadro blanco) - Imita tu codigo-box */
.modal-box.primary {
  position: relative;
  width: 420px;
  background: white;
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 10;
  left: -160px;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-box.primary h2 {
  font-family: "Astralaga", sans-serif;
  font-size: 3em;
  color: #333;
  margin-bottom: 0em;
  margin-top: 2em;
}
/* Estilos para el título dentro del cuadro principal */
.modal-box.primary h3 {
  font-family: "Avenir"sans-serif;
  font-size: 1.5em;
  color: #333;
  margin-bottom: 2em;
}

/* Estilos para inputs dentro del modal */
.modal-box.primary input {
  width: 100%;
  padding: 0.8em;
  border: none;
  border-bottom: 2px solid black;
  font-size: 1em;
  outline: none;
  background: transparent;
  text-align: center;
  color: #333;
  margin: 1em 0;
}

.modal-box.primary input[type="number"] {
  width: 80px;
  margin: 0.5em auto;
  display: block;
}

/* Estilos para párrafos */
.modal-box.primary p {
  margin: 1em 0;
  color: #333;
}

/* Estilos para botones - Imita tu btn-verificar */
.modal-box.primary button {
  margin-top: 20px;
  width: 100%;
  padding: 1em;
  border: 2px solid #31332A;
  border-radius: 10px;
  background: #31332A;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.modal-box.primary button:hover {
  background: white;
  color: #31332A;
}

/* Segundo botón (cerrar) con estilo alternativo */
.modal-box.primary button#cerrarModal {
  background: transparent;
  color: #31332A;
  border: 1px solid #31332A;
  margin-top: 10px;
}

.modal-box.primary button#cerrarModal:hover {
  background: #f5f5f5;
}

/* Mensaje de confirmación */
.mensaje-confirmacion {
  margin-top: 15px;
  font-weight: bold;
  min-height: 40px;
}
/* Diseño responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .modal-container {
    height: 80vh; /* Eliminar altura fija */
    padding: 20px 0; /* Agregar espacio vertical */
    position: relative; /* Permite posicionar elementos relativos */
    display: flex;
    flex-direction: row; /* Colocar los cuadros uno al lado del otro */
    align-items: center;
  }

  .modal-box.secondary {
    position: static; /* Eliminar posicionamiento absoluto */
    width: 40%; /* Ocupa el 40% del ancho */
    height: 400px; /* Altura dinámica */
    z-index: 1; /* Asegura que esté detrás del cuadro principal */
    border-radius: 10px; /* Bordes ligeramente redondeados */
    padding: 0em; /* Reduce padding */
    opacity: 1; /* Reduce la opacidad para que sea un fondo */
    order: 1; /* Colocar a la izquierda */
  }

  .modal-title {
    font-size: 1.5em;
    max-width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
  }
  .modal-box.secondary h3 {
    font-size: 1.2em;
    padding: .5em;
    text-align: center;
    max-width: 100%;
    margin-top: 0em;
    margin-bottom: 2em;
  }
  

 .modal-message {
    font-size: .9em;
    color: #ccc;
    margin-left: auto;  /* Mueve la frase a la derecha */
    text-align: center;  /* Alinea el texto a la derecha */
    max-width: 100%; /* Limita el ancho del texto dentro del cuadro */
  }

  .modal-box.primary {
    position: static; /* Eliminar posicionamiento absoluto */
    width: 50%; /* Ocupar ancho apropiado */
    height: 450px; /* Altura dinámica */
    left: 0; /* Resetear posición */
    margin-bottom: 20px; /* Espacio entre los cuadros */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    order: 2; /* Colocar a la derecha */
    z-index: 2; /* Asegura que esté encima del cuadro secundario */
  }

  .modal-box.primary h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 1em;
    margin-top: 1em;
    padding: .5em;
  }
}

@media (max-width: 670px) {
  .modal-box.primary h2 {
    font-size: 2.0em;
  }
  .modal-box.primary h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 1em;
    margin-top: 1em;
    padding: .5em;
  }
   .modal-title {
    font-size: 1.2em;
    max-width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
  }
}
@media (max-width: 480px) {
  .modal-box.primary {
    padding: 1em; /* Reducir padding aún más */
    width: 60%; /* Ajustar ancho para pantallas muy pequeñas */
  }

  .modal-box.secondary {
    padding: 1em; /* Reducir padding */
    width: 40%; /* Ajustar ancho para pantallas muy pequeñas */
  }

  .modal-title {
    font-size: .9em;
    margin-top: 4rem;
  }
  
  
  .modal-box.secondary h3 {
    font-size: .9em;
  }
  
  .modal-message {
    font-size: .8em;
  }
  
  .modal-box.primary button {
    padding: 0.8em; /* Reducir padding de botones */
    font-size: 0.9em; /* Reducir tamaño de texto en botones */
  }
}



  /* Estilo para el botón de mute */
  .mute-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #31332A;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    z-index: 1000;
  }

  .mute-button:hover {
    background-color: #50544A;
  }

  .mute-button img {
    width: 30px;
    height: 30px;
  }


/* ---------------------- */
/* footer */
/* ---------------------- */
.footer {
  background: #000000; /* Color oscuro similar al resto del diseño */
  color: #ffffff;
  padding: 10px 20px;
  text-align: center;
  font-family: 'Avenir', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.footer-logo-image{
  width: 200px;
  height: auto;
}


/* Enlaces de redes sociales */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1); /* Iconos en blanco */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Derechos reservados */
.footer-copyright {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 10px;
}

/* 📌 Responsividad */
@media (max-width: 768px) {
  .footer-signature {
    font-size: 1.5rem;
  }

  .social-icon {
    width: 25px;
    height: 25px;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .footer-logo-image{
    width: 200px;
    height: auto;
  
  }
}

@media (max-width: 480px) {
  .footer-signature {
    font-size: 1.3rem;
  }

  .footer-logo-image{
    width: 200px;
    height: auto;
  
  }

  .social-icon {
    width: 20px;
    height: 20px;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }
}