/* =========================================================
   CMAPAS Atención WhatsApp
========================================================= */

:root {
    --cmapas-aw-blue: #0057b8;
    --cmapas-aw-blue-dark: #003b73;
    --cmapas-aw-sky: #20a9e0;
    --cmapas-aw-green: #25d366;
    --cmapas-aw-text: #10233f;
    --cmapas-aw-muted: #66788c;
    --cmapas-aw-border: rgba(0,87,184,.13);
}

/* Oculta únicamente enlaces de WhatsApp colocados dentro del header. */
.cmapas-aw-hide-header-wa header a[href*="wa.me"],
.cmapas-aw-hide-header-wa header a[href*="api.whatsapp.com"],
.cmapas-aw-hide-header-wa header a[href*="whatsapp.com"] {
    display: none !important;
}

.cmapas-aw {
    position: fixed;
    z-index: 2147483000;
    pointer-events: none;
    bottom: 24px;
    font-family: inherit;
}

.cmapas-aw-right .cmapas-aw { right: 24px; }
.cmapas-aw-left .cmapas-aw { left: 24px; }

.cmapas-aw *,
.cmapas-aw *::before,
.cmapas-aw *::after { box-sizing: border-box; }

.cmapas-aw__launcher {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 9px 16px 9px 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #128c4a, var(--cmapas-aw-green));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 35px rgba(0,50,90,.22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cmapas-aw__launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0,50,90,.28);
}

.cmapas-aw__launcher:focus-visible,
.cmapas-aw__close:focus-visible,
.cmapas-aw__item:focus-visible {
    outline: 3px solid rgba(32,169,224,.45);
    outline-offset: 3px;
}

.cmapas-aw__wa-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}

.cmapas-aw__wa-icon svg { width: 29px; height: 29px; }

.cmapas-aw__launcher-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    white-space: nowrap;
}

.cmapas-aw__launcher-text strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
}

.cmapas-aw__launcher-text small {
    margin-top: 3px;
    font-size: 11px;
    opacity: .92;
}

.cmapas-aw__panel {
    pointer-events: auto;
    display: none;
    width: min(390px, calc(100vw - 28px));
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid var(--cmapas-aw-border);
    border-radius: 24px;
    background: #fff;
    color: var(--cmapas-aw-text);
    box-shadow: 0 22px 60px rgba(0,43,85,.22);
    transform-origin: bottom right;
}

.cmapas-aw-left .cmapas-aw__panel { transform-origin: bottom left; }

.cmapas-aw__panel.cmapas-aw__panel--open {
    display: block !important;
    animation: cmapasAwOpen .25s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes cmapasAwOpen {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cmapas-aw__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, var(--cmapas-aw-blue-dark), var(--cmapas-aw-blue));
    color: #fff;
}

