/* ================== VARIABLES Y ESTILOS GLOBALES ================== */
:root {
    --blanco-base: #ffffff;
    --blanco-alternativo: #f0f4f8;
    --azul-glaciar: #8ecae6;
    --verde-paramo: #219ebc;
    --naranja-aventura: #fb8500;
    --texto-oscuro: #023047;
    --texto-claro: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth;
        scroll-padding-top: 75px;
        scroll-snap-type: y mandatory;
     }
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--blanco-base);
    color: var(--texto-oscuro);
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* ================== CABECERA FIJA (VERSIÓN MENÚ HAMBURGUESA) ================== */
header {
    background-color: rgba(2, 48, 71, 0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; top: 0; width: 100%; z-index: 100;
    backdrop-filter: blur(5px);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 40px;
    width: 100%;
    position: relative;
}
.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}
.nav-left { justify-content: flex-start; gap: 2rem; }
.nav-right { justify-content: flex-end; }
.nav-center {
    position: absolute;   /* <-- ¡LA MAGIA EMPIEZA AQUÍ! */
    left: 50%;            /* Lo mueve al 50% del ancho de la barra */
    transform: translateX(-50%); /* Lo desplaza hacia la izquierda la mitad de su propio ancho */
}
.nav-title-image { height: 120px; width: auto; vertical-align: middle;}
.logo img { height: 50px; width: auto; display: block; border-radius: 10px; }

/* Oculta el menú de escritorio que ya no usamos */
.desktop-nav { display: none; }

/* Estilos para el botón de hamburguesa (AHORA SIEMPRE VISIBLE) */
.hamburger-btn {
    display: flex; /* Para alinear el texto y el icono */
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blanco-base);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}
.hamburger-btn svg {
    width: 30px;
    height: 30px;
    stroke: var(--blanco-base);
}

/* ================== SECCIÓN HERO CON IMAGEN Y TEXTO ================== */
#hero {
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    position: relative; /* Necesario para posicionar los elementos internos */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--texto-claro);
    padding: 0; /* Quita padding porque la imagen de fondo ocupa todo */
    max-width: none; /* Permite que la imagen ocupe todo el ancho */
}
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Lo pone detrás del contenido */
    object-fit: cover; /* Asegura que el video cubra todo el espacio sin deformarse */
}
.hero-overlay { /* Un overlay oscuro para mejorar la legibilidad del texto */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 48, 71, 0.6); /* Azul oscuro con transparencia */
    z-index: 0;
}
.hero-content {
    position: relative; /* Asegura que esté sobre el overlay */
    z-index: 1;
    max-width: 800px; /* Limita el ancho del contenido principal */
    padding: 0 20px; /* Añade un poco de espacio lateral */
}
.logo img {
    height: 100px; /* Ajusta esta altura a tu gusto */
    width: auto; /* Mantiene la proporción correcta */
    display: block; /* Elimina espacios extra que a veces se añaden a las imágenes */
}
#hero h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Sombra para el título */
    margin-bottom: 0.5rem;
}
#hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--blanco-alternativo);
}

/* ================== CARACTERÍSTICAS CLAVE BAJO EL HERO ================== */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap; /* Para que se adapte en móviles */
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left; /* Alineamos el texto a la izquierda */
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--verde-paramo);
    flex-shrink: 0; /* Evita que el icono se encoja */
}

.feature-item p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}
.btn-primary { /* Botón principal, usado en el hero y el contacto */
    display: inline-block;
    background-color: var(--naranja-aventura);
    color: var(--texto-claro);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
}
.btn-primary:hover {
    background-color: #e67300; /* Un naranja más intenso */
    transform: translateY(-3px);
}
.hero-cta { margin-top: 2rem; }

.feature-item p {
    color: var(--texto-oscuro); /* Usa tu variable de color oscuro */
    font-weight: 700; /* Lo ponemos en negrita para más impacto */
}

/* ================== SECCIÓN SOBRE NOSOTROS ================== */
#about { background-color: var(--blanco-alternativo); }
#about h2 { color: var(--texto-oscuro); text-align: left; margin-bottom: 2rem; }
/* Reemplaza la regla .about-content existente por esta */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative; /* Clave para el efecto de superposición */
}
.about-text {
    flex: 1;
    background-color: var(--blanco-base); /* Fondo blanco para el texto */
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10; /* Pone el texto por encima de la imagen */
}
.about-text p {
    text-align: justify;
    margin-bottom: 1.5rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-image {
    flex: 1;
    transform: translateX(-80px); /* Mueve la imagen para que se superponga */
}
.about-image img { width: 100%; border-radius: 10px; }

/* ================== SECCIÓN DE SERVICIOS ================== */
/* ================== PANEL DE INFORMACIÓN CON PESTAÑAS ================== */
#info-panel {
    background-color: var(--texto-oscuro);
    color: var(--blanco-alternativo);
    border-radius: 15px;
    padding: 40px;
}

