
:root {
    /* Colores */
    --primary-color: #007BFF; /* Azul primario vibrante */
    --secondary-color: #0056b3; /* Azul secundario más oscuro */
    --accent-color: #66CCFF; /* Azul claro para acentos */
    --text-color: #6c757d;
    --highlight-color: #89CFF0; /* Azul suave para resaltar */

    /* Fondos y degradados */
    --navbar-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    --btn-gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --btn-gradient-hover: linear-gradient(45deg, var(--accent-color), var(--highlight-color));

    /* Sombras */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 8px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 8px 12px rgba(0, 0, 0, 0.3);

    /* Transiciones */
    --transition-fast: 0.3s ease-in-out;
    --transition-slow: 0.5s ease;

    /* Otros */
    --btn-border-radius: 6px;
    --card-border-radius: 6px;
    --padding-standard: 0.5rem 1rem;
}
body {
    background-color: #f9f9f9ff;
}
i {
    color: var(--primary-color);
}
a {
    text-decoration: none;
}

i.fa-whatsapp {
    color: white;
}

h3 {
    margin-bottom: 2rem; /* Espacio debajo del título */
}
p {
    margin-bottom: 1.5rem; /* Espacio debajo del párrafo */
}

/* Transición del navbar */
header {
    transition: transform var(--transition-slow), opacity var(--transition-slow) !important;
}
header span {
    font-style: italic;
}


.d-n {
    display: none;
}

.tour-card.temporada {
    order: -1; /* Coloca esta tarjeta al principio */
}



/* Clase para ocultar el header */
.hidden-header {
    transform: translateY(-100%);
    opacity: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    background: var(--navbar-gradient);
    transition: background var(--transition-fast);

}

.navbar .nav-link {
    position: relative;
    transition: color var(--transition-fast), transform var(--transition-fast);
    font-weight: bold;
}

.navbar .nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.navbar .nav-link:hover::after {
    width: 100%;
}





/* Estilo del botón de traducción */
#translate-btn {
    position: relative;
    width: 60px;
    height: 40px;
    overflow: hidden;
    border: 2px solid white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
}

#translate-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}
.btn {
    padding: 8px 16px!important;
}

/* Botón Reserva */
.btn-reserva {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    letter-spacing: .5px;
    padding: var(--padding-standard);
    border-radius: var(--btn-border-radius);
    border: none;
    font-size: 1rem;
    display: inline-block;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.btn-reserva:hover {
    background: var(--btn-gradient-hover)!important;
    color:var(--secondary-color)!important;
    transform: scale(1.02)!important;
    box-shadow: var(--shadow-light)!important;
}
/* Clase hollow */
.btn-hollow {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: var(--padding-standard);
    border: 1px solid var(--primary-color);
    border-radius: var(--btn-border-radius);
    font-size: 1rem;
    text-align: center;
    display: inline-block;
    transition: all var(--transition-fast);
}

.btn-hollow:hover {
    background: var(--accent-color); /* Fondo ligeramente transparente */
    border-radius: var(--btn-border-radius);
    color: white;
    transform: scale(1.02); /* Aumenta el tamaño ligeramente */
    box-shadow: var(--shadow-light); /* Sombra ligera */
}

/* Responsive ajustes para botones hollow */
@media (max-width: 768px) {
    .hollow {
        padding: 0.4rem 0.8rem; /* Reduce el espaciado en dispositivos móviles */
        font-size: 0.9rem; /* Ajusta el tamaño de fuente */
    }
}

/* Responsive Navbar */
@media (max-width: 992px) {


    .navbar .nav-link {
        color: white !important;
    }

    .navbar-collapse {
        text-align: center;
        background-color: rgba(0, 0, 0, .8);
        backdrop-filter: blur(10px);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 12px 0 !important;
    }

    .navbar-nav .btn-reserva {
        margin-top: 16px;
    }
}



/* Carrusel */
.carousel-item {
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.carousel-item h1 {
    font-size: 3.5rem;
}

.carousel-item p {
    font-size: 1.25rem;
}

.carousel-item .btn {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: var(--btn-border-radius);
    border: none;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}

.carousel-item .btn:hover {
    background: var(--btn-gradient-hover);
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

@media (max-width: 768px) {
    .carousel-item h1 {
        font-size: 2.5rem;
    }

    .carousel-item p {
        font-size: 1rem;
    }

    .carousel-item .btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item h1 {
        font-size: 2rem;
    }

    .carousel-item p {
        font-size: 0.9rem;
    }
}

#mosaicCarousel .mosaic-image {
    height: 350px; /* Ajusta la altura según tus necesidades */
    width: 100%;
    object-fit: cover; /* Recorta la imagen para que se ajuste */
    border-radius: 10px; /* Opcional: bordes redondeados */
}

/* Tarjetas */
.card {
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-title {
    color: var(--secondary-color);
    font-weight: bold;
}

.card-text {
    color: var(--text-color);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}



.card-body .button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.card-body .btn {
    flex: 1;
    text-align: center;
    padding: var(--padding-standard);
    font-size: clamp(0.8rem, 1.5vw, 1rem); /* Ajusta dinámicamente el tamaño de fuente */
    border-radius: var(--card-border-radius);
    white-space: nowrap; /* Asegura que el texto no se divida en varias líneas */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}


.card-body .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.card-body .btn-primary:hover {
    background-color: var(--highlight-color);
    transform: translateY(-2px);
}

.card-body .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.card-body .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .card-body .button-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card-body .btn {
        flex: none;
    }
}

.card img {
    height: 250px!important; /* Ajusta la altura deseada para las imágenes */
    object-fit: cover;
}
.tours-contianer {
    display: grid!important;
}
/* Botones Grupo */
.tour-btn .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem; /* Espacio entre botones */
}

.tour-btn .button-group .btn {
    flex: 1 1 100%; /* Por defecto, los botones ocupan el 100% del ancho */
    text-align: center;
    white-space: nowrap; /* Evita que el texto se divida */
}

@media (min-width: 768px) {
    .tour-btn .button-group .btn {
        flex: 1 1 calc(50% - 15px); /* En pantallas grandes, los botones ocupan el 50% del ancho */
    }
}

/* Testimonios */
.testimonios-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Hace que todas las tarjetas tengan la misma altura */
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 64px;
    height: 64px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: popIn .55s ease-out; /* Animación de pop-up */
}

