/* ===================================================================================================================
🌎 SISMO INPRES - POPUP + MINI TICKER BAJO CÁMARAS
=================================================================================================================== */

.camera-earthquake-layer {
    position: absolute;
    top: 128px;
    left: 10px;
    z-index: 115;
    pointer-events: none;
}

/* ---------------------------------------------------------------------------------------------------------------
🌎 POPUP GRANDE
---------------------------------------------------------------------------------------------------------------- */

.camera-earthquake-popup {
    position: absolute;
    top: 10px;
    left: -620px;

    width: 900px;
    min-height: 92px;

    display: flex;
    align-items: stretch;

    background: linear-gradient(
        90deg,
        rgba(47, 1, 44, .96),
        rgba(56, 21, 75, .94),
        rgba(112, 56, 142, .90)
    );

    border-left: 8px solid var(--warning-rgb);
    border-radius: 12px;

    box-shadow: 0 12px 32px rgba(0,0,0,.55);

    opacity: 0;
    transform: translateX(0);

    transition:
        left .70s cubic-bezier(.22,.8,.2,1),
        opacity .35s ease;

    overflow: hidden;
}

.camera-earthquake-popup.is-visible {
    left: 10px;
    opacity: 1;
}

.earthquake-popup-icon {
    width: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;

    background: linear-gradient(
        180deg,
        rgba(255,193,7,.32),
        rgba(255,87,34,.28)
    );

    border-right: 1px solid rgba(255,255,255,.18);
}

.earthquake-popup-body {
    flex: 1;
    padding: 10px 14px;
    color: var(--blanco);
}

.earthquake-popup-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: var(--warning-rgb);
    text-transform: uppercase;
}

.earthquake-popup-main {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.earthquake-popup-extra {
    margin-top: 5px;
    font-size: 20px;
    line-height: 1.15;
    color: rgba(255,255,255,.78);
}

/* ---------------------------------------------------------------------------------------------------------------
📡 MINI TICKER SÍSMICO
---------------------------------------------------------------------------------------------------------------- */

.camera-earthquake-ticker {
    position: absolute;
    top: 30px;
    left: 0px !important;

    width: auto;
    height: 36px;

    display: flex;
    align-items: center;

    background: linear-gradient(
        90deg,
        rgba(47, 1, 44, .92),
        rgba(56, 21, 75, .88),
        rgba(112, 56, 142, .78)
    );

    border-left: 6px solid var(--warning-rgb);
    border-radius: 12px;

    color: var(--blanco);
    overflow: hidden;

    opacity: 0;

    transition:
        left .70s cubic-bezier(.22,.8,.2,1),
        opacity .35s ease;
}

.camera-earthquake-ticker.is-visible {
    left: 10px;
    opacity: 1;
}

.earthquake-ticker-label {
    height: 100%;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 0 12px;

    background: rgba(255,193,7,.22);

    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--warning-rgb);
    white-space: nowrap;
}

.earthquake-ticker-text {
    padding: 0 14px;

    font-size: 17px;
    font-weight: 700;
    letter-spacing: .4px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------------------------------------------
🎚️ COLORES POR PRIORIDAD
---------------------------------------------------------------------------------------------------------------- */

.camera-earthquake-popup.eq-low,
.camera-earthquake-ticker.eq-low {
    border-left-color: var(--info-rgb);
}

.camera-earthquake-popup.eq-medium,
.camera-earthquake-ticker.eq-medium {
    border-left-color: var(--warning-rgb);
}

.camera-earthquake-popup.eq-high,
.camera-earthquake-ticker.eq-high {
    border-left-color: var(--naranja-rgb);
}

.camera-earthquake-popup.eq-extreme,
.camera-earthquake-ticker.eq-extreme {
    border-left-color: var(--danger-rgb);
    animation: earthquakeEmergencyPulse 1.3s infinite;
}

@keyframes earthquakeEmergencyPulse {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(0,0,0,.55);
    }

    50% {
        box-shadow: 0 0 28px rgba(220, 53, 69,.75);
    }
}

