@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800;900&display=swap');

:root{
  --bg:#f7f3eb;
  --bg2:#eef8f1;
  --card:#ffffff;
  --ink:#182d21;
  --muted:#657568;
  --soft:#f4faf5;
  --soft2:#ecf7ee;
  --green:#256b3d;
  --green2:#50a66a;
  --green3:#77c488;
  --line:#dfeade;
  --danger:#b42318;
  --danger-bg:#fff1f0;
  --shadow:0 26px 70px rgba(24,45,33,.13);
  --shadow2:0 14px 34px rgba(37,107,61,.18);
  --radius:30px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Manrope,Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(139,210,151,.30), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255,223,167,.34), transparent 28%),
    linear-gradient(135deg,#f2fbf4 0%,#fffaf1 48%,#f8f5ee 100%);
  min-height:100vh;
}
a{color:inherit;text-decoration:none}
button,input,textarea{font-family:inherit}

.wrap{width:min(1120px,92%);margin:0 auto}
.hero{padding:32px 0 20px}
.compact{max-width:1120px}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  font-weight:900;
}
.brand img{
  width:58px;
  height:58px;
  object-fit:contain;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 28px rgba(73,37,76,.12);
}
.brand strong{font-size:21px;letter-spacing:-.02em}
.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 15px;
  border-radius:999px;
  background:rgba(236,247,238,.92);
  border:1px solid rgba(37,107,61,.08);
  color:var(--green);
  font-weight:900;
  font-size:13px;
  box-shadow:0 8px 20px rgba(37,107,61,.06);
}

.single-panel{
  position:relative;
  overflow:hidden;
  width:min(900px,100%);
  margin:28px auto 0;
  padding:28px;
  border-radius:34px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(37,107,61,.10);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}
.single-panel:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:8px;
  background:linear-gradient(90deg,#efd0ff,#b7edc1,#ffe4b6);
}
.single-panel.narrow{max-width:680px}
.panel-head{
  text-align:center;
  padding:12px 12px 8px;
}
.panel-head h1{
  margin:18px auto 12px;
  max-width:780px;
  color:#183721;
  font-size:clamp(31px,4.6vw,54px);
  line-height:1.05;
  letter-spacing:-.055em;
}
.panel-head p{
  margin:0 auto;
  max-width:760px;
  color:var(--muted);
  font-size:clamp(15px,2vw,18px);
  line-height:1.65;
}

