/* Avisos regionales: extensión aislada del diálogo existente. */
.mca-alert-dialog [hidden] { display: none !important; }
.mca-alert-modal.is-map-view [data-alert-dialog-summary] { display: none; }
.mca-alert-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    flex: 0 0 auto;
    margin: 10px 16px;
    padding: 4px;
    border: 1px solid #d8e4ed;
    border-radius: 15px;
    background: #e7f1f7;
}
.mca-alert-tabs__tab {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #607990;
    font: 850 .72rem/1.25 Montserrat, Poppins, Arial, sans-serif;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mca-alert-tabs__tab.is-active { background: #fff; color: #087fbd; box-shadow: 0 5px 14px rgba(18,67,109,.11); }
.mca-alert-tabs__tab:focus-visible,
.mca-alert-map button:focus-visible { outline: 3px solid #087fbd; outline-offset: 2px; }
.mca-alert-map {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    background: #f6f9fc;
    overscroll-behavior: contain;
}
.mca-alert-map__intro { margin: 0 0 12px; color: #4c6880; font-size: .76rem; font-weight: 650; line-height: 1.5; }
.mca-alert-map__canvas {
    width: 100%;
    height: clamp(225px, 38vh, 325px);
    overflow: hidden;
    border: 1px solid #d8e4ed;
    border-radius: 16px;
    background: #dceff8;
    color: #34566e;
    font-size: .75rem;
}
.mca-alert-map__canvas .leaflet-container { background: #dceff8; }
.mca-alert-map__canvas .leaflet-overlay-pane svg { width: auto; height: auto; }
.mca-alert-map__canvas .leaflet-control-zoom a { color: #08244a; border-color: #d8e4ed; }
.mca-alert-map__canvas .mca-alert-map__cartagena-label { padding: 2px 5px; border: 0; border-radius: 6px; background: #08244a; color: #fff; box-shadow: none; font: 800 10px/1.2 Montserrat, Poppins, Arial, sans-serif; }
.mca-alert-map__canvas .mca-alert-map__cartagena-label::before { display: none; }
.mca-alert-map__bubble-marker { background: transparent; border: 0; }
.mca-alert-map__bubble {
    position: relative;
    display: block;
    width: 62px;
    height: 62px;
}
.mca-alert-map__disc {
    position: absolute;
    top: 2px;
    left: 17px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ffdc32;
    color: #08244a;
    box-shadow: 0 3px 9px rgba(8,36,74,.2);
}
.mca-alert-map__disc:nth-child(2) { top: 19px; left: 5px; z-index: 1; }
.mca-alert-map__bubble.is-single .mca-alert-map__disc { top: 11px; left: 11px; }
.mca-alert-map__bubble.is-expanded { height: 104px; }
.mca-alert-map__bubble.is-expanded .mca-alert-map__disc { top: 8px; left: 11px; }
.mca-alert-map__bubble.is-expanded .mca-alert-map__disc:nth-child(2) { top: 56px; }
.mca-alert-map__bubble.is-expanded .mca-alert-map__bubble-overflow { right: 0; bottom: 0; }
.mca-alert-map__disc[data-level="orange"] { background: #ef7418; color: #fff; }
.mca-alert-map__disc[data-level="red"] { background: #d63838; color: #fff; }
.mca-alert-map__disc[data-level="unavailable"] { background: #b8c8d5; color: #08244a; }
.mca-alert-map__disc .wi { font-size: 20px; line-height: 1; }
.mca-alert-map__bubble-count {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 2;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 2px;
    place-items: center;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #08244a;
    color: #fff;
    font: 900 9px/1 Montserrat, Poppins, Arial, sans-serif;
}
.mca-alert-map__bubble-overflow { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 3px 4px; border: 1px solid #fff; border-radius: 999px; background: #08244a; color: #fff; font: 900 9px/1 Montserrat, Poppins, Arial, sans-serif; }
.mca-alert-map__bubble.is-selected .mca-alert-map__disc:last-of-type { outline: 2px solid #08244a; outline-offset: 2px; }
.mca-alert-map__canvas .mca-alert-map__bubble-marker:focus-visible { outline: 3px solid #08244a; outline-offset: 2px; border-radius: 50%; }
.mca-alert-map__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 0; }
.mca-alert-map__legend span { display: inline-flex; align-items: center; gap: 5px; color: #48647b; font-size: .63rem; font-weight: 750; }
.mca-alert-map__legend span::before,
.mca-alert-map__zone-dot { content: ''; width: 10px; height: 10px; flex: 0 0 auto; border: 1px solid rgba(8,36,74,.16); border-radius: 50%; background: #e9f2f8; }
.mca-alert-map__legend [data-level="yellow"]::before,
.mca-alert-map__zone[data-level="yellow"] .mca-alert-map__zone-dot { background: #ffdc32; }
.mca-alert-map__legend [data-level="orange"]::before,
.mca-alert-map__zone[data-level="orange"] .mca-alert-map__zone-dot { background: #ef7418; }
.mca-alert-map__legend [data-level="red"]::before,
.mca-alert-map__zone[data-level="red"] .mca-alert-map__zone-dot { background: #d63838; }
.mca-alert-map__zone[data-level="unavailable"] .mca-alert-map__zone-dot { background: #b8c8d5; }
.mca-alert-map__status { margin: 12px 0; color: #365a71; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.mca-alert-map__zone-picker { margin: 10px 0 0; border: 1px solid #d8e4ed; border-radius: 12px; background: #fff; }
.mca-alert-map__zone-picker summary { min-height: 44px; padding: 13px 14px; color: #087fbd; font-size: .7rem; font-weight: 850; cursor: pointer; }
.mca-alert-map__zone-picker summary:focus-visible { outline: 3px solid #087fbd; outline-offset: 2px; }
.mca-alert-map__zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 10px 10px; }
.mca-alert-map__zone {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 3px 8px;
    min-width: 0;
    min-height: 54px;
    padding: 9px;
    border: 1px solid #d8e4ed;
    border-radius: 11px;
    background: #fff;
    color: #08244a;
    text-align: left;
    cursor: pointer;
}
.mca-alert-map__zone[aria-pressed="true"] { border-color: #087fbd; background: #edf8fd; }
.mca-alert-map__zone-name { min-width: 0; font-size: .67rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.mca-alert-map__zone small { grid-column: 2; color: #6c7f94; font-size: .6rem; font-weight: 700; }
.mca-alert-map__detail { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d8e4ed; }
.mca-alert-map__detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mca-alert-map__detail h3 { margin: 0; color: #08244a; font-size: 1rem; font-weight: 850; line-height: 1.3; }
.mca-alert-map__local-label { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #edf8fd; color: #087fbd; font-size: .6rem; font-weight: 850; }
.mca-alert-map__count { margin: 7px 0 10px; color: #567188; font-size: .7rem; font-weight: 750; }
.mca-alert-map__empty { margin: 9px 0 0; padding: 14px; border: 1px solid #d8e4ed; border-radius: 12px; background: #fff; color: #48647b; font-size: .73rem; line-height: 1.5; }
.mca-alert-map__card { --level: #3696bf; --soft: #edf8fd; margin-top: 9px; padding: 13px; border: 1px solid #d8e4ed; border-radius: 16px; background: #fff; }
.mca-alert-map__card[data-level="yellow"] { --level: #967800; --soft: #fff9d5; background: #fffef7; border-color: #eee0a0; }
.mca-alert-map__card[data-level="orange"] { --level: #ba5010; --soft: #ffeadb; background: #fff9f5; border-color: #f4c9a7; }
.mca-alert-map__card[data-level="red"] { --level: #ba2424; --soft: #ffe7e7; background: #fff8f8; border-color: #efbaba; }
.mca-alert-map__card-top { display: flex; align-items: center; gap: 10px; }
.mca-alert-map__card-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--soft); color: var(--level); font-size: 1.3rem; }
.mca-alert-map__card-heading { min-width: 0; }
.mca-alert-map__level { color: var(--level); font-size: .59rem; font-weight: 900; text-transform: uppercase; }
.mca-alert-map__card h4 { margin: 3px 0 0; color: #08244a; font-size: .83rem; font-weight: 850; line-height: 1.3; }
.mca-alert-map__description { margin: 11px 0; color: #34566e; font-size: .72rem; font-weight: 650; line-height: 1.55; }
.mca-alert-map__card.has-no-description .mca-alert-map__times { margin-top: 12px; }
.mca-alert-map__times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mca-alert-map__times span { min-width: 0; padding: 8px; border: 1px solid #d8e4ed; border-radius: 9px; background: #fff; }
.mca-alert-map__times small, .mca-alert-map__times strong { display: block; }
.mca-alert-map__times small { color: #6c7f94; font-size: .55rem; font-weight: 850; text-transform: uppercase; }
.mca-alert-map__times strong { margin-top: 2px; color: #08244a; font-size: .67rem; font-weight: 800; }
.mca-alert-map__advice { margin: 10px 0 0; color: #365a71; font-size: .69rem; line-height: 1.55; }
.mca-alert-map__advice strong { color: #087fbd; }
@media (max-width: 390px) {
    .mca-alert-tabs { margin: 8px 11px; }
    .mca-alert-tabs__tab { font-size: .68rem; }
    .mca-alert-map { padding: 12px; }
    .mca-alert-map__zones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .mca-alert-map__zone { min-height: 52px; padding: 7px; }
    .mca-alert-map__zone-name { font-size: .6rem; }
}
@media (hover: hover) {
    .mca-alert-tabs__tab:hover:not(.is-active) { background: rgba(255,255,255,.58); color: #0874a4; }
}
@media (prefers-reduced-motion: reduce) {
    .mca-alert-map *, .mca-alert-tabs * { animation: none !important; transition: none !important; }
}
