/* ================= VARIABLES DE COLOR BASADAS EN TU LOGO ================= */
:root {
    --naranja-logo: #F59C1A;    /* Extraído del texto 'turisfront' */
    --verde-claro: #8CC63F;     /* Espiral verde */
    --azul-logo: #0082C6;       /* Espiral azul */
    --amarillo-logo: #FDC82F;   /* Espiral amarillo */
    
    --verde-selva-oscuro: #0B2B16; /* Para el fondo del footer y contrastes */
    --blanco: #ffffff;
    --texto-oscuro: #333333;
    --fondo-claro: #f4f8f5;
}

/* ================= RESET Y TIPOGRAFÍA ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--fondo-claro);
    color: var(--texto-oscuro);
    overflow-x: hidden;
}

/* ================= BOTÓN FLOTANTE DE AUDIO ================= */
#btn-audio {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--naranja-logo);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}
#btn-audio:hover { transform: scale(1.05); }

/* ================= EFECTOS DE LA SELVA (HOJAS Y PÁJAROS) ================= */
#hojas-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Para que no interfieran con los clics */
    z-index: 999;
}

.hoja-cayendo {
    position: absolute;
    top: -50px;
    width: 15px;
    height: 15px;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    opacity: 0.6;
    animation: caer linear infinite;
}

@keyframes caer {
    0% { transform: translateY(-50px) rotate(45deg) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg) translateX(100px); opacity: 0; }
}

.pajaro-animado {
    position: fixed;
    top: 15%;
    left: -150px;
    width: 200px;
    z-index: 998;
    pointer-events: none;
    animation: volar 20s linear infinite;
    opacity: 0.6;
}

@keyframes volar {
    0% { transform: translateX(-150px) translateY(0) scale(0.5); }
    50% { transform: translateX(50vw) translateY(-50px) scale(0.6); }
    100% { transform: translateX(110vw) translateY(20px) scale(0.5); }
}

/* ================= NAVEGACIÓN (HEADER) ================= */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(11, 43, 22, 0.9); /* Verde oscuro transparente */
    backdrop-filter: blur(5px);
}
.nav-contact {
    background: var(--naranja-logo);
    color: white;
    padding: 5px 50px;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}
.nav-logo {
    height: 60px; /* Tamaño editable del logo */
    filter: drop-shadow(0px 0px 2px rgba(255,255,255,0.8));
}
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-menu ul li a:hover {
    color: var(--naranja-logo);
}

/* ================= HERO SECTION (VIDEOS AUTO) ================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
}
.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-video.active {
    opacity: 0.6; /* Oscurecemos un poco para que resalte el texto */
}
.hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}
.hero-logo {
    width: 250px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}
.btn-primario {
    background: var(--verde-claro);
    color: var(--verde-selva-oscuro);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: 0.3s;
    display: inline-block;
}
.btn-primario:hover {
    background: var(--naranja-logo);
    color: white;
}

/* ================= SECCIÓN PAQUETES ================= */
.seccion-paquetes {
    padding: 80px 20px;
    background: url('turisfront/images/imagen/hojas_fondo.png') no-repeat bottom right;
    background-size: 300px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    color: var(--verde-selva-oscuro);
    margin-bottom: 50px;
    position: relative;
}
.titulo-seccion::after {
    content: '';
    width: 100px; height: 4px;
    background: var(--naranja-logo);
    display: block; margin: 10px auto 0;
}

.grid-paquetes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card-paquete {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.card-paquete:hover {
    transform: translateY(-10px);
}
/* ----- Efecto Cambio de Imagen y Zoom al pasar el cursor ----- */
.img-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.img-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}
.img-hover {
    opacity: 0;
    transform: scale(1);
}
.card-paquete:hover .img-front {
    opacity: 0;
}
.card-paquete:hover .img-hover {
    opacity: 1;
    transform: scale(1.1); /* Efecto Zoom en la segunda imagen */
}

.card-info {
    padding: 25px;
    text-align: center;
}
.card-info h3 {
    color: var(--verde-selva-oscuro);
    margin-bottom: 10px;
}
.precio {
    font-size: 1.5rem;
    color: var(--naranja-logo);
    font-weight: 800;
    margin-bottom: 20px;
}
.btn-reserva {
    display: inline-block;
    background: var(--azul-logo); /* Usando el azul del logo */
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    width: 100%;
}
.btn-reserva:hover {
    background: var(--verde-claro);
    color: var(--verde-selva-oscuro);
}