.pro-form{
  display:grid;
  gap:20px;
  margin-top:22px;
}
.form-section,
.form-grid-2>div{display:grid;gap:9px}
.label-title,
.pro-form label{
  font-weight:900;
  color:#203927;
  letter-spacing:-.02em;
}
.pro-form textarea,
.pro-form input:not([type="radio"]):not([type="file"]),
.pro-form select{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:18px;
  padding:15px 16px;
  font-size:15px;
  outline:none;
  transition:border-color .16s, box-shadow .16s, transform .16s;
}
.pro-form textarea{
  min-height:112px;
  resize:vertical;
  line-height:1.5;
}
.pro-form textarea:focus,
.pro-form input:focus,
.pro-form select:focus{
  border-color:var(--green2);
  box-shadow:0 0 0 5px rgba(80,166,106,.14);
}
.form-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.animal-picker{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.animal-picker input{position:absolute;opacity:0;pointer-events:none}
.animal-picker span{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:22px;
  border:2px solid #e1ece2;
  background:linear-gradient(180deg,#fff,#f7fbf7);
  font-weight:950;
  cursor:pointer;
  transition:.18s ease;
  box-shadow:0 8px 18px rgba(24,45,33,.04);
}
.animal-picker label:hover span{transform:translateY(-1px);border-color:#b9dbbf}
.animal-picker input:checked+span{
  background:linear-gradient(135deg,#eaf8ee,#ffffff);
  border-color:var(--green2);
  color:var(--green);
  box-shadow:0 14px 28px rgba(80,166,106,.18);
}

.geo-card{
  padding:18px;
  border-radius:28px;
  border:1px solid #dbe9dd;
  background:linear-gradient(180deg,#f8fdf9,#ffffff);
  box-shadow:0 12px 26px rgba(24,45,33,.05);
}
.geo-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.geo-state{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  color:#203927;
}
.pulse{
  width:12px;
  height:12px;
  flex:none;
  border-radius:50%;
  background:#f79009;
  box-shadow:0 0 0 7px rgba(247,144,9,.13);
}
.pulse.ok{background:#12b76a;box-shadow:0 0 0 7px rgba(18,183,106,.15)}
.mapbox{
  height:260px;
  overflow:hidden;
  border-radius:24px;
  border:1px solid var(--line);
  background:
    linear-gradient(135deg,rgba(37,107,61,.08),rgba(255,255,255,.65)),
    #e8f0ea;
}
.mapbox iframe{display:block}
.map-placeholder{
  height:100%;
  display:grid;
  place-items:center;
  text-align:center;
  color:#708176;
  font-weight:900;
  padding:20px;
}
.coords{
  margin-top:11px;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.5;
}
.coords b{color:var(--green)}

.uploader{
  border:2px dashed #b9d9bd;
  background:linear-gradient(180deg,#fbfffb,#ffffff);
  border-radius:28px;
  padding:16px;
}
.add-file{
  min-height:120px;
  display:grid;
  place-items:center;
  text-align:center;
  border-radius:22px;
  border:1px solid #e0ece2;
  background:
    radial-gradient(circle at top left,rgba(185,237,196,.38),transparent 36%),
    #fff;
  cursor:pointer;
  transition:.18s ease;
}
.add-file:hover{transform:translateY(-1px);border-color:var(--green2);box-shadow:0 14px 28px rgba(37,107,61,.09)}
.add-file strong{display:block;font-size:17px;color:var(--green)}
.hint{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:5px}
.file-input{display:none!important}
.grid-preview{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:12px;
  margin-top:14px;
}
.file-tile{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid #e2ece4;
  background:#fff;
  box-shadow:0 10px 24px rgba(24,45,33,.08);
}
.file-tile img,.file-tile video{
  display:block;
  width:100%;
  height:138px;
  object-fit:cover;
  background:#edf3ee;
}
.tile-body{padding:11px}
.tile-body b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.tile-body small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.remove-x{
  position:absolute;
  top:9px;
  right:9px;
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:rgba(180,35,24,.94);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(180,35,24,.24);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:18px;
  padding:14px 18px;
  background:linear-gradient(135deg,var(--green),var(--green2));
  color:#fff;
  font-weight:950;
  cursor:pointer;
  box-shadow:var(--shadow2);
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px);filter:saturate(1.05)}
.btn.full{width:100%}
.btn.big{padding:18px 22px;font-size:16px;border-radius:20px}
.btn.secondary{
  background:#fff;
  color:var(--green);
  border:1px solid #cfe4d1;
  box-shadow:none;
}
.btn.small{padding:10px 13px;border-radius:14px;font-size:13px}
.btn.danger{background:var(--danger-bg);color:var(--danger);border:1px solid #ffcdc9;box-shadow:none}

.footer{
  width:min(900px,92%);
  margin:24px auto 0;
  padding:22px 0 30px;
  color:var(--muted);
  text-align:center;
  font-weight:600;
  line-height:1.5;
}

/* reporte/admin/mapa */
.info{display:grid;gap:12px}.info-row{background:#f7fbf7;border:1px solid #dceadd;border-radius:18px;padding:14px}.info-row b{display:block;color:#173b27;margin-bottom:5px}.report-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.report-media img,.report-media video{width:100%;border-radius:20px;border:1px solid var(--line);background:#000;box-shadow:0 10px 22px rgba(0,0,0,.08)}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:13px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}.admin-table th{color:#496154}.badge{display:inline-block;border-radius:999px;padding:6px 10px;background:#edf7ef;color:#1f6f43;font-weight:800;font-size:12px}.badge.state-urgente{background:#ffe7e2;color:#9d2b19}.filters,.map-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.filter.active{background:#397a49;color:white}.map-panel{max-width:1100px}#communityMap{height:650px;border-radius:28px;overflow:hidden;border:1px solid #dfe9e2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}.emoji-marker span{display:grid;place-items:center;width:42px;height:42px;background:white;border:2px solid #4f9b60;border-radius:50%;box-shadow:0 8px 22px rgba(0,0,0,.25);font-size:23px}.popup{width:220px}.popup img{width:100%;height:110px;object-fit:cover;border-radius:12px;margin-bottom:8px}.popup b{display:block;color:#1f3f29}.popup p{margin:6px 0}.popup a{display:block;margin-top:8px;font-weight:900;color:#3c834d}.success{background:#ecfdf3;border:1px solid #abefc6;color:#067647;padding:14px;border-radius:16px}.error{background:#fef3f2;border:1px solid #fecdca;color:var(--danger);padding:14px;border-radius:16px}

@media(max-width:860px){
  .topbar{align-items:flex-start;flex-wrap:wrap}
  .top-actions{width:100%;justify-content:center}
  .single-panel{padding:22px;border-radius:28px;margin-top:18px}
  .form-grid-2{grid-template-columns:1fr}
  .mapbox{height:230px}
}
@media(max-width:640px){
  .hero{padding-top:18px}
  .wrap{width:min(100% - 28px,1120px)}
  .brand img{width:50px;height:50px;border-radius:16px}
  .brand strong{font-size:18px}
  .chip{font-size:12px;padding:8px 12px}
  .panel-head{padding:4px 0 0}
  .panel-head h1{font-size:34px}
  .panel-head p{font-size:15px}
  .animal-picker{grid-template-columns:1fr}
  .animal-picker span{min-height:58px}
  .geo-top{align-items:flex-start;flex-direction:column}
  .geo-top .btn{width:100%}
  .mapbox{height:220px;border-radius:20px}
  .grid-preview{grid-template-columns:1fr}
  .btn.big{font-size:14px;padding:16px}
  #communityMap{height:520px}
  .admin-table{display:block;overflow:auto}
}

/* Cámara + subida individual */
.media-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.add-file.mini{
  min-height:112px;
  padding:18px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px solid rgba(50,105,60,.18);
  border-radius:24px;
  background:linear-gradient(145deg,#ffffff,#f4faf3);
  box-shadow:0 14px 34px rgba(25,70,35,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.add-file.mini:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(25,70,35,.14);
  border-color:rgba(63,126,73,.34);
}
.add-file.mini strong{display:block;font-size:1.05rem;color:#24462b;margin-bottom:5px;}
.add-file.mini .hint{display:block;font-size:.86rem;color:#66766a;}
button[disabled], .btn[disabled]{opacity:.72;cursor:not-allowed;}
@media(max-width:720px){
  .media-actions{grid-template-columns:1fr;gap:10px;}
  .add-file.mini{min-height:88px;}
}