/* =========================================================
🔵 SISMO LOW / INFO - pisa el amarillo warning
========================================================= */

.camera-earthquake-popup.eq-low {
    border-left-color: var(--info-rgb) !important;
}

.camera-earthquake-popup.eq-low .earthquake-popup-title {
    color: var(--info-rgb) !important;
}

.camera-earthquake-popup.eq-low .earthquake-popup-icon {
    background: linear-gradient(
        180deg,
        rgba(28, 90, 156,.32),
        rgba(22, 66, 114,.28)
    ) !important;
}

.camera-earthquake-popup.eq-low .earthquake-popup-icon i {
    --fa-secondary-color: rgb(0, 123, 255) !important;
}

.camera-earthquake-ticker.eq-low {
    border-left-color: var(--info-rgb) !important;
}

.camera-earthquake-ticker.eq-low .earthquake-ticker-label {
    color: var(--info-rgb) !important;
    background: rgba(22, 66, 114,.22) !important;
}

.camera-earthquake-ticker.eq-low .earthquake-ticker-label i {
    --fa-secondary-color: rgb(0, 123, 255) !important;
}

/* =========================================================
🟡 SISMO MEDIUM / WARNING - pisa el amarillo warning
========================================================= */

.camera-earthquake-popup.eq-medium {
    border-left-color: var(--warning-rgb) !important;
}

.camera-earthquake-popup.eq-medium .earthquake-popup-title {
    color: var(--warning-rgb) !important;
}

.camera-earthquake-popup.eq-medium .earthquake-popup-icon {
    background: linear-gradient(
        180deg,
        rgba(163, 139, 0,.32),
        rgba(105, 81, 8,.28)
    ) !important;
}

.camera-earthquake-popup.eq-medium .earthquake-popup-icon i {
    --fa-secondary-color: rgb(255, 193, 7) !important;
}

.camera-earthquake-ticker.eq-medium {
    border-left-color: var(--warning-rgb) !important;
}

.camera-earthquake-ticker.eq-medium .earthquake-ticker-label {
    color: var(--warning-rgb) !important;
    background: rgba(105, 81, 8,.22) !important;
}

.camera-earthquake-ticker.eq-medium .earthquake-ticker-label i {
    --fa-secondary-color: rgb(255, 193, 7) !important;
}

/* =========================================================
🟠 SISMO HIGH / NARANJA - pisa el amarillo warning
========================================================= */

.camera-earthquake-popup.eq-high {
    border-left-color: var(--naranja-rgb) !important;
}

.camera-earthquake-popup.eq-high .earthquake-popup-title {
    color: var(--naranja-rgb) !important;
}

.camera-earthquake-popup.eq-high .earthquake-popup-icon {
    background: linear-gradient(
        180deg,
        rgba(207, 94, 2,.32),
        rgba(95, 44, 2,.28)
    ) !important;
}

.camera-earthquake-popup.eq-high .earthquake-popup-icon i {
    --fa-secondary-color: rgb(253, 126, 20) !important;
}

.camera-earthquake-ticker.eq-high {
    border-left-color: var(--naranja-rgb) !important;
}

.camera-earthquake-ticker.eq-high .earthquake-ticker-label {
    color: var(--naranja-rgb) !important;
    background: rgba(95, 44, 2,.22) !important;
}

.camera-earthquake-ticker.eq-high .earthquake-ticker-label i {
    --fa-secondary-color: rgb(253, 126, 20) !important;
}

/* =========================================================
🔴 SISMO EXTREME / DANGER - pisa el amarillo warning
========================================================= */

.camera-earthquake-popup.eq-extreme {
    border-left-color: var(--danger-rgb) !important;
}

.camera-earthquake-popup.eq-extreme .earthquake-popup-title {
    color: var(--danger-rgb) !important;
}

.camera-earthquake-popup.eq-extreme .earthquake-popup-icon {
    background: linear-gradient(
        180deg,
        rgba(87, 5, 13,.32),
        rgba(34, 2, 5,.28)
    ) !important;
}

