/* ========================================= */
/* --- SECCIÓN LUGARES: MAPA INMERSIVO --- */
/* ========================================= */

body.dark-theme {
    background-color: #0b1320; 
    color: white;
    overflow: hidden; /* Evita que la página haga scroll hacia abajo */
}

/* El contenedor principal ocupa el 100% de la pantalla */
.lugares-experiencia-inmersiva {
    position: relative;
    width: 100%;
    height: 100vh; 
    padding-top: 60px; /* Espacio del navbar */
}

/* --- EL MAPA INTERACTIVO (Fondo) --- */
.mapa-dinamico {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 1; 
}

/* --- LAS TARJETAS FLOTANTES (Overlay Transparente) --- */
.cards-overlay {
    position: absolute;
    bottom: 0; left: 0; 
    width: 100%; 
    z-index: 5; 
    /* Aquí está la transparencia: un degradado que va de azul muy oscuro a transparente */
    background: linear-gradient(to top, rgba(11, 19, 32, 0.95) 10%, rgba(11, 19, 32, 0.6) 60%, transparent);
    padding-bottom: 30px;
    pointer-events: none; /* Permite que el mapa se toque a través de los huecos */
}

.titulo-locaciones {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* El Scroll Horizontal */
.carrusel-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    padding: 20px;
    gap: 15px;
    align-items: flex-end; /* Para que al crecer lo hagan hacia arriba */
    pointer-events: auto; /* Reactiva el toque en las tarjetas */
}

.carrusel-scroll::-webkit-scrollbar { display: none; }

