/* styles.css */
@font-face {
    font-family: 'Astralaga';
    src: url('fonts/Astralaga-Medium.woff') format('truetype');
    font-weight: 900;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Autography';
    src: url('fonts/AUTOGRAPHY.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;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background: #000000;
    color: white;
}

/* 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: #161615;
  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('imagenes/top.webp') no-repeat center/cover;
  transform-origin: top center;
  z-index: 2;
}

.capa-medio {
  background: url('imagenes/middle.webp') no-repeat center/cover;
  z-index: 0;
}

.capa-bottom {
  background: url('imagenes/bottom1.webp') no-repeat center/cover;
  z-index: 1;
  
}

.sello {
  position: absolute;
  width: 300px;
  height: 300px;
  background: url('imagenes/sello.webp') 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;
  align-items: center;
  background-color: #31332A;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.nav-list li {
  margin: 0 15px;
  font-family: 'Avenir';
}

.nav-list a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.nav-list a:hover {
  color: #000000;
  background-color: rgba(255, 255, 255, 0.9);
}

.logo {
  font-family: 'Astralaga', cursive;
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  margin: 0 20px;
  white-space: nowrap;
}

/* ---------------------- */
/* Menú Hamburguesa */
/* ---------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1500;
  padding: 10px;
  background: transparent;
  border: none;
}

.bar {
  background-color: #ffffff;
  height: 2px;
  width: 25px;
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación del menú hamburguesa */
.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);
}