/* Estilo para el botón de Volver arriba */
.back-to-top {
    position: fixed;
    bottom: 100px; /* Ajusta la posición vertical */
    right: 20px; /* Ajusta la posición horizontal */
    background-color: #007bff; /* Color del botón */
    width: 64px;
    height: 64px;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    line-height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Inicialmente invisible */
    transform: scale(0.8); /* Escala inicial más pequeña */
    pointer-events: none; /* Deshabilitar interacción cuando está oculto */
}
.back-to-top i {
    color: white; /* Color del icono */
    align-items: center;
}

/* Mostrar el botón de Volver arriba al hacer scroll */
.back-to-top.show {
    opacity: 1; /* Hacer visible */
    transform: scale(1); /* Tamaño normal */
    pointer-events: auto; /* Habilitar interacción cuando está visible */
    animation: popIn 0.3s ease-out; /* Animación de pop-in */
}

/* Ocultar el botón de Volver arriba */
.back-to-top.hide {
    opacity: 0; /* Hacer invisible */
    transform: scale(0.8); /* Escala más pequeña */
    pointer-events: none; /* Deshabilitar interacción cuando está oculto */
    animation: popOut 0.3s ease-in; /* Animación de pop-out */
}

/* Animación de pop-in */
@keyframes popIn {
    0% {
        transform: scale(0.8); /* Comienza más pequeño */
        opacity: 0; /* Comienza invisible */
    }
    50% {
        transform: scale(1.1); /* Aumenta ligeramente */
    }
    100% {
        transform: scale(1); /* Tamaño normal */
        opacity: 1; /* Visible */
    }
}

/* Animación de pop-out */
@keyframes popOut {
    0% {
        transform: scale(1); /* Tamaño normal */
        opacity: 1; /* Visible */
    }
    50% {
        transform: scale(1.1); /* Aumenta ligeramente */
    }
    100% {
        transform: scale(0.8); /* Escala más pequeña */
        opacity: 0; /* Invisible */
    }
}

