/* ==========================================================================
   SANLÚCAR CIUDAD - GUÍA DE ESTABLECIMIENTOS DE SANLÚCAR DE BARRAMEDA
   Estilos Principales e Identidad Visual Oficial (Soporte Modo Claro y Oscuro)
   ========================================================================== */

:root {
    /* Paleta Oficial Sanlúcar Ciudad */
    --sanlucar-red: #E51924;
    --sanlucar-red-dark: #C8102E;
    --sanlucar-red-light: #FFEAEC;
    --sanlucar-teal: #006F8E;
    --sanlucar-teal-dark: #0B5567;
    --sanlucar-teal-light: #E6F4F8;
    --sanlucar-gold: #C59B4B;
    --sanlucar-gold-dark: #9E7930;
    --sanlucar-gold-light: #FFF9EB;

    /* Neutros y Superficies (Modo Claro por Defecto) */
    --sanlucar-bg: #F8FAFC;
    --sanlucar-card-bg: #FFFFFF;
    --sanlucar-text: #1E293B;
    --sanlucar-text-muted: #64748B;
    --sanlucar-border: #E2E8F0;
    --sanlucar-heading-color: #0B5567;
    --sanlucar-navbar-bg: rgba(255, 255, 255, 0.95);

    /* Interacción Especial (WhatsApp, Mapas) */
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE5D;
    --whatsapp-bg: #E8FADF;

    /* Sombras y Efectos */
    --shadow-sm: 0 2px 8px rgba(0, 111, 142, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(0, 111, 142, 0.1), 0 8px 10px -6px rgba(0, 111, 142, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(0, 111, 142, 0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

/* --------------------------------------------------------------------------
   DECLARACIÓN DE VARIABLES PARA MODO OSCURO (DARK MODE)
   -------------------------------------------------------------------------- */
[data-theme="dark"],
[data-bs-theme="dark"],
html[data-theme="dark"],
body[data-theme="dark"] {
    --sanlucar-bg: #0B131E;
    --sanlucar-card-bg: #152232;
    --sanlucar-text: #F1F5F9;
    --sanlucar-text-muted: #94A3B8;
    --sanlucar-border: #1E2E42;
    --sanlucar-heading-color: #F8FAFC;
    --sanlucar-navbar-bg: rgba(11, 19, 30, 0.95);
    --sanlucar-teal-light: #162C3A;
    --sanlucar-teal-dark: #38BDF8;
    --sanlucar-red-light: #331518;
    --sanlucar-gold-light: #2D2716;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--sanlucar-bg);
    color: var(--sanlucar-text);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--sanlucar-heading-color);
}

/* --------------------------------------------------------------------------
   Top Flag Band (Franja Oficial de Sanlúcar)
   -------------------------------------------------------------------------- */
.sanlucar-flag-bar {
    height: 6px;
    background: linear-gradient(90deg,
            var(--sanlucar-red) 0%, var(--sanlucar-red) 25%,
            #FFFFFF 25%, #FFFFFF 75%,
            var(--sanlucar-red) 75%, var(--sanlucar-red) 100%);
}

/* --------------------------------------------------------------------------
   Navegación / Header
   -------------------------------------------------------------------------- */
.navbar-sanlucar {
    background: var(--sanlucar-navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sanlucar-border);
    padding: 8px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-link-sanlucar {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sanlucar-text) !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-pill);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2;
}

.nav-link-sanlucar:hover {
    background: var(--sanlucar-teal-light);
    color: var(--sanlucar-teal-dark) !important;
    transform: translateY(-1px);
}

.nav-link-sanlucar.active {
    background: var(--sanlucar-teal-dark);
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 111, 142, 0.25);
}

.nav-link-sanlucar.active i {
    color: #FFFFFF !important;
}

.btn-sanlucar-primary {
    background: linear-gradient(135deg, var(--sanlucar-red) 0%, var(--sanlucar-red-dark) 100%);
    color: white !important;
    border: none;
    transition: all 0.25s ease;
}

.btn-sanlucar-primary:hover {
    background: linear-gradient(135deg, var(--sanlucar-red-dark) 0%, #A00B22 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 25, 36, 0.3);
}

/* --------------------------------------------------------------------------
   Hero Section Sanlúcar (Foto o Vídeo con Trama de Puntos Uniforme)
   -------------------------------------------------------------------------- */
.hero-sanlucar {
    position: relative;
    background-image: url('../../Plaza_del_Cabildo_Sanlúcar_Barrameda.JPG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 100px;
    overflow: hidden;
}

[data-theme="dark"] .hero-sanlucar,
[data-bs-theme="dark"] .hero-sanlucar {
    background-image: url('../../Plaza_del_Cabildo_Sanlúcar_Barrameda.JPG') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.hero-has-video {
    background-image: none !important;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Capa de Trama de Puntos y Degradado para Foto y Vídeo */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.28) 1.3px, transparent 1.3px),
        linear-gradient(135deg, rgba(7, 38, 53, 0.82) 0%, rgba(0, 77, 99, 0.78) 50%, rgba(0, 111, 142, 0.82) 100%);
    background-size: 18px 18px, cover;
    background-position: 0 0, center center;
    background-repeat: repeat, no-repeat;
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .hero-overlay,
[data-bs-theme="dark"] .hero-overlay {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.22) 1.3px, transparent 1.3px),
        linear-gradient(135deg, rgba(3, 10, 18, 0.88) 0%, rgba(8, 27, 38, 0.85) 50%, rgba(15, 45, 61, 0.88) 100%) !important;
    background-size: 18px 18px, cover !important;
}

.hero-sanlucar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(229, 25, 36, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 155, 75, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero Floating Sticker Reel / Post-it Carousel (Taco de Notas)
   -------------------------------------------------------------------------- */
.hero-postit-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    z-index: 10;
}

@media (min-width: 992px) {
    .hero-postit-wrapper {
        position: absolute;
        top: 25px;
        right: 40px;
        margin-bottom: 0;
        z-index: 10;
        width: 320px;
    }
}

.hero-postit-stack {
    position: relative;
    width: 100%;
    max-width: 320px;
}

/* Hojas inferiores simulando el taco de notas de post-its */
.hero-postit-stack::before,
.hero-postit-stack::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.hero-postit-stack::before {
    transform: rotate(2.8deg) scale(0.97) translateY(4px);
    z-index: 1;
}

.hero-postit-stack::after {
    transform: rotate(-4.2deg) scale(0.94) translateY(8px);
    z-index: 0;
    opacity: 0.7;
}

.hero-postit-sticker {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: left;
    text-decoration: none !important;
    display: block;
    color: var(--sanlucar-text);
}

.hero-postit-sticker:hover {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 209, 102, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

/* Chincheta / Pin decorativo */
.hero-postit-sticker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #FF4D4D 0%, #C8102E 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 2px 3px rgba(255,255,255,0.6);
    z-index: 2;
}

.sticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.sticker-badge-evento {
    background: linear-gradient(135deg, #E51924 0%, #C8102E 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(229, 25, 36, 0.3);
}

.sticker-badge-ruta {
    background: linear-gradient(135deg, #006F8E 0%, #0B5567 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 111, 142, 0.3);
}

.sticker-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #072635;
    line-height: 1.25;
    margin-bottom: 6px;
}

.sticker-meta {
    font-size: 0.8rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticker-action-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sanlucar-teal);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    transition: transform 0.2s ease;
}

.hero-postit-sticker:hover .sticker-action-btn {
    transform: translateX(4px);
    color: var(--sanlucar-red);
}

/* Animación de "Arrancar / Deshojar" (Peel off transition) */
.hero-postit-sticker.peel-off {
    animation: peelOffAway 0.5s ease-in forwards;
}

.hero-postit-sticker.enter-slide {
    animation: slideInNext 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes peelOffAway {
    0% {
        transform: rotate(-2deg) translateY(0) scale(1);
        opacity: 1;
    }
    40% {
        transform: rotate(-12deg) translateY(-25px) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: rotate(-25deg) translateY(-60px) scale(0.85);
        opacity: 0;
    }
}

@keyframes slideInNext {
    0% {
        transform: rotate(5deg) translateY(20px) scale(0.92);
        opacity: 0;
    }
    100% {
        transform: rotate(-2deg) translateY(0) scale(1);
        opacity: 1;
    }
}

/* Indicador de paginación y controles */
.sticker-footer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sticker-counter {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sanlucar-text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 50px;
}

.sticker-nav-dots {
    display: flex;
    gap: 4px;
}

.sticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.sticker-dot.active {
    width: 14px;
    border-radius: 10px;
    background: var(--sanlucar-red);
}

/* Modo oscuro */
[data-theme="dark"] .hero-postit-sticker,
[data-bs-theme="dark"] .hero-postit-sticker {
    background: rgba(15, 30, 45, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .hero-postit-stack::before,
[data-bs-theme="dark"] .hero-postit-stack::before {
    background: rgba(20, 35, 50, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hero-postit-stack::after,
[data-bs-theme="dark"] .hero-postit-stack::after {
    background: rgba(15, 28, 40, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .sticker-title,
[data-bs-theme="dark"] .sticker-title {
    color: #F8FAFC !important;
}

[data-theme="dark"] .sticker-meta,
[data-bs-theme="dark"] .sticker-meta {
    color: #94A3B8 !important;
}

[data-theme="dark"] .sticker-footer-controls,
[data-bs-theme="dark"] .sticker-footer-controls {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .sticker-counter,
[data-bs-theme="dark"] .sticker-counter {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

[data-theme="dark"] .sticker-dot,
[data-bs-theme="dark"] .sticker-dot {
    background: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .sticker-dot.active,
[data-bs-theme="dark"] .sticker-dot.active {
    background: var(--sanlucar-red) !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #FFF9EB;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.search-box-hero {
    background: var(--sanlucar-card-bg);
    border: 1px solid var(--sanlucar-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.search-box-hero .form-control,
.search-box-hero .form-select {
    background-color: transparent;
    color: var(--sanlucar-text);
    border: none;
    box-shadow: none !important;
    font-size: 1rem;
    padding: 12px 16px;
}

.search-box-hero .form-control::placeholder {
    color: var(--sanlucar-text-muted);
}

/* --------------------------------------------------------------------------
   Badges y Etiquetas Sanlúcar
   -------------------------------------------------------------------------- */
.badge-zona {
    background-color: var(--sanlucar-teal-light);
    color: var(--sanlucar-teal-dark);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0, 111, 142, 0.15);
}

.badge-etiqueta {
    background-color: var(--sanlucar-gold-light);
    color: var(--sanlucar-gold-dark);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    border: 1px solid rgba(197, 155, 75, 0.3);
}

.badge-destacado {
    background: linear-gradient(135deg, var(--sanlucar-red) 0%, var(--sanlucar-red-dark) 100%);
    color: white;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(229, 25, 36, 0.3);
}

/* --------------------------------------------------------------------------
   Botones Personalizados
   -------------------------------------------------------------------------- */
.btn-sanlucar-primary {
    background: linear-gradient(135deg, var(--sanlucar-teal) 0%, var(--sanlucar-teal-dark) 100%);
    color: white !important;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(0, 111, 142, 0.28);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sanlucar-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 111, 142, 0.38);
    background: linear-gradient(135deg, #0087AC 0%, var(--sanlucar-teal) 100%);
}

.btn-sanlucar-red {
    background: linear-gradient(135deg, var(--sanlucar-red) 0%, var(--sanlucar-red-dark) 100%);
    color: white !important;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(229, 25, 36, 0.28);
    transition: all 0.3s ease;
}

.btn-sanlucar-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(229, 25, 36, 0.38);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

/* --------------------------------------------------------------------------
   Tarjetas de Comercio (Cards)
   -------------------------------------------------------------------------- */
.card-comercio {
    background: var(--sanlucar-card-bg);
    border: 1px solid var(--sanlucar-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-comercio:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 111, 142, 0.3);
}

.card-comercio-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #1E293B;
}

.card-comercio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-comercio:hover .card-comercio-img {
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Contenedor de Mapa Interactivo
   -------------------------------------------------------------------------- */
.mapa-container {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sanlucar-border);
    background-color: #E2E8F0;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Categorías & Pills
   -------------------------------------------------------------------------- */
.cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: var(--sanlucar-card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--sanlucar-border);
    color: var(--sanlucar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
    height: 100%;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--sanlucar-teal);
    color: white !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--sanlucar-teal);
}

.cat-pill:hover i,
.cat-pill.active i {
    color: white !important;
}

.cat-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--sanlucar-teal-light);
    color: var(--sanlucar-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.cat-pill:hover .cat-icon-circle,
.cat-pill.active .cat-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */
.footer-sanlucar {
    background: #072635;
    color: #94A3B8;
    padding: 70px 0 30px;
    margin-top: 80px;
    border-top: 4px solid var(--sanlucar-red);
}

[data-theme="dark"] .footer-sanlucar,
[data-bs-theme="dark"] .footer-sanlucar {
    background: #040D14 !important;
}

.footer-sanlucar h5,
.footer-sanlucar h6 {
    color: #FFFFFF;
}

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #FFF9EB;
}

/* --------------------------------------------------------------------------
   Botón de Cambio de Tema (Claro / Oscuro)
   -------------------------------------------------------------------------- */
.btn-theme-toggle {
    background: var(--sanlucar-teal-light);
    border: 1px solid rgba(0, 111, 142, 0.2);
    color: var(--sanlucar-teal-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
}

.btn-theme-toggle:hover {
    background: var(--sanlucar-teal);
    color: white !important;
    border-color: var(--sanlucar-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 111, 142, 0.25);
}

/* --------------------------------------------------------------------------
   REGLAS ESPECÍFICAS FORZADAS PARA MODO OSCURO (OVERWRITING BOOTSTRAP UTILITIES)
   -------------------------------------------------------------------------- */
[data-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white,
body[data-theme="dark"] .bg-white {
    background-color: #152232 !important;
    color: #F1F5F9 !important;
}

[data-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-light,
body[data-theme="dark"] .bg-light {
    background-color: #0E1825 !important;
    color: #F1F5F9 !important;
}

[data-theme="dark"] .card,
[data-bs-theme="dark"] .card,
[data-theme="dark"] .card-body,
[data-bs-theme="dark"] .card-body,
html[data-theme="dark"] .card-body,
body[data-theme="dark"] .card-body {
    background-color: #152232 !important;
    color: #F1F5F9 !important;
    border-color: #1E2E42 !important;
}

[data-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark,
html[data-theme="dark"] .text-dark,
body[data-theme="dark"] .text-dark {
    color: #F8FAFC !important;
}

[data-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-muted,
html[data-theme="dark"] .text-muted,
body[data-theme="dark"] .text-muted {
    color: #94A3B8 !important;
}

[data-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-secondary,
body[data-theme="dark"] .text-secondary {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top,
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-top {
    border-color: #1E2E42 !important;
}

[data-theme="dark"] .btn-theme-toggle,
[data-bs-theme="dark"] .btn-theme-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #FFD166 !important;
}

[data-theme="dark"] .btn-theme-toggle:hover,
[data-bs-theme="dark"] .btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1E2D42 !important;
    color: #FFFFFF !important;
    border-color: #2D3F56 !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] .form-control::placeholder {
    color: #94A3B8 !important;
}

/* --------------------------------------------------------------------------
   ESTILOS PARA BOTÓN Y BANNER FLOTANTE DE INSTALACIÓN PWA
   -------------------------------------------------------------------------- */
.btn-sanlucar-gold {
    background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
    color: #000000 !important;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sanlucar-gold:hover {
    background: linear-gradient(135deg, #FFA200 0%, #E07A00 100%);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 133, 0, 0.35);
}

.pwa-install-banner {
    bottom: 15px;
    transition: all 0.4s ease;
}

/* --------------------------------------------------------------------------
   CARRUSEL LATERAL DE ZONAS SANLÚCAR
   -------------------------------------------------------------------------- */
.zonas-carousel-wrapper {
    position: relative;
    padding: 0 4px;
}

.zonas-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 20px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE y Edge */
}

.zonas-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.zona-card-item {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: start;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zona-card-item:hover {
    transform: translateY(-6px);
}

.carousel-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sanlucar-card-bg);
    color: var(--sanlucar-heading-color);
    border: 1px solid var(--sanlucar-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    cursor: pointer;
}

.carousel-arrow-btn:hover {
    background: var(--sanlucar-teal-dark);
    color: #FFFFFF;
    border-color: var(--sanlucar-teal-dark);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.carousel-arrow-btn:active {
    transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN INFERIOR MÓVIL (EXPERIENCIA APP NATIVA)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
    background-color: var(--sanlucar-card-bg);
    border-top: 1px solid var(--sanlucar-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-nav-link {
    color: var(--sanlucar-text-muted);
    transition: color 0.2s ease, transform 0.15s ease;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:active {
    transform: scale(0.92);
}

.mobile-nav-link.active {
    color: var(--sanlucar-teal-dark);
}

[data-theme="dark"] .mobile-nav-link.active,
[data-bs-theme="dark"] .mobile-nav-link.active {
    color: var(--sanlucar-teal-dark);
}

.mobile-nav-link .style-caption {
    color: inherit;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 68px;
    }
    .pwa-install-banner {
        bottom: 74px !important;
    }
}