.panel-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.panel-header h2 {
    color: var(--blanco-base);
    font-size: 2.2rem;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #3a506b; /* Un azul más oscuro */
    color: var(--blanco-base);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-btn:hover {
    background-color: #4a6585;
}

.tab-btn.active {
    background-color: var(--verde-paramo); /* Color activo */
}

.tab-pane {
    display: none; /* Oculta todas las pestañas por defecto */
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block; /* Muestra solo la pestaña activa */
}

/* Ajustes para el contenido movido */
.tab-pane .service-card {
    background-color: #3a506b;
    border: 1px solid #556c88;
}
.tab-pane .service-card h3 { color: var(--azul-glaciar); }
.tab-pane .itinerary-contact-box { background-color: #3a506b; }
.tab-pane h3 { color: var(--azul-glaciar); margin-bottom: 1rem; }
.tab-pane ul { list-style-position: inside; padding-left: 1rem; }
.tab-pane li { margin-bottom: 0.5rem; }

/* --- ESTILOS PARA LA PESTAÑA DE RECOMENDACIONES --- */
.recommendations-content {
    display: flex; /* ¡La magia de Flexbox! */
    align-items: center; /* Centra verticalmente los elementos */
    gap: 2rem; /* Espacio entre el texto y la imagen */
}

.recommendations-text {
    flex: 1.5; /* Le da un poco más de espacio al texto */
    text-align: left;
}

.recommendations-image {
    flex: 1; /* Le da menos espacio a la imagen */
}

.recommendations-image img {
    max-width: 100%; /* Asegura que la imagen sea responsive */
    height: auto;
    border-radius: 10px; /* Bordes redondeados (opcional) */
}

/* Animación de aparición */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================== GALERÍA AVANZADA CON PESTAÑAS Y SLIDER ================== */
#gallery_section {
    text-align: center;
    background-color: var(--blanco-alternativo);
    padding-top: 50px; /* Menos espacio arriba */
    padding-bottom: 60px; /* Menos espacio abajo */
}
#gallery_section h2 {
    margin-bottom: 1.0rem; /* Reducimos el margen */
    font-size: 2.2rem;
}

/* Estilos para las Pestañas */
.gallery-tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.0rem; /* Reducimos el margen */
}
.gallery-tab-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--texto-oscuro);
    border-radius: 20px;
    background-color: transparent;
    color: var(--texto-oscuro);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-tab-btn:hover {
    background-color: var(--texto-oscuro);
    color: var(--blanco-base);
}
.gallery-tab-btn.active {
    background-color: var(--texto-oscuro);
    color: var(--blanco-base);
}
.gallery-tab-pane {
    display: none;
}
.gallery-tab-pane.active {
    display: block;
}

/* ================== ESTILOS PARA LA GALERÍA CON MINIATURAS ================== */
.swiper-container {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para el Slider Principal */
.gallery-top {
    height: 10%; /* Ocupa el 80% de la altura del contenedor */
    height: 550px;
    border-radius: 15px;
}
.gallery-top .swiper-slide {
    background-size: cover;
    background-position: center;
}
.gallery-top .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para el Slider de Miniaturas */
.gallery-thumbs {
    height: 5%;
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}
.gallery-thumbs .swiper-slide {
    height: 100%;
    opacity: 0.4; /* Las miniaturas inactivas se ven opacas */
    transition: opacity 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
     cursor: pointer;
}
.gallery-thumbs .swiper-slide:hover {
    opacity: 1; /* Se aclara al pasar el ratón */
}
.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1; /* La miniatura activa es totalmente visible */
}
.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones de Navegación (los mismos que antes) */
.swiper-button-next, .swiper-button-prev {
    color: var(--blanco-base);
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 44px; height: 44px;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem; font-weight: bold;
}

/* Personalización de los botones de navegación */
.swiper-button-next, .swiper-button-prev {
    color: var(--blanco-base);
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}
/* --- ESTILOS PARA EL SLIDER DE VIDEOS --- */
.video-slider {
    height: 450px; /* La misma altura que el slider de fotos */
    border-radius: 15px;
    background-color: #000; /* Fondo negro por si el video no carga */
}