/* ================= SECCIÓN DESTINOS (VIDEOS) ================= */
.seccion-destinos {
    padding: 80px 20px;
    background: #e9f0eb;
}
.grid-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.video-box video {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.video-box h4 {
    text-align: center;
    margin-top: 15px;
    color: var(--verde-selva-oscuro);
    font-size: 1.2rem;
}

/* ================= FOOTER Y BUS ANIMADO ================= */
.footer-area {
    background: var(--verde-selva-oscuro);
    color: white;
    padding: 60px 20px 20px;
    position: relative;
    overflow: hidden; /* Importante para que el bus no desborde la pantalla */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-logo {
    width: 180px;
    margin-bottom: 20px;
    background: white; /* Para que resalte el logo sobre fondo oscuro, o usa png blanco */
    padding: 10px;
    border-radius: 10px;
}
.redes-sociales a {
    color: white;
    background: rgba(255,255,255,0.1);
    display: inline-block;
    width: 40px; height: 40px;
    text-align: center; line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 15px;
    transition: 0.3s;
}
.redes-sociales a:hover {
    background: var(--naranja-logo);
}
.footer-col h3 {
    color: var(--verde-claro);
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
    transition: 0.3s;
}
.footer-col ul li a:hover {
    color: var(--amarillo-logo);
}

/* --- El Bus Animado --- */
.bus-container {
    position: absolute;
    bottom: 40px; /* Sobre el texto de copyright */
    left: 0;
    width: 100%;
    height: 60px;
    border-bottom: 2px dashed rgba(255,255,255,0.2); /* Simula la carretera */
}
.bus-animado {
    position: absolute;
    bottom: 0;
    left: -150px;
    width: 120px;
    animation: conducir 15s linear infinite;
}
@keyframes conducir {
    0% { left: -150px; }
    100% { left: 100vw; }
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
    position: relative;
    z-index: 10;
}

/* ================= RESPONSIVE DESIGN (Adaptación a Dispositivos) ================= */

/* ----- PANTALLAS MEDIANAS (Tablets, max-width: 768px) ----- */
@media (max-width: 768px) {
    /* Reducimos los paddings laterales de 50px y centramos la barra de contacto */
    .nav-contact {
        justify-content: center;
        padding: 8px 15px; 
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Cambiamos la orientación del menú para que el logo quede arriba y los enlaces abajo */
    .nav-menu {
        flex-direction: column;
        padding: 10px 15px;
        gap: 15px;
    }

    /* Reducimos la separación (gap) de 25px a 15px para que entren en tablets */
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; 
    }

    /* Reducimos los elementos gigantes del Hero Section */
    .hero-overlay h1 {
        font-size: 2.2rem; /* Original: 3rem */
        padding: 0 20px;
    }
    
    .hero-logo {
        width: 180px; /* Original: 250px */
    }

    /* Ajustamos el tamaño del título de las secciones */
    .titulo-seccion {
        font-size: 2rem; /* Original: 2.5rem */
    }

    /* Reducimos los paddings gigantes de las secciones (Original: 80px 20px) */
    .seccion-paquetes, .seccion-destinos {
        padding: 50px 15px;
    }
}

/* ----- PANTALLAS PEQUEÑAS (Celulares, max-width: 480px) ----- */
@media (max-width: 480px) {
    /* Apilamos los enlaces del menú verticalmente en celulares */
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-logo {
        height: 50px; /* Reducimos levemente el logo del menú */
    }

    /* Ajustes finales para el texto principal del Hero */
    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .hero-logo {
        width: 140px;
    }

    .btn-primario {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Centramos el contenido del footer para una mejor lectura en celular */
    .footer-col {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
        display: block;
    }

    .redes-sociales {
        display: flex;
        justify-content: center;
    }

    /* Ajustamos el tamaño del botón flotante del audio */
    #btn-audio {
        padding: 10px 15px;
        font-size: 0.8rem;
        bottom: 15px;
        right: 15px;
    }
}