html {
    scroll-behavior: smooth;
}

section {
    opacity: 0;
    transition: opacity 0.5s ease;
}
  
section.active {
    opacity: 1;
}

/* Estilos para el texto */
body.custom-body {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 50px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el cuerpo ocupe al menos el 100% de la altura de la ventana */
    font-size: 17px;
}


/* PORTADA */

header {
    background-size: contain;
    background-image: url('images/IA/header_computer.png');
    background-repeat: no-repeat;
    background-position: center;
    height: 500px;
}

@media only screen and (max-width: 600px) {
    header {
        background-size: cover;
        background-image: url('images/IA/header.jpg');
        height: 400px;
    }
}


@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

li {
    margin: 0 10px;
}

a {
    text-decoration: none;
    color: #e0b9ae; /* Color del texto de los botones de navegación */
    font-size: 17px;
}

/* Estilos específicos para pantallas más pequeñas (móviles) */
@media only screen and (max-width: 600px) {

    li {
        margin: 0 8px;
    }

    a {
        font-size: 15px;
    }
}

a:hover {
    color: #8f746c;; /* Cambia el color al pasar el ratón sobre el botón */
}

nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 5px;
    background-color: #c0a28f;/* Color de la línea */
    animation: aparecerLinea 10s forwards; /* Animación para hacer aparecer la línea */
}

@keyframes aparecerLinea {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
}


.cuenta-regresiva {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    color: #c0a28f;
  }
  
  #cuenta-atras {
    display: flex;
    align-items: center;
  }
  
  .tiempo {
    text-align: center;
    margin: 0 10px;
    font-size: 1em;
  }
  
  .barra {
    font-size: 1em;
    color: #666;
    margin: 0 10px;
  }


/* BIENVENIDOS */

#bienvenidos {
    text-align: center;
    padding: 20px;
}

#bienvenidos h1 {
    color: #734929;
    font-family: "Oooh Baby", cursive;
    font-size: 35px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bienvenidos-texto p {
    text-align: center;
    padding: 20px;
    padding: 10px; /* Ajusta el relleno según sea necesario */
}

.bienvenidos-texto img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

/* Google Maps */
#mapDiv {
    height: 300px;
}



/* ITINERARIO */

.timeline {
    position: relative;
    margin: 50px 0;
    padding-left: 40px;
    border-left: 3px solid #7b6b48;
    margin-left: 660px;
  }
  
  .event {
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
  }
  
  .event:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 12px;
    height: 12px;
    background-color: #AA8966;
    border-radius: 50%;
  }
  
  .event .time {
    width: 100px;
    font-weight: bold;
    color: #333;
  }
  
  .event .icon {
    margin-right: 20px;
  }
  
  .event .icon img {
    width: 30px;
    height: 30px;
  }
  
  .event .description {
    font-size: 0.8em;
    color: #555;
  }
  
  .event .description:hover {
    color: #2c3e50;
    transition: color 0.3s ease;
  }
  
  /* Animation logic */
  .show {
    opacity: 1;
    transform: translateY(0);
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }


.itinerario img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

.element-crew {
    max-width: 3%;
}

.element {
    max-width: 4%;
}

@media only screen and (max-width: 600px) {
    
    .element {
        max-width: 12%;
    }

    .element-crew {
        max-width: 9%;
    }

    .timeline {
        position: relative;
        margin: 50px 0;
        padding-left: 40px;
        border-left: 3px solid #7b6b48;
      }
}


/* CARROUSEL */

#carrousel {
    text-align: center;
    padding: 20px;
}

#carrousel h1 {
    color: #734929;
    font-family: "Oooh Baby", cursive;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carrousel-texto p {
    text-align: center;
    padding: 20px;
    padding: 10px; /* Ajusta el relleno según sea necesario */
}


  
.carousel-item img{
    height: auto; /* Ajusta la altura de las imágenes */
    max-width: 40%;
    object-fit: cover; /* Asegúrate de que las imágenes se escalen correctamente */
    margin: 0 auto;
}

.carousel-caption {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para el texto */
    right: 33% !important;
    bottom: 20px;
    left: 33% !important;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .carousel-item img{
        height: 450px; /* Ajusta la altura de las imágenes */
        max-width: 100%;
    }

    .carousel-caption {
        right: 7% !important;
        left: 7% !important;
    }
    
}


/* ASISTENCIA */

#asistencia {
    text-align: center;
    padding: 20px;
}

#asistencia h1 {
    color: #734929;
    font-family: "Oooh Baby", cursive;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.asistencia-texto p {
    text-align: center;
    padding: 20px;
    padding: 10px; /* Ajusta el relleno según sea necesario */
}



#nombre, #telefono, #alergias {
    position: relative;
    width: 300px;
    border: none;
    border-radius: 26px;
    background: #c8b8b4;
    font-size: revert;
    margin: 10px;
}


#acompanado {
    position: relative;
}


.form-container-asist {
    border-radius: 40px;
    padding: 20px 20px;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.1);
    width: 600px;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width: 600px) {

    .form-container-asist {
        padding: 20px 0;
    }
}


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    z-index: 1000;
    width: max-content;
}

@media only screen and (max-width: 600px) {
    #popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 20px;
        background-color: white;
        z-index: 1000;
        width: 350px;
    }
}


#button {
   color: rgba(100, 136, 106, 0.68);
}

#closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 20px; /* Ajusta el tamaño según sea necesario */
    height: 20px; /* Ajusta el tamaño según sea necesario */
}

/* Estilos para el modal del pop-up */
.modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    z-index: 1;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
}


/* MÚSICA */

#musica {
    text-align: center;
    padding: 20px;
}

#musica h1 {
    color: #734929;
    font-family: "Oooh Baby", cursive;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.musica-texto p {
    text-align: center;
    padding: 20px;
    padding: 10px; /* Ajusta el relleno según sea necesario */
}


/* VESTIMENTA */

#vestimenta {
    text-align: center;
    padding: 20px;
}

#vestimenta h1 {
    color: #734929;
    font-family: "Oooh Baby", cursive;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.vestimenta-texto p {
    text-align: center;
    padding: 20px;
    padding: 10px; /* Ajusta el relleno según sea necesario */
}




/* REGALOS */

#regalos {
    text-align: center;
    padding: 20px;
}

#regalos h1 {
    color: #734929;
    font-family: "Oooh Baby", cursive;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.regalos-texto p {
    text-align: center;
    padding: 20px;
    padding: 10px; /* Ajusta el relleno según sea necesario */
}

.plain-text {
    color: inherit;
    background: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
}

.pre-footer {
    max-width: 50%;
    margin: 0 auto;
}

@media only screen and (max-width: 600px) {
    .pre-footer {
        max-width: 100%;
    }
}


/* Estilos para el footer */
footer {
    background-color: #c0a28f;
    padding: 10px;
    color: #f5f0ef;;
}

.footer-content p {
    text-align: center;
    font-weight: 200;
}