:root {
    --brand-blue: #0A84FF;
    --brand-orange: #ff9f0a;
    --brand-red: #FF453A;
    --brand-green: #30D158;
    --brand-purple: #bf5af2;
    
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;

    /* Variables de Modo para el Modal de Horarios */
    --bg-card: #ffffff;
    --border-light: #eee;
    --bg-btn-horario: #f8f9fa;

    /* Variables dinámicas (se inyectarán desde PHP en la vista) */
    --bg-header: rgba(44, 62, 80, 0.85);
    --border-header: 1px solid rgba(255, 255, 255, 0.15);
    --shadow-header: 0 10px 30px rgba(0, 0, 0, 0.15);
    --color-titulo: #ffffff;
    --glow-border: #2c3e50;
    --glow-shadow: rgba(44, 62, 80, 0.4);
}

body.dark-theme {
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    
    /* Variables de Modo Oscuro para el Modal de Horarios */
    --bg-card: #1c1c1e;
    --border-light: rgba(255,255,255,0.1);
    --bg-btn-horario: rgba(255,255,255,0.05);
}

/* --- NUEVO: Estilos adaptables para la etiqueta de horario variable --- */
.badge-horario-variable {
    background: rgba(134, 134, 139, 0.1) !important;
    color: #555 !important;
    border: 1px solid rgba(134, 134, 139, 0.2) !important;
}
body.dark-theme .badge-horario-variable {
    color: #ffffff !important;
}

/* --- NUEVO: Ocultar menús flotantes globales cuando un modal está abierto --- */
body.hide-floating-menus #btn-alis-trigger,
body.hide-floating-menus #alis-chat-interface,
body.hide-floating-menus .contenedor-menu-inferior,
body.hide-floating-menus .menu-bottom-mobile,
body.hide-floating-menus .nav-flotante,
body.hide-floating-menus .menu-flotante-wrapper {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

:focus-visible {
    outline: 3px solid #0A84FF !important;
    outline-offset: 3px !important;
    border-radius: 8px;
}

.negocio-item:focus-visible {
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.5);
    border-color: #0A84FF;
}

