/* =========================================================
   TEMA: ACTIVIDAD SÍSMICA
   Símbolos del mapa (estrellas, halo del último sismo) y
   leyenda de profundidad. Se carga después de nucleo.css.
   ========================================================= */

/* =========================================================
   MARCADOR DEL SISMO
   ========================================================= */

.sismo.ultimo {
    position: relative;
    z-index: 1000;
}

.estrella-sismo {
    display: block;
    overflow: visible;
}

.sismo .estrella-sismo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}


/* =========================================================
   HALO DEL ÚLTIMO SISMO
   ========================================================= */

.halo-sismo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 4px solid #ff3b30;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: haloSismo 1.8s ease-out infinite;
    z-index: 10;
}

@keyframes haloSismo {
    0% {
        width: 12px;
        height: 12px;
        opacity: 0.85;
    }
    100% {
        width: 45px;
        height: 45px;
        opacity: 0;
    }
}


/* =========================================================
   LEYENDA: PROFUNDIDAD Y ÚLTIMO SISMO
   Los colores reales los asigna js/dominio/sismos.js según
   el mapa base; estos son los de Carto Light.
   ========================================================= */

.leyenda-fila-profundidad .leyenda-elemento {
    font-size: 9px;
}

.leyenda-profundidad {
    display: block;
    width: 15px;
    height: 15px;
    border: 1px solid #315b85;
    border-radius: 2px;
    box-sizing: border-box;
}

.profundidad-1 {
    background: #4f78a8;
}

.profundidad-2 {
    background: #6f98c3;
}

.profundidad-3 {
    background: #94b7d8;
}

.profundidad-4 {
    background: #bdd3e7;
}

.halo-leyenda {
    width: 18px;
    height: 18px;
    border: 1px solid #ff3b30;
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
}

.halo-leyenda::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ff3b30;
    border-radius: 50%;
    box-sizing: border-box;
}