@media (max-width: 1090px) {
  .menu-toggle {
      display: flex;
  }

  .nav-list {
      position: fixed;
      top: 0;
      left: -100%;
      width: 80%;
      height: 100vh;
      background: #3e4137cb;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: left 0.4s ease-in-out;
  }

  .nav-list.active {
      left: 0;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .nav-list li {
      margin: 15px 0;
      opacity: 0;
      transform: translateX(-20px);
      transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-list.active li {
      opacity: 1;
      transform: translateX(0);
  }

  .nav-list a {
      font-size: 20px;
      color: #ffffff;
      padding: 12px 25px;
  }

  .nav-list a:hover {
      color: #1E2915;
  }

  .logo {
      font-size: 24px;
      margin: 0 auto;
  }
}

/* Agregar delays a los items del menú para una animación escalonada */
.nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-list.active li:nth-child(2) { transition-delay: 0.2s; }
.nav-list.active li:nth-child(3) { transition-delay: 0.3s; }
.nav-list.active li:nth-child(4) { transition-delay: 0.4s; }
.nav-list.active li:nth-child(5) { transition-delay: 0.5s; }


 /* ---------------------- */
  /* Parallax */
  /* ---------------------- */


.parallax {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.parallax .layer1 {
    position: absolute;
    width: 100%;
    background-image: url('imagenes/EDIT2.1.webp');
    background-attachment: fixed;
    background-position: 100% 65%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh; /* Se redujo la altura para móviles */
    z-index: -1;
}
.parallax .layer2 {
  position: absolute;
  width: 650px;
  height: auto;
  top: 40%;
  left: 76%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.parallax .layer2.loaded {
  opacity: 1; /* Hace que aparezca suavemente */
}
.content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.content h1 {
    font-size: 6em;
    font-family: 'Astralaga', sans-serif;
    margin-top: 30rem;
}
.spacer {
    height: 100vh;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1124px) {
  .parallax .layer1 {
      background-attachment: fixed; /* Solo aplicamos el efecto en pantallas pequeñas */
      background-position: left center;
  }

  .parallax .layer2 {
      width: 500px;
      height: auto;
      top: 45%;
      left: 50%;
      transform: translate(-50%, -50%);
  }

  .content h1 {
      font-size: 4em;
      margin-top: 30rem;
  }
}

@media (max-width: 768px) {
  .parallax .layer1 {
    background-attachment: scroll; /* Asegurarnos que usa scroll en móviles */
    background-position: left center;

}

.parallax .layer2 {
  width: 300px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important; /* Asegurar que mantiene su posición */
}

  .content h1 {
      font-size: 3em;
      margin-top: 20rem;
  }
}

@media (max-width: 480px) {
  .parallax {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
  
  .parallax .layer1 {
    background-attachment: scroll; /* Asegurarnos que usa scroll en móviles */
    background-position: left center;

}

}
/* ---------------------- */
/* Papel Cortado */
/* ---------------------- */
.paper-effect-uno {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-uno img {
  position: relative;
  top: 10rem; /* Ajusta según necesidad */
  width: 99.2vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-uno img {
    top: 5rem;
    width: 100%;
    
  }
}

@media (max-width: 768px) {
  .paper-effect-uno img {
    top: 1rem;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-uno img {
    top: 5rem;
    width: 100%;
  }
}


/* ---------------------- */
/* Estilos para la sección del calendario */
/* ---------------------- */
.date-section {
  min-height: 100vh;
  display: flex;
  padding: 5rem;
  background-image: url('imagenes/fondoCal.webp');
  background-size:auto;
  background-position: center;
  background-attachment: scroll;
  gap: 1em;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
}


/* Contenedor para el calendario - Optimizado */
.calendar-container {
  position: relative;
  background: #1E2915;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2rem;
  width: 400px;
  flex-shrink: 0;
  z-index: 1;
  margin-bottom: 100px;
  margin-left: 100px;
  cursor: pointer;
  /* Mejora en la transición */
  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; /* Optimiza las animaciones */
}

.calendar-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Optimización del header del calendario */
.calendar-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem; /* Espacio para el texto hover */
}

.calendar-header h2 {
  font-family: 'Astralaga', cursive;
  color: #ffffff;
  font-size: 2rem;
  margin: 0; /* Elimina márgenes innecesarios */
  line-height: 1.2; /* Mejor espaciado */
}

/* Optimización del texto de guardar */
.save-calendar-text {
  font-family: 'Avenir', sans-serif;
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0;
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100%;
  pointer-events: none; /* Evita problemas de hover */
}

.calendar-container:hover .save-calendar-text {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* Optimización de la cuadrícula 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;
}

/* Optimización de las celdas de días */
.days div {
  padding: 10px;
  text-align: center;
  font-family: 'Avenir', sans-serif;
  color: #ffffff;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Mejora en el highlight del día seleccionado */
.days div.highlight {
  position: relative;
  background-color: transparent;
  color: #ffffff;
  font-weight: bold;
}

.days div.highlight::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}


/* Optimización del contenedor de texto */
.date-text-container {
  max-width: 500px;
  padding: 7rem;
  position: relative;
}

.date-section p {
  font-family: 'Autography', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: #000000;
  text-align: left;
  margin-top: -100px;
  margin-left: -60px;
}

.text-container p {
  font-family: 'Avenir', sans-serif;
  font-size: 2rem;
  color: #000000;
  text-align: center;
  max-width: 1290px;
  margin: 0 auto; /* Centrado mejorado */
}

/* Optimización de la flecha */
.arrow-container {
  position: absolute;
  width: 300px;
  height: 100px;
  pointer-events: none;
  z-index: 2;
  top: 45%;
  left: 54%;
  transform: translateX(0%) rotate(180deg);
  transform-origin: left center;
  will-change: transform; /* Optimiza la animación */
}

.curved-arrow {
  stroke: #384C25;
  stroke-width: 4;
  fill: none;
  opacity: 1;
  stroke-dasharray: 5, 5;
  stroke-dashoffset: 500;
  animation: drawArrow 2s ease forwards;
}


.calendar-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.calendar-modal.active {
  display: flex;
}

.modal-content-calendar {
  background: #1E2915;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  color: #ffffff;
}

.calendar-button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  border: none;
  border-radius: 8px;
  font-family: 'Avenir', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.google-calendar {
  background-color: #4285f4;
  color: white;
}

.apple-calendar {
  background-color: #000000;
  color: white;
}

.close-modal {
  background-color: #cccccc;
  color: #050505;
}

.calendar-button:hover {
  opacity: 0.9;
}


.modal-content-calendar p {
  font-family: 'Avenir', sans-serif;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  margin-top: 0;
  margin-left: 0;
  text-align: center;
}


/* Animación de la flecha */
@keyframes drawArrow {
  from {
      stroke-dashoffset: 500;
      transform: scale(1);
  }
  to {
      stroke-dashoffset: 0;
      transform: scale(0.8); /* Hace más pequeña la flecha */
  }
}

.curved-arrow {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawArrow 2s ease forwards;
}

/* Media Queries Optimizados */
@media (max-width: 1175px) {
  .date-section {
    padding: 2rem 1rem;
    gap: 0rem;
  }

  .calendar-container {
    margin: 0 auto;
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
  }
  
  .date-section p {
    font-size: 3.5rem;
    text-align: left;
    margin-top: -10px;
    margin-left: -50px;
  }

  .text-container p {
    font-size: 1.8rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    
  }

  .arrow-container {
    display: none; /* Ocultar la flecha en tablets */
  }

  .modal-content-calendar p {
    font-family: 'Avenir', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    margin-top: 0;
    margin-left: 0;
    text-align: center;
    
  }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 930px) {
  .date-section {
    padding: 2rem 1rem;
    min-height: auto;
    top:-2px
  }

  .calendar-container {
    padding: 1%;
    margin-bottom: 1rem;
    margin-top: 50px;
  }

  .calendar-header h2 {
    font-size: 1.8rem;
  }

  .weekdays {
    font-size: 0.9rem;
  }

  .days div {
    padding: 8px;
    font-size: 0.9rem;
  }

  .days div.highlight::after {
    width: 35px;
    height: 35px;
  }

  .date-text-container {
    max-width: 500px;
    padding: 2rem;
    position: relative;
  }

  .date-section p {
    font-size: 3rem;
    text-align: center;
    margin-left: 0;
  }

  .text-container p {
    font-size: 1.5rem;
    
  }

  .modal-content-calendar {
    width: 50%;
    padding: 1.5rem;
    
  }
  .modal-content-calendar p {
    font-family: 'Avenir', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    margin-top: 0;
    margin-left: 0;
    text-align: center;
    
  }

  .calendar-button {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .date-section {
    padding: 2rem 1rem;
    top: -5px; /* Hace que suba y cubra más del parallax */
  }

  .calendar-container {
    width: 95%;
    padding: 1rem 0.8rem;
  }

  .calendar-header h2 {
    font-size: 1.5rem;
  }

  .weekdays {
    font-size: 0.8rem;
  }

  .days div {
    padding: 6px;
    font-size: 0.8rem;
  }

  .days div.highlight::after {
    width: 30px;
    height: 30px;
  }

  .date-section p {
    font-size: 3rem;
  }

  .text-container p {
    font-size: 1.2rem;
  }

  .save-calendar-text {
    font-size: 0.8rem;
    bottom: -1.2rem;
  }

  .modal-content-calendar {
    width: 90%;
    padding: 1.2rem;
  }

  .modal-content-calendar p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .calendar-button {
    padding: 0.7rem;
    font-size: 0.85rem;
    margin: 0.3rem 0;
  }
}


/* ---------------------- */
/* Papel Crono v1 */
/* ---------------------- */
.paper-effect-cronov1 {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index: 0;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-cronov1 img {
  position: absolute;
  top: -140px; /* Ajusta según necesidad */
  width: 99.4vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
  
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-cronov1 img {
    top: -90px;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .paper-effect-cronov1 img {
    top: -50px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-cronov1 img {
    top: -40px;
    width: 100%;
  }
}


/* ---------------------- */
/* cronograma */
/* ---------------------- */
.timeline-section {
  text-align: center;
  background-image: url('imagenes/fondoCron.webp');
  background-size: contain; /* Mantiene el tamaño original de la imagen */
  background-position: center;
  background-attachment: scroll; /* Mantiene tu configuración original */
  padding: 150px 20px;
  position: relative;
  z-index: 0;
}

.timeline-title {
  font-family: "Astralaga", sans-serif;
  font-size: 50px;
  font-weight: bold;
  color: #F5E6C5;
}

.timeline-subtitle {
  font-family: "Avenir", sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
  color: #937851;
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Estilo para los boletos */
.timeline-event {
  position: relative;
  margin-bottom: 60px;
}

.timeline-event.left {
  text-align: left;
  transform: rotate(-5deg);
}

.timeline-event.right {
  text-align: right;
  transform: rotate(5deg);
}

/* Posicionamiento específico para cada boleto */
.boleto-1 {
  margin-left: 0%;
  margin-top: 0;
}

.boleto-2 {
  margin-left: auto;
  margin-right: 0%;
  margin-top: -20px;
}

.boleto-3 {
  margin-left: 5%;
  margin-top: -20px;
}

.boleto-4 {
  margin-left: auto;
  margin-right: 5%;
  margin-top: -20px;
}

/* IMPORTANTE: Aquí es donde agrandamos los boletos */
.icon-left img,
.icon-right img {
  width: auto; /* Cambiado de 100% a auto */
  height: auto;
  max-width: 400px; /* Aumentado considerablemente */
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efecto hover para los boletos */
.icon-left img:hover,
.icon-right img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  width: 150px; /* Estrellas más grandes */
  height: 150px;
  background-image: url('icono/estrella.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.timeline::before {
  bottom: -20px;
  left: -5%;
}

.timeline::after {
  bottom: 90%;
  right: -5%;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
  .timeline-title {
    font-size: 36px;
  }
  
  .timeline-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .boleto-1, .boleto-2, .boleto-3, .boleto-4 {
    margin-left: auto;
    margin-right: auto;
  }
  
  .timeline-event.left {
    text-align: left;
    transform: rotate(-5deg);
  }
  
  .timeline-event.right {
    text-align: right;
    transform: rotate(5deg);
  }
  
  .icon-left img,
  .icon-right img {
    max-width: 280px; /* Más pequeño pero aún visible en móviles */
  }

  .timeline::before,
.timeline::after {
  width: 100px; /* Estrellas más grandes */
  height: 100px;
}

.timeline::before {
  bottom: 0px;
  left: 5%;
}

.timeline::after {
  bottom: 95%;
  right: 5%;
}
}

@media (max-width: 480px){
.timeline::before,
.timeline::after {
  width: 70px; /* Estrellas más grandes */
  height: 70px;
}

.timeline::before {
  left: 0%;
}

.timeline::after {
  right: 0%;
}
}

/* ---------------------- */
/* Papel Crono v2 */
/* ---------------------- */
.paper-effect-cronov2 {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-cronov2 img {
  position: absolute;
  top: -20px; /* Ajusta según necesidad */
  width: 99.2vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-cronov2 img {
    top: -10px;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .paper-effect-cronov2 img {
    top: -30px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-cronov2 img {
    top: -20px;
    width: 100%;
  }
}



/* ---------------------- */
/* Estilos para la sección del contador */
/* ---------------------- */
.countdown-background {
  position: absolute;
  top: -15rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('imagenes/EDIT\ 3.webp');
  background-size: 150%;
  background-position: 20% 46%;
  background-repeat: no-repeat; /* Evita el mosaico de la imagen */
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
}


.countdown-section {
  min-height: 100vh;
  display: flex;
  justify-content: left;
  align-items: end;
  position: relative;
  padding: 2rem;
  overflow: hidden; /* Añadido para contener el fondo */
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.countdown-container {
  position: relative;
  text-align:start;
  color: white;
  padding: 2rem;
  width: 100%;
  z-index: 1; /* Asegura que esté por encima del fondo */
}

.countdown-container h2 {
  font-family: 'Astralaga', cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  justify-content: left;
  gap: 10rem;
  margin-bottom: 5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item span:first-child {
  font-size: 4rem;
  font-family: 'Astralaga', cursive;
  line-height: 1;
}

.countdown-item .label {
  font-family: 'Avenir', sans-serif;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ---------------------- */
/* Ajustes responsivos */
/* ---------------------- */
@media (max-width: 1035px) {

  .countdown-container h2 {
      font-size: 2.5rem;
      margin: 0 auto 1rem auto;
      text-align: left;
  }

  .countdown {
      flex-direction: row;
      gap: 3rem;
      margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .countdown-container h2 {
      font-size: 2rem;
      text-align: center;
      margin: 50px auto 1rem auto;
  }
  .countdown-background{
    background-size: 250%;
    background-position: 35% 50%;
  }

  .countdown {
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      margin-left: 0;
  }

  .countdown-item span:first-child {
      font-size: 2.5rem;
  }

  .countdown-item .label {
      font-size: 0.8rem;
  }
}


/* ---------------------- */
/* Código de Vestimenta */
/* ---------------------- */
/* Ajustes en la Sección Código de Vestimenta */
.dress-code-section {
  text-align: center;
  background-image: url('imagenes/fondoCron.webp');
  background-size: contain; /* Mantiene el tamaño original de la imagen */
  background-position: center;
  background-attachment: scroll; /* Mantiene tu configuración original */
  padding: 100px 20px;
  position: relative;
  z-index: 0;
}

.dress-code-section h2 {
  font-size: 4rem;
  margin-top: 100px;
  color: #F5E6C5;
  font-family: 'Astralaga', cursive;
  padding: 50px;
}


/* Contenedor principal */
.dress-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-item img {
  width: 100%;
  height: auto;
  display: block;
}


/* 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 h3 {
  font-family: 'Autography', cursive;
  font-size: 64px;
  color: #937851;
  margin: 0 auto;
  margin-left: 50px;
  margin-top: 50px;
  text-align: center;
  z-index: 1;
  max-width: 100%;
}
.text-center-box h4 {
  font-size: 1.2rem;
  color: #ffffff;
  font-family: 'Avenir', sans-serif;
  margin-bottom: 10px;
}

.text-center-box h5 {
  font-size: 1rem;
  color: #e0e0e0;
  font-family: 'Avenir', sans-serif;
  max-width: 500px;
  text-align: center;
  margin: 0px auto 20px auto;
}

.no-kids {
  font-size: 1rem;
  color: #937851;
  font-family: 'Avenir', sans-serif;
  margin-top: 15px;
  font-style: italic;
  text-align: center;
  background: rgba(255, 255, 255, 0);
  padding: 10px;
  border-radius: 10px;
}

/* Responsividad */
@media (max-width: 768px) {
  .dress-code-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .dress-code-section h2 {
    font-size: 3rem;
    margin-top: 100px;
  }

 .text-center-box h3 {
  font-size: 44px;
  margin-left: 0px;
  margin-top: 50px;
  max-width: 100%;
}

  .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: -20px;
  }


  
  .text-center-box h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    
  }

  .text-center-box h5 {
    font-size: .9rem;
  }
  .text-center-box p {
    font-size: .9rem;
  }

  .text-center-box {
    max-width: 100%;
  }

  .dress-code-item {
    width: 100px;
    text-align: center;
    cursor: pointer;
    position: relative;
  }
}

@media (max-width: 390px) {
  .dress-code-section h2 {
    font-size: 2.6rem;
  }
}

/* ---------------------- */
/* Papel Crono v2 */
/* ---------------------- */
.paper-effect-vest {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-vest img {
  position: absolute;
  top: -20px; /* Ajusta según necesidad */
  width: 99.4vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-vest img {
    top: -10px;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .paper-effect-vest img {
    top: -30px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-vest img {
    top: -20px;
    width: 100%;
  }
}






/* ---------------------- */
/* Sección de Ubicación */
/* ---------------------- */
.location-section {
  padding: 200px 20px;
  background: url('imagenes/fondoLoca.webp') center/cover no-repeat;
  text-align: center;
  position: relative;
}

.location-title {
  margin-bottom: 100px;
}

.location-title h2 {
  font-family: 'Astralaga', serif; /* Fuente similar a la imagen */
  font-size: 70px;
  margin: 0;
  color: #000;
  text-transform: uppercase;
  margin-top: 5%;
}

.location-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.location {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
}

/* Estilos específicos para ceremonia */
.ceremonia {
  margin-right: auto; /* Empuja hacia la izquierda */
  width: 70%;
}

/* Estilos específicos para recepción */
.recepcion {
  margin-left: auto; /* Empuja hacia la derecha */
  width: 55%;
}

.location-icon {
  width: 200px;
  height: auto;
}

.location-info {
  text-align: left;
}

.location-info2 {
  text-align: right;
}

.location-info h4, .location-info2 h4 {
  font-family: 'Avenir', sans-serif;
  font-size: 35px;
  margin: 0 0 10px 0;
  color: #000;
  text-transform: uppercase;
}

.venue-name,
.venue-address,
.venue-city {
  font-family: 'Avenir', sans-serif;
  font-size: 25px;
  margin: 5px 0;
  color: #000;
}

.location-button {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid #000000;
  color: #000000; /* Color vino como en la imagen */
  text-decoration: none;
  font-family: 'Avenir', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

@media (max-width: 1140px) {
  .recepcion {
    margin-left: auto; /* Empuja hacia la derecha */
    width: 65%;

}
}


/* Media queries para responsividad */
@media (max-width: 768px) {
  .location {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .location-info h4, .location-info2 h4 {
    font-size: 25px;
   
  }
  
  .venue-name,
  .venue-address,
  .venue-city {
    font-size: 20px;
  }

  .ceremonia,
  .recepcion {
    width: 100%;
    margin: 0 auto;
  }

  .location-info, .location-info2 {
    text-align: center;
  }

  .recepcion {
    margin-left: auto; /* Empuja hacia la derecha */
    width: 85%;
  }

}

@media (max-width: 480px) {
  .location-title h2 {
    font-size: 50px;
  }
  .location-info h4, .location-info2 h4 {
    font-size: 20px;
   
  }
  
  .venue-name,
  .venue-address,
  .venue-city {
    font-size: 17px;
  }
}

/* ---------------------- */
/* Papel crono v2 fotos */
/* ---------------------- */
.paper-effect-fotos {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index: 0;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-fotos img {
  position: absolute;
  top: -160px; /* Ajusta según necesidad */
  width: 99.5vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-fotos img {
    top: -90px;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .paper-effect-fotos img {
    top: -55px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-fotos img {
    top: -35px;
    width: 100%;
  }
}

/* ---------------------- */
/* Momentos especiales */
/* ---------------------- */

/* Galería de Fotos */
.photo-gallery {
  text-align: center;
  background-image: url('imagenes/fondoCron.webp');
  background-size:contain;
  background-position: center;
  background-attachment: scroll;
  margin: auto auto;
  padding: 20px;
}

.photo-gallery h2 {
  margin-bottom: 20px;
  font-size: 4rem;
  color: #F5E6C5;
  font-family: 'Astralaga', cursive;
  margin-top: 80px;
}

.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 #F5E6C5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-50px);
  background-color: #3d2f2f;
  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: 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(45% - 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;
}

@media (max-width: 760px) {
  .photo-gallery h2 {
    font-size: 3rem;
  }
  
  /* Simplificar las animaciones en móviles */
  .photo-container {
    transform: translateY(20px); /* Cambiar a un movimiento vertical más ligero */
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .photo-container.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .photo-container:not(.visible) {
    transform: translateY(20px); /* Mantener consistencia con la dirección */
    opacity: 0;
  }
  
  /* Ajustar tamaños para móviles */
  .photo-container.large {
    width: 95%;
  }
  
  .photo-container.small {
    width: 47%;
  }
  
  /* Reducir el espacio entre fotos */
  .photo-row {
    gap: 6px;
  }
  
  .gallery {
    gap: 10px;
    padding: 10px;
  }
}
/* ---------------------- */
/* Papel Crono v2 */
/* ---------------------- */
.paper-effect-fotos2 {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-fotos2 img {
  position: absolute;
  top: -30px; /* Ajusta según necesidad */
  width: 99.2vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-fotos2 img {
    top: -10px;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .paper-effect-fotos2 img {
    top: -30px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-fotos2 img {
    top: -20px;
    width: 100%;
  }
}

/* ---------------------- */
/* Hospedaje */
/* ---------------------- */
.accommodation-section {
  padding: 200px 20px;
  text-align: center;
  background-image: url('imagenes/FondoHospe.webp');
  background-size: contain; /* Mantiene el tamaño original de la imagen */
  background-position: center;
  background-attachment: scroll; /* Mantiene tu configuración original */
  position: relative;
}

.accommodation-section h2 {
  font-family: 'Astralaga', serif;
  font-size: 60px;
  margin-top: 10%;
  margin-bottom: 20px;
  color: #000;
}

.accommodation-info {
  font-family: "Avenir", sans-serif;
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #000;
}

.accommodation-info em {
  font-style: italic;
}

.hotels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px; /* Espacio entre elementos */
  max-width: 1200px; /* Ajusta el ancho */
  margin: 0 auto;
}

.last-hotel {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  max-width: 600px; /* Asegura que el último hotel se vea bien */
}

.hotel-card {
  text-align: left;
  padding: 100px;
  transition: opacity 0.5s ease;
  
}

.hotel-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 15px;
  margin-left: 80px;
}


.hotel-card h3 {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin-bottom: 15px;
  font-style: italic;
  color: #000;
}

.hotel-card p {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin: 5px 0;
  line-height: 1.4;
  color: #000;
}

.info-button {
  display: inline-block;
  margin-top: 15px;
  margin-left: 190px;
  padding: 8px 20px;
  background-color: transparent;
  color: #000;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-bottom: 1px solid #937851;
}

/* Estilo para el botón de toggle */
#toggleHoteles {
  margin: 40px auto 20px;
  padding: 10px 25px;
  background-color: transparent;
  color: #000;
  border: none;
  border-bottom: 2px solid #937851;
  font-family: Arial, sans-serif;
  font-size: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

#toggleHoteles:hover {
  color: #937851;
}


@media (max-width: 988px) {
  .hotel-card {
    text-align: left;
    padding: 20px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .accommodation-section {
    padding: 100px 20px;
  }

 
  
  .hotels-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .accommodation-section h2 {
    font-size: 40px;
  }

  .hotel-card {
    padding: 15px;
    text-align: center;
  }

  .hotel-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    margin-left: 0px;
  }

  #toggleHoteles {
    font-size: 20px;
    padding: 8px 20px;
  }

  .hotel-hidden {
    text-align: center;
  }
  
}

/* Responsive */
@media (max-width: 480px) {
  .hotels-grid {
    gap: 10px;
  }

  .accommodation-section h2 {
    font-size: 40px;
  }

  .accommodation-info {
    font-size: 17px;
  }


  #toggleHoteles {
    font-size: 17px;
    padding: 8px 20px;
  }

  .hotel-card h3 {
    font-size: 20px;
  }
  
  .hotel-card p {
    font-size: 15px; 
  }
  
}

/* ---------------------- */
/* Papel crono v2 fotos */
/* ---------------------- */
.paper-effect-mesa1 {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index:0;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-mesa1 img {
  position: absolute;
  top: -140px; /* Ajusta según necesidad */
  width: 99.2vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-mesa1 img {
    top: -90px;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .paper-effect-mesa1 img {
    top: -55px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-mesa1 img {
    top: -35px;
    width: 100%;
  }
}

/* ---------------------- */
/* Mesa de Regalos */
/* ---------------------- */

.gifts-section {
    text-align: center;
    background-image: url('imagenes/fondoCron.webp');
    background-size: contain; /* Mantiene el tamaño original de la imagen */
    background-position: center;
    background-attachment: scroll; /* Mantiene tu configuración original */
    padding: 300px 20px;
    position: relative;
    z-index: 0;
}


/* Estilo del título */
.gifts-section h2 {
  font-size: 4rem;
  color: #F5E6C5; /* Dorado elegante */
  font-family: 'Astralaga', cursive;
  text-align: center;
  padding: 20px;
}

/* Párrafo de indicación */
.gifts-section p {
  font-size: 1.5rem;
  color: #A08870;
  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 */
}

/* 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;
  }
 
}

/* 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, display 0.3s ease;
}

.bbva-details.visible {
  display: block;
  opacity: 1;
  visibility: visible;
}

.bbva-details-content h3 {
  color: #A08870;
  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: #5C4B51;
}

.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: #4A4A4A;
  margin-bottom: 10px;
}

#copy-button {
  background-color: #A08870;
  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: #8A7560;
}

#copy-message {
  display: none;
  color: green;
  margin-top: 10px;
  font-size: 0.9rem;
}






/* ---------------------- */
/* Papel Crono v2 */
/* ---------------------- */
.paper-effect-mesa2 {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-mesa2 img {
  position: absolute;
  top: -120px; /* Ajusta según necesidad */
  width: 99.2vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-mesa2 img {
    top: -10px;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .paper-effect-mesa2 img {
    top: -30px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-mesa2 img {
    top: -20px;
    width: 100%;
  }
}


/* ---------------------- */
/* confirmacion */
/* ---------------------- */
.confirmacion-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120vh;
  background-image: url('imagenes/fondoCal.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 #31332A;
  border-radius: 10px;
  background:#31332A;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-verificar:hover {
  background: white;
  color: #31332A;
}

/* Cuadro secundario (fondo negro con imagen) */
.cuadro-secundario {
  position: absolute;
  max-width:800px;
  height: 500px;
  background: #31332A;
  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: #31332A;
  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;
}


.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 */
  }
}



/* ---------------------- */
/* Papel Crono v2 */
/* ---------------------- */
.paper-effect-polaroid {
  width: 100%;
  position:relative;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: transparent !important;
  display: flex;
  justify-content: center; /* Centra la imagen */
}


.paper-effect-polaroid img {
  position: absolute;
  top: -150px; /* Ajusta según necesidad */
  width: 99.5vw; /* Se expande más allá de la pantalla sin causar overflow */
  max-width: unset; /* Evita que el max-width limite el ajuste */
  height: auto;
  display: block;
  overflow-x: hidden;
}

/* ---------------------- */
/* Ajustes Responsivos */
/* ---------------------- */
@media (max-width: 1260px) {
  .paper-effect-polaroid img {
    top: -100px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .paper-effect-polaroid img {
    top: -60px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .paper-effect-polaroid img {
    top: -40px;
    width: 100%;
  }
}


/* Sección Polaroid */

.polaroid-section {
  text-align: center;
  background-image: url('imagenes/fondoCron.webp');
  background-size: contain; /* Mantiene el tamaño original de la imagen */
  background-position: center;
  background-attachment: scroll; /* Mantiene tu configuración original */
  padding: 200px 20px;
  position: relative;
  z-index: 0;
}

.polaroid-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.polaroid-frame {
  background-color: white;
  padding: 20px 20px 40px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: rotate(-2deg);
  max-width: 400px;
  width: 100%;
  transition: transform 0.3s ease;
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 15px;
}

.polaroid-image img {
  width: 100%;
  height: auto;
  display: block;
}

.polaroid-caption {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: #333;
}

.polaroid-date {
  font-size: 1.2rem;
  margin-top: 5px;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .polaroid-section {
    padding: 50px 20px; /* Reduce el padding en móviles */
  }
  
  .polaroid-container {
    padding: 10px;
  }
  
  .polaroid-frame {
    max-width: 85%; /* Usar porcentaje del ancho disponible */
    padding: 15px 15px 30px 15px; /* Reducir padding */
  }

  .polaroid-image {
    width: 100%;
  }
  
  .polaroid-image img {
    width: 100%;
    transform: scale(1.2); /* Escala la imagen para hacerla parecer más grande */
    transform-origin: center center;
  }
  
  .polaroid-caption {
    font-size: 1.2rem;
    margin-top: 10px;
  }
  
  .polaroid-date {
    font-size: 1rem;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .polaroid-section {
    padding: 30px 10px;
  }
  
  .polaroid-frame {
    max-width: 95%;
    padding: 10px 10px 25px 10px;
  }
  
  .polaroid-image img {
    transform: scale(1.3); /* Escala aún más en pantallas muy pequeñas */
  }
}

/* ---------------------- */
/* footer */
/* ---------------------- */
.footer {
  background: #937851; /* 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;
  }
}

/* Añade estas reglas al final de tu CSS actual */
@media (hover: none) and (pointer: coarse) {
  .horizontal-scroll-wrapper {
    -webkit-overflow-scrolling: touch;
    transform: rotate(-90deg) translate3d(0,-100vh,0);
  }}
  
  .external {
    overflow: hidden;
    height: 100vh;
  }

  
  /* 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;
  }