.cmapas-aw__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cmapas-aw__brand-drop {
    width: 33px;
    height: 42px;
    flex: 0 0 33px;
    border-radius: 65% 35% 65% 35% / 68% 35% 65% 32%;
    background: linear-gradient(145deg, #a8edff, #21b8ec 50%, #007cc5);
    transform: rotate(45deg);
    box-shadow: inset 4px 4px 7px rgba(255,255,255,.38);
}

.cmapas-aw__brand div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cmapas-aw__brand strong {
    font-size: 17px;
    line-height: 1.15;
}

.cmapas-aw__brand span {
    margin-top: 3px;
    font-size: 11px;
    opacity: .84;
}

.cmapas-aw__close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.cmapas-aw__body { padding: 18px; }

.cmapas-aw__question {
    margin: 0 0 14px;
    color: var(--cmapas-aw-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.cmapas-aw__menu {
    display: grid;
    gap: 8px;
}

.cmapas-aw__item {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 18px;
    align-items: center;
    gap: 11px;
    min-height: 64px;
    padding: 10px 11px;
    border: 1px solid rgba(0,87,184,.10);
    border-radius: 16px;
    background: #f9fcff;
    color: var(--cmapas-aw-text) !important;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.cmapas-aw__item:hover {
    transform: translateX(3px);
    border-color: rgba(0,87,184,.22);
    background: #eef8ff;
    box-shadow: 0 8px 20px rgba(0,55,115,.07);
}

.cmapas-aw__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e8f7ff;
    font-size: 21px;
}

.cmapas-aw__item--fuga .cmapas-aw__icon { background: #e3f7ff; }
.cmapas-aw__item--recibo .cmapas-aw__icon { background: #fff6de; }
.cmapas-aw__item--servicios .cmapas-aw__icon { background: #edf4ff; }
.cmapas-aw__item--cita .cmapas-aw__icon { background: #e9f8ef; }
.cmapas-aw__item--info .cmapas-aw__icon { background: #f1efff; }
.cmapas-aw__item--otro .cmapas-aw__icon { background: #eef6f8; }

.cmapas-aw__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cmapas-aw__copy strong {
    font-size: 13.5px;
    line-height: 1.2;
}

.cmapas-aw__copy small {
    margin-top: 4px;
    color: var(--cmapas-aw-muted);
    font-size: 10.8px;
    line-height: 1.3;
}

.cmapas-aw__arrow {
    color: var(--cmapas-aw-blue);
    font-size: 24px;
    line-height: 1;
}

.cmapas-aw__note {
    margin: 13px 2px 0;
    color: var(--cmapas-aw-muted);
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 600px) {
    .cmapas-aw { bottom: 16px; }
    .cmapas-aw-right .cmapas-aw { right: 14px; }
    .cmapas-aw-left .cmapas-aw { left: 14px; }

    .cmapas-aw__launcher {
    pointer-events: auto;
        min-height: 56px;
        padding-right: 13px;
    }

    .cmapas-aw__wa-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .cmapas-aw__launcher-text strong { font-size: 13px; }
    .cmapas-aw__launcher-text small { font-size: 10px; }

    .cmapas-aw__panel {
    pointer-events: auto;
    display: none;
        width: min(360px, calc(100vw - 28px));
        max-height: 72vh;
        overflow-y: auto;
    }
}

@media (max-width: 390px) {
    .cmapas-aw__launcher-text small { display: none; }
    .cmapas-aw__launcher { padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .cmapas-aw__launcher,
    .cmapas-aw__panel.cmapas-aw__panel--open,
    .cmapas-aw__item {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   Flujo guiado: reporte de fugas - v1.0.3
========================================================= */

.cmapas-aw__view[hidden] {
    display: none !important;
}

.cmapas-aw__item-button {
    width: 100%;
    border: 1px solid rgba(0,87,184,.10);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cmapas-aw__item--fuga-publica .cmapas-aw__icon,
.cmapas-aw__item--fuga-externa .cmapas-aw__icon {
    background: #e3f7ff;
}

.cmapas-aw__item--fuga-domicilio .cmapas-aw__icon,
.cmapas-aw__item--fuga-interna .cmapas-aw__icon {
    background: #eef8ef;
}

.cmapas-aw__back {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: -3px 0 12px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: #edf7ff;
    color: var(--cmapas-aw-blue-dark);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.cmapas-aw__back:hover {
    background: #dff2ff;
    transform: translateX(-2px);
}

.cmapas-aw__flow-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    padding: 12px 13px;
    border: 1px solid rgba(0,87,184,.10);
    border-radius: 16px;
    background: linear-gradient(135deg, #f5fbff, #f3fbf7);
}

.cmapas-aw__flow-title > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 13px;
    background: #e3f7ff;
    font-size: 22px;
}

.cmapas-aw__flow-title > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cmapas-aw__flow-title strong {
    color: var(--cmapas-aw-text);
    font-size: 14px;
    line-height: 1.2;
}

.cmapas-aw__flow-title small {
    margin-top: 3px;
    color: var(--cmapas-aw-muted);
    font-size: 10.5px;
    line-height: 1.3;
}

.cmapas-aw__account-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding: 11px 12px;
    border-left: 4px solid var(--cmapas-aw-sky);
    border-radius: 0 12px 12px 0;
    background: #f4fbff;
}

.cmapas-aw__account-note strong {
    color: var(--cmapas-aw-blue-dark);
    font-size: 11.5px;
}

.cmapas-aw__account-note span {
    color: var(--cmapas-aw-muted);
    font-size: 10.5px;
    line-height: 1.45;
}

.cmapas-aw__back:focus-visible,
.cmapas-aw__item-button:focus-visible {
    outline: 3px solid rgba(32,169,224,.45);
    outline-offset: 3px;
}
