/* --- Depofibra: Estilo Completo (Menú Blanco + Cursor Personalizado + Footer Estructurado) --- */

:root {
    --primary-color: #01488e;
    /* Azul Corporativo */
    --text-dark: #111111;
    --text-muted: #757575;
    --bg-light: #f9f9f9;
}

.color-primario {
    color: #01488e;
}

/* --- BLOQUEO DE SCROLL HORIZONTAL (Solución Móvil) --- */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* El candado: impide mover a los lados */
    position: relative; /* Mantiene todo en su sitio */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    /* Mantenemos el padding-top para tu menú fijo */
    padding-top: 80px; 
    cursor: none; /* Tu cursor personalizado */
}

/* --- CURSOR PERSONALIZADO (FIX FINAL: Visible en Cisternas y Portátiles) --- */

/* 1. El PUNTO central (Guía) */
.cursor-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border: 2px solid #ffffff;
    /* Borde blanco para contraste */
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 2147483647;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

/* 2. El CÍRCULO exterior (Seguidor) */
.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(1, 72, 142, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 2147483646;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Efecto al pasar por enlaces */
body.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(0.6);
    background-color: #fff;
    border-color: var(--primary-color);
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(1, 72, 142, 0.1);
    border-color: var(--primary-color);
    box-shadow: none;
}

/* OCULTAR SOLO EN MÓVILES/TABLETS (Menores de 992px) */
@media (max-width: 992px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    a,
    button,
    .btn,
    .product-item,
    .nav-link {
        cursor: pointer !important;
    }
}


/* Utilidades */
.tracking-1 {
    letter-spacing: 1px;
}

.tracking-2 {
    letter-spacing: 2px;
}

.tracking-wide {
    letter-spacing: 1.5px;
}

.tracking-widest {
    letter-spacing: 3px;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/* --- NAVEGACIÓN --- */
.navbar {
    height: 90px;
    padding: 0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 80px !important;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

.nav-link,
.nav-icons a {
    color: #111111 !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar-toggler-icon {
    filter: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* LOGO TIPOGRÁFICO */
.logo-text {
    font-family: 'Jost', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo-text .dot {
    color: var(--primary-color);
    font-size: 3rem;
    line-height: 0;
    margin-left: 2px;
    position: relative;
    top: -2px;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }
}

/* --- HERO SECTION --- */
.hero-slider,
.carousel-item {
    height: calc(100vh - 80px);
    min-height: 500px;
}

.bg-img,
.cta-parallax .bg-img-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) contrast(1.1);
    transform: scale(1);
    transition: transform 8s ease;
}

.carousel-item.active .bg-img {
    transform: scale(1.05);
}

.cta-parallax .bg-img-fixed {
    background-attachment: fixed;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.466);
    z-index: 1;
}

.cta-parallax .hero-overlay-dark {
    background-color: rgba(1, 40, 80, 0.85) !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.btn-link-underline {
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    border-bottom: 2px solid #fff;
    color: #fff !important;
    transition: all 0.3s;
}

.btn-link-underline:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

/* --- BOTONES --- */
.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    color: white !important;
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

.btn-white {
    background-color: #fff;
    color: #111;
    border: none;
    transition: all 0.3s;
}

.btn-white:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- MARQUEE --- */
.marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #fff;
}

.marquee-text {
    display: inline-block;
    width: max-content;
    padding-left: 0%;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-wrap:hover .marquee-text {
    animation-play-state: paused;
}

/* Productos */
.product-item {
    cursor: pointer;
}

.img-wrap {
    overflow: hidden;
    position: relative;
}

.transition-zoom {
    transition: transform 0.6s ease;
}

.product-item:hover .transition-zoom {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(0, 0, 0), transparent);
    opacity: 5 !important;
    transition: 0.4s;
}

.product-item:hover .product-overlay {
    opacity: 12;
}

.btn-quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.3s;
}

