/**
 * assets/css/poi_popup.css
 * Estilos del pin ("globo") y popup de negocio con local físico — extraídos verbatim del
 * <style> de mapa.php (variables :root + @keyframes + reglas .cc-pop-*/.cc-leaf-popup/
 * .cc-emergency-badge/.cc-aviso-badge/.cc-poi-icon-box/.cc-pin*/.cc-marker-*/.cc-sub-balloon*),
 * para que vista_previa_negocio.php reproduzca el mismo globo que ve el público en /mapa.
 * Usar junto con assets/js/poi_popup.js.
 */
:root {
    --navy: #0a1b39;
    --navy-dark: #061023;
    --navy-mid: #1e293b;
    --gold: #c07f21;
    --gold-light: #e8a835;
    --green: #059669;
    --green-dark: #047857;
    --red: #ef4444;
    --blue: #3b82f6;
    --amber: #f59e0b;
    --vibrant-orange: #f97316;
    --vibrant-orange-dark: #ea580c;
    --vibrant-orange-glow: rgba(249, 115, 22, 0.25);
    --bg: #f0f4f8;
    --white: #ffffff;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 100px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes cc-emergency-badge-pulse {
            0%,100% { border-color:#fecaca; background:#fff5f5; box-shadow:0 4px 10px rgba(220,38,38,.04); }
            50%     { border-color:#fca5a5; background:#fff0f0; box-shadow:0 4px 14px rgba(220,38,38,.12); }
        }

@keyframes cc-heartbeat {
            0% { transform: scale(1); }
            14% { transform: scale(1.15); }
            28% { transform: scale(1); }
            42% { transform: scale(1.15); }
            70% { transform: scale(1); }
        }

@keyframes cc-pulse-gold {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(192, 127, 33, 0.6);
            }
            60% {
                box-shadow: 0 0 0 10px rgba(192, 127, 33, 0);
            }
        }

@keyframes cc-pulse-red {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, .5);
            }
            60% {
                box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
            }
        }

@keyframes cc-sonar-green {
            0%   { transform: scale(0.9);  opacity: 0.7; }
            70%  { transform: scale(1.65); opacity: 0;   }
            100% { transform: scale(1.65); opacity: 0;   }
        }

@keyframes openPulse {
            0%,100% { transform: scale(1);   opacity: 1; }
            50%     { transform: scale(1.45); opacity: 0; }
        }
.cc-leaf-popup .leaflet-popup-content-wrapper {
            border-radius: 18px;
            padding: 0;
            overflow: visible;
            box-shadow: var(--shadow-lg);
            border: 2px solid var(--gold);
            background: #fff;
            animation: popup-fade-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }

.cc-leaf-popup .leaflet-popup-content {
            margin: 0;
            width: 320px !important;
        }

.cc-leaf-popup .leaflet-popup-tip {
            background: #fff;
            border: 2px solid var(--gold);
            border-top: none;
            border-left: none;
        }

.cc-leaf-popup .leaflet-popup-close-button {
            color: rgba(255, 255, 255, 0.75) !important;
            padding: 14px 14px 0 0 !important;
            font-size: 1.25rem !important;
            z-index: 10;
        }

.cc-leaf-popup .leaflet-popup-close-button:hover {
            color: #fff !important;
        }

.cc-pin {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2.5px solid white;
            box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
            position: relative;
            cursor: pointer;
            transition: transform .25s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
            overflow: visible;
            font-size: 1.1rem;
            transform: scale(0.9);
            transform-origin: center center;
        }

.leaflet-marker-icon:hover .cc-pin,
        .leaflet-marker-icon:active .cc-pin {
            transform: scale(1.1);
            z-index: 1000;
        }

.cc-pin-tech {
            background: var(--navy);
            color: var(--gold);
        }

.cc-pin-tech img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

.cc-pin-tech span {
            font-weight: 800;
            font-size: 1.15rem;
            color: var(--gold);
        }

.cc-pin-premium-tech {
            border-color: var(--gold);
            border-width: 3px;
            box-shadow: 0 4px 18px rgba(192, 127, 33, .4);
            animation: cc-pulse-gold 2.5s infinite ease-in-out;
        }

.cc-pin-star {
            position: absolute;
            bottom: -3px;
            right: -3px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--gold);
            border: 2px solid white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 7px;
            color: white;
            overflow: visible;
            z-index: 5;
        }

