/* Servicios municipales (home + detalle): gris frío, puntos verde / pendiente / apagado, CTA expandir */
.muni-svc-sc { margin-top: 0; min-width: 0; }
.muni-svc-sc__wrap { display: block; color: inherit; min-width: 0; -webkit-tap-highlight-color: transparent; }
.muni-svc-sc__wrap:active .muni-svc-sc__card { transform: scale(0.992); }
.muni-svc-sc__card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 22px 20px 20px;
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 55%, #f8fafc 100%);
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.07);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.muni-svc-sc__card:hover {
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.1);
}
.muni-svc-sc__deco {
    position: absolute;
    right: -8px;
    bottom: -18px;
    font-size: 76px;
    color: rgba(15, 23, 42, 0.05);
    transform: rotate(-12deg);
    pointer-events: none;
    line-height: 1;
}
.muni-svc-sc__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 4px;
}
.muni-svc-sc__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.muni-svc-sc__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, #94a3b8, #64748b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.22);
}
.muni-svc-sc__titles { min-width: 0; }
.muni-svc-sc__kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}
.muni-svc-sc__title {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.muni-svc-sc__item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 4px;
    border-top: 1px solid #f1f5f9;
}
.muni-svc-sc__top + .muni-svc-sc__item {
    border-top: none;
    padding-top: 6px;
}
.muni-svc-sc__ico-box {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 18px;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.muni-svc-sc__ico-box--ok {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    color: #15803d;
}
.muni-svc-sc__ico-box--warn {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
}
.muni-svc-sc__ico-box--muted {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
}
.muni-svc-sc__ico-box--alert {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}
.muni-svc-sc__main {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.muni-svc-sc__svc-name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.muni-svc-sc__side-tag {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    line-height: 1.2;
}
.muni-svc-sc__line {
    margin: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    white-space: normal;
    overflow: visible; /* no recortar el box-shadow/halo del punto */
}
.muni-svc-sc__line-txt {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.muni-svc-sc__line--ok { color: #059669; }
/* Próximo a abrir: ámbar (misma familia que el punto “soon”) */
.muni-svc-sc__line--warn { color: #9a3412; }
.muni-svc-sc__line--alert { color: #dc2626; }
.muni-svc-sc__line--muted { color: #64748b; }
.muni-svc-sc__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    justify-self: start;
    margin: 0 1px;
    align-self: center;
    flex-shrink: 0;
    background: #cbd5e1;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}
.muni-svc-sc__status-dot--ok {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: muniSvcPulseGreen 1.65s ease-in-out infinite;
}
.muni-svc-sc__status-dot--soon {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
    animation: muniSvcPulseAmber 2s ease-in-out infinite;
}
.muni-svc-sc__status-dot--pending {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
    animation: muniSvcPulseAmber 2s ease-in-out infinite;
}
.muni-svc-sc__status-dot--info {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
    animation: muniSvcPulseAmber 2s ease-in-out infinite;
}
.muni-svc-sc__status-dot--off {
    background: #cbd5e1;
    box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.5);
    animation: none;
    opacity: 0.85;
}
@keyframes muniSvcPulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes muniSvcPulseAmber {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.38); }
    70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
/* CTA tipo farmacia / colectivos: · + texto + chevron */
.muni-svc-sc__expand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px dashed rgba(100, 116, 139, 0.5);
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease, color 0.15s ease;
}
.muni-svc-sc__expand:hover { color: #334155; }
.muni-svc-sc__expand:active { opacity: 0.88; }
.muni-svc-sc__expand-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.muni-svc-sc__expand-dot {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    color: #64748b;
    opacity: 0.9;
    user-select: none;
}
.muni-svc-sc__expand-chev {
    flex-shrink: 0;
    font-size: 15px;
    color: #64748b;
    opacity: 0.9;
}
/* Compat: enlaces viejos con clase __cta */
.muni-svc-sc__cta {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.muni-svc-sc__cta:active { opacity: 0.88; }
.muni-svc-sc__cta i { font-size: 15px; opacity: 0.88; color: #64748b; }

@media (prefers-reduced-motion: reduce) {
    .muni-svc-sc__status-dot--ok,
    .muni-svc-sc__status-dot--soon,
    .muni-svc-sc__status-dot--pending,
    .muni-svc-sc__status-dot--info {
        animation: none;
    }
    .muni-svc-sc__wrap:active .muni-svc-sc__card { transform: none; }
}