.video-slider .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 'contain' es mejor para videos para que no se corten los bordes */
}

/* Opcional: Estilos para la paginación (los puntitos) del slider de videos */
.video-slider .swiper-pagination-bullet {
    background: var(--blanco-base);
    opacity: 0.7;
}

.video-slider .swiper-pagination-bullet-active {
    background: var(--naranja-aventura);
    opacity: 1;
}


/* ================== SECCIÓN DE CONTACTO ================== */
#contact { background-color: #fff; }
.contact-container {
    display: flex; gap: 2rem; justify-content: space-between;
}
.contact-info { flex-basis: 40%; }
.contact-info h3 { text-align: left; }
.contact-form {
    flex-basis: 55%; display: flex; flex-direction: column;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem; /* Más espacio interior */
    margin-bottom: 1rem;
    border: 2px solid #ddd; /* Un borde un poco más grueso y suave */
    border-radius: 8px; /* Bordes más redondeados */
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: var(--blanco-alternativo); /* Un fondo sutil */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none; /* Quitamos el borde azul por defecto del navegador */
    border-color: var(--verde-paramo); /* Resalta el borde con tu color de marca */
    box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.2); /* Añade un "aura" de color */
}

.contact-form textarea { resize: vertical; } /* Permite redimensionar el textarea */
.submit-btn {
    background-color: var(--naranja-aventura);
    color: var(--texto-claro); border: none; padding: 1rem;
    border-radius: 5px; cursor: pointer; font-size: 1rem;
    font-weight: 700; transition: background-color 0.3s ease, transform 0.3s ease;
}
.submit-btn:hover {
    background-color: #e67300;
    transform: scale(1.05);
}

/* ================== EFECTOS DE SCROLL (FADE-IN) ================== */
.hidden {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 1s ease-out; /* De 0.6s -> 0.8s y de 0.8s -> 1s */
}
.show {
    opacity: 1; transform: translateY(0);
}

/* ================== PIE DE PÁGINA ================== */
/* ================== PIE DE PÁGINA (FOOTER PROFESIONAL) ================== */
footer {
    background-color: var(--texto-oscuro);
    color: var(--blanco-alternativo);
    padding-top: 60px; /* Espacio superior */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Cuadrícula responsive */
    gap: 2rem;
    padding: 0 40px;
}

.footer-col {
    padding: 0 15px;
}

.footer-logo {
    height: 130px;
    width: auto;
    margin-bottom: 1rem;
    background-color: #fff; /* Fondo blanco para el logo */
    border-radius: 10px;
}

.footer-col h4 {
    color: var(--blanco-base);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Línea decorativa debajo de los títulos */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: var(--naranja-aventura);
    height: 3px;
    width: 50px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--blanco-alternativo);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    color: var(--naranja-aventura);
    padding-left: 5px; /* Pequeño efecto de desplazamiento */
}

.footer-social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;

}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #3a506b; /* Línea divisoria */
}



/* --- ESTILOS PARA LAS NUEVAS TARJETAS DE TOURS --- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tour-card {
    background-color: #3a506b;
    border: 1px solid #556c88;
    border-radius: 10px;
    overflow: hidden; /* Oculta lo que se salga de los bordes redondeados */
    transition: all 0.4s ease;
}

.tour-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tour-card-content {
    padding: 1rem;
}

.tour-card-content h3 {
    color: var(--azul-glaciar);
    margin-bottom: 0.8rem;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--naranja-aventura);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    
}

.tour-card-details {
    max-height: 0; /* Empieza oculto */
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.5s ease-out; /* Animación suave */
    text-align: justify;
}

/* --- ESTILOS PARA EL EFECTO DE VIDEO AL PASAR EL RATÓN --- */
/* --- ESTILOS PARA EL EFECTO DE VIDEO AL PASAR EL RATÓN (CORREGIDO) --- */
.tour-card-image {
    position: relative;
    background-color: #000;
    height: 200px;
}

.tour-card:not(.gift-tour) .tour-image-preview, 
.tour-card:not(.gift-tour) .tour-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

/* ¡LA CORRECCIÓN ESTÁ AQUÍ! */
.tour-card:not(.gift-tour) .tour-image-preview {
    opacity: 1; /* Hacemos la imagen visible por defecto */
    z-index: 2; /* La ponemos en la capa de arriba */
}

