/* Variables de color de temática turística */
:root {
--primary-color: #256ED9; /* Un azul más intenso para resaltar */
    --accent-color: #ff6b6b;  
    --text-dark: #ffffff;     /* CAMBIADO A BLANCO para que se lea sobre el azul */
    --bg-light: #1F1321;     /* CAMBIADO A AZUL: Este será el color del menú */
    --transition: all 0.3s ease;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
}

/* Contenedor de la barra de navegación */
.navbar {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

/* Estilos de los enlaces de navegación (Escritorio) */
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--primary-color);
}

/* Icono de flecha en los submenús */
.nav-menu ul li a i {
    font-size: 12px;
}

/* Submenús Desplegables (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown-menu li a {
    padding: 12px 20px;
    font-weight: 400;
}

/* Mostrar submenú al pasar el mouse (En PC) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Botón Menú Móvil oculto por defecto */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- DISEÑO RESPONSIVO (MÓVILES) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%; /* Oculto fuera de la pantalla */
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-light);
        transition: var(--transition);
        overflow-y: auto;
    }

    /* Mostrar menú al activar la clase */
    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul li a {
        padding: 15px 10px;
        width: 100%;
        justify-content: space-between; /* Flecha al extremo derecho */
        border-bottom: 1px solid #f0f0f0;
    }

    /* Ajuste de submenú en móviles (Acordeón) */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #fdfdfd;
        max-height: 0; /* Efecto colapsado */
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 15px;
        transition: max-height 0.3s ease-out;
    }

    /* Clase activa para abrir el submenú con JS */
    .dropdown.open .dropdown-menu {
        max-height: 300px; 
    }
    
    .dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }
}







/* Contenedor del Logo (Enlace principal) */








/* Contenedor del carrusel (deja espacio para la barra azul de navegación) */
.carousel-container {
    margin-top: -10px; 
    position: relative;
    width: 100%;
    height: 75vh; /* Altura del carrusel en pantalla */
    background-color: #000;
    overflow: hidden;
}

/* Estilos para cada diapositiva */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

/* Diapositiva visible */
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(65%); /* Oscurece la foto para resaltar el texto */
}

/* Textos encima de las imágenes */
.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-family: sans-serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    width: 85%;
    max-width: 800px;
    z-index: 3;
}

.carousel-caption h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* Botones de flechas (Izquierda y Derecha) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-color, #0275d8); /* Fondo azul al pasar el mouse */
}

.prev { left: 20px; }
.next { right: 20px; }

/* Indicadores (Puntitos inferiores) */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background-color: #ffcc00; /* Puntito activo en color amarillo/dorado */
    transform: scale(1.2);
}

/* Ajustes para celulares */
@media (max-width: 768px) {
    .carousel-container { height: 50vh; }
    .carousel-caption h2 { font-size: 1.8rem; }
    .carousel-caption p { font-size: 1rem; }
    .carousel-btn { padding: 10px 15px; font-size: 18px; }