/* Efecto hover para ambos botones */
.whatsapp-float:hover,
.back-to-top:hover {
    transform: scale(1.05); /* Aumentar ligeramente el tamaño */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* Icono de WhatsApp */
.whatsapp-float i {
    font-size: 36px;
}

/* Sección con parallax */
.cta-final-section {
    background-image: url('../img/vallarta-city-tour/RTT-City-Tour-2.webp'); /* URL de tu imagen */
    background-size: cover; /* Cubre todo el contenedor */
    background-attachment: fixed; /* Activa el efecto parallax */
    background-position: center; /* Centra la imagen */
    position: relative; /* Para el overlay */
    min-height: 50vh; /* Asegura que la sección tenga una altura significativa */
}

/* Overlay oscuro */
.cta-final-section .overlay {
    background-color: rgba(0, 0, 0, 0.7); /* Oscurece la imagen */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Contenido */
.cta-final-section .container {
    z-index: 2; /* Asegura que el contenido esté sobre el overlay */
    position: relative; /* Permite interactuar con el contenido */

}

/* General gallery styles */
.gallery-container {
    display: grid;
    gap: 20px; /* Espacio uniforme entre las imágenes */
    grid-template-columns: 1fr; /* Diseño normal para móvil y tablet */
    overflow: hidden; /* Oculta desbordamientos */
}

.gallery-container-desktop {
    display: none; /* Oculto por defecto, visible en desktop */
    position: relative;
    overflow: hidden; /* Oculta desbordamientos */
    width: 100%;
    height: auto;
    scrollbar-width: none; /* Oculta barras en Firefox */
}    

.gallery-carousel::-webkit-scrollbar {
    display: none; /* Oculta barras en Chrome, Edge y Safari */
}

.gallery-carousel {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 20px; /* Espacio entre imágenes */
    scroll-behavior: smooth; /* Añade un desplazamiento suave */
    overflow-x: auto; /* Permite el desplazamiento horizontal */
}

.gallery-carousel img {
    flex: 0 0 calc(25% - 20px); /* Máximo 4 imágenes visibles */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* Grid styles */
.gallery-img {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-light);
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.cards-container .card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

/* Tablet: Two columns */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cards-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }

    .cards-container .card {
        flex: 1;
        height: auto;
    }
}

/* Desktop Carousel */
@media (min-width: 992px) {
    .gallery-container {
        display: none; /* Oculta la galería normal */
    }

    .gallery-container-desktop {
        display: flex; /* Activa el carrusel */
        position: relative;
        overflow: hidden; /* Oculta el desbordamiento */
        width: 100%;
        height: auto;
    }

    .gallery-carousel {
        display: flex;
        gap: 20px; /* Espacio entre imágenes */
        transition: transform 0.4s ease-in-out; /* Transición para el scroll */
        scroll-behavior: smooth; /* Desplazamiento suave */
    }

    .gallery-carousel img {
        flex: 0 0 calc(25% - 20px); /* Asegura 4 imágenes visibles */
    }

    .carousel-arrow {
        display: flex; /* Muestra las flechas en desktop */
    }
}

@media (max-width: 768px) {
    .details-and-gallery {
        display: flex;
        flex-direction: column;
    }

    .reorder {
        order: -1; /* Mueve las tarjetas arriba */
    }
}


.hidden-images img {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1);
}

.fade-out {
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.9);
}

.btn-hide-images {
    margin-top: 10px;
    padding: 8px 12px;
    color: white;
    border: none;
    cursor: pointer;
    display: block;
    transition: background-color 0.3s ease;
}

.btn-hide-images:hover {
    background-color: var(--secondary-color);
}


.btn-show-more {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-show-more:hover {
    background-color: #0056b3;
}
.hidden-images img {
    display: none;
}

.btn-hide-images {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: block;
}



/* Desktop Layout */
@media (min-width: 992px) {
    .details-and-gallery {
        display: grid;
        grid-template-columns: 1fr 2fr; /* Una columna para tarjetas, dos para galería */
        gap: 24px; /* Espacio entre tarjetas y galería */
        align-items: start;
    }

    .cards-container {
        display: flex;
        flex-direction: column; /* Apila las tarjetas verticalmente */
        gap: 20px; /* Espacio entre las tarjetas */
    }

    .gallery-container-desktop {
        display: flex; /* Activa el carrusel */
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
    }

    .gallery-carousel {
        display: flex;
        gap: 20px; /* Espacio entre las imágenes */
        transition: transform 0.4s ease-in-out; /* Transición para el desplazamiento */
    }

    .gallery-carousel img {
        flex: 0 0 calc(25% - 20px); /* Asegura 4 imágenes visibles */
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

    .carousel-arrow {
        display: flex; /* Muestra las flechas de navegación */
    }
}





/* Media Queries */
@media (min-width: 768px) {
    .container {
        max-width: 90%;
    }

    .row img {
        height: auto;
    }

    .btn-lg {
        font-size: 1rem;
    }

    /* Acomodar Precios en 2 columnas en tablets */
    section .row.g-2 .col-12 {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        margin-bottom: 15px;
    }

    /* Galería: Miniaturas visibles al costado */
    .carousel-inner img {
        height: auto;
    }
    .integrante-1 { order: 2; } /* Pone al integrante 1 en el medio */
    .integrante-2 { order: 1; } /* Pone al integrante 2 a la izquierda */
    .integrante-3 { order: 3; } /* Pone al integrante 3 a la derecha */
}

@media (min-width: 1024px) {


    .row.align-items-center img {
        max-height: 350px;
        object-fit: cover;
    }

    .btn-lg {
        font-size: 1.25rem;
        padding: 15px 20px;
    }

    /* Precios en 3 columnas para laptops */
    section .row.g-2 .col-12 {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }

    /* Detalles del Tour en 2 columnas */
    .row.g-3 .col-12 {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
        margin-bottom: 20px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    /* Ajustar tipografía en pantallas grandes */
    h2, h3 {
        font-size: 2rem;
    }

    .btn-lg {
        font-size: 1.5rem;
        padding: 18px 25px;
    }
}


/* Iconos Redes Sociales */
.nosotros .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 28px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.5s ease;
    text-decoration: none;
}
.social-icon i {
    color: white!important;
    transition: transform 0.3s ease;
    
}

.social-icon:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
.social-icon:hover i {
    transform: scale(1.05);

}

.nosotros .youtube { background: #FF0000; }
.nosotros .tiktok { background: #000000; }
.nosotros .facebook { background: #1877F2; }
.nosotros .instagram { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    
}

footer {
    text-align: left;
}
footer i {

    color: white;
}
