/* CERCA — SKYLINE
   Alerta Skyline, Centro de Operaciones, riesgo y prevención. */

.aj-risk-badge{min-width:82px;text-align:center;border-radius:14px;padding:9px 8px;background:rgba(16,185,129,.10);border:1px solid rgba(16,185,129,.22);}
.aj-risk-badge strong{display:block;font-size:1.05rem;color:#34d399;}
.aj-risk-badge span{font-size:.6rem;color:var(--text-secondary);font-weight:800;text-transform:uppercase;}


/* ============================================================
   CERCA V4 — RIESGO + VERIFICACIÓN COMUNITARIA
   ============================================================ */
.aj-risk-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;font-size:.63rem;font-weight:900;letter-spacing:.25px;border:1px solid transparent;white-space:nowrap}
.aj-risk-badge.critical{background:rgba(220,38,38,.15);color:#f87171;border-color:rgba(220,38,38,.35)}
.aj-risk-badge.high{background:rgba(239,68,68,.12);color:#fb7185;border-color:rgba(239,68,68,.3)}
.aj-risk-badge.medium{background:rgba(245,158,11,.12);color:#fbbf24;border-color:rgba(245,158,11,.3)}
.aj-risk-badge.low{background:rgba(59,130,246,.12);color:#60a5fa;border-color:rgba(59,130,246,.3)}
.aj-verified{display:inline-flex;align-items:center;gap:4px;color:#34d399;font-size:.66rem;font-weight:900;margin-left:6px}
.aj-risk-meter{height:5px;background:rgba(148,163,184,.14);border-radius:999px;overflow:hidden;margin-top:8px}
.aj-risk-meter>span{display:block;height:100%;border-radius:999px;transition:width .35s ease}
.aj-verified-card{box-shadow:0 0 0 1px rgba(16,185,129,.15),0 10px 30px rgba(16,185,129,.05)}
.aj-verification-banner{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,rgba(16,185,129,.10),rgba(59,130,246,.08));border:1px solid rgba(16,185,129,.2);font-size:.73rem;color:var(--text-secondary)}
.aj-verification-banner .material-icons-round{color:#34d399;font-size:20px}
.aj-risk-filter{position:relative}
.aj-risk-filter .aj-filter-dot{width:7px;height:7px;border-radius:50%;background:#ef4444;display:inline-block;box-shadow:0 0 0 3px rgba(239,68,68,.12)}


/* ============================================================
   CERCA V5 — CERCA DE TI / EVENTOS AGRUPADOS
   ============================================================ */
.aj-ops-card{background:linear-gradient(145deg,rgba(7,15,28,.96),rgba(17,24,39,.90));border:1px solid rgba(34,197,94,.20);border-radius:22px;padding:15px;box-shadow:0 16px 38px rgba(0,0,0,.16);overflow:hidden;position:relative}
.aj-ops-card:before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:2px;background:linear-gradient(90deg,transparent,#22c55e,#38bdf8,transparent);opacity:.75}
.light-theme .aj-ops-card{background:linear-gradient(145deg,#fff,#f8fafc);border-color:rgba(22,163,74,.20)}
.aj-ops-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.aj-ops-kicker{display:flex;align-items:center;gap:6px;font-size:.62rem;font-weight:900;letter-spacing:.08em;color:#4ade80}.aj-ops-kicker .material-icons-round{font-size:17px}.aj-ops-head h3{font-size:1rem;margin-top:4px}.aj-ops-head p{font-size:.69rem;color:var(--text-secondary);margin-top:4px;line-height:1.45;max-width:520px}.aj-ops-live{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;border:1px solid rgba(34,197,94,.22);background:rgba(34,197,94,.08);color:#4ade80;border-radius:999px;padding:5px 8px;font-size:.58rem;font-weight:900}.aj-ops-live i{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12);animation:ajOpsBlink 1.5s infinite}@keyframes ajOpsBlink{50%{opacity:.35}}
.aj-ops-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.aj-ops-metrics>div{background:rgba(255,255,255,.035);border:1px solid var(--border-color);border-radius:13px;padding:9px}.light-theme .aj-ops-metrics>div{background:rgba(15,23,42,.025)}.aj-ops-metrics strong{display:block;font-size:1rem}.aj-ops-metrics span{display:block;color:var(--text-secondary);font-size:.59rem;margin-top:2px}
.aj-ops-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}.aj-ops-event{display:grid;grid-template-columns:38px 1fr auto;gap:9px;align-items:center;border:1px solid var(--border-color);background:rgba(255,255,255,.03);border-radius:14px;padding:9px;cursor:pointer;transition:.18s}.aj-ops-event:hover{border-color:rgba(34,197,94,.35);transform:translateY(-1px)}.aj-ops-event-icon{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;position:relative}.aj-ops-bubble{position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#fff;color:#0f172a;font-size:.55rem;font-weight:900;display:flex;align-items:center;justify-content:center;border:1px solid rgba(15,23,42,.15)}.aj-ops-title{font-size:.79rem;font-weight:850;line-height:1.2}.aj-ops-meta{font-size:.64rem;color:var(--text-secondary);margin-top:3px}.aj-ops-score{font-size:.65rem;font-weight:900;white-space:nowrap;text-align:right}.aj-ops-empty{padding:14px;text-align:center;color:var(--text-secondary);font-size:.72rem;border:1px dashed var(--border-color);border-radius:13px}

/* CERCA de ti mobile-first */
.aj-ops-card{width:100%;max-width:100%;min-width:0;overflow:visible!important;}
.aj-ops-head>div:first-child{min-width:0;}
.aj-ops-head h3,.aj-ops-head p,.aj-ops-title,.aj-ops-meta{overflow-wrap:anywhere;word-break:normal;}
.aj-ops-list{min-width:0;}
.aj-ops-event>div:nth-child(2){min-width:0;}

/* CERCA de ti: compacto, completo y legible en móvil */
.aj-ops-card{contain:none!important;overflow:visible!important;}
.aj-ops-head{min-width:0;}
.aj-ops-head h3{line-height:1.25;}
.aj-ops-metrics>div{min-width:0;}
.aj-ops-list{width:100%;min-width:0;}
.aj-ops-event{width:100%;min-width:0;}
.aj-ops-more{
  width:100%;margin-top:8px;border:1px solid var(--border-color);background:rgba(255,255,255,.035);
  color:var(--text-primary);border-radius:12px;min-height:42px;padding:9px 12px;font-size:.72rem;font-weight:800;
  display:none;align-items:center;justify-content:center;gap:6px;cursor:pointer;
}
.light-theme .aj-ops-more{background:rgba(15,23,42,.035)}
.aj-v9-ops-toolbar{display:flex;gap:6px;overflow-x:auto;padding:9px 0 2px;scrollbar-width:none}.aj-v9-ops-toolbar::-webkit-scrollbar{display:none}
.aj-v9-ops-filter{flex:0 0 auto;border:1px solid var(--border-color);background:rgba(255,255,255,.035);color:var(--text-secondary);border-radius:999px;padding:6px 9px;font-size:.61rem;font-weight:850;cursor:pointer}
.aj-v9-ops-filter.active{background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.28);color:#4ade80}
.cerca-nearest-card12{border:1px solid rgba(74,222,128,.24);background:rgba(74,222,128,.06);border-radius:15px;padding:10px}.cerca-nearest-kicker12{font-size:.48rem;font-weight:950;letter-spacing:.1em;color:#4ade80}.cerca-nearest-card12 h3{font-size:.76rem;margin:4px 0 3px}.cerca-nearest-card12 p{font-size:.54rem;color:var(--text-secondary);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cerca-nearest-meta12{display:flex;gap:10px;margin-top:7px;font-size:.58rem;font-weight:800}.cerca-nearest-actions12{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:8px}.cerca-nearest-start12{border:0;border-radius:11px;background:#16a34a;color:white;padding:9px;font-size:.62rem;font-weight:950}.cerca-nearest-center12{width:38px;border:1px solid var(--border-color);border-radius:11px;background:var(--bg-card);color:inherit}
.cerca-nearest-phone13{
    display:inline-flex;align-items:center;gap:3px;
    margin-top:5px;color:#38bdf8;font-size:.52rem
}
.cerca-nearest-start12.loading{
    opacity:.7;
    pointer-events:none
}
.cerca-nearest-start12 .material-icons-round{
    font-size:16px;
    vertical-align:middle
}

/* También ocultamos encabezados heredados que queden vacíos. */
#view-inicio .section-title:has(+ #communityReportsList),
#view-inicio .section-title:has(+ #skylineAlertsList){
    display:none!important;
}

.cerca-feed-tabs15,.cerca-near-radius15{
    flex:0 0 auto;
    display:flex;gap:6px;overflow-x:auto;
    padding:8px;
    border-bottom:1px solid var(--border-color);
    scrollbar-width:none
}
.cerca-feed-tabs15::-webkit-scrollbar,.cerca-near-radius15::-webkit-scrollbar{display:none}

.cerca-feed-tabs15 button,.cerca-near-radius15 button{
    flex:0 0 auto;
    border:1px solid var(--border-color);
    border-radius:999px;
    background:var(--bg-card);
    color:var(--text-secondary);
    padding:7px 11px;
    font:inherit;
    font-size:.56rem;
    font-weight:850;
}
.cerca-near-radius15{align-items:center}
.cerca-near-radius15>span{
    font-size:.52rem;font-weight:900;color:var(--text-secondary);padding:0 2px
}
.cerca-near-radius15 button.active{
    background:rgba(56,189,248,.12);
    border-color:rgba(56,189,248,.35);
    color:#38bdf8
}
.cerca-event15.skyline .cerca-event-icon15{
    background:rgba(168,85,247,.09);color:#c084fc
}

.cerca-near-zone15{
    border:1px solid rgba(56,189,248,.20);
    background:rgba(56,189,248,.06);
    border-radius:16px;
    padding:11px;
    margin-bottom:10px;
    display:flex;align-items:center;gap:9px
}
.cerca-near-zone15>.material-icons-round{font-size:25px;color:#38bdf8}
.cerca-near-zone15 small{
    display:block;font-size:.46rem;color:#38bdf8;font-weight:950;letter-spacing:.08em
}
.cerca-near-zone15 strong{display:block;font-size:.70rem;margin-top:2px}
.cerca-near-zone15 span:last-child{
    display:block;font-size:.51rem;color:var(--text-secondary);margin-top:2px
}
.cerca-near-count15{
    min-width:28px;height:28px;border-radius:10px;
    background:rgba(56,189,248,.10);
    display:flex!important;align-items:center;justify-content:center;
    color:#38bdf8!important;font-size:.65rem!important;font-weight:950;
    margin-left:auto!important
}.cerca-v16-head.prevention>span{color:#22c55e}.cerca-v16-head.prevention small{color:#22c55e}
.cerca-risk16{border:1px solid rgba(34,197,94,.2);background:rgba(34,197,94,.06);border-radius:17px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 35px;gap:8px}
.cerca-risk16 small{font-size:.44rem;color:#22c55e;font-weight:950;letter-spacing:.09em}.cerca-risk16 h3{font-size:.75rem;margin:4px 0}.cerca-risk16 p{font-size:.52rem;color:var(--text-secondary);line-height:1.4;margin:0}.cerca-risk16>span{color:#22c55e;font-size:28px}
.cerca-prevention-grid16{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.cerca-prevention-grid16 button{border:1px solid var(--border-color);background:var(--bg-card);color:inherit;border-radius:15px;padding:10px;text-align:left;min-height:92px}
.cerca-prevention-grid16 .material-icons-round{font-size:23px;color:#22c55e}.cerca-prevention-grid16 strong{display:block;font-size:.59rem;margin-top:5px}.cerca-prevention-grid16 small{display:block;font-size:.46rem;color:var(--text-secondary);margin-top:2px;line-height:1.3}
.cerca-prevention-detail16{margin-top:10px;border:1px solid var(--border-color);border-radius:16px;background:var(--bg-card);padding:12px}.cerca-prevention-detail16>span{color:#22c55e}.cerca-prevention-detail16 strong{display:block;font-size:.68rem;margin-top:5px}.cerca-prevention-detail16 p{font-size:.53rem;color:var(--text-secondary);line-height:1.45;margin:5px 0 0}


/* ============================================================
   CERCA V1.7 — PREVENCIÓN INTELIGENTE
   ============================================================ */
.cerca-prev-scroll17{padding-top:9px!important}
.cerca-prev-status17{
    border:1px solid rgba(34,197,94,.20);
    border-radius:20px;
    padding:13px;
    background:
      radial-gradient(circle at 92% 0%,rgba(34,197,94,.12),transparent 38%),
      linear-gradient(145deg,rgba(34,197,94,.07),rgba(15,23,42,.35));
}
body.light-theme .cerca-prev-status17{
    background:linear-gradient(145deg,rgba(34,197,94,.06),#fff)
}
.cerca-prev-status-top17{
    display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:10px;align-items:center
}
.cerca-prev-status17 small,.cerca-prev-section-head17 small,.cerca-prev-tip17 small{
    display:block;font-size:.43rem;font-weight:950;letter-spacing:.10em;color:#22c55e
}
.cerca-prev-status17 h3{font-size:.78rem;margin:4px 0 3px}
.cerca-prev-status17 p{font-size:.52rem;line-height:1.4;color:var(--text-secondary);margin:0}
.cerca-prev-score17{
    width:64px;height:64px;border-radius:50%;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    border:1px solid rgba(34,197,94,.28);
    background:rgba(34,197,94,.08)
}
.cerca-prev-score17 strong{font-size:1rem}.cerca-prev-score17 span{font-size:.42rem;color:var(--text-secondary)}
.cerca-prev-signals17{
    display:flex;gap:6px;overflow-x:auto;margin-top:10px;padding-bottom:1px;scrollbar-width:none
}
.cerca-prev-signals17::-webkit-scrollbar{display:none}
.cerca-prev-signals17 span{
    flex:0 0 auto;display:flex;align-items:center;gap:4px;
    padding:5px 8px;border-radius:999px;
    border:1px solid var(--border-color);background:rgba(255,255,255,.025);
    color:var(--text-secondary);font-size:.47rem;font-weight:800
}
.cerca-prev-signals17 i{font-size:13px;color:#38bdf8}

.cerca-prev-question17,.cerca-prev-actions17{margin-top:14px}
.cerca-prev-section-head17{display:flex;align-items:end;justify-content:space-between;margin-bottom:7px}
.cerca-prev-section-head17 h3{font-size:.70rem;margin:2px 0 0}
.cerca-prev-section-head17>span{font-size:18px;color:#22c55e}

.cerca-prev-topic-grid17{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.cerca-prev-topic-grid17 button{
    min-width:0;border:1px solid var(--border-color);border-radius:16px;background:var(--bg-card);color:inherit;
    padding:10px;display:grid;grid-template-columns:30px minmax(0,1fr) 18px;gap:7px;align-items:center;text-align:left
}
.cerca-prev-topic-grid17 button>span:first-child{
    width:30px;height:30px;border-radius:10px;background:rgba(34,197,94,.09);
    display:flex;align-items:center;justify-content:center;color:#22c55e;font-size:18px
}
.cerca-prev-topic-grid17 button>span:last-child{font-size:17px;color:var(--text-secondary)}
.cerca-prev-topic-grid17 strong{display:block;font-size:.56rem;line-height:1.2}
.cerca-prev-topic-grid17 small{display:block;font-size:.45rem;color:var(--text-secondary);line-height:1.3;margin-top:2px}

.cerca-prev-action-grid17{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.cerca-prev-action-grid17 button{
    border:1px solid var(--border-color);border-radius:15px;background:rgba(255,255,255,.025);
    color:inherit;padding:9px 5px;text-align:center;min-width:0
}
.cerca-prev-action-grid17 .material-icons-round{font-size:21px;color:#38bdf8}
.cerca-prev-action-grid17 strong{display:block;font-size:.51rem;margin-top:4px}
.cerca-prev-action-grid17 small{display:block;font-size:.42rem;line-height:1.25;color:var(--text-secondary);margin-top:2px}

.cerca-prev-tip17{
    margin-top:13px;border:1px solid rgba(245,158,11,.18);border-radius:16px;padding:10px;
    background:rgba(245,158,11,.05);display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px
}
.cerca-prev-tip17>span{font-size:24px;color:#fbbf24}
.cerca-prev-tip17 small{color:#fbbf24}
.cerca-prev-tip17 strong{display:block;font-size:.60rem;margin-top:3px}
.cerca-prev-tip17 p{font-size:.48rem;color:var(--text-secondary);line-height:1.4;margin:3px 0 0}

/* Guide bottom sheet */
.cerca-prev-guide-backdrop17{
    position:absolute;inset:0;z-index:30;background:rgba(2,6,23,.64);
    display:none;align-items:flex-end;backdrop-filter:blur(5px)
}
.cerca-prev-guide-backdrop17.show{display:flex}
.cerca-prev-guide17{
    width:100%;max-height:78%;overflow:hidden;border-radius:24px 24px 0 0;
    background:var(--bg-main);border-top:1px solid var(--border-color);
    display:flex;flex-direction:column
}
.cerca-prev-guide-head17{
    display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
    padding:13px 13px 10px;border-bottom:1px solid var(--border-color)
}
.cerca-prev-guide-head17 small{font-size:.43rem;color:#22c55e;font-weight:950;letter-spacing:.1em}
.cerca-prev-guide-head17 h3{font-size:.86rem;margin:3px 0 0}
.cerca-prev-guide-head17 button{
    width:36px;height:36px;border:0;border-radius:11px;background:rgba(148,163,184,.1);color:inherit
}
.cerca-prev-guide-content17{overflow-y:auto;padding:11px 13px}
.cerca-prev-step17{
    display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:8px 0;border-bottom:1px solid var(--border-color)
}
.cerca-prev-step17:last-child{border-bottom:0}
.cerca-prev-step17 b{
    width:24px;height:24px;border-radius:8px;background:rgba(34,197,94,.1);color:#22c55e;
    display:flex;align-items:center;justify-content:center;font-size:.51rem
}
.cerca-prev-step17 strong{display:block;font-size:.58rem}
.cerca-prev-step17 p{font-size:.48rem;line-height:1.4;color:var(--text-secondary);margin:2px 0 0}
.cerca-prev-guide-actions17 button{
    flex:1;border:0;border-radius:12px;padding:9px;font-size:.53rem;font-weight:900
}
.cerca-prev-guide-actions17 .primary{background:#16a34a;color:#fff}
.cerca-prev-guide-actions17 .secondary{background:var(--bg-card);color:var(--text-primary);border:1px solid var(--border-color)}

/* Ahora / Cerca de ti */
.cerca-feed-head15 small,
.cerca-feed-tabs15 button,
.cerca-near-radius15,
.cerca-near-radius15 button,
.cerca-source15,
.cerca-event15 time,
.cerca-section15 div small{
  font-size: var(--cerca-fs-xs)!important;
}
.cerca-feed-head15 p,
.cerca-hero-now15 p,
.cerca-event15 p,
.cerca-empty15 p,
.cerca-near-zone15 span:last-child{
  font-size: var(--cerca-fs-sm)!important;
  line-height: 1.4!important;
}
.cerca-hero-now15 h3,
.cerca-section15 h3,
.cerca-near-zone15 strong{
  font-size: var(--cerca-fs-lg)!important;
}

/* Ayuda CERCA */
.cerca-places-source13,
.cerca-help-types12 b,
.cerca-help-empty12 p,
.cerca-nearest-kicker12,
.cerca-nearest-card12 p,
.cerca-nearest-meta12,
.cerca-help-radius13,
.cerca-other-title12,
.cerca-other-place12 small,
.cerca-place-badge13,
.cerca-nearest-phone13{
  font-size: var(--cerca-fs-xs)!important;
}
.cerca-help-empty12 strong,
.cerca-nearest-card12 h3,
.cerca-other-place12 strong{
  font-size: var(--cerca-fs-md)!important;
}
.cerca-nearest-start12{
  min-height: var(--cerca-touch)!important;
  font-size: var(--cerca-fs-sm)!important;
}

/* Prevención */
.cerca-prev-status17 small,
.cerca-prev-section-head17 small,
.cerca-prev-tip17 small,
.cerca-prev-guide-head17 small{
  font-size: var(--cerca-fs-xs)!important;
}
.cerca-prev-status17 h3,
.cerca-prev-section-head17 h3,
.cerca-prev-guide-head17 h3{
  font-size: var(--cerca-fs-lg)!important;
}
.cerca-prev-status17 p,
.cerca-prev-topic-grid17 small,
.cerca-prev-action-grid17 small,
.cerca-prev-tip17 p,
.cerca-prev-step17 p{
  font-size: var(--cerca-fs-sm)!important;
  line-height: 1.45!important;
}
.cerca-prev-topic-grid17 strong,
.cerca-prev-action-grid17 strong,
.cerca-prev-tip17 strong,
.cerca-prev-step17 strong{
  font-size: var(--cerca-fs-md)!important;
}
.cerca-prev-topic-grid17 button{
  min-height: 82px!important;
  padding: 12px!important;
}
.cerca-prev-action-grid17 button{
  min-height: 82px!important;
  padding: 10px!important;
}
.cerca-prev-guide-actions17 button{
  min-height: var(--cerca-touch)!important;
  font-size: var(--cerca-fs-sm)!important;
}