.camera-earthquake-popup.eq-extreme .earthquake-popup-icon i {
    --fa-secondary-color: rgb(220, 53, 69) !important;
}

.camera-earthquake-ticker.eq-extreme {
    border-left-color: var(--danger-rgb) !important;
}

.camera-earthquake-ticker.eq-extreme .earthquake-ticker-label {
    color: var(--danger-rgb) !important;
    background: rgba(34, 2, 5,.22) !important;
}

.camera-earthquake-ticker.eq-extreme .earthquake-ticker-label i {
    --fa-secondary-color: rgb(220, 53, 69) !important;
}

/* ===================================================================================================================
🎚️ TEXTO SEVERIDAD TICKER
=================================================================================================================== */

.earthquake-ticker-severity {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
}

/* 🔵 LOW */

.earthquake-ticker-severity.eq-low {
    background: rgb(22, 66, 114);
    border: 1px solid rgb(0, 123, 255);
    color: var(--info-claro-rgb);
    padding: 4px;
    margin-right: 4px;
    border-radius: 12px;
}

/* 🟡 MEDIUM */

.earthquake-ticker-severity.eq-medium {
    background: rgb(105, 81, 8);
    border: 1px solid rgb(255, 193, 7);
    color: var(--warning-claro-rgb);
    padding: 4px;
    margin-right: 4px;
    border-radius: 12px;
}

/* 🟠 HIGH */

.earthquake-ticker-severity.eq-high {
    background: rgb(95, 44, 2);
    border: 1px solid rgb(253, 126, 20);
    color: var(--naranja-claro);
    padding: 4px;
    margin-right: 4px;
    border-radius: 12px;
}

/* 🔴 EXTREME */

.earthquake-ticker-severity.eq-extreme {
    background: rgb(87, 5, 13);
    border: 1px solid rgb(220, 53, 69);
    color: var(--danger-claro-rgb);
    padding: 4px;
    margin-right: 4px;
    border-radius: 12px;
    text-shadow: 0 0 10px rgba(34, 2, 5,.45);
}

/* ===================================================================================================================
🌎 FOOTER INFORMACIÓN POPUP SISMO
=================================================================================================================== */

.popup-footer-informacion {

    width: 100%;

    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    font-size: 13px;
    font-weight: 700;

    color: rgba(255,255,255,.72);

    text-align: right;
}

.popup-footer-informacion img {

    width: auto;
    height: 20px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 4px rgba(0,0,0,.45));
}
/* ===================================================================================================================
🌋 EXTENSIÓN ACTIVIDAD GEOLÓGICA - VOLCANES OAVV / SEGEMAR
=================================================================================================================== */

.camera-earthquake-popup.geo-volcano,
.camera-earthquake-ticker.geo-volcano {
    border-left-color: var(--warning-rgb);
}

.camera-earthquake-popup.geo-volcano .earthquake-popup-icon {
    background: linear-gradient(
        180deg,
        rgba(253,126,20,.34),
        rgba(80,22,2,.30)
    );
}

.camera-earthquake-popup.geo-volcano .earthquake-popup-title {
    color: var(--warning-rgb);
}

.camera-earthquake-popup.geo-volcano.eq-low .earthquake-popup-title,
.camera-earthquake-ticker.geo-volcano.eq-low .earthquake-ticker-label {
    color: var(--info-rgb) !important;
}

.camera-earthquake-popup.geo-volcano.eq-medium .earthquake-popup-title,
.camera-earthquake-ticker.geo-volcano.eq-medium .earthquake-ticker-label {
    color: var(--warning-rgb) !important;
}

.camera-earthquake-popup.geo-volcano.eq-high .earthquake-popup-title,
.camera-earthquake-ticker.geo-volcano.eq-high .earthquake-ticker-label {
    color: var(--naranja-rgb) !important;
}

