/* ==========================================================================
   1. VARIABLES, FUENTES Y RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --pex-green-dark: #004d4d;
    --pex-green-light: #008080;
    --pex-turquese: #40e0d0;
    --pex-orange: #ff6b35;
    --pex-white: #fcfcfc;
    --pex-black: #002b2b;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(0, 77, 77, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--pex-white);
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-title {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   2. HEADER & NAVEGACIÓN (GLASSMORPHISM)
   ========================================================================== */
#header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

#header.scrolled {
    background: rgba(0, 43, 43, 0.85);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ==========================================================================
   3. HERO SECTION (INICIO)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('img/Fondo.jpg');
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -2px;
}

.hero-section h1 span.magic-text {
    color: var(--pex-turquese);
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.6em;
    display: block;
    margin: 10px 0;
}

/* ==========================================================================
   4. SECCIÓN TOURS (CARDS & SLIDER) - LOOK PREMIUM
   ========================================================================== */
/* ==========================================================================
   4. SECCIÓN TOURS (CARDS & SLIDER) - DISEÑO FINAL REFORZADO
   ========================================================================== */
#tours {
    background-color: #f4f7f7;
    padding: 80px 0;
    overflow: hidden; /* Evita que el slider rompa el ancho de la web */
}

/* Contenedor principal que limita el ancho del contenido */
#tours .container {
    max-width: 1400px;
    margin: 0 auto;
    px: 20px;
}

/* Ocultar barra de scroll original (image_6e19fb.png) */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Configuración del Slider */
#tourSlider {
    display: flex;
    gap: 30px; /* Espaciado generoso entre tarjetas */
    padding: 20px 0 40px 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tarjeta Individual - TAMAÑO GRANDE Y LEGIBLE */
.tour-card {
    background: white;
    border-radius: 3rem; /* Bordes muy redondeados (image_6e95ba.jpg) */
    padding: 15px; 
    border: 1px solid #eef2f2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 380px; /* Tamaño aumentado para legibilidad */
    max-width: 380px;
    transition: all 0.4s ease;
    flex-shrink: 0; /* Evita que las tarjetas se achiquen */
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 43, 43, 0.1);
}

/* Contenedor de Imagen */
.card-img-container {
    height: 250px; /* Altura aumentada para impacto visual */
    border-radius: 2.5rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges sobre imagen */
.badge-tour {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 9px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 25px;
    color: white;
    text-transform: uppercase;
    z-index: 10;
}

/* Contenido de Texto - ALTA LEGIBILIDAD */
.category-tag {
    color: #40e0d0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.5rem; /* Título grande */
    font-weight: 900;
    color: #002b2b;
    line-height: 1.2;
    margin-bottom: 12px;
}

.card-text {
    font-size: 1rem; /* Texto de descripción legible */
    color: #333 !important;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Footer de Tarjeta */
.card-footer-box {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f0f5f5;
}

/* Botón Ver Detalles (Verde Oscuro image_6e2145.jpg) */
.btn-detail-outline {
    background: transparent;
    border: 2px solid #002b2b;
    color: #002b2b;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-detail-outline:hover {
    background: #002b2b;
    color: white;
}

/* Precio Destacado */
.price-val {
    display: block;
    font-size: 2rem; /* Precio grande y claro */
    font-weight: 900;
    color: #002b2b;
    line-height: 1;
}

.price-unit {
    font-size: 10px;
    color: #777;
    font-weight: 700;
    text-transform: uppercase;
}

/* Flechas de Navegación */
.nav-arrow-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: white;
    color: #002b2b;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.nav-arrow-btn:hover {
    background: #002b2b;
    color: white;
}

/* Ajustes para Móvil */
@media (max-width: 768px) {
    .tour-card {
        min-width: 88vw;
        max-width: 88vw;
    }
    .card-title { font-size: 1.3rem; }
    .card-text { font-size: 0.95rem; }
    #tourSlider { gap: 15px; }
}
/* ==========================================================================
   5. SECCIÓN NOSOTROS (QUIÉNES SOMOS)
   ========================================================================== */
#nosotros {
    background-color: white;
}

#nosotros h2 {
    letter-spacing: -1px;
}

/* Estilo del Collage */
#nosotros .relative {
    perspective: 1000px;
}

#nosotros img {
    filter: saturate(1.1);
    transition: all 0.5s ease;
}

#nosotros .order-1 img:hover {
    filter: saturate(1.3) contrast(1.1);
}

