/* =========================================
   1. VARIABLES Y RESET GENERAL
   ========================================= */
:root {
    --azul-oscuro: #001f3f;
    --amarillo: #ffcc00;
    --verde: #28a745;
    --blanco: #ffffff;
    --negro: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }
body { background-color: var(--azul-oscuro); color: var(--blanco); }

/* =========================================
   2. COMPONENTES DE INTERFAZ (NAV/BOTONES)
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 5%; background: var(--negro); position: sticky; top: 0; z-index: 100;
}
.nav-logo { height: 45px; }
.nav-links a { color: var(--blanco); text-decoration: none; margin-left: 20px; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; cursor: pointer; }
.nav-links a:hover { color: var(--amarillo); }

button { padding: 12px 25px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.btn-amarillo { background: var(--amarillo); color: black; }
.btn-verde { background: var(--verde); color: white; }
button:hover { transform: scale(1.05); }

/* =========================================
   3. SISTEMA DE VISTAS (SPA)
   ========================================= */
.view { display: none; padding: 60px 5%; text-align: center; min-height: 100vh; }
.view.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

/* =========================================
   4. SECCIÓN INICIO Y FOOTER SEPARADO
   ========================================= */
.footer-hero-container {
    display: flex;
    justify-content: space-between; /* QR a la izquierda, Marcas a la derecha */
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 204, 0, 0.3);
}

.qr-lado-izquierdo { text-align: center; }
.qr-lado-izquierdo img { width: 80px; filter: drop-shadow(0 0 5px var(--amarillo)); }
.qr-lado-izquierdo span { display: block; color: var(--amarillo); font-size: 0.8rem; margin-top: 5px; }

.marcas-lado-derecho img { height: 50px; margin-left: 20px; filter: brightness(1); }

/* =========================================
   5. SECCIÓN CALDAS (RECUPERANDO EL ESTILO POTENTE)
   ========================================= */
.grid-rutas { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
    max-width: 900px; 
    margin: 0 auto; 
}

.card-ruta { 
    border: 3px solid var(--amarillo); 
    background: var(--negro); 
    height: 250px; 
    position: relative; 
    cursor: pointer; 
    overflow: hidden; 
    transition: 0.4s;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* El efecto de iluminación */
.card-ruta:hover { 
    border-color: #fff; 
    box-shadow: 0 0 25px var(--amarillo); 
    transform: translateY(-5px);
}

.card-img { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0.6; /* Imagen oscurecida de fondo */
    transition: 0.4s; 
}

.card-ruta:hover .card-img { opacity: 0.9; transform: scale(1.05); }

/* Etiqueta Negra con Borde Dorado */
.card-label { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: rgba(0, 0, 0, 0.85); /* Fondo negro semi-transparente */
    color: var(--amarillo); /* Letras doradas */
    padding: 15px; 
    font-weight: bold; 
    text-align: center; 
    border-top: 2px solid var(--amarillo);
    letter-spacing: 1px;
}
/* =========================================
   6. SISTEMA DE MODALES PROFESIONALES
   ========================================= */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 1000; }
.modal-body { position: relative; width: 90%; height: 85%; margin: 3% auto; background: var(--azul-oscuro); border: 2px solid var(--amarillo); border-radius: 10px; overflow: hidden; }
.close-modal { position: absolute; top: 10px; right: 20px; color: var(--amarillo); font-size: 40px; cursor: pointer; z-index: 2100; }

.modal-flex-container { display: flex; height: 100%; }
.modal-sidebar { width: 25%; background: rgba(0, 0, 0, 0.8); border-right: 2px solid var(--amarillo); padding: 20px; overflow-y: auto; }
.modal-main { width: 75%; position: relative; background: #000; }
#ifrCanva, #ifrContacto { width: 100%; height: 100%; border: none; }

/* =========================================
   7. SECCIÓN EXPERIENCIAS (CANVA FIJO)
   ========================================= */
.contenedor-canva-cliente {
    max-width: 1000px; margin: 20px auto; border: 3px solid var(--amarillo); border-radius: 12px; overflow: hidden; height: 600px; position: relative;
}
.contenedor-canva-cliente iframe { position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; }

/* =========================================
   8. BOTONES NODAL RUTAS 
   ========================================= */
.botones-sidebar {
    display: flex;
    flex-direction: column; 
    gap: 12px; 
    margin-top: 20px;
}

.btn-ruta-item {
    width: 100%;
    background: #000000 !important; /* Fondo negro sólido */
    border: 2px solid var(--amarillo) !important; /* Borde dorado grueso */
    color: #ffffff !important; /* Letras blancas */
    padding: 12px 15px;
    cursor: pointer;
    text-align: left;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: 0.3s all ease;
    display: block;
}

/* Efecto de iluminación cuando seleccionas o pasas el mouse */
.btn-ruta-item:hover, .btn-ruta-item.active-route {
    background: var(--amarillo) !important; 
    color: #000000 !important; 
    box-shadow: 0 0 15px var(--amarillo); 
}

/* ==========================================
   9 APARTADO PARA PANTALLAS MÓVILES
   ========================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Ajuste del contenedor principal de Inicio */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 10px !important;
        min-height: 100vh;
    }

    /* 2. Logo y Títulos: Proporcionales, */
    .logo-hero {
        width: 150px !important; /* Más pequeño para que no ocupe toda la pantalla */
        margin-bottom: 15px;
    }

    h1 {
        font-size: 1.4rem !important; /* Título legible pero no invasivo */
        line-height: 1.2;
    }

    .hero-p {
        font-size: 0.85rem !important;
        line-height: 1.4;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    /* FORZAR EL VIDEO A LA PANTALLA */
    #player, 
    #player iframe, 
    .video-container iframe {
        width: 100% !important;   /* No puede ser más ancho que la pantalla */
        max-width: 100vw !important; 
        height: auto !important;   /* Deja que la altura sea proporcional */
        aspect-ratio: 16 / 9;      /* Mantiene la forma de video de YouTube */
        display: block;
    }

    /* Contenedor del video para que no empuje nada */
    .video-wrapper {
        width: 100%;
        overflow: hidden; /* Corta cualquier cosa que intente salirse */
    }
    
    /* 3. Los botones principales (VER RUTAS / RESERVAR) */
    .hero-btns {
        flex-direction: column; /* Uno sobre otro para que no se corten */
        width: 100%;
        gap: 10px;
        margin-bottom: 30px;
    }

    .hero-btns button {
        width: 90%; /* Botones anchos fáciles de tocar */
        padding: 15px;
    }

    /* 4. El GRID de las 4 opciones (La estética que quieres) */
    .mobile-only-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* 2 columnas exactas */
        gap: 12px;
        width: 100%;
        max-width: 400px;
    }

    .card-ruta-mobile {
        background: #000; /* Fondo negro sólido como en PC */
        border: 1px solid var(--amarillo); /* Borde dorado delgado */
        height: 100px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
    }

    .card-label-mobile {
        background: var(--amarillo);
        color: #000;
        font-size: 0.6rem;
        font-weight: bold;
        padding: 5px;
        text-align: center;
        width: 100%;
    }

    /* 5. Ocultar el footer de patrocinadores en móvil para limpiar la vista */
    .footer-hero {
        display: none !important;
    }
}