.camera-earthquake-popup.geo-volcano.eq-extreme .earthquake-popup-title,
.camera-earthquake-ticker.geo-volcano.eq-extreme .earthquake-ticker-label {
    color: var(--danger-rgb) !important;
}

.camera-earthquake-ticker.geo-volcano .earthquake-ticker-label {
    background: rgba(253,126,20,.18);
}

.camera-earthquake-ticker.geo-volcano .earthquake-ticker-text strong {
    font-weight: 900;
}


.vulcano-alerts-badge[data-kind="ROJO"] {
    background: #8f101d;
    border: 1px solid #dc3545;
    color: #fff;
}

.vulcano-alerts-badge[data-kind="NARANJA"] {
    background: #cf5e02;
    border: 1px solid #fd7e14;
    color: #fff;
}

.vulcano-alerts-badge[data-kind="AMARILLO"] {
    background: #a38b00;
    border: 1px solid #ffc107;
    color: #111;
}

.vulcano-alerts-badge[data-kind="VERDE"] {
    background: #062b0f;
    border: 1px solid #28a745;
    color: #111;
}

/* ===================================================================================================================
🌋 BADGES RESUMEN VOLCÁNICO - ESTILO CLIMA 24.7
-------------------------------------------------------------------------------------------------------------------
Se usan dentro del popup resumen de volcanes para reemplazar textos tipo:
[ 8 en verde / sin alertas volcánicas activas ]

Ahora se muestra como badges compactos:
🟢 NORMAL | 🟡 ATENCIÓN | 🟠 ELEVADO | 🔴 CRÍTICO
=================================================================================================================== */

.geo-volcano-status-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 8px;
}

.geo-volcano-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 28px;
    padding: 4px 9px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .45px;
    text-transform: uppercase;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.08),
        0 4px 12px rgba(0,0,0,.22);
}

.geo-volcano-badge i {
    font-size: 14px;
}

.geo-volcano-badge strong {
    font-size: 16px;
    font-weight: 1000;
}

.geo-volcano-badge[data-kind="VERDE"] {
    background: linear-gradient(180deg, rgba(12, 90, 35, .96), rgba(6, 43, 15, .96));
    border: 1px solid #28a745;
    color: #d8ffe2;
}

.geo-volcano-badge[data-kind="AMARILLO"] {
    background: linear-gradient(180deg, rgba(255, 193, 7, .98), rgba(163, 139, 0, .98));
    border: 1px solid #ffe082;
    color: #111;
}

.geo-volcano-badge[data-kind="NARANJA"] {
    background: linear-gradient(180deg, rgba(253, 126, 20, .98), rgba(128, 55, 0, .98));
    border: 1px solid #fd7e14;
    color: #fff;
}

.geo-volcano-badge[data-kind="ROJO"] {
    background: linear-gradient(180deg, rgba(220, 53, 69, .98), rgba(87, 5, 13, .98));
    border: 1px solid #ff7b8a;
    color: #fff;
}

.geo-volcano-summary-note {
    margin-top: 7px;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;

    color: rgba(255,255,255,.78);
    text-transform: uppercase;
    letter-spacing: .45px;
}

.volcano-summary-list {

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    text-align: center;

    margin-top: 10px;
}

.geo-volcano-alert-summary {

    width: 100%;

    margin-top: 10px;

    text-align: center;

    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;

    color: rgba(255,255,255,.82);
}

.volcano-summary-item {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;
    margin: 2px 0;

    border-radius: 10px;

    font-size: 20px;
    font-weight: 800;

    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.volcano-summary-item.eq-low {
    border-color: rgba(40, 167, 69, .60);
}

.volcano-summary-item.eq-medium {
    border-color: rgba(255, 193, 7, .70);
}

.volcano-summary-item.eq-high {
    border-color: rgba(253, 126, 20, .75);
}

.volcano-summary-item.eq-extreme {
    border-color: rgba(220, 53, 69, .80);
}

/* Alias por compatibilidad con versiones anteriores donde quedó escrito "vulcano". */
.vulcano-alerts-badge,
.volcano-alerts-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}