/* Ajustes para que el collage no se amontone en móvil */
@media (max-width: 1023px) {
    #nosotros .relative {
        height: 350px;
        margin-bottom: 20px;
    }
    #nosotros h2 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   6. CATEGORÍAS (GRID DE IMÁGENES)
   ========================================================================== */
.category-image-container {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.category-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-image-container:hover img {
    transform: scale(1.1);
}

/* SECCIÓN 7: CONTACTO ACTUALIZADO */

/* 1. Estilo para los placeholders */
#contacto input::placeholder, 
#contacto textarea::placeholder {
    color: #cbd5e0;
    font-weight: 500;
}

/* 2. Selector corregido (se deben usar barras invertidas para escapar corchetes y el #) */
#contacto .bg-\[#f9f8f4\] {
    background-color: #f9f8f4 !important; /* Crema muy suave de la imagen */
}

/* 3. Tipografía para los labels */
#contact-form label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #002b2b;
}

/* 4. Efecto sutil al enfocar los campos */
#contact-form input:focus, 
#contact-form textarea:focus {
    outline: none;
    border-color: #00bee6;
    box-shadow: 0 0 0 4px rgba(0, 190, 230, 0.1);
}

/* 5. Estilo para el botón de enviar (Naranja vibrante) */
#contact-form button[type="submit"] {
    background-color: #ff6b35;
    transition: all 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background-color: #e85a2a;
    transform: translateY(-2px);
}
/* FOOTER PROFESIONAL */
footer input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

footer a {
    text-decoration: none;
}

/* Efecto para el texto gigante de fondo */
footer .text-white\/5 {
    user-select: none;
    z-index: 0;
}

/* Ajuste de brillo para el logo en fondo oscuro */
footer .brightness-0.invert {
    filter: brightness(0) invert(1);
}

/* Responsividad para los créditos */
@media (max-width: 768px) {
    footer .text-\[15vw\] {
        font-size: 25vw;
        bottom: 0;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* ==========================================================================
   9. AJUSTES RESPONSIVOS (CELULARES)
   ========================================================================== */
@media (max-width: 767px) {
    #tourSlider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tour-item {
        min-width: 85vw; /* Muestra 85% de la tarjeta para que se vea el borde de la siguiente */
        scroll-snap-align: start;
    }

    .tour-card {
        border-radius: 2rem; /* Un poco menos de radio en móvil para no perder espacio */
    }

    .card-img-container {
        height: 170px;
    }

    .nav-btn { display: none; } /* Ocultar flechas en móvil, se usa el dedo */
}


/* Carrusel de Testimonios Estilo image_87f3e5.png */
#testimonios article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

#testimonios article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 43, 43, 0.05);
    border-color: #e5e7eb;
}

/* Ocultar barra de scroll en el contenedor del carrusel */
#testimonialSlider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#testimonios .fa-quote-left {
    opacity: 0.6;
}



/* Reducción de escala en la tarjeta y ajuste de precios */
.tour-card {
    max-width: 300px; /* Tamaño más compacto para la tarjeta */
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Ajuste del tamaño del precio */
.price-val {
    font-size: 1.25rem !important; /* Tamaño reducido de 20px aprox */
    font-weight: 800;
    color: #002b2b;
    display: block;
    line-height: 1;
}

/* Etiqueta de moneda (PEN) */
.price-val::before {
    content: " ";
    font-size: 0.8rem;
    color: #6b7280; /* Gris para que no compita visualmente */
    font-weight: 600;
}

/* Ajuste del botón para que no se vea desproporcionado */
.btn-detail-outline {
    padding: 6px 14px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
}

/* Contenedor del pie de la tarjeta corregido */
.card-footer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}


.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}


/* Ajustes para el Modal en Móviles */
@media (max-width: 768px) {
    #modalTour {
        padding: 0; /* Ocupar todo el ancho en móviles pequeños */
    }
    
    #modalTour .rounded-\[2\.5rem\] {
        border-radius: 1.5rem 1.5rem 0 0; /* Redondear solo arriba en móvil */
    }

    /* Ocultar scrollbar pero permitir scroll */
    .overflow-y-auto {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .overflow-y-auto::-webkit-scrollbar {
        display: none;
    }
}









/* --- ESTILOS PARA PÁGINAS LEGALES --- */
.legal-page-header {
    background: linear-gradient(rgba(0,43,43,0.9), rgba(0,43,43,0.9)), url('../img/Fondo.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 50px 0;
}

.legal-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.legal-content h1 {
    color: #002b2b;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.legal-content h2 {
    color: #008080;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-content p, .legal-content li {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #40e0d0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.btn-back:hover { transform: translateX(-5px); }





