:root{
  --bg:#f5f7ff;
  --ink:#1f2544;
  --muted:#6d7495;
  --primary:#5a55f7;
  --primary-2:#7b75ff;
  --cyan:#00c7d9;
  --pink:#ff5ca8;
  --danger:#ff5a68;
  --green:#22b573;
  --yellow:#ffbf3c;
  --card:#ffffff;
  --line:#e8eafd;
  --shadow:0 22px 60px rgba(56,61,122,.14);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:"Nunito",system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 10% 10%,rgba(90,85,247,.07),transparent 24%),
    radial-gradient(circle at 90% 30%,rgba(255,92,168,.07),transparent 20%),
    var(--bg);
}

a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}

.hero{
  position:relative;
  overflow:hidden;
  padding:18px 6vw 56px;
  color:white;
  background:linear-gradient(135deg,#3d3ad7 0%,#6b5df6 52%,#00bcd4 130%);
  border-radius:0 0 42px 42px;
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto -8% -50px;
  height:110px;
  background:rgba(255,255,255,.08);
  transform:rotate(-3deg);
}

.hero-glow{
  position:absolute;
  width:260px;
  height:260px;
  border-radius:50%;
  filter:blur(10px);
  opacity:.28;
}
.glow-a{background:#ff7dc1;right:8%;top:-100px}
.glow-b{background:#2de1f0;left:-100px;bottom:-150px}

.nav{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}
.brand-icon{
  display:grid;
  place-items:center;
  width:42px;height:42px;
  border-radius:14px;
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
}
.nav-link{
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:14px;
  background:rgba(255,255,255,.11);
  font-weight:800;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:46px auto 0;
  display:grid;
  grid-template-columns:1.5fr .7fr;
  align-items:center;
  gap:36px;
}

.eyebrow{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
  background:rgba(255,255,255,.14);
}
.hero h1{
  max-width:820px;
  margin:16px 0 10px;
  font-size:clamp(2.3rem,5vw,4.7rem);
  line-height:.98;
  letter-spacing:-2.7px;
}
.hero h1 span{color:#b8fbff}
.hero p{
  max-width:720px;
  margin:0;
  font-size:1.08rem;
  line-height:1.65;
  color:rgba(255,255,255,.9);
}
.hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:22px;
}
.hero-pills span{
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-weight:800;
  font-size:.9rem;
}

.mascot-card{
  justify-self:end;
  max-width:250px;
  padding:22px;
  border-radius:28px;
  text-align:center;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
  transform:rotate(2deg);
}
.mascot{font-size:5rem;filter:drop-shadow(0 15px 12px rgba(0,0,0,.12))}
.mascot-card strong,.mascot-card small{display:block}
.mascot-card strong{font-size:1.15rem}
.mascot-card small{margin-top:5px;color:rgba(255,255,255,.82)}

.container{
  max-width:1250px;
  margin:-24px auto 60px;
  padding:0 22px;
  position:relative;
  z-index:4;
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);
  gap:22px;
  align-items:start;
}

.panel{
  background:var(--card);
  border:1px solid rgba(90,85,247,.08);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:24px;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.section-title>div{
  display:flex;
  align-items:center;
  gap:10px;
}
.section-title h2{margin:0;font-size:1.35rem}
.step{
  display:inline-flex;
  min-width:44px;
  height:32px;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:10px;
  background:#ecebff;
  color:var(--primary);
  font-size:.75rem;
  font-weight:900;
}
.step-pink{background:#ffeaf4;color:#de3b89}
.live-dot{
  color:var(--green);
  font-size:.82rem;
  font-weight:900;
}
.label{
  display:block;
  margin-bottom:9px;
  font-weight:900;
  font-size:.95rem;
}
.label-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.problem-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.problem-card{
  min-height:86px;
  border:2px solid transparent;
  border-radius:18px;
  background:#f7f8ff;
  color:var(--ink);
  cursor:pointer;
  transition:.18s ease;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.problem-card span{font-size:1.55rem}
.problem-card b{font-size:.84rem}
.problem-card small{font-size:.72rem}
.ojo-report-icon{width:1.2em;height:1.2em;vertical-align:-.23em;object-fit:contain}
.ojo-publication-form{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e0e5ef}
.ojo-publication-form .ojo-review-note:empty{display:none}
.problem-card:hover{
  transform:translateY(-2px);
  background:#f1f0ff;
}
.problem-card.active{
  border-color:var(--primary);
  background:#eeedff;
  box-shadow:0 10px 24px rgba(90,85,247,.13);
}

.field{margin-top:22px}

.upload-box{display:block;cursor:pointer}
.photo-preview{
  min-height:165px;
  border:2px dashed #cfd3f7;
  border-radius:20px;
  background:linear-gradient(145deg,#fafaff,#f1f4ff);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  overflow:hidden;
}
.photo-preview.has-image{border-style:solid}
.photo-preview img{
  width:100%;
  height:220px;
  object-fit:cover;
}
.camera{font-size:2.25rem}
.photo-preview small{color:var(--muted)}
.hidden-input{display:none}


.form-alert{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:15px;
  font-weight:900;
  line-height:1.4;
}
.form-alert-error{
  background:#ffe6e9;
  color:#a72333;
  border:1px solid #ffc5cc;
}
.form-alert-success{
  background:#e0f7e9;
  color:#087747;
  border:1px solid #bceccc;
}
.map-help{
  margin:10px 2px 8px;
  color:var(--muted);
  font-size:.8rem;
  line-height:1.4;
}
.gps-btn{
  width:100%;
  border:0;
  border-radius:18px;
  padding:14px 16px;
  background:#effbfd;
  color:var(--ink);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
}
.gps-btn>span{font-size:1.7rem}
.gps-btn strong,.gps-btn small{display:block}
.gps-btn small{margin-top:2px;color:var(--muted)}

.badge{
  padding:5px 9px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:900;
}
.badge-wait{background:#fff4d8;color:#a16b00}
.badge-ok{background:#dbf7e9;color:#087849}
.badge-bad{background:#ffe3e6;color:#b82637}

.mini-map{
  display:block;
  height:190px;
  margin-top:10px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
}

textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  border:2px solid var(--line);
  border-radius:17px;
  padding:14px;
  outline:none;
  color:var(--ink);
  background:#fcfcff;
}
textarea:focus{border-color:#a8a4ff}

#socialUrl{
  width:100%;
  padding:12px 14px;
  border:1px solid #dce1f1;
  border-radius:12px;
  background:#fbfcff;
  color:var(--ink);
}

.ojo-video{margin-top:12px;border:1px solid #dce1f1;border-radius:12px;padding:10px;background:#f4f6ff}
.ojo-video summary{color:#3d36ab;cursor:pointer;font-weight:900}
.ojo-video iframe{display:block;width:100%;height:auto;min-height:200px;aspect-ratio:16 / 9;border:0;border-radius:8px;margin-top:8px;background:#141722}
.ojo-video-portrait iframe{min-height:360px;aspect-ratio:4 / 5}
.ojo-video a{display:inline-block;margin-top:8px;color:#3d36ab;font-size:.87rem;font-weight:800}

.ojo-open-map-video{display:block;margin-top:12px;padding:8px 12px;border:1px solid #dcdafa;border-radius:10px;background:#eeedff;color:#3d36ab;cursor:pointer;font-weight:900;text-align:left}
.ojo-map-video{position:fixed;inset:auto;left:var(--video-left,50%);top:var(--video-top,50%);transform:translate(-50%,-50%);margin:0;width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:14px;border:1px solid #e6e8fa;border-radius:18px;color:#252d52;background:#fff;box-shadow:0 18px 65px #121b5066;overscroll-behavior:contain}
.ojo-map-video.is-portrait{width:min(460px,calc(100% - 24px))}
.ojo-map-video::backdrop{background:#12193199}
body:has(.ojo-map-video[open]){overflow:hidden}
.ojo-map-video-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.ojo-map-video-header h2{font-size:1.15rem;margin:0}
.ojo-map-video iframe{display:block;width:100%;height:auto;min-height:200px;max-height:calc(100dvh - 135px);aspect-ratio:16 / 9;border:0;border-radius:10px;background:#141722}
.ojo-map-video.is-portrait iframe{aspect-ratio:4 / 5}
.ojo-map-video a{display:inline-block;margin-top:9px;color:#3d36ab;font-size:.88rem;font-weight:800}
.counter{
  text-align:right;
  margin-top:5px;
  color:var(--muted);
  font-size:.75rem;
}

.people-options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.people-options input{display:none}
.people-options span{
  display:block;
  padding:8px 13px;
  background:#f7f8ff;
  border:2px solid transparent;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.people-options input:checked + span{
  border-color:var(--primary);
  background:#eeedff;
  color:var(--primary);
}

.submit-btn{
  width:100%;
  margin-top:24px;
  border:0;
  padding:16px;
  border-radius:18px;
  color:white;
  cursor:pointer;
  background:linear-gradient(135deg,var(--primary),#7469ff);
  box-shadow:0 14px 28px rgba(90,85,247,.28);
  transition:.18s ease;
}
.submit-btn:hover{transform:translateY(-2px)}
.submit-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}
.submit-btn span{margin-right:7px}
.privacy-note{
  margin:12px 6px 0;
  color:var(--muted);
  font-size:.78rem;
  text-align:center;
}

.map-panel{
  position:sticky;
  top:18px;
}
.public-map,.municipal-map{
  height:540px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
}
.tiny-btn{
  border:0;
  border-radius:10px;
  padding:7px 10px;
  cursor:pointer;
  background:#f0f0ff;
  color:var(--primary);
  font-weight:900;
}
.legend{
  display:flex;
  flex-wrap:wrap;
  gap:13px;
  margin-top:14px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
}
.dot{
  width:9px;height:9px;
  border-radius:50%;
  display:inline-block;
  margin-right:4px;
}
.red{background:var(--danger)}
.green{background:var(--green)}

.info-card{
  display:flex;
  gap:12px;
  margin-top:16px;
  padding:14px;
  border-radius:16px;
  background:#fff7e5;
}
.info-icon{font-size:1.5rem}
.info-card strong{display:block}
.info-card p{margin:3px 0 0;color:#7d6a42;font-size:.82rem;line-height:1.45}

.toast{
  position:fixed;
  z-index:9999;
  right:24px;
  bottom:24px;
  max-width:360px;
  padding:14px 16px;
  border-radius:15px;
  background:#202646;
  color:white;
  box-shadow:0 18px 45px rgba(20,22,51,.25);
  opacity:0;
  transform:translateY(18px);
  pointer-events:none;
  transition:.25s ease;
}
.toast.show{opacity:1;transform:translateY(0)}
.toast.error{background:#b72e3c}

/* MUNICIPIO */
.municipal-body{background:#f4f6fb}
.municipal-header{
  padding:32px 6vw 26px;
  color:white;
  background:linear-gradient(135deg,#20264b,#3f4c88);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.back-link{
  display:inline-block;
  margin-bottom:12px;
  color:#c8d0ff;
  font-weight:800;
}
.municipal-header h1{margin:0;font-size:2.1rem}
.municipal-header p{margin:6px 0 0;color:#dfe3ff}
.prototype-badge{
  padding:10px 13px;
  border-radius:12px;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.15);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.8px;
}

.municipal-container{
  max-width:1400px;
  margin:24px auto 60px;
  padding:0 22px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:20px;
}
.stat-card{
  min-height:105px;
  padding:18px;
  border-radius:20px;
  display:flex;
  align-items:center;
  gap:14px;
  background:white;
  box-shadow:0 10px 30px rgba(36,42,90,.08);
}
.stat-card>span{
  width:50px;height:50px;
  display:grid;
  place-items:center;
  border-radius:16px;
  font-size:1.45rem;
}
.stat-card small,.stat-card strong{display:block}
.stat-card small{color:var(--muted);font-weight:800}
.stat-card strong{font-size:1.8rem;margin-top:3px}
.stat-red>span{background:#ffe7ea}
.stat-blue>span{background:#e2f7fb}
.stat-green>span{background:#e4f8ee}
.stat-purple>span{background:#eeeaff}

.municipal-layout{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:20px;
  align-items:start;
}
.municipal-map-panel{padding:20px}
.municipal-map{height:650px}
.incident-panel{padding:20px}
.filters select{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background:#fbfbff;
  outline:none;
}
.incident-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
  max-height:590px;
  overflow:auto;
  padding-right:4px;
}
.incident{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background:#fcfcff;
}
.incident-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.incident-title{
  display:flex;
  gap:8px;
  align-items:center;
}
.incident-title b{font-size:.96rem}
.status{
  padding:5px 8px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:900;
  white-space:nowrap;
}
.status.Reportado{background:#ffe4e8;color:#b92d3c}
.status.En-evaluación{background:#fff0cf;color:#996100}
.status.Confirmado{background:#e7e9ff;color:#4b4fc2}
.status.Cuadrilla-enviada{background:#def6fb;color:#08748a}
.status.Solucionado{background:#ddf6e8;color:#087747}
.incident p{
  margin:8px 0;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.4;
}
.incident-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  color:#59607f;
  font-size:.75rem;
  font-weight:800;
}
.incident img{
  width:100%;
  height:170px;
  object-fit:cover;
  border-radius:13px;
  margin-top:10px;
}
.incident select{
  width:100%;
  margin-top:10px;
  padding:8px;
  border-radius:10px;
  border:1px solid var(--line);
  background:white;
}

.leaflet-popup-content-wrapper{border-radius:16px}
.map-popup{min-width:190px}
.map-popup strong{display:block;font-size:.95rem;margin-bottom:5px}
.map-popup small{color:#6d7495}
.map-popup img{
  width:100%;
  max-height:150px;
  object-fit:cover;
  border-radius:9px;
  margin-top:7px;
}

@media (max-width:980px){
  .hero-content,.layout,.municipal-layout{grid-template-columns:1fr}
  .mascot-card{display:none}
  .map-panel{position:static}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:620px){
  .hero{padding:14px 16px 44px;border-radius:0 0 28px 28px}
  .nav-link{font-size:.8rem}
  .brand span:last-child{font-size:.9rem}
  .hero-content{margin-top:34px}
  .hero h1{letter-spacing:-1.7px}
  .container,.municipal-container{padding:0 12px}
  .panel{padding:17px;border-radius:21px}
  .problem-grid{grid-template-columns:repeat(2,1fr)}
  .public-map{height:420px}
  .municipal-map{height:460px}
  .stats-grid{grid-template-columns:1fr 1fr}
  .stat-card{padding:14px}
  .stat-card>span{width:42px;height:42px}
  .stat-card strong{font-size:1.45rem}
  .municipal-header{padding:25px 16px;align-items:flex-start;flex-direction:column}
  .municipal-brand-wrap{align-items:flex-start}
  .municipal-logo{width:64px;height:64px;border-radius:18px}
}


/* Correcciones v2: GPS/manual + mensajes persistentes */
.location-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.manual-location-btn{
  width:100%;border:0;border-radius:18px;padding:14px 16px;background:#f3efff;
  color:var(--ink);cursor:pointer;display:flex;align-items:center;gap:12px;text-align:left
}
.manual-location-btn>span{font-size:1.7rem}
.manual-location-btn strong,.manual-location-btn small{display:block}
.manual-location-btn small{margin-top:2px;color:var(--muted)}
.form-message{display:none;margin-top:22px;padding:13px 14px;border-radius:14px;font-size:.88rem;font-weight:800;line-height:1.45}
.form-message.show{display:block}
.form-message.error{background:#ffe4e8;color:#a92332;border:1px solid #ffc3ca}
.form-message.success{background:#ddf7e9;color:#087747;border:1px solid #b8ebd0}
@media (max-width:620px){.location-actions{grid-template-columns:1fr}}


/* v4: vista inicial mapa + formulario independiente + galería múltiple */
[hidden]{display:none!important}
.ojo-app{min-height:100vh}
.ojo-nav{height:80px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px max(20px,calc((100vw - 1280px)/2));background:linear-gradient(110deg,#2932a8,#6457ee);color:#fff;box-shadow:0 8px 26px rgba(39,45,117,.14)}
.ojo-brand{display:flex;align-items:center;gap:12px;font-size:1.55rem;font-weight:900;line-height:1}
.ojo-brand-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:18px;background:#ffffff2b;font-size:1.6rem}

.ojo-brand-logo{width:50px;height:50px;border-radius:18px;object-fit:cover;box-shadow:0 6px 18px rgba(11,20,74,.18);background:#ffffff1e;flex:0 0 auto}
.municipal-brand-wrap{display:flex;align-items:center;gap:16px}
.municipal-logo{width:82px;height:82px;border-radius:24px;object-fit:cover;box-shadow:0 16px 36px rgba(9,15,54,.22);background:rgba(255,255,255,.08);flex:0 0 auto}
.ojo-brand em{font-style:normal;color:#acfbff}
.ojo-brand small{display:block;margin-top:6px;color:#e2e9ff;font-size:.66rem;letter-spacing:.2px;font-weight:700}
.ojo-nav-actions{display:flex;align-items:center;gap:12px}
.ojo-muni-link{font-size:.9rem;font-weight:800;color:#fff}
.ojo-top-report{border:0;border-radius:15px;background:#fff;color:#433aca;padding:11px 16px;font-weight:900;cursor:pointer}
.ojo-main{max-width:1320px;margin:0 auto;padding:20px 18px 64px}
.ojo-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 5px 18px}
.ojo-map-toolbar h1{font-size:clamp(1.45rem,3vw,2.25rem);letter-spacing:-.6px;margin:5px 0}
.ojo-map-toolbar p{margin:0;color:var(--muted);font-size:.92rem}
.ojo-overline{font-size:.72rem;font-weight:900;color:#5b55e2;letter-spacing:1.2px}
.ojo-stats{min-width:150px;text-align:center;padding:12px 20px;background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:0 6px 22px #3333760f}
.ojo-stats b{display:block;font-size:1.65rem;line-height:1;color:#4b46df}
.ojo-stats span{font-size:.72rem;color:var(--muted);font-weight:800}
.ojo-map-stage{position:relative;background:#fff;padding:12px;border-radius:25px;border:1px solid var(--line);box-shadow:var(--shadow)}
.ojo-big-map{height:min(72vh,790px);min-height:450px;border-radius:17px;overflow:hidden;background:#e8f6f4}
.ojo-map-actionbar{position:absolute;z-index:550;left:26px;top:26px;display:flex;gap:8px;flex-wrap:wrap;pointer-events:none}
.ojo-map-actionbar button{pointer-events:auto;border:1px solid #e5e7fb;background:#fff;color:#29325e;border-radius:12px;padding:10px 13px;box-shadow:0 4px 14px #0002;font-weight:900;cursor:pointer}
.ojo-map-actionbar .ojo-location-map{background:#eeecff;color:#4b46d8}
.ojo-map-legend{display:flex;gap:14px;position:absolute;bottom:24px;right:26px;z-index:550;background:#fff;padding:10px 13px;border-radius:12px;box-shadow:0 4px 12px #0001;font-size:.8rem;font-weight:900;color:#495071;pointer-events:none}
.ojo-map-feedback{margin:14px 6px;color:#196b4a;font-weight:900;min-height:20px;text-align:center}
.ojo-report-float{position:fixed;right:28px;bottom:25px;z-index:800;padding:17px 25px;border-radius:20px;background:linear-gradient(125deg,#5c4bf3,#12b7d9);border:3px solid white;box-shadow:0 14px 32px #4244a75c;color:#fff;font-size:1rem;font-weight:900;cursor:pointer}
.ojo-report-view{max-width:1170px;margin:0 auto}
.ojo-report-header{margin:6px 2px 20px}
.ojo-report-header h1{font-size:clamp(1.7rem,4vw,2.7rem);margin:5px 0;letter-spacing:-1px}
.ojo-report-header p{margin:4px 0;color:var(--muted)}
.ojo-back{display:block;margin:0 0 22px;border:0;background:#e9e8ff;color:#4d45d6;padding:10px 14px;border-radius:13px;font-weight:900;cursor:pointer}
.ojo-report-wrap{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}
.ojo-form{max-width:none}
.ojo-form>.field:first-child{margin-top:0}
.ojo-tag{color:#564bda;background:#efedff;padding:5px 10px;font-size:.78rem;font-weight:900;border-radius:10px}
.ojo-hint{font-size:.82rem;color:#666f93;line-height:1.5;margin:8px 0 12px}
.ojo-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ojo-photo-pick{border:2px solid #dfe1fa;background:#f8f9ff;color:#252c57;border-radius:19px;padding:16px 10px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:1.6rem}
.ojo-photo-pick b{font-size:.9rem}.ojo-photo-pick small{font-size:.73rem;color:var(--muted)}
.ojo-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-top:12px}
.ojo-photos-empty{padding:18px;border-radius:14px;background:#f8f9ff;color:#6c7496;text-align:center;grid-column:1/-1;font-size:.85rem}
.ojo-photo-item{position:relative;border-radius:15px;overflow:hidden;background:#eff0fa;border:1px solid #e8e9f7}
.ojo-photo-item img{display:block;width:100%;height:122px;object-fit:cover}
.ojo-photo-item button{position:absolute;top:5px;right:5px;border:0;background:#111c38dd;color:#fff;border-radius:50%;width:30px;height:30px;cursor:pointer;font-weight:900}
.ojo-photo-item small{display:block;text-align:center;padding:5px;color:#5f6588;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ojo-location-controls{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}
.ojo-location-button{background:#edfbfb;color:#23445d;border:1px solid #bdebee;border-radius:12px;padding:11px 12px;font-weight:900;cursor:pointer}
.ojo-location-button.secondary{background:#f1f0ff;border-color:#dedaff;color:#4b47ba}
.ojo-place-map{height:345px;width:100%;border-radius:19px;overflow:hidden;border:2px solid #dce0fb;background:#e9f5ed;touch-action:pan-x pan-y}
.ojo-location-help{font-size:.84rem;font-weight:800;color:#646b8a;padding:6px 0;margin:7px 0}
.ojo-sidecard{border-radius:25px;background:linear-gradient(150deg,#5a4fec,#10afcc);color:#fff;padding:27px;box-shadow:0 15px 38px #5153be30;position:sticky;top:20px}
.ojo-sideemoji{font-size:3rem}.ojo-sidecard h2{line-height:1.2}.ojo-sidecard p{line-height:1.6;color:#f5f4ff}.ojo-sidecard div:last-child{line-height:2;font-weight:900}
.ojo-form .form-message{display:none;margin-top:18px;padding:14px;border-radius:14px;font-weight:900;line-height:1.45}
.ojo-form .form-message.show{display:block}
.ojo-form .form-message.error{background:#ffe5e8;color:#ab2434;border:1px solid #ffc3cd}
.ojo-form .form-message.success{background:#def8e9;color:#166f46;border:1px solid #beeccc}
.map-popup img{max-height:140px;object-fit:cover}
.ojo-popup-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px;max-height:225px;overflow:auto}
.ojo-popup-gallery a img{margin:0;width:100%;height:73px;object-fit:cover;border-radius:7px}
.municipal-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.municipal-photo-grid a img{margin:0;width:100%;height:95px;object-fit:cover;border-radius:10px}
@media (max-width:900px){.ojo-report-wrap{grid-template-columns:1fr}.ojo-sidecard{display:none}.ojo-big-map{height:68vh}}
@media (max-width:620px){
 .ojo-nav{height:71px;padding:10px 12px}.ojo-brand{font-size:1.2rem}.ojo-brand-icon{width:39px;height:39px;font-size:1.2rem}.ojo-brand-logo{width:39px;height:39px;border-radius:14px}.ojo-brand small{font-size:.53rem}
 .ojo-muni-link{font-size:.72rem}.ojo-top-report{padding:9px 10px;font-size:.75rem}.ojo-nav-actions{gap:7px}
 .ojo-main{padding:13px 9px 80px}.ojo-map-toolbar{align-items:start;gap:8px}.ojo-map-toolbar h1{font-size:1.3rem}.ojo-map-toolbar p{font-size:.76rem}
 .ojo-stats{min-width:88px;padding:10px 8px}.ojo-stats b{font-size:1.25rem}.ojo-stats span{font-size:.62rem}
 .ojo-big-map{height:calc(100dvh - 240px);min-height:360px}.ojo-map-stage{padding:6px;border-radius:18px}
 .ojo-map-actionbar{top:12px;left:11px;right:10px}.ojo-map-actionbar button{padding:8px;font-size:.75rem}
 .ojo-map-legend{bottom:14px;right:13px;font-size:.7rem}.ojo-report-float{left:15px;right:15px;bottom:12px;text-align:center;border-radius:16px;padding:14px 17px}
 .ojo-form{padding:16px}.ojo-photo-actions{gap:7px}.ojo-photo-pick{padding:12px 7px}.ojo-place-map{height:310px}
 .ojo-report-header h1{font-size:1.65rem}
}


/* Control de acceso y moderación */
.ojo-login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(140deg,#e9efff,#f8f9ff)}
.ojo-login-card{width:min(100%,460px);border-radius:28px;padding:28px;background:#fff;box-shadow:0 22px 50px #15245b25;text-align:center}
.ojo-login-logo{width:110px;height:110px;object-fit:cover;border-radius:28px}
.ojo-login-card h1{margin:12px 0 4px}
.ojo-login-card p{color:#66708e;line-height:1.45}
.ojo-login-card form{text-align:left;display:grid;gap:9px;margin-top:18px}
.ojo-login-card label{font-weight:900;font-size:.9rem}
.ojo-login-card input{border:1px solid #cfd5e8;border-radius:12px;padding:12px;background:#fff;color:#1f2544;width:100%}
.ojo-login-card form button{border:0;border-radius:12px;padding:13px;color:#fff;background:#5854ee;font-weight:900;cursor:pointer;margin-top:8px}
.ojo-login-card a{display:inline-block;margin-top:14px;color:#4846b8;font-weight:800}
.ojo-login-card .ojo-login-help{font-size:.8rem}
.ojo-login-error{padding:11px;color:#9d2636;background:#ffe5e8;border-radius:12px;font-weight:800}
.municipal-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.ojo-logout{border:1px solid #d9defb;color:#fff;background:#ffffff20;border-radius:12px;padding:10px 14px;font-weight:800;cursor:pointer}
.ojo-review-panel{margin-bottom:22px}
.ojo-manage-panel{margin-bottom:22px}
.ojo-manage-panel summary{cursor:pointer}
.ojo-manage-panel summary h2{display:inline;font-size:1.28rem;margin-left:6px}
.ojo-manage-panel [role="status"]:empty{display:none}
.ojo-manage-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.ojo-manage-actions .ojo-delete-report{color:#96223c;background:#fff3f5;border:1px solid #e9b6c1}
.ojo-manage-actions button:disabled{opacity:.5;cursor:default}
.ojo-manage-list{border:1px solid #dce1f1;border-radius:12px;margin:12px 0;padding:6px 12px;min-width:0}
.ojo-manage-list legend{padding:0 6px;color:#48546f;font-size:.87rem;font-weight:800}
.ojo-manage-report{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:11px 4px;cursor:pointer}
.ojo-manage-report + .ojo-manage-report{border-top:1px solid #e4e8f2}
.ojo-manage-report :is(small,span span){display:block;margin-top:3px;color:#515c78;overflow-wrap:anywhere}
.ojo-review-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ojo-review-header h2{margin:0 0 5px;font-size:1.28rem}
.ojo-review-header p{margin:0;color:#68708e;font-size:.87rem}
.ojo-pending-count{padding:8px 12px;background:#fff1d7;color:#996300;border-radius:12px;font-weight:900;white-space:nowrap}
.ojo-review-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:15px 0 10px}
.ojo-review-tools label{font-weight:900}
.ojo-review-tools select{padding:10px;border:1px solid #dce1f1;background:#fff;border-radius:12px;max-width:100%}
.ojo-review-note{padding:10px 14px;background:#edf6ff;color:#3c587d;border-radius:12px;font-size:.82rem;line-height:1.5}
.ojo-review-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:14px;margin-top:15px}
.ojo-review-item{border:1px solid #e1e4f5;border-radius:18px;padding:15px;background:#fcfcff;min-width:0}
.ojo-review-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ojo-review-item h3{margin:0;font-size:1rem}
.ojo-review-item p{font-size:.86rem;line-height:1.5;color:#515c78}
.ojo-review-meta{font-size:.76rem;color:#6b7390}
.ojo-review-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(126px,1fr));gap:8px;margin:12px 0}
.ojo-review-photo{padding:8px;background:#f3f6fd;border-radius:14px;border:1px solid #e5eafd}
.ojo-review-photo img{height:130px;width:100%;object-fit:cover;border-radius:10px}
.ojo-review-photo small{display:block;font-weight:800;color:#626a86;margin:6px 0}
.ojo-review-photo-actions,.ojo-review-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.ojo-action{border:0;border-radius:10px;padding:8px 10px;font-weight:900;cursor:pointer;font-size:.8rem}
.ojo-action.allow{background:#dcf6e8;color:#057349}
.ojo-action.deny{background:#ffe3e8;color:#af2439}
.ojo-action:disabled{opacity:.4;cursor:not-allowed}
.ojo-review-state{display:inline-block;padding:5px 8px;border-radius:10px;background:#eeeafc;color:#5549b7;font-size:.72rem;font-weight:900}
.ojo-empty-review{background:#f8faff;color:#6b7390;padding:22px;border-radius:16px}
@media(max-width:650px){.ojo-login-card{padding:20px}.ojo-review-panel{padding:16px}}


/* v7: marcadores visibles, selección de zona y conversación lateral */
.ojo-explore-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:15px;align-items:stretch}
.ojo-explore-layout .ojo-map-stage{min-width:0}
.ojo-zone-panel{background:white;border:1px solid #e6e8fa;border-radius:24px;box-shadow:0 14px 42px #343b7615;min-width:0;max-height:min(75vh,820px);overflow-y:auto;padding:19px;scrollbar-width:thin}
.ojo-zone-empty{color:#626987;text-align:center;padding:55px 10px}
.ojo-zone-empty-icon{font-size:3.5rem}
.ojo-zone-empty h2{color:#252d52;margin:12px 0 8px;font-size:1.3rem}
.ojo-zone-empty p{font-size:.91rem;line-height:1.5}
.ojo-zone-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:1px solid #e9ebf6;padding-bottom:12px}
.ojo-zone-detail-head h2{margin:7px 0 0;font-size:1.25rem;line-height:1.2}
.ojo-zone-close{border:0;background:#f0f0fa;color:#4b4c75;border-radius:11px;font-size:1.8rem;line-height:1;cursor:pointer;width:38px;height:38px;flex:0 0 auto}
.ojo-zone-summary{display:grid;gap:9px;padding:15px 0}
.ojo-zone-count{background:#eeedff;border-radius:14px;padding:12px 15px;color:#4a45ae;display:flex;align-items:center;gap:11px}
.ojo-zone-count strong{font-size:2rem;line-height:1}
.ojo-zone-count span{font-weight:900;font-size:.89rem}
.ojo-zone-status{background:#f6f8fd;padding:10px 12px;border-radius:12px;font-size:.84rem}
.ojo-zone-date{color:#616982;font-size:.81rem;font-weight:800}
.ojo-zone-summary small{color:#7a8299;font-size:.73rem;line-height:1.45}
.ojo-zone-timeline-title{margin:8px 0 11px;font-size:.94rem}
.ojo-zone-timeline{display:flex;flex-direction:column;gap:11px}
.ojo-zone-entry{border:1px solid #e5e8f7;border-radius:15px;background:#fbfcff;padding:12px;word-break:break-word}
.ojo-entry-date{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;font-size:.77rem}
.ojo-entry-date b{color:#343e68}.ojo-entry-date time{color:#717b9c}
.ojo-zone-entry p{font-size:.89rem;line-height:1.45;color:#38415d;margin:11px 0}
.ojo-entry-state{display:inline-block;color:#645ab6;background:#edecff;border-radius:9px;font-size:.7rem;padding:5px 8px;font-weight:900}
.ojo-zone-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:10px}
.ojo-zone-gallery img{width:100%;height:75px;object-fit:cover;border-radius:8px;background:#f5f6fc}
.ojo-marker-shell{background:transparent;border:0}
.ojo-marker{position:relative;display:grid;place-items:center;width:45px;height:45px;background:var(--marker-color);border:3px solid #fff;border-radius:15px;box-shadow:0 6px 18px #20285455;color:white;font-size:24px;cursor:pointer}
.ojo-marker::after{content:'';position:absolute;bottom:-6px;left:17px;width:8px;height:8px;transform:rotate(45deg);background:var(--marker-color);border-right:2px solid white;border-bottom:2px solid white}
.ojo-marker-count{position:absolute;right:-8px;top:-9px;background:#182d63;border:2px solid white;border-radius:999px;min-width:24px;height:24px;padding:0 4px;color:white;font-size:12px;display:grid;place-items:center}
@media(max-width:1100px){.ojo-explore-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:900px){.ojo-explore-layout{display:block}.ojo-zone-panel{display:none}.ojo-zone-panel.is-open{display:block;position:fixed;left:0;right:0;bottom:0;z-index:1100;max-height:66dvh;border-radius:24px 24px 0 0;box-shadow:0 -16px 50px #121b5066;overscroll-behavior:contain}.ojo-zone-empty{display:none}}
@media(max-width:620px){.ojo-zone-panel{padding:16px}.ojo-zone-gallery img{height:80px}.ojo-zone-detail-head h2{font-size:1.2rem}}

/* v8: el primer registro fotográfico se ve grande en el panel de la zona */
.ojo-zone-gallery a:first-child{grid-column:1/-1}
.ojo-zone-gallery a:first-child img{height:170px}
.ojo-zone-entry{box-shadow:0 5px 16px rgba(37,45,82,.05)}
@media(max-width:620px){.ojo-zone-gallery a:first-child img{height:190px}}

.ojo-photo-public{display:flex;flex-direction:column;gap:4px}.ojo-denuncia{background:#fff1f1;color:#9e2638;border:1px solid #df9faa;border-radius:7px;padding:7px;cursor:pointer;font-weight:700}.ojo-review-photo small{overflow-wrap:anywhere}

.ojo-admin-permisos{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;max-width:100%;border:1px solid #dfe5f0;border-radius:10px;padding:8px 12px;margin:0}
.ojo-admin-permisos label{display:inline-flex;align-items:center;gap:5px}
#createAdminForm .ojo-admin-permisos{flex-basis:100%}
.ojo-admin-card{padding:10px 0;border-bottom:1px solid #dfe5f0}
.ojo-admin-card p{margin:0 0 8px;overflow-wrap:anywhere}
.ojo-admin-card summary{cursor:pointer}
.ojo-admin-card form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.ojo-admin-actions{display:flex;gap:8px;margin-top:8px}
