:root {
    --brand-blue: #0A84FF;
    --brand-orange: #ff9f0a;
    --brand-red: #FF453A;
    --brand-green: #30D158;
    --brand-purple: #bf5af2;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
}

body.dark-theme {
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
}

@keyframes pulse-loader { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.05); opacity: 1; } }
@keyframes spin-loader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Corrección de fondos para la pantalla de carga */
#nochisgo-loader { background: #f2f2f6 !important; }
@media (prefers-color-scheme: dark) {
  #nochisgo-loader { background: #1c1c1e !important; }
}
body.dark-theme #nochisgo-loader { background: #1c1c1e !important; }
body.light-theme #nochisgo-loader { background: #f2f2f6 !important; }

body.dark-theme .icono-buscar { color: var(--brand-orange) !important; }
body.dark-theme .buscador-wrapper:hover .icono-buscar,
body.dark-theme .buscador-wrapper:focus-within .icono-buscar { color: #d35400 !important; }

.btn-toggle-theme-header { transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; cursor: pointer; }
.btn-toggle-theme-header:hover {
    border-color: #ff9f0a !important;
    box-shadow: 0 0 15px rgba(255, 159, 10, 0.8), inset 0 0 10px rgba(255, 159, 10, 0.4) !important;
    transform: scale(1.15) !important;
    color: #ff9f0a !important;
    text-shadow: 0 0 10px rgba(255, 159, 10, 0.5) !important;
}

@keyframes asmDown { 0% { transform: translateY(-50px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes asmUp { 0% { transform: translateY(50px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes asmLeft { 0% { transform: translateX(-50px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes asmRight { 0% { transform: translateX(50px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes asmScale { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

:focus-visible { outline: 3px solid #0A84FF !important; outline-offset: 3px !important; border-radius: 8px; }

.tarjeta:focus-visible, .btn-mapa-hero:focus-visible, .btn-whatsapp-cta:focus-visible, .btn-festividad-hero:focus-visible {
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.5) !important;
  border-color: #0A84FF !important;
}

@keyframes resplandor-anuncio {
  0%, 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); }
  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); }
}

@keyframes pulse-festivo {
  0%, 100% { box-shadow: 0 0 15px rgba(191, 90, 242, 0.4); }
  50% { box-shadow: 0 0 25px rgba(191, 90, 242, 0.8), 0 0 10px rgba(255, 0, 85, 0.5); }
}

.banner-fm-index {
  display: flex; flex-direction: column; justify-content: flex-end; margin: 10px auto 30px auto; max-width: 600px; width: 100%; height: 200px; border-radius: 20px; position: relative; overflow: hidden; border: 2px solid var(--brand-purple); box-shadow: 0 10px 25px rgba(0,0,0,0.5); text-decoration: none; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease; animation: asmLeft 0.8s ease-out 0.4s both, pulse-festivo 2.5s infinite alternate 1.2s; text-align: left; padding: 20px;
}
.banner-fm-index:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(191,90,242,0.4); }
.banner-fm-index .btn-falso { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.8); color: white; padding: 8px 20px; border-radius: 20px; font-weight: bold; width: fit-content; backdrop-filter: blur(5px); transition: 0.3s background; display: inline-flex; align-items: center; gap: 8px; }
.banner-fm-index:hover .btn-falso { background: rgba(255,255,255,0.4); }

@keyframes borde-animado-vandev {
    0%, 100% { 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); }
}

.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; }

.navbar-index { background: rgba(44, 62, 80, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-bottom: 1px solid rgba(255, 255, 255, 0.15); text-align: center; padding: 20px 20px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); width: 100%; transition: background 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: asmDown 0.8s ease-out both; }
.nav-top-row { display: flex; align-items: center; justify-content: center; width: 100%; }
.logo-principal { width: 100%; max-width: 260px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); display: block; margin: 0 auto; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.logo-principal:active { transform: scale(0.96); }

.buscador-wrapper { max-width: 650px; margin: 30px auto 40px auto; position: relative; z-index: 100; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 2px solid rgba(230, 126, 34, 0.8); border-radius: 30px; box-shadow: 0 0 20px rgba(230, 126, 34, 0.5); animation: asmScale 0.6s ease-out 0.2s both, resplandor-anuncio 2.5s infinite ease-in-out 0.8s; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: center; padding: 0 20px; cursor: text; }
.buscador-wrapper:hover { background: rgba(255, 255, 255, 1); transform: translateY(-2px); }
.buscador-wrapper:focus-within { background: rgba(255, 255, 255, 1); transform: none; animation: none; border-color: rgba(230, 126, 34, 1); box-shadow: 0 0 25px rgba(230, 126, 34, 0.8); }
.buscador-inner { display: flex; align-items: center; justify-content: center; width: 100%; }
.icono-buscar { color: #e67e22; font-size: 1.5rem; transition: all 0.3s ease; margin-right: 12px; pointer-events: none; }
.buscador-wrapper:hover .icono-buscar, .buscador-wrapper:focus-within .icono-buscar { color: #d35400; transform: scale(1.1); }

#buscadorIndex::-webkit-search-decoration, #buscadorIndex::-webkit-search-results-button, #buscadorIndex::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; }
#buscadorIndex::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; display: inline-block; 
  width: 48px; height: 48px; 
  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: 20px; mask-size: 20px; 
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  cursor: pointer; margin-left: 8px; transition: background-color 0.2s;
}
#buscadorIndex::-webkit-search-cancel-button:hover, #buscadorIndex::-webkit-search-cancel-button:active { background-color: #e67e22; }
#buscadorIndex { border: none; background: transparent; outline: none; font-size: 1.25rem; font-weight: 700; color: #1d1d1f; padding: 22px 0; width: 100%; max-width: 320px; text-align: left; }
#buscadorIndex::placeholder { font-weight: 600; color: #86868b; font-size: 1.05rem; }

@media (max-width: 768px) {
  #buscadorIndex { padding: 18px 0; font-size: 1rem; max-width: 250px; }
  #buscadorIndex::placeholder { font-size: 0.82rem; }
  .icono-buscar { font-size: 1.3rem; margin-right: 8px; }
}

#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: 1020; max-height: 400px; overflow-y: auto; pointer-events: 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; pointer-events: auto; z-index: 1021; position: relative; }
.sugerencia-texto:hover { background: rgba(230, 126, 34, 0.1); color: #d35400; }
.sugerencia-icono { color: var(--text-secondary); font-size: 0.9rem; pointer-events: none; }
.separador-resultados { height: 1px; background: rgba(0,0,0,0.05); margin: 8px 0; width: 100%; pointer-events: none; }
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; text-decoration: none; color: inherit; pointer-events: auto; z-index: 1021; position: relative; }
.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; }

.contenedor-categorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; max-width: 1050px; margin: 0 auto 40px auto; padding: 0 20px; animation: asmUp 0.8s ease-out 0.6s both; }
.tarjeta { background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center !important; padding: 25px 15px; text-decoration: none; color: #1d1d1f; }

@media (min-width: 768px) {
  .contenedor-categorias { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; max-width: 1100px; }
  .tarjeta { padding: 35px 20px; }
  .tarjeta .icono { font-size: 3.5rem; margin-bottom: 15px; }
  .tarjeta h2 { font-size: 1.25rem; }
  .tarjeta p { font-size: 0.9rem; }
}

@media (min-width: 380px) and (max-width: 539px) { .contenedor-categorias > .tarjeta:last-child:nth-child(2n - 1) { grid-column: span 2; } }
@media (min-width: 540px) and (max-width: 719px) { .contenedor-categorias > .tarjeta:last-child:nth-child(3n - 1) { grid-column: span 2; } .contenedor-categorias > .tarjeta:last-child:nth-child(3n - 2) { grid-column: span 3; } }
@media (min-width: 720px) and (max-width: 767px) { .contenedor-categorias > .tarjeta:last-child:nth-child(4n - 1) { grid-column: span 2; } .contenedor-categorias > .tarjeta:last-child:nth-child(4n - 2) { grid-column: span 3; } .contenedor-categorias > .tarjeta:last-child:nth-child(4n - 3) { grid-column: span 4; } }
@media (min-width: 768px) and (max-width: 979px) { .contenedor-categorias > .tarjeta:last-child:nth-child(3n - 1) { grid-column: span 2; } .contenedor-categorias > .tarjeta:last-child:nth-child(3n - 2) { grid-column: span 3; } }
@media (min-width: 980px) { .contenedor-categorias > .tarjeta:last-child:nth-child(4n - 1) { grid-column: span 2; } .contenedor-categorias > .tarjeta:last-child:nth-child(4n - 2) { grid-column: span 3; } .contenedor-categorias > .tarjeta:last-child:nth-child(4n - 3) { grid-column: span 4; } }

.tarjeta:hover, .tarjeta:active { transform: translateY(-4px) scale(1.02); background: rgba(255, 255, 255, 0.95); border-color: #e67e22; box-shadow: 0 10px 30px rgba(230, 126, 34, 0.2); }
.tarjeta .icono { font-size: 2.8rem; margin-bottom: 10px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.08)); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.tarjeta:hover .icono { transform: scale(1.1) translateY(-3px); }
.tarjeta h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 5px 0; color: var(--text-primary); display: block; width: 100%; }
.tarjeta p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; line-height: 1.3; display: block; width: 100%; }

.seccion-descubre-title { text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin: 40px 0 20px; position: relative; animation: asmUp 0.8s ease-out 0.7s both; }
.contenedor-scroll-locales { width: 92%; max-width: 960px; margin: 0 auto 40px auto; padding: 25px 25px 25px 35px; max-height: 65vh; min-height: 400px; overflow-y: auto; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 2px solid rgba(10, 132, 255, 0.5); border-radius: 35px; scroll-behavior: smooth; animation: asmUp 0.8s ease-out 0.8s both, aura-premium 8s infinite alternate ease-in-out 1.6s; }

@media (max-width: 768px) { .contenedor-scroll-locales { width: 90%; padding: 20px 15px 20px 20px; border-radius: 25px; } }
.contenedor-scroll-locales::-webkit-scrollbar { width: 14px; }
.contenedor-scroll-locales::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.02); border-radius: 0 30px 30px 0; margin: 20px 0; }
.contenedor-scroll-locales::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 12px; border: 4px solid rgba(255, 255, 255, 0); background-clip: padding-box; }
.contenedor-scroll-locales::-webkit-scrollbar-thumb:hover { background: #0A84FF; border: 3px solid rgba(255, 255, 255, 0); }

.grid-negocios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; width: 100%; padding-bottom: 10px; padding-right: 5px; }
.negocio-item { background: rgba(255, 255, 255, 0.65); 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; position: relative; }
.negocio-item:hover, .negocio-item:active { transform: translateY(-5px) scale(1.02); background: rgba(255, 255, 255, 0.95); border-color: #0A84FF; box-shadow: 0 10px 30px rgba(10, 132, 255, 0.2); }
.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; }

#carruselBanners { 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 { transform: translateY(-2px) scale(1.01); }

.btn-festividad-hero { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 35px; border-radius: 30px; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: #ffffff; background: linear-gradient(135deg, #bf5af2 0%, #ff0055 100%); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 10px 25px rgba(191, 90, 242, 0.4); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); width: 100%; max-width: 420px; margin-bottom: 15px; animation: asmLeft 0.8s ease-out 0.4s both, pulse-festivo 2s infinite 1.2s; }
.btn-festividad-hero:hover { box-shadow: 0 15px 35px rgba(191, 90, 242, 0.6); transform: translateY(-3px) scale(1.02); background: linear-gradient(135deg, #a044d6 0%, #cc0044 100%); }

.btn-mapa-hero { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 35px; border-radius: 30px; font-weight: 600; font-size: 1.05rem; text-decoration: none; color: #ffffff; background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); width: 100%; max-width: 420px; animation: asmRight 0.8s ease-out 0.5s both; }
.btn-mapa-hero:hover { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); transform: translateY(-3px); background: linear-gradient(135deg, #000000 0%, #2c2c2e 100%); }

@keyframes neon-cta {
    0%, 100% { box-shadow: 0 0 10px rgba(37, 211, 102, 0.4), inset 0 0 10px rgba(37, 211, 102, 0.2); border-color: rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 25px rgba(37, 211, 102, 0.8), inset 0 0 15px rgba(37, 211, 102, 0.4); border-color: rgba(37, 211, 102, 1); }
}

.cta-box { text-align: center; margin: 60px auto; padding: 50px 20px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); border-radius: 30px; max-width: 800px; border: 1px solid rgba(37, 211, 102, 0.8); animation: asmUp 0.8s ease-out 0.9s both, neon-cta 2s infinite alternate 1.7s; }
.cta-box h2 { color: var(--text-primary); margin-top: 0; font-size: 1.4rem; font-weight: 700; }
.cta-box p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 25px; }

.btn-whatsapp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border-radius: 30px; font-weight: 600; font-size: 1rem; text-decoration: none; color: #ffffff !important; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); border: none; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.btn-whatsapp-cta:hover { box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4); transform: translateY(-3px); background: linear-gradient(135deg, #20c35b 0%, #0e7b6d 100%); }

#btn-alis-trigger { position: fixed; display: flex; z-index: 2001; cursor: pointer; background: linear-gradient(135deg, #ff0055, #a29bfe); box-shadow: 0 0 15px rgba(255,0,85,0.5); color: white; width: 50px; height: 50px; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.3s; bottom: calc(25px + env(safe-area-inset-bottom, 0px)); right: 20px; -webkit-transform: translateZ(0); transform: translateZ(0); will-change: transform; }
#btn-alis-trigger:hover { transform: scale(1.1) translateZ(0); }

#alis-chat-interface { position: fixed; z-index: 9999; bottom: calc(85px + env(safe-area-inset-bottom, 0px)); right: 20px; width: calc(100% - 40px); max-width: 400px; height: 70dvh; opacity: 0; transform-origin: bottom right; display: none; flex-direction: column; background: #1c1c1e; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); -webkit-transform: translateZ(0) scale(0.9); transform: translateZ(0) scale(0.9); }

@media (min-width: 769px) {
    #btn-alis-trigger { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); right: 30px; }
    #alis-chat-interface { bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important; right: 95px !important; width: 350px !important; height: 550px !important; max-height: 80dvh !important; }
}

@media (max-width: 768px) { .logos-ayuntamiento { justify-content: center !important; } }

/* ========================================== */
/* ESTILOS NUEVOS PARA LOS MODALES DE NEGOCIO */
/* ========================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 15px; }
.modal-glass { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.3); position: relative; display: flex; flex-direction: column; }
body.dark-theme .modal-glass { background: rgba(28, 28, 30, 0.95); border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.modal-header-actions { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.badge-categoria { background: rgba(10, 132, 255, 0.15); color: #0A84FF; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.btn-close-modal { background: rgba(0,0,0,0.5); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: 0.2s; }
.btn-close-modal:hover { background: rgba(0,0,0,0.8); }
.modal-portada-wrapper { position: relative; width: 100%; height: 250px; }
.modal-img-portada { width: 100%; height: 100%; object-fit: cover; }
.modal-portada-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%); }
.modal-titulo-principal { position: absolute; bottom: 15px; left: 20px; right: 20px; color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.modal-body-content { padding: 20px; }
.modal-meta-row { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.estrellas-container { color: #ff9f0a; font-size: 0.9rem; }
.resenas-count { color: var(--text-secondary); font-size: 0.85rem; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.btn-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 0.85rem; border: 1px solid rgba(0,0,0,0.1); transition: 0.2s; background: rgba(0,0,0,0.03); color: var(--text-primary); cursor: pointer; }
body.dark-theme .btn-action { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #fff; }
.btn-action:hover { transform: translateY(-2px); }
.btn-llamar i { color: #30D158; font-size: 1.2rem; }
.btn-whatsapp i { color: #25D366; font-size: 1.2rem; }
.btn-mapa i { color: #0A84FF; font-size: 1.2rem; }
.btn-compartir i { color: #bf5af2; font-size: 1.2rem; }
.modal-section { margin-bottom: 20px; }
.modal-subheading { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
body.dark-theme .modal-subheading { color: #fff; }
.modal-descripcion-texto { font-size: 0.95rem; }

/* ========================================== */
/* MODIFICACIÓN: BOTÓN DE COMPARTIR EN SCROLL */
/* ========================================== */
.negocio-item .btn-compartir,
.negocio-item .btn-action.btn-compartir {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

body.dark-theme .negocio-item .btn-compartir,
body.dark-theme .negocio-item .btn-action.btn-compartir {
    background: rgba(28, 28, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

.negocio-item .btn-compartir span,
.negocio-item .btn-compartir label {
    display: none !important;
}

.negocio-item .btn-compartir i {
    font-size: 1.1rem;
    color: #bf5af2 !important;
    margin: 0;
}

.negocio-item .btn-compartir:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
}

body.dark-theme .negocio-item .btn-compartir:hover {
    background: rgba(44, 44, 46, 0.95);
}