/* ===================================================================================================================
🌎 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: 90px;
    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);
}