.tour-card:not(.gift-tour) .tour-video-preview {
    opacity: 0; /* El video empieza oculto */
    z-index: 1; /* Lo ponemos en la capa de abajo */
}

.tour-card:not(.gift-tour):hover .tour-video-preview {
    opacity: 1; /* El video se muestra al pasar el ratón */
    z-index: 3; /* Lo traemos al frente para asegurar que se vea */
}

.tour-card:not(.gift-tour):hover .tour-image-preview {
    opacity: 0; /* La imagen se oculta al pasar el ratón */
}

/* Y nos aseguramos de que la tarjeta de obsequio se siga viendo bien */
.gift-tour .tour-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* --- NUEVA REGLA PARA ALINEAR TÍTULO Y BOTÓN --- */
.tour-card-header {
    display: flex; /* Activa Flexbox */
    justify-content: space-between; /* Empuja los elementos a los extremos */
    align-items: center; /* Los centra verticalmente en la línea */
    margin-bottom: 0.8rem; /* Mantiene el espacio con la descripción */
}

/* --- ESTADO ACTIVO (EXPANDIDO) --- */
.tour-card.active .tour-card-details {
    max-height: 200px; /* Altura máxima al expandirse (ajusta si necesitas más) */
    margin-top: 1rem; /* Espacio que aparece cuando se expande */
}

/* Estilos para el nuevo botón "Añadir Aventura" */
.tour-card-image {
    position: relative; /* Clave para posicionar el botón encima */
}
.add-to-itinerary-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1rem;
    border: 2px solid var(--blanco-base);
    background-color: rgba(0,0,0,0.5);
    color: var(--blanco-base);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    opacity: 0; /* Oculto por defecto */
    z-index: 5;
}
.tour-card:hover .add-to-itinerary-btn {
    opacity: 1; /* Aparece al pasar el ratón por la tarjeta */
}
.add-to-itinerary-btn:hover {
    background-color: var(--naranja-aventura);
    border-color: var(--naranja-aventura);
}

/* Estilo del botón cuando el tour está añadido */
.tour-card.selected .add-to-itinerary-btn {
    background-color: var(--verde-paramo);
    border-color: var(--verde-paramo);
    opacity: 1;
}

/* Estilos para la tarjeta de obsequio */
.gift-tour .tour-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3); /* Un poco más oscuro */
}
.gift-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--blanco-base);
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 1px 1px 5px #000;
    z-index: 5;
}



/* --- ESTILOS PARA LA LISTA EN LA PESTAÑA ITINERARIO --- */
#custom-itinerary {
    margin-bottom: 3rem;
}
#custom-itinerary h3 {
    text-align: center;
    color: var(--azul-glaciar);
    margin-bottom: 1.5rem;
}
.empty-itinerary-msg {
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}
.itinerary-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3a506b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.remove-tour-btn {
    background: none;
    border: 2px solid var(--naranja-aventura);
    color: var(--naranja-aventura);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
}


/* ================== ANIMACIONES DE ENTRADA (HERO) ================== */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animación para cada elemento con un pequeño retraso */
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .subtitle { animation-delay: 0.4s; }
.hero-content .hero-features { animation-delay: 0.6s; }
.hero-content .hero-cta { animation-delay: 0.8s; }

/* Definición de la animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== IMAGEN DE FONDO "FANTASMA" ================== */
body::before {
    content: "";
    position: fixed; /* La fija en el fondo de la ventana */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Ocupa toda la altura de la ventana */
    z-index: -1; /* ¡La clave! La pone DETRÁS de todo tu contenido */
    
    background-image: url('resources/fondo_fantasma_1.jpg'); /* <-- ¡CAMBIA ESTO! */
    background-size: cover;
    background-position: center;

    /* La magia para hacerla "fantasma" */
    opacity: 0.15; /* <-- Juega con este valor (entre 0.05 y 0.15 funciona bien) */
    filter: grayscale(100%); /* La pone en blanco y negro */
}

/* --- ESTILOS PARA ICONOS SOCIALES DE CONTACTO --- */
.contact-social {
    margin-top: 2rem; /* Espacio arriba */
}

.contact-social h4 {
    margin-bottom: 1rem;
    color: var(--texto-oscuro);
}

.social-icons {
    display: flex;
    gap: 1rem; /* Espacio entre los iconos */
}