@keyframes resplandor-anuncio {
    0% {
        box-shadow: 0 0 15px rgba(230, 126, 34, 0.4), 0 0 20px rgba(230, 126, 34, 0.2);
        border: 2px solid rgba(230, 126, 34, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(230, 126, 34, 0.8), 0 0 45px rgba(230, 126, 34, 0.6);
        border: 2px solid rgba(230, 126, 34, 1);
    }
    100% {
        box-shadow: 0 0 15px rgba(230, 126, 34, 0.4), 0 0 20px rgba(230, 126, 34, 0.2);
        border: 2px solid rgba(230, 126, 34, 0.5);
    }
}

@keyframes borde-animado-vandev {
    0% { border-color: #bf5af2; box-shadow: 0 0 15px rgba(191, 90, 242, 0.5); }
    33% { border-color: #0A84FF; box-shadow: 0 0 15px rgba(10, 132, 255, 0.5); }
    66% { border-color: #ff0055; box-shadow: 0 0 15px rgba(255, 0, 85, 0.5); }
    100% { border-color: #bf5af2; box-shadow: 0 0 15px rgba(191, 90, 242, 0.5); }
}

.badge-ambulante {
    background-color: rgba(255, 159, 10, 0.15) !important;
    color: var(--brand-orange) !important;
    border: 1px solid rgba(255, 159, 10, 0.3) !important;
}

.badge-eventos {
    background-color: rgba(191, 90, 242, 0.15) !important;
    color: var(--brand-purple) !important;
    border: 1px solid rgba(191, 90, 242, 0.3) !important;
}

.borde-patrocinador {
    border: 2px solid #bf5af2 !important;
    animation: borde-animado-vandev 3s infinite linear !important;
}

.borde-premium {
    border: 2px solid #ff9f0a !important;
}

.borde-normal {
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.header-seccion {
    background: var(--bg-header);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 20px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--border-header);
    box-shadow: var(--shadow-header);
    text-align: center;
    transition: background 0.3s ease;
    width: 100%;
}

.header-seccion h1 {
    font-size: 1.8rem;
    color: var(--color-titulo);
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-seccion h1:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.header-seccion h1:active {
    transform: scale(0.95);
}

.buscador-wrapper-mini {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.input-contenedor-visual {
    position: relative;
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    border: 2px solid var(--glow-border);
    box-shadow: 0 0 15px var(--glow-shadow);
    transition: 0.3s;
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: text;
}

.input-contenedor-visual:focus-within {
    background: #ffffff !important;
    animation: none;
    border-color: rgba(230, 126, 34, 1);
    box-shadow: 0 0 25px rgba(230, 126, 34, 0.8);
    transform: translateY(-2px);
}

.icono-buscar {
    position: relative;
    left: 0;
    color: #e67e22;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

#inputBuscador::-webkit-search-decoration,
#inputBuscador::-webkit-search-results-button,
#inputBuscador::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

#inputBuscador::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #86868b;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
    -webkit-mask-size: cover;
    mask-size: cover;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s;
}

#inputBuscador::-webkit-search-cancel-button:hover,
#inputBuscador::-webkit-search-cancel-button:active {
    background-color: #e67e22;
}

#inputBuscador {
    width: 100%;
    max-width: 250px;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    outline: none;
    -webkit-appearance: none;
    text-align: left;
}

#inputBuscador::placeholder {
    font-weight: 500;
    color: #86868b;
}

.input-contenedor-visual:hover .icono-buscar,
.input-contenedor-visual:focus-within .icono-buscar {
    color: #d35400;
    transform: scale(1.1);
}

#listaResultados {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.sugerencia-texto {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  background: transparent;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.sugerencia-texto:hover {
  background: rgba(230, 126, 34, 0.1);
  color: #d35400;
}

.sugerencia-icono {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.separador-resultados {
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: 8px 0;
  width: 100%;
}

body.dark-theme .separador-resultados {
    background: rgba(255,255,255,0.1);
}

.resultado-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 15px;
    border: 1px solid transparent;
    margin-bottom: 5px;
    color: #1d1d1f;
    text-decoration: none;
}

.resultado-item:last-child {
    margin-bottom: 0;
}

.resultado-item:hover,
.resultado-item:focus-visible {
    background: #ffffff;
    border-color: #e67e22;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.3);
    transform: translateX(5px);
}

body.dark-theme .resultado-item:hover {
    background: #2c2c2e;
}

.controles-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    margin: 20px auto;
    padding: 0 20px;
    flex-wrap: nowrap; 
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

/* --- CLASES AUXILIARES PARA MOSTRAR/OCULTAR EN MÓVIL Y ESCRITORIO --- */
@media (max-width: 768px) {
    .solo-desktop { display: none !important; }
    .solo-movil { display: inline-flex !important; }
}
@media (min-width: 769px) {
    .solo-desktop { display: inline-flex !important; }
    .solo-movil { display: none !important; }
}

.btn-volver-app {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(29, 29, 31, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-volver-app:hover {
    background: #000000;
    transform: translateY(-2px);
}

.btn-dark-inline {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

body.dark-theme .btn-dark-inline {
    background: rgba(44, 44, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-dark-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-compact-domicilio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 132, 255, 0.3);
    padding: 6px 12px 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-compact-domicilio:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.15);
    transform: translateY(-1px);
}

.domicilio-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.domicilio-text i {
    color: #0A84FF;
}

.mini-switch {
    width: 36px;
    height: 20px;
    background: #e5e5ea;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s;
}

.mini-knob {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-compact-domicilio.activo {
    border-color: #34C759;
}

.btn-compact-domicilio.activo .domicilio-text i {
    color: #34C759;
}

.btn-compact-domicilio.activo .mini-switch {
    background: #34C759;
}

.btn-compact-domicilio.activo .mini-knob {
    transform: translateX(16px);
}

.filtros-wrapper {
    position: relative;
    max-width: 1350px;
    margin: 0 auto;
}

.scroll-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #86868b;
    margin-bottom: 5px;
    font-weight: 500;
    animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
    0% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
    100% { opacity: 0.6; transform: translateX(0); }
}

.filtros-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 20px 20px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.filtros-scroll::-webkit-scrollbar {
    display: none;
}

.btn-filtro {
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.btn-filtro:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-filtro.activo {
    background: #1d1d1f;
    color: #ffffff;
    border-color: #1d1d1f;
    box-shadow: 0 8px 20px rgba(29, 29, 31, 0.3);
}

#carruselBannersSeccion {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    height: auto;
    overflow: hidden;
    display: none;
}

.img-banner-publicitario {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}

.img-banner-publicitario:hover,
.img-banner-publicitario:active {
    transform: translateY(-2px) scale(1.01);
}

@media (min-width: 768px) {
    .filtros-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px; 
    }

    .filtros-scroll::-webkit-scrollbar {
        display: block;
        height: 8px;
    }
    .filtros-scroll::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    body.dark-theme .filtros-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    .filtros-scroll::-webkit-scrollbar-thumb {
        background: rgba(134, 134, 139, 0.4);
        border-radius: 10px;
    }
    .filtros-scroll::-webkit-scrollbar-thumb:hover {
        background: rgba(134, 134, 139, 0.7);
    }

    .scroll-hint {
        display: block !important;
    }

    .btn-filtro {
        scroll-snap-align: none;
    }
}

.grid-negocios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px 50px;
    max-width: 1350px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .grid-negocios {
        grid-template-columns: repeat(4, 1fr);
    }
}

.negocio-item {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.tarjeta-buenfin {
    border: 2px solid #e4002b !important;
    box-shadow: 0 8px 25px rgba(228, 0, 43, 0.15) !important;
}

.negocio-item:hover,
.negocio-item:active {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--glow-border);
    box-shadow: 0 10px 30px var(--glow-shadow);
}

.tarjeta-buenfin:hover,
.tarjeta-buenfin:active {
    border-color: #ff0055 !important;
    box-shadow: 0 10px 30px rgba(228, 0, 43, 0.4) !important;
}

/* --- NUEVO: Estilos para el elemento destacado de Seguridad Pública --- */
.destacado-emergencia {
    grid-column: 1 / -1;
    border: 2px solid #FF3B30 !important;
}
.destacado-emergencia .img-negocio {
    height: 240px;
}
.destacado-emergencia .info-negocio h2 {
    font-size: 1.4rem;
    color: #FF3B30 !important;
}

.img-negocio {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-negocio {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.info-negocio h2 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-weight: 600;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-negocio p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-open {
    background: #eafaf1;
    color: #27ae60;
}

.status-closed {
    background: #fdeaea;
    color: #e74c3c;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.btn-share-card {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.1rem;
}

.btn-share-card:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
    color: #bf5af2;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-glass {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 30px 30px 0 0;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    padding-bottom: 40px;
}

.modal-glass.modal-vandev-anim {
    animation: borde-animado-vandev-modal 3s infinite linear !important;
    border: 2px solid #bf5af2 !important;
}

@keyframes borde-animado-vandev-modal {
    0% { border-color: #bf5af2; box-shadow: 0 0 20px rgba(191, 90, 242, 0.6), inset 0 0 15px rgba(191, 90, 242, 0.2); }
    33% { border-color: #0A84FF; box-shadow: 0 0 20px rgba(10, 132, 255, 0.6), inset 0 0 15px rgba(10, 132, 255, 0.2); }
    66% { border-color: #ff0055; box-shadow: 0 0 20px rgba(255, 0, 85, 0.6), inset 0 0 15px rgba(255, 0, 85, 0.2); }
    100% { border-color: #bf5af2; box-shadow: 0 0 20px rgba(191, 90, 242, 0.6), inset 0 0 15px rgba(191, 90, 242, 0.2); }
}

/* NUEVAS CLASES PARA EL RESPLANDOR Y BRILLO DE LOCALES ESPECIALES */
.modal-glass.modal-premium-anim {
    animation: borde-animado-premium-modal 3s infinite linear !important;
    border: 2px solid #ff9f0a !important;
}

@keyframes borde-animado-premium-modal {
    0% { border-color: #ff9f0a; box-shadow: 0 0 20px rgba(255, 159, 10, 0.6), inset 0 0 15px rgba(255, 159, 10, 0.2); }
    50% { border-color: #ffd60a; box-shadow: 0 0 35px rgba(255, 214, 10, 0.8), inset 0 0 25px rgba(255, 214, 10, 0.4); }
    100% { border-color: #ff9f0a; box-shadow: 0 0 20px rgba(255, 159, 10, 0.6), inset 0 0 15px rgba(255, 159, 10, 0.2); }
}

.modal-glass.modal-banner-anim {
    animation: borde-animado-banner-modal 3s infinite linear !important;
    border: 2px solid #0A84FF !important;
}

@keyframes borde-animado-banner-modal {
    0% { border-color: #0A84FF; box-shadow: 0 0 20px rgba(10, 132, 255, 0.6), inset 0 0 15px rgba(10, 132, 255, 0.2); }
    50% { border-color: #64D2FF; box-shadow: 0 0 35px rgba(100, 210, 255, 0.8), inset 0 0 25px rgba(100, 210, 255, 0.4); }
    100% { border-color: #0A84FF; box-shadow: 0 0 20px rgba(10, 132, 255, 0.6), inset 0 0 15px rgba(10, 132, 255, 0.2); }
}

.text-glow-vandev {
    text-shadow: 0 0 15px rgba(191, 90, 242, 0.9), 0 0 25px rgba(191, 90, 242, 0.6);
    color: #fff !important;
}
.text-glow-premium {
    text-shadow: 0 0 15px rgba(255, 159, 10, 0.9), 0 0 25px rgba(255, 159, 10, 0.6);
    color: #fff !important;
}
.text-glow-banner {
    text-shadow: 0 0 15px rgba(10, 132, 255, 0.9), 0 0 25px rgba(10, 132, 255, 0.6);
    color: #fff !important;
}

.modal-glass::-webkit-scrollbar {
    display: none;
}

.modal-drag-area {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-drag-handle {
    width: 50px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-cerrar-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2020;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.btn-cerrar-modal:active {
    transform: scale(0.9);
    background: #e2e8f0;
}

.modal-header-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-top: -30px;
}

.modal-body {
    padding: 25px 30px;
    background: var(--bg-card);
    border-radius: 30px 30px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: text-shadow 0.3s ease;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

.action-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.btn-action {
    width: calc(50% - 7.5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-action.mapa {
    background: #0A84FF;
    color: white;
    box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
}

.btn-action.whats {
    background: #30D158;
    color: white;
    box-shadow: 0 8px 20px rgba(48, 209, 88, 0.3);
}

.btn-action.llamar {
    background: #1d1d1f;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-action.compartir {
    background: #bf5af2;
    color: white;
    box-shadow: 0 8px 20px rgba(191, 90, 242, 0.3);
}

.btn-comprar-redes {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.btn-comprar-redes:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.seccion-galeria h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seccion-galeria.bf-active {
    background: linear-gradient(135deg, rgba(228, 0, 43, 0.05) 0%, rgba(255, 0, 85, 0.05) 100%);
    border: 1px solid rgba(228, 0, 43, 0.2);
}

.seccion-galeria.bf-active h3 {
    color: #e4002b;
    font-weight: 800;
}

.galeria-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.galeria-scroll::-webkit-scrollbar {
    display: none;
}

.img-galeria {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    scroll-snap-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.seccion-galeria.bf-active .img-galeria {
    border: 2px solid rgba(228, 0, 43, 0.3);
}

.img-galeria:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-glass {
        border-radius: 30px;
        transform: scale(1);
        height: auto;
        max-height: 85vh;
        padding-bottom: 0;
    }

    .modal-drag-area {
        display: none;
    }

    .modal-header-img {
        margin-top: 0;
    }

    .btn-cerrar-modal {
        top: 20px;
        right: 20px;
    }
}

.carrusel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
}

.carrusel-img-container {
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    position: relative;
}

.img-carrusel-activa {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-in;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cerrar-carrusel {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3010;
    transition: 0.2s;
}

.btn-cerrar-carrusel:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.btn-nav-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3010;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-nav-carrusel.prev {
    left: 20px;
}

.btn-nav-carrusel.next {
    right: 20px;
}

.btn-nav-carrusel:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .btn-cerrar-carrusel {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .btn-nav-carrusel {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .btn-nav-carrusel.prev {
        left: 10px;
    }

    .btn-nav-carrusel.next {
        right: 10px;
    }
}

.btn-website-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(10, 132, 255, 0.1);
    color: #0A84FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid rgba(10, 132, 255, 0.2);
}

.btn-website-link:hover {
    background: rgba(10, 132, 255, 0.2);
    transform: translateY(-2px);
}

/* --- ANIMACIONES DE ALERTAS GLOBALES --- */
@keyframes slideDownSysAlert {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideDownAlert {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}