/* --- LA TARJETA --- */
.lugar-card {
    min-width: 280px;
    max-width: 280px;
    background-color: #1a2639; /* El fondo de la tarjeta SÍ es sólido */
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: center; 
    transition: all 0.4s ease;
    transform: scale(0.9); 
    opacity: 0.8;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.lugar-card.active {
    transform: scale(1.02); 
    opacity: 1;
    border: 2px solid #ffd700;
}

/* ESTADO EXPANDIDO (Cuando presionas Ver Detalles) */
.lugar-card.expanded {
    max-height: 80vh; /* Crece para mostrar galería y video */
    overflow-y: auto; /* Agrega scroll interno si es muy largo */
}

.lugar-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.lugar-info {
    padding: 15px;
}

/* Corrección de tu CSS anterior para la zona */
.lugar-info .zona {
    font-size: 0.7rem;
    color: #ffd700; 
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.lugar-info h3 { font-size: 1.2rem; margin-bottom: 5px; }
.lugar-info .capacidad { font-size: 0.85rem; color: #ccc; margin-bottom: 5px; }
.lugar-info .caracteristicas { font-size: 0.8rem; color: #4a90e2; margin-bottom: 10px; }
.lugar-info .desc-corta { font-size: 0.85rem; color: #aaa; margin-bottom: 15px; }

.btn-ver-lugar {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Galería interna */
.detalles-completos {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.galeria-fotos {
    display: flex;
    gap: 10px;
}
.galeria-fotos img {
    width: 48%;
    height: 80px;
    border-radius: 6px;
}

/* Botón final de Reservar */
.btn-reservar-final {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #4a90e2; /* Azul FLOM llamativo */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: transform 0.2s;
}

.btn-reservar-final:active {
    transform: scale(0.96); /* Efecto de hundirse al presionarlo */
}

/* ========================================= */
/* --- PINES MODERNOS MINIMALISTAS (Leaflet) --- */
/* ========================================= */

/* Quitamos cualquier borde o fondo por defecto de la librería */
.leaflet-flom-marker {
    background: transparent;
    border: none;
}

/* El contenedor principal de nuestro nuevo pin */
.flom-modern-pin {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El punto central (El pin en sí) */
.pin-core {
    width: 14px;
    height: 14px;
    background-color: #4a90e2; /* Azul FLOM elegante */
    border: 2px solid #ffffff; /* Borde blanco para que resalte del mapa */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

/* --- ESTADO ACTIVO (Cuando estás viendo su tarjeta) --- */

/* El punto crece un poco y se vuelve blanco */
.leaflet-flom-marker.pin-activo .pin-core {
    background-color: #ffffff; 
    border: 4px solid #4a90e2; 
    transform: scale(1.4); /* Como lo hacemos en el inner, no rompemos el mapa */
}

/* El efecto de pulso/radar (Solo visible cuando está activo) */
.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(74, 144, 226, 0.5); /* Azul con transparencia */
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
}

.leaflet-flom-marker.pin-activo .pin-pulse {
    animation: radarPulse 1.5s infinite; /* Repite la animación siempre */
}

/* La animación mágica que crea la onda de radar */
@keyframes radarPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(3); /* Se expande al triple */
        opacity: 0; /* Se desvanece suavemente */
    }
}

/* ========================================= */
/* --- TARJETAS COMPACTAS EXPANDIBLES --- */
/* ========================================= */

.lugar-card {
    min-width: 250px;
    max-width: 250px;
    background-color: #1a2639;
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: center; 
    transition: all 0.4s ease;
    transform: scale(0.9); 
    opacity: 0.8;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}

/* La tarjeta activa en el centro */
.lugar-card.active {
    transform: scale(1.05); 
    opacity: 1;
    border: 2px solid #ffd700;
}

/* La cabeza compacta (Foto y título) */
.card-header-compact {
    cursor: pointer;
    position: relative;
}

.card-header-compact img {
    width: 100%;
    height: 110px; /* Foto mucho más chaparrita */
    object-fit: cover;
}

.info-basica {
    padding: 10px 15px;
}

.info-basica .zona {
    font-size: 0.7rem;
    color: #ffd700; 
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-basica h3 {
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta textos muy largos con ... */
}

.toque-mas {
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 0;
    transition: color 0.3s;
}
.toque-mas i {
    transition: transform 0.3s;
    margin-left: 5px;
}

/* El cuerpo que se expande */
.lugar-info-completa {
    padding: 0 15px 15px 15px;
}

.lugar-info-completa .capacidad { font-size: 0.85rem; color: #ccc; margin-bottom: 5px; }
.lugar-info-completa .caracteristicas { font-size: 0.8rem; color: #4a90e2; margin-bottom: 10px; }
.lugar-info-completa .desc-corta { font-size: 0.85rem; color: #aaa; margin-bottom: 15px; }

/* Botón final (El que ya tenías) */
.btn-reservar-final {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* ========================================= */
/* --- FILTRO SUPERIOR FLOTANTE (PREMIUM) --- */
/* ========================================= */

.filtro-flotante-top {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 92%;
    max-width: 600px;
    z-index: 1000;
    background: rgba(11, 19, 32, 0.65); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 10px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    pointer-events: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform-origin: top center;
}

/* La clase que lo esconde */
.filtro-flotante-top.escondido {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    pointer-events: none;
}

.filtro-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 12px;
}

.filtro-pregunta {
    font-size: 0.75rem;
    color: #b0b8c1;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Botón X para cerrar el filtro */
.btn-cerrar-filtro {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-cerrar-filtro:hover {
    background: #e74c3c; /* Se pone rojo al pasar el mouse */
}

/* --- LA PÍLDORA PEQUEÑA QUE APARECE CUANDO CIERRAS --- */
.btn-abrir-filtros {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(11, 19, 32, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

.btn-abrir-filtros i {
    color: #ffd700; /* Lupa dorada */
}

.btn-abrir-filtros.oculto {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

.filtro-btns {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 5px 10px; 
    justify-content: flex-start; 
    scroll-snap-type: x mandatory; 
}

.filtro-btns::-webkit-scrollbar { display: none; }

.zona-btn {
    scroll-snap-align: center;
    padding: 10px 22px;
    border-radius: 30px; 
    border: 1px solid transparent; 
    background: rgba(255, 255, 255, 0.05); 
    color: #e0e0e0;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.zona-btn:hover { background: rgba(255, 255, 255, 0.12); }

.zona-btn.activa {
    background: #d4af37; 
    color: #0b1320; 
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35); 
    transform: scale(1.05); 
}

.zona-btn.todo.activa {
    background: #4a90e2; 
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.35);
}

.sin-resultados {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* ========================================= */
/* --- MODAL DE DETALLES COMPLETOS (FULL) ---*/
/* ========================================= */

.modal-pantalla-completa {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(11, 19, 32, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* En celular se pega abajo */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-pantalla-completa.oculto {
    opacity: 0;
    pointer-events: none;
}

.modal-lugar-contenido {
    background: #1a2639;
    width: 100%;
    max-width: 800px;
    height: 90vh; /* Ocupa el 90% de la pantalla */
    border-radius: 25px 25px 0 0; /* Bordes redondos arriba */
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-pantalla-completa.oculto .modal-lugar-contenido {
    transform: translateY(100%); /* Lo esconde hacia abajo */
}

.btn-cerrar-lugar {
    position: absolute;
    top: 15px; right: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* ========================================= */
/* --- CARRUSEL MULTIMEDIA DEL MODAL --- */
/* ========================================= */

.modal-carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    overflow: hidden;
}

.modal-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.modal-slide.activo {
    opacity: 1;
    z-index: 2;
}

/* Las imágenes y videos llenan el espacio completo */
.modal-slide img, .modal-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flechitas de navegación */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.modal-arrow:hover { background: rgba(0,0,0,0.8); }
.modal-arrow.prev { left: 10px; }
.modal-arrow.next { right: 10px; }

/* Puntitos indicadores abajo */
.modal-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-dot.activo {
    background: #ffd700;
    transform: scale(1.3);
}

.modal-info-padding {
    padding: 25px;
}

.modal-info-padding h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: white;
}

.modal-tags {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Grid de Especificaciones (Iconos) */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.spec-item i {
    color: #4a90e2;
    font-size: 1.1rem;
}

.modal-descripcion {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
}

/* Barra inferior pegajosa para el botón de reserva */
.modal-footer-reserva {
    background: #111a28;
    padding: 15px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.precio-modal {
    display: flex;
    flex-direction: column;
}

.precio-modal small { font-size: 0.75rem; color: #aaa; }
.precio-modal span { font-size: 1.4rem; font-weight: bold; color: #ffd700; }

.btn-reservar-grande {
    padding: 12px 30px;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Adaptación para PC */
@media (min-width: 768px) {
    .modal-pantalla-completa { align-items: center; }
    .modal-lugar-contenido { height: 85vh; border-radius: 20px; }
}

/* ========================================= */
/* --- ETIQUETA FLOTANTE DEL MAPA (TAG) --- */
/* ========================================= */

.pin-label {
    position: absolute;
    bottom: 35px; /* Lo pone por encima del puntito azul */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Inicia un poquito más abajo */
    
    /* Estilo cristal oscuro premium */
    background: rgba(11, 19, 32, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
    pointer-events: none; /* Evita que estorbe al dar clic */
    
    /* Oculto por defecto */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 100;
}

/* El pequeño triángulo apuntando hacia abajo */
.pin-label::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Ajustado al borde inferior */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(11, 19, 32, 0.9) transparent transparent transparent;
}

/* --- ANIMACIÓN AL SELECCIONAR --- */
/* Cuando el pin gana la clase "pin-activo", mostramos la etiqueta */
.leaflet-flom-marker.pin-activo .pin-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Sube a su posición final */
}

/* ========================================= */
/* --- PANEL DE TARJETAS MINIMIZABLE --- */
/* ========================================= */

#panel-tarjetas {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 10px; /* Reducimos el espacio de arriba para que el mapa se vea más */
}

/* Ajustamos cuánto se esconde. Dejamos asomar 65px (lo que mide el título y botón) */
#panel-tarjetas.minimizada {
    transform: translateY(calc(100% - 65px)); 
}

/* El contenedor que pone el título y el botón lado a lado */
.header-tarjetas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 5px;
    pointer-events: auto; /* IMPORTANTE para poder hacer clic en el botón */
}

/* Ajuste al título para que no quite espacio extra */
.titulo-locaciones {
    font-size: 1.2rem;
    margin-bottom: 0; 
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    color: white;
}

.btn-toggle-panel {
    /* Fondo más pálido y menos transparente */
    background: rgba(255, 255, 255, 0.055); 
    /* Borde un poco más sólido para que se note el límite del botón */
    border: 1px solid rgba(255, 255, 255, 0.144); 
    color: #ffffff;
    padding: 7px 20px; /* Un pelín más de relleno para que se vea más presente */
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    /* Aumentamos el desenfoque detrás para que las calles del mapa no lo distraigan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-toggle-panel:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-toggle-panel i {
    transition: transform 0.3s ease;
}

/* Lógica de intercambio de textos usando CSS puro */
.texto-mostrar { display: none; }

/* --- ESTADO MINIMIZADO --- */
#panel-tarjetas.minimizada .texto-ocultar { display: none; }
#panel-tarjetas.minimizada .texto-mostrar { display: block; }

#panel-tarjetas.minimizada .btn-toggle-panel {
    background: #ffd700;
    color: #0b1320;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

#panel-tarjetas.minimizada .btn-toggle-panel i {
    transform: rotate(180deg); /* Flecha hacia arriba */
}

/* Ajuste extra para el carrusel del modal en celulares */
@media (max-width: 768px) {
    .modal-carousel-container {
        height: 250px; /* Un poco más chaparrito en celular para que quepa la información abajo */
    }
}

/* ========================================= */
/* --- MENÚ HAMBURGUESA Y SIDEBAR --- */
/* ========================================= */

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Separación entre las rayas y el logo FLOM */
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px; /* Área táctil más grande */
}

.hamburger-btn:hover {
    color: #4a90e2; /* Azul FLOM */
}

/* El fondo negro transparente que tapa la página */
.sidebar-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* El cajón del menú que sale de la izquierda */
.sidebar-menu {
    position: fixed;
    top: 0; 
    left: -300px; /* Escondido fuera de la pantalla por defecto */
    width: 280px;
    height: 100vh;
    background: #111;
    z-index: 3000;
    transition: left 0.3s ease;
    box-shadow: 5px 0 20px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.sidebar-menu.activo {
    left: 0; /* Lo metemos a la pantalla */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 { 
    color: white; 
    margin: 0; 
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.close-sidebar {
    background: none; 
    border: none; 
    color: #aaa;
    font-size: 2rem; 
    cursor: pointer;
    transition: 0.3s;
}

.close-sidebar:hover { color: white; }

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    gap: 15px;
}

.sidebar-links a i {
    width: 25px; 
    text-align: center;
    color: #4a90e2; /* Íconos en azul */
}

.sidebar-links a:hover {
    background: rgba(74, 144, 226, 0.1);
    color: white;
    padding-left: 30px; /* Efecto de moverse un poquito a la derecha al pasar el mouse */
}

/* ========================================= */
/* --- AJUSTE CELULAR PARA EL MENÚ --- */
/* ========================================= */
@media (max-width: 768px) {
    /* Como agrupamos el logo y las barras, les decimos que ellos dos van a la izquierda */
    .nav-left { 
        order: 1 !important; 
        margin-right: auto !important; 
    }
    
    /* Le quitamos el margin al logo que habíamos puesto antes para que no se separe feo de las barras */
    .logo-nav { 
        margin-right: 0 !important; 
    }
}