.social-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--texto-oscuro); /* Color de fondo del círculo */
    border-radius: 50%; /* Los hace perfectamente redondos */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon-link svg {
    width: 24px;
    height: 24px;
    fill: var(--blanco-base); /* Color del icono (blanco) */
}

.social-icon-link:hover {
    background-color: var(--naranja-aventura); /* Cambia a naranja al pasar el ratón */
    transform: scale(1.1) translateY(-3px); /* Efecto de "levantarse" */
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Empieza oculto fuera de la pantalla */
    width: 350px;
    height: 100vh;
    background-color: var(--texto-oscuro);
    z-index: 200;
    transition: right 0.4s ease-in-out;
    padding: 60px 20px 20px 20px;
}

#mobile-menu.is-active {
    right: 0; /* Lo mueve a la vista */
}

#mobile-menu ul {
    list-style: none;
}

#mobile-menu li {
    margin-bottom: 2rem;
}

#mobile-menu a {
    text-decoration: none;
    color: var(--blanco-base);
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--blanco-base);
    font-size: 2.5rem;
    cursor: pointer;
}

/* ================== CONFIGURACIÓN DE SCROLL SNAP ================== */
#hero, 
#about,
#legality,
#info-panel,
#testimonials,
#gallery_section, 
#footer {
    scroll-snap-align: start; /* Alinea el inicio de cada sección con el inicio de la pantalla */
}

/* ================== LISTA DE ITINERARIO PERSONALIZADO ================== */
#selected-tours-container {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid #556c88;
    border-radius: 10px;
}
#selected-tours-container h3 {
    margin-bottom: 1rem;
}
.selected-tour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #556c88;
}
.selected-tour-item:last-child {
    border-bottom: none;
}
.remove-btn {
    background: none;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}
.empty-itinerary-msg {
    font-style: italic;
    color: #99aabb;
}

/* --- ESTILOS PARA LA LISTA ENRIQUECIDA --- */
.selected-tour-item span {
    display: flex;
    flex-direction: column; /* Apila el nombre y el tiempo */
}
.tour-time-info {
    font-size: 0.85rem;
    color: #99aabb;
    margin-top: 4px;
}
#whatsapp-reserve-btn {
    display: none; /* Oculto por defecto */
    margin-top: 1.5rem;
    text-align: center;
}
#whatsapp-reserve-btn.visible {
    display: block; /* Se hace visible con JavaScript */
}

/* --- ESTILOS PARA EL WIDGET DE GTRANSLATE --- */
.gtranslate_wrapper {
    margin-right: 2rem; /* Espacio entre el traductor y el menú */
    display: flex;
    align-items: center;
}

/* Ajusta la apariencia para que encaje con tu diseño */
.gt_selector a {
    color: var(--blanco-base) !important;
    font-weight: 700 !important;
}

/* ================== BOTÓN FLOTANTE DE WHATSAPP ================== */
.whatsapp-float-btn {
    position: fixed; /* ¡La clave! Lo fija en la pantalla */
    bottom: 30px;    /* Distancia desde el borde inferior */
    right: 30px;     /* Distancia desde el borde derecho */
    
    width: 65px;     /* Ancho del círculo */
    height: 65px;    /* Alto del círculo */
    background-color: #eef1ef; /* Color oficial de WhatsApp */
    border-radius: 50%; /* Lo hace perfectamente redondo */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra para darle profundidad */
    z-index: 1000; /* Asegura que esté por encima de todo */
    
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación suave */
}

.whatsapp-float-btn img {
    width: 70px; /* Tamaño del icono dentro del círculo */
    height: auto;
}

/* Efecto al pasar el ratón por encima */
.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-5px); /* Lo agranda y lo eleva un poco */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* ================== ESTILOS PARA LA SECCIÓN DE TESTIMONIOS ================== */
/* ================== ESTILOS PARA LA SECCIÓN DE TESTIMONIOS (CORREGIDO) ================== */
#testimonials {
    text-align: center;
    background-color: var(--blanco-alternativo);
    padding-bottom: 80px; /* Asegura espacio suficiente al final */
}
#testimonials h2 {
    margin-bottom: 4rem; /* Un poco más de espacio arriba */
    font-size: 2.2rem;
}
.testimonial-collage {
    position: relative;
    height: 650px; /* Aumentamos la altura para que quepa todo */
    max-width: 900px; /* Un poco más de ancho para el collage */
    margin: 0 auto;
}
.testimonial-card {
    position: absolute;
    /* Quitamos left y top para un control más preciso */
    width: 300px; /* Un poco más grandes */
    transition: transform 0.4s ease, z-index 0s 0.2s; /* Transición suave */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 6px solid white;
}
.testimonial-card img {
    width: 100%;
    border-radius: 5px; /* Redondeo interior */
    display: block; /* Elimina espacios extra */
}

