/* CERCA — MOBILE
   Responsive, safe-area y ajustes específicos para pantallas pequeñas.
   Cargar SIEMPRE al final. */

/* Navegación */
.bottom-nav{height:76px!important;padding:7px 8px max(7px,env(safe-area-inset-bottom))!important;background:rgba(8,12,22,.90)!important;backdrop-filter:blur(24px);border-top:1px solid rgba(255,255,255,.08)!important;box-shadow:0 -15px 40px rgba(0,0,0,.20);}
@media(max-width:420px){.aj-actions{gap:6px}.aj-action{min-height:68px}.aj-live-title{font-size:1.16rem}.aj-risk-badge{min-width:72px}.weather-banner{border-radius:18px!important;}}
@media(min-width:800px){.view-container{max-width:760px;margin:0 auto}.aj-actions{grid-template-columns:repeat(4,1fr)}.aj-floating-sos{right:calc(50% - 365px);}}
@media(max-width:600px){.aj-map-toolbar{top:74px}.aj-map-legend{bottom:10px}.aj-map-bottom-sheet{max-height:48%}.aj-nearby-item{grid-template-columns:36px 1fr auto}.aj-nearby-icon{width:36px;height:36px}}

/* SOS V5: fuera de la capa de navegación y sin recorte visual */
.aj-floating-sos{right:18px!important;bottom:calc(118px + env(safe-area-inset-bottom))!important;z-index:1300!important;width:64px!important;height:64px!important;overflow:visible!important;isolation:isolate;box-shadow:0 12px 34px rgba(239,68,68,.42),0 0 0 8px rgba(239,68,68,.10)!important}
@media(max-width:420px){.aj-floating-sos{right:14px!important;bottom:calc(112px + env(safe-area-inset-bottom))!important;width:60px!important;height:60px!important}.aj-ops-head{gap:8px}.aj-ops-head p{font-size:.65rem}.aj-ops-event{grid-template-columns:34px 1fr auto}.aj-ops-event-icon{width:34px;height:34px}.aj-ops-metrics span{font-size:.55rem}}
@media(min-width:800px){.aj-floating-sos{right:calc(50% - 350px)!important}}


/* ==========================================================
   CERCA V6 — MOBILE FIRST + SOS ARRASTRABLE + RUTA INTERNA
   ========================================================== */
:root{--aj-nav-safe:calc(88px + env(safe-area-inset-bottom));}
.content-scroll{padding-bottom:calc(var(--aj-nav-safe) + 42px)!important;}

/* SOS: botón verdaderamente flotante y movible */
.aj-floating-sos{
  position:fixed!important;
  right:16px!important;
  bottom:calc(112px + env(safe-area-inset-bottom))!important;
  z-index:5000!important;
  width:64px!important;height:64px!important;
  touch-action:none!important;
  cursor:grab!important;
  will-change:left,top,right,bottom,transform;
  overflow:visible!important;
}