.btn-quick-view:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-item:hover .btn-quick-view {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* --- BEST SELLERS & CATEGORIES --- */
.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-list span {
    color: #999;
    font-size: 0.85rem;
}

.sidebar-banner {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 55% 20px;
    position: relative;
    overflow: hidden;
}

.product-card-simple {
    border: 1px solid #eee;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
}

.product-card-simple.bg-light {
    background-color: #f8f9fa !important;
}

.product-card-simple:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.product-card-simple .card-img {
    height: 190px;
    width: 100%;
    background-color: #f8f8f8;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card-simple .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-simple .card-body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-simple h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.product-card-simple p.text-muted {
    font-size: 0.85rem;
    min-height: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.product-card-simple p.fw-bold,
.product-card-simple .btn {
    margin-top: auto;
    padding-top: 10px;
}

/* --- BANNER CTA --- */
.cta-parallax {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.cta-parallax .bg-img-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.btn-outline-white-thick {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    transition: all 0.3s;
    font-size: 0.85rem;
    padding: 10px 25px;
}

.btn-outline-white-thick:hover {
    background: #fff;
    color: var(--primary-color);
}

/* --- SECCIÓN NOSOTROS --- */
.border-start-primary {
    border-left: 4px solid var(--primary-color);
}

.list-checked li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.list-checked li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.stats-box {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    padding: 25px;
    transition: all 0.3s;
}

.stats-box:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: transparent;
    transform: translateY(-5px);
}

.btn-cta-solid {
    background-color: var(--primary-color);
    color: #ffffff !important;
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(1, 72, 142, 0.25);
    transition: all 0.3s ease;
}

.btn-cta-solid:hover {
    background-color: #01366b;
    border-color: #01366b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 72, 142, 0.35);
}

/* --- FOOTER GENERAL (Estilo Base) --- */
.footer-wrapper {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-logo {
    font-family: 'Jost', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff !important;
    letter-spacing: -1px;
    line-height: 1;
}

.footer-logo .dot {
    color: var(--primary-color);
    font-size: 2.5rem;
    line-height: 0;
    position: relative;
    top: 2px;
}

.footer-desc {
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 992px) {
    .footer-contact li {
        justify-content: flex-start;
    }
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

.footer-contact a:hover {
    color: #fff;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 15px;
    font-size: 1.1rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- BARRA AZUL SUPERIOR (MÓVIL) --- */
@media (max-width: 991px) {
    .top-bar .container-fluid {
        justify-content: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        text-align: center;
    }

    .top-bar .ms-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .top-bar a {
        font-size: 12px !important;
        display: inline-block;
    }
}

/* --- FILTROS --- */
.category-list a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade {
    animation: fadeInScale 0.5s ease-out forwards;
}

/* --- DROPDOWN --- */
.dropdown-menu {
    background-color: #ffffff;
    margin-top: 0;
    padding: 10px 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInSlide 0.3s ease;
    border: none;
}

.dropdown-item {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    padding: 8px 25px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f4f6f8;
    color: var(--primary-color);
    padding-left: 30px;
}

.dropdown-header {
    padding: 8px 25px;
    font-size: 0.75rem;
    margin-top: 5px;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }

    @keyframes fadeInSlide {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- CARRUSEL GALERÍA --- */
.gallery-carousel-wrapper {
    height: 500px;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
    border: 1px solid #eee;
    border-bottom: none;
}

.gallery-carousel-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.external-controls-container {
    position: relative;
    background: #fff;
    padding: 20px 90px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #eee;
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.external-controls-container .carousel-indicators {
    position: static;
    margin: 0;
    display: flex;
    gap: 10px;
}

.external-controls-container .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0;
}

.external-controls-container .carousel-indicators .active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.external-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 1;
    z-index: 10;
    cursor: pointer;
}

.external-nav-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(1, 72, 142, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.arrow-prev {
    left: 30px;
}

.arrow-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.4rem;
    height: 1.4rem;
    filter: invert(0.2) sepia(0) saturate(0) hue-rotate(0deg) brightness(0.3);
}

.external-nav-arrow:hover .carousel-control-prev-icon,
.external-nav-arrow:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .gallery-carousel-wrapper {
        height: 300px;
    }

    .external-controls-container {
        padding: 15px 65px;
    }

    .external-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .arrow-prev {
        left: 15px;
    }

    .arrow-next {
        right: 15px;
    }
}

/* =========================================
   AJUSTES RESPONSIVE (Márgenes y Estructura)
   ========================================= */

@media (max-width: 991px) {
    .px-lg-5 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    section[style*="height: 50vh"],
    section[style*="height: 60vh"] {
        height: auto !important;
        min-height: 350px !important;
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    .gx-5 {
        --bs-gutter-x: 0;
    }

    .order-lg-2 {
        order: 1 !important;
        margin-bottom: 30px;
    }

    .order-lg-1 {
        order: 2 !important;
    }

    .col-lg-6 {
        text-align: center !important;
    }

    /* Listas centradas en móvil */
    .list-unstyled {
        display: block; /* Ocupa todo el ancho */
        text-align: center !important; /* Fuerza el texto al centro */
        padding: 0;
    }

    /* Para centrar específicamente los elementos flexibles (como la lista de categorías) */
    .category-list a {
        justify-content: center !important; /* Centra el contenido flex */
        padding-left: 0 !important; /* Quita el relleno lateral */
        border-left: none !important; /* Quita la línea lateral si la hubiera */
    }
    
    /* Para centrar los checks de "Sobre Nosotros" */
    .list-checked li {
        text-align: center;
        padding-left: 0;
        list-style-position: inside; /* Mete el icono dentro de la línea para centrarlo visualmente */
    }
    .list-checked li::before {
        position: relative; /* Cambia de absoluto a relativo para fluir con el texto */
        left: auto; top: auto;
        margin-right: 8px;
    }

    /* Navbar Móvil */
    .navbar-collapse {
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 10px 0;
    }

    .btn-cta-solid {
        display: block;
        width: 100%;
        margin-top: 15px;
    }

    /* Logo Móvil */
    .navbar {
        height: auto !important;
        min-height: 80px;
        padding: 10px 0 !important;
    }

    .navbar-brand img {
        height: 50px !important;
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    h1.display-3,
    h1.display-4 {
        font-size: 2.2rem !important;
        word-wrap: break-word;
    }

    h2.display-5,
    h2.display-6 {
        font-size: 1.8rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .hero-content p.lead {
        margin-bottom: 1.5rem !important;
    }

    .hero-slider,
    .carousel-item {
        height: 65vh;
        min-height: 400px;
    }
}

/* =========================================
   FIX FOOTER MÓVIL DEFINITIVO
   ========================================= */

@media (max-width: 991px) {

    /* 1. Contenedor Principal: Centrado */
    .footer-wrapper {
        text-align: center !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* 2. FORZAR COLUMNAS AL 100% PARA EVITAR HUECOS RAROS (SOLUCIÓN CLAVE) */
    .footer-wrapper .col-6,
    .footer-wrapper .col-lg-2,
    .footer-wrapper .col-lg-4 {
        width: 100% !important;
        /* Cada bloque ocupará toda la línea */
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 40px;
        /* Separación vertical limpia */
        display: grid;
    }

    /* 3. Limpiar márgenes ocultos de las listas */
    .footer-wrapper ul {
        padding-left: 0 !important;
        margin-left: 0 !important;
        list-style: none;
    }

    /* 4. Títulos */
    .footer-heading {
        display: inline-block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 5px;
        margin-bottom: 20px;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    /* 5. Lista de Contacto */
    .footer-contact li {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 25px !important;
    }

    .footer-contact li i {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        font-size: 1.3rem;
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.05);
        width: 50px;
        height: 50px;
        line-height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 6. Enlaces */
    .footer-links a {
        display: block;
        padding: 8px 0;
        font-size: 1rem;
    }

    /* 7. Redes Sociales */
    .social-icons {
        justify-content: center !important;
        display: flex;
        gap: 20px;
        margin-top: 10px;
        margin-bottom: 30px;
        text-align: center;
    }

    .social-icons a {
        margin: 0 !important;
    }

    /* 8. Copyright */
    .copyright-row div {
        text-align: center !important;
        margin-bottom: 10px;
    }
}

/* === COOKIES BARRA INFERIOR (CORREGIDO: Cursor Visible) === */

.cookie-bar-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    
    /* CAMBIO CLAVE: Bajamos el z-index para que el cursor (que es más alto) pase por encima */
    z-index: 99990 !important; 
    
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    visibility: hidden;
    transition: all 0.5s ease;
}

.cookie-bar-bottom.show {
    transform: translateY(0);
    visibility: visible;
}

.cookie-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text p { font-size: 0.9rem; color: #fff; margin: 0; }
.cookie-text a { color: #fff; text-decoration: underline; font-weight: bold; }

.cookie-buttons { display: flex; gap: 10px; align-items: center; }

/* Botones del Banner */
.cookie-buttons .btn-link { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; }
.cookie-buttons .btn-link:hover { color: #fff; text-decoration: underline; cursor: pointer; }

.cookie-buttons .btn-outline-light { border: 1px solid rgba(255,255,255,0.3); font-size: 0.85rem; padding: 5px 15px; cursor: pointer; }
.cookie-buttons .btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.cookie-buttons .btn-light { background: #fff; color: var(--primary-color); border: none; font-weight: bold; font-size: 0.85rem; padding: 5px 20px; cursor: pointer; }
.cookie-buttons .btn-light:hover { background: #f0f0f0; }

/* === MODAL CONFIGURACIÓN === */
.cookie-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 
    
    /* CAMBIO CLAVE: Encima del banner, pero debajo del cursor */
    z-index: 99995; 
    
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
    backdrop-filter: blur(2px);
}
.cookie-modal-overlay.open { opacity: 1; visibility: visible; }

.cookie-modal-box {
    background: #fff; width: 450px; max-width: 90%; padding: 25px;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.modal-header h5 { margin: 0; color: var(--primary-color); font-weight: 700; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }

.cookie-option { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-weight: 600; font-size: 0.95rem;}

/* Switch */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(18px); }
.switch.disabled { opacity: 0.5; cursor: not-allowed; }

/* Móvil */
@media (max-width: 768px) {
    .cookie-content-flex { flex-direction: column; text-align: left; align-items: flex-start; }
    .cookie-buttons { width: 100%; justify-content: space-between; }
    .cookie-buttons button { flex: 1; }
}