/* --- POSICIONAMIENTO INDIVIDUAL DE CADA TARJETA --- */
/* Tarjeta 1 (Izquierda) */
.testimonial-card:nth-child(1) {
    top: 20px;
    left: 10%;
    transform: rotate(-8deg);
    z-index: 1;
}
/* Tarjeta 2 (Centro) */
.testimonial-card:nth-child(2) {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    z-index: 2; /* La del centro está por encima */
}
/* Tarjeta 3 (Derecha) */
.testimonial-card:nth-child(3) {
    top: 50px;
    right: 10%;
    transform: rotate(6deg);
    z-index: 1;
}
/* Puedes añadir :nth-child(4), (5), etc. si quieres más testimonios */

.testimonial-card:hover {
    transform: scale(1.15) rotate(0deg) !important; /* Agranda y endereza la tarjeta */
    z-index: 10; /* La trae al frente de todas */
    transition: transform 0.4s ease, z-index 0s 0s;
}

/* ================== ESTILOS PARA LA SECCIÓN DE LEGALIDAD ================== */
#legality {
    text-align: center;
    background-color: var(--blanco-base);
}
#legality h2 {
    font-size: 2.2rem;
}
#legality p {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
}

/* ================== ESTILOS RESPONSIVE (PARA MÓVILES Y TABLETS) ================== */
@media (max-width: 768px) {
    
    /* --- AJUSTES GENERALES --- */
    section {
        padding: 60px 20px; /* Menos padding en los lados */
    }

    /* --- AJUSTES DE NAVEGACIÓN --- */
    /* Aquí podríamos implementar un menú de hamburguesa en el futuro, por ahora simplificamos */
    /* --- AJUSTES DE NAVEGACIÓN MÓVIL --- */



    /* --- AJUSTES DEL HERO --- */
    #hero h1 {
        font-size: 2.5rem; /* Título más pequeño */
    }
    #hero .subtitle {
        font-size: 1.1rem;
    }
    .hero-features {
        flex-direction: column; /* Apila las características */
        gap: 1rem;
    }

    /* --- AJUSTES DE "SOBRE NOSOTROS" --- */
    .about-content {
        flex-direction: column; /* Apila el texto y la imagen */
    }

    /* --- AJUSTES DE SERVICIOS --- */
    .services-container {
        flex-wrap: wrap; /* Permite que las tarjetas salten a la siguiente línea */
        gap: 1.5rem;
    }
    .service-card {
        flex-basis: 100%; /* Cada tarjeta ocupa todo el ancho */
    }

    /* --- AJUSTES DE ITINERARIO --- */
    .itinerary-container {
        flex-direction: column; /* Apila el acordeón y la caja de contacto */
    }
    .itinerary-contact-box {
        position: static; /* La caja de contacto ya no se queda fija */
        margin-top: 2rem;
    }

    /* --- AJUSTES DE CONTACTO --- */
    .contact-container {
        flex-direction: column; /* Apila la info y el formulario */
    }

    .tours-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }
    /* --- AJUSTES RESPONSIVE PARA EL PANEL DE INFORMACIÓN --- */
    #info-panel {
        padding: 20px; /* Reduce el padding en móviles para ganar espacio */
    }

    .tours-grid {
        grid-template-columns: 1fr; /* ¡La clave! Una sola columna en móviles */
    }

    .tour-card-content h3 {
        font-size: 1.2rem; /* Títulos un poco más pequeños en móvil */
    }
    nav {
        padding: 0.5rem 20px; /* Menos padding en móvil */
    }
    
    .logo img {
        height: 40px; /* <-- REDUCE EL TAMAÑO DEL LOGO EN MÓVIL */
    }

    .nav-center {
        display: none; /* <-- OCULTA EL TÍTULO CENTRAL EN MÓVIL */
    }

        /* --- AJUSTES DEL MENÚ DESPLEGABLE EN MÓVIL --- */
    #mobile-menu {
        width: 65%; /* <-- ¡NUEVA REGLA PARA MÓVILES! */
    }

    .recommendations-content {
        flex-direction: column; /* Apila el texto y la imagen verticalmente */
    }

}