@media(max-width:600px){
  .content-scroll{padding:12px 10px calc(var(--aj-nav-safe) + 48px)!important;gap:11px!important;}
  .aj-live-card,.aj-nearby-card,.aj-ops-card,.report-form{border-radius:18px!important;}
  .aj-ops-card{padding:12px!important;}
  .aj-ops-head{flex-direction:column!important;align-items:stretch!important;gap:8px!important;}
  .aj-ops-live{align-self:flex-start!important;}
  .aj-ops-head p{max-width:none!important;font-size:.67rem!important;}
  .aj-ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
  .aj-ops-metrics>div{padding:8px!important;min-width:0!important;}
  .aj-ops-metrics>div:nth-child(3){grid-column:1/-1;}
  .aj-ops-metrics strong{font-size:.94rem!important;}
  .aj-ops-metrics span{font-size:.56rem!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
  .aj-ops-event{grid-template-columns:36px minmax(0,1fr)!important;gap:8px!important;padding:9px!important;align-items:start!important;}
  .aj-ops-event-icon{width:36px!important;height:36px!important;}
  .aj-ops-score{grid-column:2!important;text-align:left!important;margin-top:-2px!important;font-size:.61rem!important;}
  .aj-ops-title{font-size:.76rem!important;}
  .aj-ops-meta{font-size:.61rem!important;line-height:1.35!important;}
  .aj-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .aj-action{min-height:64px!important;}
  .weather-banner{padding:14px!important;min-height:96px!important;}
  .map-filter-floating{left:8px!important;right:8px!important;top:8px!important;}
  .aj-map-toolbar{right:8px!important;top:62px!important;}
  .aj-map-legend{left:8px!important;right:8px!important;bottom:8px!important;max-width:none!important;}
  .aj-map-bottom-sheet{left:8px!important;right:8px!important;bottom:8px!important;max-height:48%!important;}
  .aj-route-panel{left:8px;right:8px;bottom:8px;max-height:56%;}
  .aj-route-summary{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px;}
  .aj-route-summary strong{font-size:.78rem}.aj-route-summary span{font-size:.53rem}
}
@media(max-width:370px){
  .aj-ops-metrics{grid-template-columns:1fr!important;}
  .aj-ops-metrics>div:nth-child(3){grid-column:auto;}
  .aj-route-summary{grid-template-columns:1fr 1fr;}.aj-route-summary>div:last-child{grid-column:1/-1;}
}
@media(max-width:600px){
  .content-scroll{
    padding:12px 10px 30px!important;
  }
  .centered-view{
    padding:12px 10px 30px!important;
  }
  .mas-container{
    padding:12px 10px 30px!important;
  }
}

@media(max-width:600px){
  .topbar{height:56px!important;padding:0 10px!important;gap:6px!important}.topbar h1{font-size:1.05rem!important}.top-actions{gap:6px!important}.status-badge{padding:5px 8px!important;font-size:.64rem!important}.btn-refresh-global{width:32px!important;height:32px!important}
  .content-scroll,.centered-view,.mas-container{padding-left:var(--aj-mobile-pad)!important;padding-right:var(--aj-mobile-pad)!important;}
  .weather-banner{min-width:0!important}.weather-info h3{font-size:1rem!important}.weather-temp{font-size:1.65rem!important}
  .home-tab-switcher{position:sticky;top:0;z-index:8;background:rgba(9,13,22,.92)!important;backdrop-filter:blur(14px)}.light-theme .home-tab-switcher{background:rgba(241,245,249,.94)!important}
  .home-tab-btn{padding:8px 6px!important;font-size:.72rem!important;min-width:0!important}.home-tab-btn span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .category-grid-container{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.cat-card-item{min-width:0!important;padding:10px 3px!important}.cat-card-item span:last-child{font-size:.66rem!important;overflow-wrap:anywhere}
  .report-form{padding:15px!important;margin-top:4px!important}.report-input,.report-textarea{font-size:16px!important;}
  .bottom-nav{height:72px!important;padding:5px 3px max(5px,env(safe-area-inset-bottom))!important}.nav-item{max-width:none!important;font-size:.58rem!important;gap:2px!important}.nav-item .material-icons-round{font-size:21px!important}
  .aj-ops-card{padding:11px!important;border-radius:18px!important}.aj-ops-kicker{font-size:.56rem!important}.aj-ops-head h3{font-size:.88rem!important;margin-top:3px!important}.aj-ops-head p{font-size:.62rem!important;line-height:1.35!important}.aj-ops-live{font-size:.52rem!important;padding:4px 7px!important}
  .aj-ops-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin-top:9px!important}.aj-ops-metrics>div{padding:7px 5px!important;text-align:center!important;border-radius:11px!important}.aj-ops-metrics>div:nth-child(3){grid-column:auto!important}.aj-ops-metrics strong{font-size:.88rem!important}.aj-ops-metrics span{font-size:.49rem!important;line-height:1.15!important}
  .aj-ops-event{grid-template-columns:32px minmax(0,1fr) auto!important;gap:7px!important;padding:8px!important;align-items:center!important;border-radius:12px!important}.aj-ops-event-icon{width:32px!important;height:32px!important;border-radius:10px!important}.aj-ops-event-icon .material-icons-round{font-size:18px!important}.aj-ops-bubble{min-width:15px!important;height:15px!important;font-size:.49rem!important}.aj-ops-title{font-size:.69rem!important;line-height:1.2!important}.aj-ops-meta{font-size:.55rem!important;line-height:1.3!important}.aj-ops-score{grid-column:auto!important;text-align:right!important;margin:0!important;font-size:.57rem!important}
  .aj-ops-list:not(.expanded) .aj-ops-event:nth-child(n/**/+4){display:none!important}.aj-ops-more{display:flex!important}
  .aj-map-bottom-sheet,.aj-route-panel{border-radius:18px 18px 0 0!important;left:0!important;right:0!important;bottom:0!important;max-height:62%!important}.aj-route-head{padding:10px 12px 8px!important}.aj-route-head h3{font-size:.82rem!important}.aj-route-head p{font-size:.59rem!important}.aj-safe-controls{padding:8px 10px!important}.aj-route-summary{padding:7px 10px!important}.aj-route-steps{padding:0 10px 10px!important}.aj-route-step{grid-template-columns:27px minmax(0,1fr) auto!important;padding:7px!important}.aj-route-step strong{font-size:.66rem!important}.aj-route-step small,.aj-route-step-distance{font-size:.56rem!important}
}
@media(max-width:360px){
  .topbar-brand .material-icons-round{font-size:22px!important}.topbar h1{font-size:.96rem!important}.status-badge{display:none!important}
  .aj-ops-metrics span{font-size:.45rem!important}.aj-ops-title{font-size:.65rem!important}.aj-ops-meta{font-size:.51rem!important}
  .category-grid-container{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:600px){.aj-map-safe-fab{right:10px;bottom:12px;min-height:46px;padding:0 12px;font-size:.68rem}.aj-ops-card{overflow:visible!important;contain:none!important}.aj-ops-list{max-height:none!important;overflow:visible!important}}
@media(max-width:600px){
    .map-filter-floating{
        left:8px!important;
        right:8px!important;
        top:8px!important;
        max-width:calc(100% - 16px)!important;
        border-radius:18px!important;
        padding:4px 42px 4px 4px!important;
    }
    .map-filter-floating .chip-filter{min-height:38px;padding:6px 11px!important;font-size:.68rem!important}
    .aj-map-filters-button{top:59px;left:8px;min-height:40px}
    .aj-map-toolbar{top:58px!important}
    .aj-filter-sheet{left:6px;right:6px;bottom:6px;max-height:82%}
}
@media(max-width:380px){
    .aj-filter-sheet-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
    .aj-safe-route-launch{left:8px;top:106px;min-height:40px}
    .aj-destination-sheet{left:6px;right:6px;bottom:6px;max-height:86%}
}
.aj-tracking-privacy{margin:0 10px calc(10px + env(safe-area-inset-bottom));padding:9px 10px;border-radius:12px;border:1px solid rgba(74,222,128,.18);background:rgba(74,222,128,.06);display:flex;gap:7px;align-items:flex-start;color:var(--text-secondary);font-size:.61rem;line-height:1.35}
@media(max-width:390px){.aj-tracking-info{grid-template-columns:1fr}}
@media(max-width:600px){.aj-destination-sheet,.aj-filter-sheet{max-height:calc(100% - 12px)!important}.aj-route-panel{max-height:62%!important}.aj-floating-sos{max-width:62px!important;max-height:62px!important}}
@media(max-width:420px){.aj-v9-route-compare{grid-template-columns:1fr}.aj-v9-route-option{display:grid;grid-template-columns:1fr auto;gap:2px 8px}.aj-v9-route-option b{grid-column:2;grid-row:1/3;align-self:center}}.cerca-help-card{width:min(560px,100%);max-height:82dvh;overflow:auto;border:1px solid var(--border-color);border-radius:22px 22px 0 0;background:var(--bg-main);padding:15px 14px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px rgba(0,0,0,.35)}
@media(max-width:390px){.cerca-quick-grid{grid-template-columns:repeat(2,1fr)}.cerca-help-actions{grid-template-columns:1fr}}

/* Nav en su propio espacio: sin franja negra falsa */
.bottom-nav{
    position:relative!important;
    flex:0 0 calc(68px + env(safe-area-inset-bottom))!important;
    height:calc(68px + env(safe-area-inset-bottom))!important;
    min-height:calc(68px + env(safe-area-inset-bottom))!important;
    z-index:6900!important;
    padding:5px 5px env(safe-area-inset-bottom)!important
}

/* SOS permanece flotante dentro de la zona segura */
.aj-floating-sos{
    z-index:6800!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important
}

@media(max-width:420px){
    .topbar{height:56px!important;min-height:56px!important;flex-basis:56px!important}
    .cerca-app-logo{width:33px;height:33px;border-radius:11px}
    .cerca-app-title h1{font-size:.98rem!important}
    .cerca-app-title>span{font-size:.49rem}
    .status-badge{display:none!important}
    .content-scroll{padding:8px 8px 17px!important;gap:9px!important}
    .cerca-home-tools{padding:9px;border-radius:16px}
    .cerca-home-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .cerca-home-tools-grid button{
        min-height:60px;display:grid;
        grid-template-columns:25px minmax(0,1fr);grid-template-rows:auto auto;
        text-align:left;justify-items:start;padding:7px 8px;column-gap:6px
    }
    .cerca-home-tools-grid .material-icons-round{grid-row:1/3;align-self:center}
    .cerca-home-tools-grid b{font-size:.62rem}
    .cerca-home-tools-grid small{font-size:.50rem;text-align:left}
    .weather-banner{min-height:78px!important;padding:10px 11px!important}
}
@media(max-height:700px) and (max-width:600px){
    .topbar{height:52px!important;min-height:52px!important;flex-basis:52px!important}
    .bottom-nav{
        flex-basis:calc(62px + env(safe-area-inset-bottom))!important;
        height:calc(62px + env(safe-area-inset-bottom))!important;
        min-height:calc(62px + env(safe-area-inset-bottom))!important
    }
    .aj-floating-sos{bottom:calc(74px + env(safe-area-inset-bottom))!important}
}
.cerca-route-bottom12{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 10px calc(10px + env(safe-area-inset-bottom));background:var(--bg-nav);border-top:1px solid var(--border-color)}
.cerca-help-nearest12{flex:0 0 auto;max-height:42%;overflow-y:auto;padding:9px 9px calc(9px + env(safe-area-inset-bottom));background:var(--bg-nav);border-top:1px solid var(--border-color)}
@media(max-width:390px){.cerca-special-header p{max-width:220px}.cerca-help-types12 b{font-size:.47rem}.cerca-route-bottom12{grid-template-columns:1fr}.cerca-route-bottom12 button{justify-content:center;width:100%}}

@media(max-width:600px){
    .cerca-traffic-toggle14{left:8px;top:106px;min-height:40px}
    .cerca-traffic-mode14{top:8px;max-width:66%;overflow:hidden}
    .cerca-traffic-mode14>div{min-width:0}
    .cerca-traffic-mode14 strong,.cerca-traffic-mode14 small{
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis
    }
}
@media(max-width:420px){
    .cerca-home-tools-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

.cerca-feed-scroll15{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    padding:10px 10px calc(20px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling:touch
}
.cerca-v16-scroll{flex:1;min-height:0;overflow-y:auto;padding:10px 10px calc(22px + env(safe-area-inset-bottom))}
.cerca-prev-guide-actions17{
    flex:0 0 auto;display:flex;gap:7px;padding:9px 12px calc(10px + env(safe-area-inset-bottom));
    border-top:1px solid var(--border-color)
}

@media(max-width:420px){
    .cerca-prev-topic-grid17{grid-template-columns:1fr}
    .cerca-prev-action-grid17{grid-template-columns:repeat(2,1fr)}
    .cerca-prev-action-grid17 button{display:grid;grid-template-columns:25px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;column-gap:6px}
    .cerca-prev-action-grid17 .material-icons-round{grid-row:1/3;align-self:center}
}

/* Pantallas pequeñas */
@media(max-width:420px){
  .content-scroll,
  .cerca-v16-scroll,
  .cerca-feed-scroll15{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .cerca-home-tools-grid{
    grid-template-columns:1fr 1fr!important;
  }

  .cerca-prev-topic-grid17,
  .cerca-tool-grid16{
    grid-template-columns:1fr!important;
  }

  .cerca-prev-action-grid17{
    grid-template-columns:1fr 1fr!important;
  }

  .cerca-summary-grid15{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .cerca-help-types12{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .cerca-route-bottom12{
    grid-template-columns:1fr!important;
  }
}

/* Muy angosto */
@media(max-width:350px){
  :root{
    --cerca-fs-xs: 11px;
    --cerca-fs-sm: 12px;
    --cerca-fs-md: 13px;
    --cerca-fs-lg: 15px;
    --cerca-fs-xl: 18px;
  }

  .cerca-home-tools-grid,
  .cerca-prev-action-grid17,
  .cerca-help-types12{
    grid-template-columns:1fr!important;
  }

  .bottom-nav .nav-item span:last-child{
    font-size:10px!important;
  }
}


/* CERCA V1.7.2 — Prevención conserva el nav inferior */
#cercaPreventionView16{
    bottom: calc(58px + env(safe-area-inset-bottom))!important;
}
#cercaPreventionView16 .cerca-prev-scroll17{
    padding-bottom: calc(20px + env(safe-area-inset-bottom))!important;
}
#cercaPreventionView16 .cerca-prev-guide-backdrop17{
    position:fixed!important;
    bottom: calc(58px + env(safe-area-inset-bottom))!important;
}
/* =========================================================
   CERCA NAV V2 — PERFIL ARRIBA + SOS CENTRAL
   ========================================================= */

.cerca-top-profile {
    border: 0;
    background: rgba(255,255,255,.06);
    color: var(--text-primary);
    border-radius: 14px;
    min-height: 44px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cerca-top-profile > .material-icons-round {
    font-size: 28px;
    color: #38bdf8;
}

.cerca-top-profile-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.cerca-top-profile-copy small {
    font-size: .55rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: .08em;
}

.cerca-top-profile-copy strong {
    margin-top: 3px;
    font-size: .77rem;
    color: var(--text-primary);
}


/* NAV INFERIOR */
.cerca-bottom-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr 74px 1fr 1fr;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
    overflow: visible !important;
}

.cerca-bottom-nav .nav-item {
    min-width: 0;
    width: 100%;
}


/* SOS CENTRAL */
.cerca-nav-sos {
    position: relative;
    top: -17px;

    width: 64px;
    height: 64px;

    margin: 0 auto;

    border-radius: 50%;
    border: 4px solid var(--bg-nav, #0f172a);

    background: linear-gradient(
        145deg,
        #ef4444,
        #b91c1c
    );

    color: white;

    box-shadow:
        0 8px 24px rgba(239,68,68,.40),
        0 0 0 3px rgba(239,68,68,.14);

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

    cursor: pointer;
    z-index: 20;
}

.cerca-nav-sos .material-icons-round {
    font-size: 25px;
    line-height: 1;
}

.cerca-nav-sos strong {
    margin-top: 1px;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
}


/* ACCIONES DENTRO DE PERFIL */
.cerca-profile-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.cerca-profile-action {
    width: 100%;

    padding: 13px 14px;

    border-radius: 14px;
    border: 1px solid var(--border-color);

    background: var(--card-bg, rgba(255,255,255,.05));
    color: var(--text-primary);

    display: grid;
    grid-template-columns: 30px 1fr 24px;
    align-items: center;
    gap: 10px;

    text-align: left;
    cursor: pointer;
}

.cerca-profile-action > .material-icons-round:first-child {
    color: #38bdf8;
}

.cerca-profile-action > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cerca-profile-action strong {
    font-size: .86rem;
}

.cerca-profile-action small {
    font-size: .68rem;
    color: var(--text-secondary);
}

.cerca-profile-action > .material-icons-round:last-child {
    color: var(--text-secondary);
}

.cerca-profile-action.danger {
    border-color: rgba(239,68,68,.25);
}

.cerca-profile-action.danger > .material-icons-round:first-child,
.cerca-profile-action.danger strong {
    color: #ef4444;
}


/* ESPACIO SEGURO PARA EL SOS ELEVADO */
.view-container {
    padding-bottom: 82px;
}

@media (max-width: 480px) {

    .cerca-bottom-nav {
        grid-template-columns:
            minmax(0,1fr)
            minmax(0,1fr)
            68px
            minmax(0,1fr)
            minmax(0,1fr);
    }

    .cerca-nav-sos {
        width: 60px;
        height: 60px;
        top: -15px;
    }

    .cerca-bottom-nav .nav-item span:last-child {
        font-size: .62rem;
    }
}
/* ==========================================================
   CERCA HEADER V4
   Logo grande centrado + perfil separado
   ========================================================== */

.cerca-header-v3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Más espacio para el logo */
    height: 90px;
    min-height: 90px;

    padding: 6px 65px;

    background: var(--bg-nav, #080d16);

    border-bottom: 1px solid rgba(148,163,184,.10);
}


/* =========================
   LOGO CENTRAL
   ========================= */

.cerca-header-brand {
    width: 100%;
    height: 100%;

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

    min-width: 0;
}

.cerca-header-mark {
    width: auto;
    height: 100%;

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

    background: transparent !important;
    box-shadow: none !important;
}

.cerca-header-logo,
.cerca-header-logo-full {
    display: block;

    width: auto;

    /* Logo más grande */
    height: 76px;

    max-width: 100%;

    object-fit: contain;
}


/* Oculta el texto anterior porque el logo ya incluye CERCA */

.cerca-header-brand-copy {
    display: none !important;
}


/* =========================
   PERFIL DERECHA
   ========================= */

.cerca-header-right {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

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

    z-index: 20;
}

.cerca-profile-icon {
    width: 44px;
    height: 44px;

    padding: 0;

    border-radius: 50%;

    border: 1px solid rgba(148,163,184,.22);

    background: rgba(148,163,184,.09);

    color: #94a3b8;

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

    cursor: pointer;
}

.cerca-profile-icon .material-icons-round {
    font-size: 28px;
}


/* Usuario con sesión iniciada = VERDE */

.cerca-profile-icon.session-active {
    color: #22c55e;

    border-color: rgba(34,197,94,.60);

    background: rgba(34,197,94,.12);

    box-shadow:
        0 0 0 3px rgba(34,197,94,.07),
        0 4px 14px rgba(0,0,0,.25);
}


/* =========================
   BOTÓN ATRÁS
   ========================= */

.cerca-header-left {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 20;
}

.cerca-header-back {
    width: 40px;
    height: 40px;

    display: none;

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

    border: 0;
    border-radius: 50%;

    background: rgba(148,163,184,.08);
    color: var(--text-primary);

    cursor: pointer;
}


/* =========================
   NAV INFERIOR
   Solo SOS destaca
   ========================= */

.cerca-bottom-nav .nav-item {
    background: transparent !important;
    box-shadow: none !important;
}

.cerca-bottom-nav .cerca-report-main16 {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.cerca-bottom-nav .nav-item.active {
    background: rgba(245,158,11,.07) !important;
}

.cerca-bottom-nav .nav-item.active .material-icons-round {
    color: #f59e0b;
}

.cerca-nav-sos {
    z-index: 30;
}


/* =========================
   TELÉFONOS PEQUEÑOS
   ========================= */

@media (max-width: 390px) {

    .cerca-header-v3 {
        /* Antes 76px */
        height: 84px;
        min-height: 84px;

        padding-left: 55px;
        padding-right: 55px;
    }

    .cerca-header-logo,
    .cerca-header-logo-full {
        /* Antes 61px */
        height: 68px;
    }

    .cerca-profile-icon {
        width: 40px;
        height: 40px;
    }

    .cerca-profile-icon .material-icons-round {
        font-size: 25px;
    }

    .cerca-header-right {
        right: 8px;
    }

    .cerca-header-left {
        left: 8px;
    }
}
/* ==========================================================
   CERCA — FIX ALERTAS ACTIVAS EN MONITOREO EN VIVO
   ========================================================== */

.aj-risk-badge {
    min-width: 78px;
    max-width: 92px;

    padding: 7px 8px;

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

    text-align: center;

    flex-shrink: 0;

    box-sizing: border-box;
}

.aj-risk-badge strong {
    display: block;
    line-height: 1;
}

.aj-risk-badge span {
    display: block;

    width: 100%;

    font-size: 0.62rem;
    line-height: 1.15;

    white-space: normal;
    text-align: center;

    overflow-wrap: break-word;
}