/* Estilos CSS de la página principal */

/* Agregar fondo de imagen semi transparente */

.contenedor-body{
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.24)), url('../../img/index/fondo.jpg');
    background-size: cover;
    background-position: center;
}

.contenedor-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 0;
}

/* Posicionar todos los elementos por encima de la capa transparente */

.section, .section-gallery, .oficinas, .form-section, .form-section2, .form-section3, .paquetes, .destin, .destin2 {
    position: relative;
    z-index: 1;
}

/* Base para todas las secciones del index */

.section {
    min-height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 1s ease-in-out;
}

/* Seccion de imagenes e información sobre la empresa (oficinas) */ /* Es una calca de carrusel.css con ligeras modificaciones */

.section-gallery-index {
    margin-top: 30px;
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.gallery-index {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container-index {
    position: relative;
    margin: 0 auto;
    width: 50%;
    overflow: hidden;
}
  
.carousel-index {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item-index {
    flex: 1 0 30%;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    min-width: 99%;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
}
  
.carousel-item-index img {
    width: 100%;
    border-radius: 10px;
    height: 700px;
}

.carousel-item-index .destination-name-index {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0px;
    background: var(--rojo-general-carrusel); /* (header.css) */
    color: white;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
  
.carousel-item-index:hover .destination-name-index {
    transform: translateY(0);
}

.destination-name-index h3 {
    text-align: center;
    font-size: 1.6rem;
}

/* Formularios */

.form-section, .form-section2{
    margin: 0 auto;
    width: 100%;
}
 
.form-banner {
    width: 100%;
    cursor: pointer;
}

.form-section3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    height: 40vh;
    max-height: 600px;
    margin-bottom: 1%;
    margin-top: 100px;
}

.form-banner3 {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Imagen principal (visible por defecto) */
.main-banner {
    opacity: 1;
}

/* Imagen alterna (visible solo en hover) */
.hover-banner {
    opacity: 0;
}

/* Efecto de cambio de opacidad en hover */
.form-section3:hover .main-banner {
    opacity: 0;
}

.form-section3:hover .hover-banner {
    opacity: 1;
}

/* Título de la galería de imagenes estilo carrusel */

.destin h2 {
    margin-top: 2%;
    font-size: 48px;
    color: #fff;
    background-color: var(--rojo-general);
    padding: 20px;
    border-radius: 50px;
    display: inline-block;
}

/* Paquetes */

/*

.destin2 h2 {
    margin: 0;
    margin-top: 2%;
    font-size: 48px;
    color: #fff;
    background-color: var(--azul-general);
    padding: 20px;
    border-radius: 50px;
    display: inline-block;
}

.paquetes {
    padding: 10px 0;
    color: #000000;
    text-align: center;
    position: relative;
    margin-bottom: 1%;
}

.paquetes h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.paquetes-item {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.paquete {
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.paquete:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Título del paquete */

/*

.paquete h3 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
}

*/

/* Descripción del paquete */

/*

.paquete p {
    color: #000000;
    font-size: 16px;
}

*/

/* Botón de reserva */

/*

.paquete button {
    background: var(--rojo-general);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.paquete button:hover {
    background: var(--rojo-general-hover);
}

*/

/* Animaciones para el contenido que aparece */

/*

.paquete {
    animation: fadeIn 0.8s ease-in-out;
}

.paquete img {
    width: 60%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paquete:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

*/

/* Animación de transiciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ajustes para pantallas medianas */
@media (max-width: 992px) {
    .destin h2, .destin2 h2 {
        padding: 10px;
        font-size: 1.5rem;
    }
    .form-section3 {
        height: 30vh;
        margin-top: 60px;
    }
    .carousel-item-index img {
        height: 450px;
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .carousel-item-index img {
        height: 300px;
    }
    .carousel-container-index {
        width: 100%;
    }
    .form-section3 {
        margin-top: 40px;
    }
    .carousel-item-index .destination-name-index {
        padding: 5px 0px;
    }
    .destination-name-index h3 {
        font-size: 1rem;
    }
}

/* Ajustes para pantallas muy pequeñas (móviles) */
@media (max-width: 576px) {
    .destin h2, .destin2 h2 {
        font-size: 0.9rem;
    }
    .form-section3 {
        height: 20vh;
        margin-top: 20px;
    }
    .separador {
        margin: 2vh 0px;
    }
}