.cc-pin-emergency {
            background: var(--red);
            color: white;
            animation: cc-pulse-red 2s infinite;
        }

.cc-pin-inst {
            background: var(--blue);
            color: white;
        }

.cc-pin-biz {
            background: var(--gold);
            color: white;
        }

.cc-pin-premium-poi {
            border-color: var(--gold);
            border-width: 3px;
            animation: cc-pulse-gold 2.5s infinite ease-in-out;
        }

.cc-marker-pulse {
            position: relative;
        }

.cc-marker-pulse::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            top: 0;
            left: 0;
            background: rgba(16, 185, 129, 0.55);
            animation: cc-sonar-green 1.8s infinite cubic-bezier(0.24, 0, 0.38, 1);
            will-change: transform, opacity;
            pointer-events: none;
            z-index: 10;
        }

.cc-marker-closed {
            background: #94a3b8 !important;
            border-color: #cbd5e1 !important;
            filter: grayscale(90%) opacity(0.75) !important;
            box-shadow: none !important;
        }

.cc-marker-closed img {
            filter: grayscale(90%) !important;
        }

.cc-sub-balloons-container {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: -1;
        }

.cc-sub-balloon {
            position: absolute;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #0a1b39;
            border: 2.5px solid #c07f21;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transform: translate(0, 0) scale(0);
            transition: transform 0.45s var(--ease-spring), opacity 0.3s ease;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
            text-decoration: none !important;
        }

.cc-sub-balloon img {
            width: 60%;
            height: 60%;
            object-fit: contain;
        }

.cc-copelt-trigger:hover .cc-sub-balloons-container,
        .cc-copelt-trigger:active .cc-sub-balloons-container {
            pointer-events: all;
        }

.cc-copelt-trigger:hover .cc-sub-balloon,
        .cc-copelt-trigger:active .cc-sub-balloon {
            opacity: 1;
            pointer-events: all;
        }

.cc-copelt-trigger:hover .cc-sub-balloon.edu, .cc-copelt-trigger:active .cc-sub-balloon.edu { transform: translate(-38px, -24px) scale(1); }

.cc-copelt-trigger:hover .cc-sub-balloon.legal, .cc-copelt-trigger:active .cc-sub-balloon.legal { transform: translate(38px, -24px) scale(1); }

.cc-copelt-trigger:hover .cc-sub-balloon.tech, .cc-copelt-trigger:active .cc-sub-balloon.tech { transform: translate(0px, -44px) scale(1); }

.cc-pop-tech {
            font-family: 'Outfit', sans-serif;
            animation: popupSpring .26s cubic-bezier(.34,1.56,.64,1) both;
            overflow: visible;
        }

.cc-pop-tech-header {
            background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
            padding: 18px 18px 16px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            border-radius: 16px 16px 0 0;
        }

.cc-pop-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            flex-shrink: 0;
            overflow: hidden;
            border: 3px solid #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
            background: var(--navy-mid);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--gold);
        }

.cc-pop-avatar.premium-glow {
            border: 3px solid #f59e0b !important;
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.6), 0 4px 12px rgba(0, 0, 0, .3) !important;
        }

.cc-pop-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.cc-pop-esp-container {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 5px;
            white-space: nowrap;
            scrollbar-width: none;
            -ms-overflow-style: none;
            width: 100%;
            scroll-behavior: smooth;
        }

.cc-pop-esp-container::-webkit-scrollbar {
            display: none;
        }

.cc-pop-carousel-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            margin-top: 5px;
        }

.cc-pop-carousel-btn {
            background: rgba(0, 0, 0, 0.25) !important;
            border: none;
            color: #fde047 !important;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            user-select: none;
        }

.cc-pop-carousel-btn:hover {
            background: rgba(0, 0, 0, 0.45) !important;
            transform: scale(1.1);
        }

.cc-pop-name {
            color: white;
            font-size: 1.15rem;
            font-weight: 800;
            margin: 0 0 4px;
            line-height: 1.2;
        }

.cc-pop-stars {
            display: flex;
            align-items: center;
            gap: 2px;
            margin-top: 5px;
        }

.cc-pop-rating-num {
            color: rgba(255, 255, 255, .8);
            font-size: 11px;
            font-weight: 600;
            margin-left: 4px;
        }

.cc-pop-tech-body {
            padding: 14px 16px 16px;
            background: white;
        }

.cc-pop-links {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }

.cc-pop-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border-radius: 8px;
            border: none;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s var(--ease);
            text-decoration: none;
        }

.cc-pop-link-fb { background: #1877f2; color: white; }

.cc-pop-link-fb:hover { background: #1565c0; color: white; }

.cc-pop-link-ig { background: linear-gradient(135deg, #e1306c, #833ab4); color: white; }

.cc-pop-link-ig:hover { opacity: .88; color: white; }

.cc-pop-link-port { background: var(--bg); color: var(--navy); }

.cc-pop-link-port:hover { background: var(--navy); color: white; }

.cc-pop-link-web { background: #0f172a; color: white; }

.cc-pop-link-web:hover { background: #1e293b; color: white; }

.cc-pop-section-title {
            font-size: 10px;
            font-weight: 800;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 8px 0 6px;
        }

.cc-pop-gallery {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 6px;
            margin-bottom: 12px;
        }

.cc-pop-gallery::-webkit-scrollbar {
            height: 4px;
        }

.cc-pop-gallery::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

.cc-pop-gallery::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

.cc-pop-gallery-img {
            flex: 0 0 68px;
            width: 68px;
            height: 68px;
            border-radius: 8px;
            object-fit: cover;
            scroll-snap-align: start;
            cursor: zoom-in;
            border: 1.5px solid #f1f5f9;
            transition: all .2s;
        }

.cc-pop-gallery-img:hover {
            transform: scale(1.06);
            border-color: var(--navy);
            box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        }

.cc-pop-avatar { transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; cursor: default; }

.cc-pop-tech-header:hover .cc-pop-avatar { transform: scale(1.07) rotate(-2deg); }

.cc-pop-tech-header:hover .cc-pop-avatar.premium-glow { box-shadow: 0 0 22px rgba(245,158,11,.75), 0 6px 16px rgba(0,0,0,.3) !important; }

.cc-pop-btn-contact {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 12px;
            background: var(--navy);
            color: white;
            font-weight: 800;
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            transition: all .22s var(--ease);
            box-shadow: 0 6px 20px rgba(10, 27, 57, .2);
            position: relative;
            overflow: hidden;
        }

.cc-pop-btn-contact::after {
            content: '';
            position: absolute;
            width: 0; height: 0;
            background: rgba(255,255,255,.25);
            border-radius: 50%;
            transform: translate(-50%,-50%);
            transition: width .5s ease, height .5s ease, opacity .5s ease;
            opacity: 0;
            pointer-events: none;
        }

.cc-pop-btn-contact:active::after {
            width: 240%; height: 240%;
            opacity: 1;
            transition: 0s;
        }

.cc-pop-btn-contact:hover {
            background: var(--gold);
            transform: translateY(-2px);
            box-shadow: 0 10px 24px rgba(192, 127, 33, .3);
        }

.cc-pop-hint {
            text-align: center;
            margin-top: 8px;
            font-size: 11px;
            color: #94a3b8;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

.cc-pop-poi {
            font-family: 'Outfit', sans-serif;
            animation: popupSpring .26s cubic-bezier(.34,1.56,.64,1) both;
            overflow: visible;
        }

.cc-pop-poi-header {
            padding: 15px 15px 13px;
            display: flex;
            align-items: center;
            gap: 11px;
            position: relative;
            border-radius: 16px 16px 0 0;
        }

.cc-pop-poi-header::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(130deg, rgba(255,255,255,.14) 0%, transparent 55%);
            pointer-events: none;
        }

.cc-poi-icon-box {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
            border-radius: 13px;
            background: rgba(255,255,255,.18);
            border: 2px solid rgba(255,255,255,.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            color: white;
            backdrop-filter: blur(6px);
            overflow: hidden;
            transition: transform .25s cubic-bezier(.34,1.56,.64,1);
        }

.cc-pop-poi:hover .cc-poi-icon-box { transform: scale(1.07) rotate(-2deg); }

.cc-poi-icon-box img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 10px;
            background: #ffffff;
            padding: 4px;
            box-sizing: border-box;
        }

.cc-pop-poi-meta { flex: 1; min-width: 0; }

.cc-pop-cat {
            font-size: 9.5px;
            font-weight: 700;
            color: rgba(255,255,255,.72);
            text-transform: uppercase;
            letter-spacing: .8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

.cc-pop-poi-name {
            color: white;
            font-size: 1rem;
            font-weight: 800;
            margin: 2px 0 0;
            line-height: 1.2;
            text-shadow: 0 1px 5px rgba(0,0,0,.25);
            /* Line clamp to 2 lines for wrapping long institution names */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
        }

.cc-pop-premium-badge {
            position: absolute;
            top: 8px;
            right: 10px;
            background: linear-gradient(135deg,#f59e0b,#c07f21);
            color: white;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 9px;
            font-weight: 900;
            display: flex;
            align-items: center;
            gap: 3px;
            box-shadow: 0 3px 10px rgba(192,127,33,.4);
            text-transform: uppercase;
            letter-spacing: .5px;
        }

.cc-pop-poi-body {
            padding: 11px 13px 13px;
            background: #fff;
        }

.cc-pop-status-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 9px;
            gap: 6px;
        }

.cc-pop-status {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 9px 3px 7px;
            border-radius: 20px;
            font-size: 10.5px;
            font-weight: 800;
            letter-spacing: .3px;
        }

.cc-pop-status.open {
            background: #f0fdf4;
            color: #16a34a;
            border: 1.5px solid #bbf7d0;
        }

.cc-pop-status.open::before {
            content: '';
            display: inline-block;
            width: 7px; height: 7px;
            border-radius: 50%;
            background: #16a34a;
            flex-shrink: 0;
            animation: openPulse 1.8s ease-in-out infinite;
            will-change: transform, opacity;
        }

.cc-pop-status.closed {
            background: #fef2f2;
            color: #dc2626;
            border: 1.5px solid #fecaca;
        }

.cc-pop-status.closed i { font-size: 9px; }

.cc-pop-status.takeaway {
            background: #fffbeb;
            color: #b45309;
            border: 1.5px solid #fde68a;
        }

.cc-aviso-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 700;
            white-space: nowrap;
        }

.cc-aviso-badge.opens  { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }

.cc-aviso-badge.closes { background:#fff7ed; color:#c2410c; border:1px solid #fed7aa; }

.cc-aviso-badge.urgent { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; animation: openPulse 1.2s ease-in-out infinite; will-change: transform, opacity; }

.cc-pop-dist-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10.5px;
            color: #64748b;
            font-weight: 600;
            flex-shrink: 0;
        }

.cc-pop-detail {
            display: flex;
            align-items: flex-start;
            gap: 7px;
            font-size: 11.5px;
            color: #475569;
            padding: 6px 0;
            border-bottom: 1px solid #f1f5f9;
        }

.cc-pop-detail i { color: var(--navy); flex-shrink: 0; margin-top: 1px; }

.cc-pop-call-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            width: 100%;
            background: #1a73e8;
            color: white !important;
            padding: 10px 14px;
            border-radius: 11px;
            font-size: 13px;
            font-weight: 800;
            text-decoration: none !important;
            border: none;
            cursor: pointer;
            transition: all .22s cubic-bezier(.25,.8,.25,1);
            box-shadow: 0 4px 14px rgba(26,115,232,.28);
            margin: 9px 0 2px;
            position: relative;
            overflow: hidden;
        }

.cc-pop-call-btn::after {
            content: '';
            position: absolute;
            width:0; height:0;
            background: rgba(255,255,255,.28);
            border-radius: 50%;
            transform: translate(-50%,-50%);
            transition: width .5s ease, height .5s ease, opacity .5s ease;
            opacity: 0;
            pointer-events: none;
        }

.cc-pop-call-btn:active::after { width:240%; height:240%; opacity:1; transition:0s; }

.cc-pop-call-btn:hover {
            background: #1558c0;
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(26,115,232,.38);
            color: white !important;
        }

.cc-pop-call-emergency {
            background: #dc2626 !important;
            box-shadow: 0 4px 14px rgba(220,38,38,.3) !important;
        }

.cc-pop-call-emergency:hover {
            background: #b91c1c !important;
            box-shadow: 0 8px 22px rgba(220,38,38,.42) !important;
        }

.cc-pop-poi-links {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 9px;
            align-items: center;
            justify-content: space-between;
        }

.cc-pop-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 10px;
            border-radius: 7px;
            border: none;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s ease;
            text-decoration: none;
        }

.cc-pop-link-btn:hover { transform: translateY(-1.5px); filter: brightness(1.08); }

.cc-pop-link-fb  { background: #1877f2; color: white; }

.cc-pop-link-fb:hover { color: white; }

.cc-pop-link-ig  { background: linear-gradient(135deg,#e1306c,#833ab4); color: white; }

.cc-pop-link-ig:hover { color: white; }

.cc-pop-link-port { background: #f1f5f9; color: var(--navy); }

.cc-pop-link-web  { background: #0f172a; color: white; }

.cc-pop-link-profile {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            color: #fbbf24 !important;
            border: 1px solid rgba(251, 191, 36, 0.35) !important;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 800;
            transition: all .2s ease;
            text-decoration: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

.cc-pop-link-profile:hover {
            background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
            color: #0f172a !important;
            border-color: #fbbf24 !important;
            box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
            transform: translateY(-1.5px);
        }

.cc-pop-link-cat {
            background: linear-gradient(135deg, #fbbf24 0%, #c07f21 100%) !important;
            color: #ffffff !important;
            border: 1px solid #c07f21 !important;
            font-weight: 800 !important;
            box-shadow: 0 2px 8px rgba(192, 127, 33, 0.25);
        }

.cc-pop-link-cat:hover {
            background: linear-gradient(135deg, #c07f21 0%, #a16207 100%) !important;
            border-color: #a16207 !important;
            box-shadow: 0 4px 12px rgba(192, 127, 33, 0.45);
            transform: translateY(-1.5px);
        }

.cc-pop-link-route {
            background: #0f9d58 !important;
            color: white !important;
        }

.cc-pop-action-buttons-row {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 6px !important;
            width: 100% !important;
            margin-top: 9px !important;
        }

.cc-pop-action-buttons-row > *:only-child {
            grid-column: span 2 !important;
        }

.cc-pop-action-buttons-row > *:last-child:nth-child(odd) {
            grid-column: span 2 !important;
        }

.cc-pop-action-buttons-row > * {
            flex: 1 !important;
            min-width: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            padding: 8px 5px !important;
            font-size: 11px !important;
            font-weight: 800 !important;
            border-radius: 8px !important;
            box-sizing: border-box !important;
            white-space: nowrap !important;
            margin: 0 !important;
        }

.cc-pop-footer-row {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            margin-top: 8px !important;
            border-top: 1px solid #e2e8f0 !important;
            padding-top: 8px !important;
        }

.cc-pop-footer-icon-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 28px !important;
            height: 28px !important;
            border-radius: 7px !important;
            border: none !important;
            cursor: pointer !important;
            transition: all .18s ease !important;
            text-decoration: none !important;
            padding: 0 !important;
            box-sizing: border-box !important;
        }

.cc-pop-footer-fb-btn {
            background: #1877f2 !important;
            color: white !important;
            font-size: 13px !important;
        }

.cc-pop-footer-fb-btn:hover {
            background: #145dbf !important;
            transform: translateY(-1.5px) !important;
        }

.cc-pop-poi-body .cc-pop-share-btn {
            background: #f1f5f9 !important;
            color: #475569 !important;
            font-size: 11px !important;
        }

.cc-pop-poi-body .cc-pop-share-btn:hover {
            background: #e2e8f0 !important;
            transform: translateY(-1.5px) !important;
        }

.cc-pop-share-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 10px;
            background: #f1f5f9;
            color: #475569;
            border: none;
            border-radius: 7px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s ease;
        }

.cc-pop-share-btn:hover { background: #e2e8f0; transform: translateY(-1.5px); }

.cc-emergency-badge {
            background: #fff5f5;
            color: #dc2626;
            border: 1.5px solid #fecaca;
            border-radius: 10px;
            padding: 8px 12px;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: .5px;
            animation: cc-emergency-badge-pulse 2s infinite;
        }

.cc-noofficial-badge {
            background: #eff6ff;
            color: #1e3a5f;
            border: 1.5px solid #bfdbfe;
            border-radius: 10px;
            padding: 6px 10px;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-bottom: 10px;
            text-align: center;
        }

.cc-pop-share-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border-radius: 8px;
            background: #f1f5f9;
            border: none;
            color: var(--navy);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
        }

.cc-pop-share-btn:hover {
            background: var(--navy);
            color: white;
        }

.cc-pop-desc-block {
            border-radius: 12px;
            padding: 12px 14px;
            margin: 8px 0 10px 0;
            border: 1px solid;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            text-align: left;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

.cc-pop-desc-block::before {
            content: "“";
            position: absolute;
            right: 8px;
            bottom: -22px;
            font-size: 5rem;
            font-family: Georgia, serif;
            pointer-events: none;
            line-height: 1;
        }

.cc-pop-desc-block.tech-desc {
            background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(253,251,247,0.95) 100%);
            border-left: 4px solid var(--navy) !important;
            border-top-color: rgba(10, 27, 57, 0.12);
            border-right-color: rgba(10, 27, 57, 0.12);
            border-bottom-color: rgba(10, 27, 57, 0.12);
            box-shadow: 0 4px 15px rgba(10, 27, 57, 0.06);
        }

.cc-pop-desc-block.tech-desc::before {
            color: rgba(10, 27, 57, 0.07);
        }

.cc-pop-desc-block.poi-desc {
            background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
            border-left: 4px solid var(--gold) !important;
            border-top-color: rgba(192, 127, 33, 0.15);
            border-right-color: rgba(192, 127, 33, 0.15);
            border-bottom-color: rgba(192, 127, 33, 0.15);
            box-shadow: 0 4px 15px rgba(192, 127, 33, 0.08);
        }

.cc-pop-desc-block.poi-desc::before {
            color: rgba(192, 127, 33, 0.07);
        }

.cc-pop-desc-block:hover {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-1px);
        }

.cc-pop-desc-header {
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

.cc-pop-desc-block.tech-desc .cc-pop-desc-header {
            color: var(--navy) !important;
        }

.cc-pop-desc-block.poi-desc .cc-pop-desc-header {
            color: var(--gold) !important;
        }

.cc-pop-desc-text-wrapper {
            position: relative;
            overflow: hidden;
            max-height: 500px;
            transition: max-height 0.3s ease;
        }

.cc-pop-desc-text-wrapper.collapsed {
            max-height: 52px; /* ~3 lines of text */
        }

.cc-pop-desc-text {
            font-size: 11.5px;
            color: #475569;
            line-height: 1.5;
            margin: 0;
            font-style: italic;
        }

.cc-pop-desc-fade {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 24px;
            background: linear-gradient(transparent, #fcf8f2);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

.cc-pop-desc-text-wrapper.collapsed .cc-pop-desc-fade {
            opacity: 1;
        }

.cc-pop-desc-block.poi-desc .cc-pop-desc-fade {
            background: linear-gradient(transparent, #f7fafc);
        }

.cc-pop-desc-toggle {
            background: transparent;
            border: none;
            padding: 0;
            margin-top: 4px;
            font-size: 10.5px;
            font-weight: 700;
            color: var(--gold);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 3px;
            outline: none;
            transition: color 0.2s;
        }

.cc-pop-desc-toggle:hover {
            color: var(--navy);
        }

.cc-pop-portfolio-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 8px 12px;
            background: linear-gradient(135deg, #c07f21 0%, #b87320 100%);
            color: #fff;
            border: none;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            transition: all 0.2s ease;
            cursor: pointer;
            margin-top: 8px;
            box-shadow: 0 2px 8px rgba(192,127,33,0.35);
        }

.cc-pop-portfolio-btn:hover {
            background: linear-gradient(135deg, #d4922a 0%, #9a5f18 100%);
            box-shadow: 0 4px 14px rgba(192,127,33,0.5);
            transform: translateY(-1px);
        }

.cc-pop-solicitar-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 9px 12px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #fff !important;
            border: none;
            border-radius: 20px;
            font-size: 13.5px;
            font-weight: 700;
            transition: all 0.2s ease;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(5,150,105,0.3);
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
            margin-top: 8px;
        }

.cc-pop-solicitar-btn:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            box-shadow: 0 6px 18px rgba(5,150,105,0.45);
            transform: translateY(-1px);
        }

.cc-pop-solicitar-btn:active {
            transform: translateY(0);
        }

.cc-pop-icon-pulse {
            display: inline-block;
            animation: cc-heartbeat 1.8s infinite ease-in-out;
        }

.cc-pop-carousel-block {
            margin: 8px 0 10px 0;
            text-align: left;
        }

.cc-pop-carousel-header {
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--navy);
        }

.cc-pop-carousel-header .text-gold {
            color: var(--gold);
        }

.cc-pop-carousel-list {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            padding: 4px 0;
            scrollbar-width: none; /* Firefox default */
        }

.cc-pop-carousel-list::-webkit-scrollbar {
            display: none; /* Safari/Chrome default */
        }

@media (hover: hover) {
            .cc-pop-carousel-list {
                scrollbar-width: thin !important;
            }
            .cc-pop-carousel-list::-webkit-scrollbar {
                display: block !important;
                height: 6px !important;
            }
            .cc-pop-carousel-list::-webkit-scrollbar-track {
                background: #f1f5f9 !important;
                border-radius: 10px !important;
            }
            .cc-pop-carousel-list::-webkit-scrollbar-thumb {
                background: #cbd5e1 !important;
                border-radius: 10px !important;
            }
            .cc-pop-carousel-list::-webkit-scrollbar-thumb:hover {
                background: #94a3b8 !important;
            }
        }

.cc-pop-carousel-item {
            flex: 0 0 100px;
            scroll-snap-align: start;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.06);
            background: #fafafa;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            transition: all 0.2s ease;
        }

.cc-pop-carousel-item:hover {
            transform: translateY(-1.5px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
            border-color: var(--gold);
        }

.cc-pop-carousel-item img {
            width: 100%;
            height: 65px;
            object-fit: contain;
            background: #ffffff;
            border-bottom: 1px solid rgba(0,0,0,0.03);
        }

.cc-pop-carousel-item-info {
            padding: 4px 6px;
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

.cc-pop-carousel-item-name {
            font-size: 9px;
            font-weight: 700;
            color: var(--navy);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

.cc-pop-carousel-item-price {
            font-size: 9px;
            font-weight: 800;
            color: var(--gold);
        }

.cc-pop-carousel-footer {
            margin-top: 6px;
            text-align: right;
        }

.cc-pop-carousel-link {
            font-size: 10px;
            font-weight: 800;
            color: var(--gold) !important;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: color 0.18s;
        }

.cc-pop-carousel-link:hover {
            color: var(--navy) !important;
        }

/* ═══ PIN DE NEGOCIO CON ADS (celeste vibrante pulsante) — portado de mapa.php para que el
   marcador en el mapa de cualquier página que use buildAdPOIIcon se vea idéntico a /mapa. ═══ */
@keyframes ad-pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6), 0 4px 18px rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0), 0 4px 18px rgba(59, 130, 246, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 4px 18px rgba(59, 130, 246, 0.2); }
}
.cc-marker-ad-pulse {
    animation: ad-pulse-glow 2s infinite !important;
    border: 3px solid #3b82f6 !important;
    border-radius: 50%;
}
.cc-pin-star-ad {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 5;
}

/* ═══ MEGÁFONO ANIMADO (botón de promoción de anuncio en mapa) — override con máxima
   especificidad. Portado de mapa.php para que cualquier página que use buildPOIPopup con
   ad_mapa_activo (ej. /lugares) se vea idéntica a /mapa. ═══ */
@keyframes megaphone-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
@keyframes megaphone-wiggle {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-12deg); }
    20%, 40%, 60%, 80% { transform: rotate(12deg); }
}
.cc-pop-footer-icons .cc-pop-ad-megaphone-btn,
.cc-pop-ad-megaphone-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    border: 2.5px solid #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5) !important;
    position: relative !important;
    animation: megaphone-pulse 1.8s infinite ease-in-out !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}
.cc-pop-footer-icons .cc-pop-ad-megaphone-btn i,
.cc-pop-ad-megaphone-btn i {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1 !important;
    animation: megaphone-wiggle 2.5s infinite ease-in-out !important;
    pointer-events: none !important;
}
.cc-pop-footer-icons .cc-pop-ad-megaphone-btn:hover,
.cc-pop-ad-megaphone-btn:hover {
    transform: scale(1.22) !important;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.65) !important;
    animation: none !important;
}

/* ═══ ÍCONO 3D MEJORADO (botón "Ver logo 3D") — portado de mapa.php ═══ */
@keyframes ficha3d-shimmer {
    0%   { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    60%  { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}
@keyframes btn-shine {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.cc-pop-ficha3d-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #4c1d95 100%) !important;
    color: white !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(109, 40, 217, 0.45) !important;
    animation: ficha3d-shimmer 2.4s infinite ease-in-out !important;
    position: relative !important;
    overflow: hidden !important;
}
.cc-pop-ficha3d-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: btn-shine 2s infinite linear;
    border-radius: inherit;
}
.cc-pop-ficha3d-btn:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%) !important;
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.6) !important;
    animation: none !important;
}
.cc-pop-ficha3d-btn i {
    position: relative;
    z-index: 1;
}