:root {
  --primary: #2e7d32;
  --secondary: #a5d6a7;
  --light: #f9f9f9;
  --dark: #333;
}

/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Restaurar margen entre párrafos */
p {
  margin-bottom: 1rem;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.5;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

main {
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.card {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fullwidth {
  padding-bottom: 0;
}

h2 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Imágenes agrandadas 150% */
.feature {
  width: 100%;
  max-width: 375px; /* antes 250px, ahora +50% */
  border-radius: 8px;
}

#map-section {
  position: relative;
}

#map {
  width: 100%;
  height: 50vh;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

#controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#controls button,
#reportForm button,
#export-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#controls button:hover,
#reportForm button:hover,
#export-btn:hover {
  background: var(--dark);
}

#reportForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#reportForm textarea {
  resize: vertical;
  min-height: 60px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#reportForm button {
  margin-bottom: 1rem; /* espacio inferior para no pegarse al borde */
}

#report-list {
  list-style: none;
}

#report-list li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #f9f9f9;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* ===== Estilos galería ===== */
#galleryModal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
#galleryModal.active {
  display: flex;
}
#galleryImg {
  max-width: 90%;
  max-height: 70vh;
  border-radius: 8px;
}
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-controls button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}
.gallery-controls button:hover {
  background: var(--dark);
}
.modal-close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
.modal-close:hover {
  color: #bbb;
}

/* ===== Captcha + Exportación ===== */
.export-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0 1rem;
}

.captcha-label {
  flex-basis: 100%;  /* la etiqueta ocupa toda la fila */
}

.captcha-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#export-btn {
  flex: none;
  padding: 0.6rem 1rem;
}

/* ===== Botón genérico .btn (Galería de fotos, etc.) ===== */
.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  margin: 1rem auto;
}

.btn:hover {
  background: var(--dark);
}

/* En móviles: input y botón en columna */
@media (max-width:600px) {
  .grid { flex-direction: column; }
  #controls { flex-direction: column; }
  #galleryImg { max-width: 100%; max-height: 60vh; }
  .gallery-controls button { width: 36px; height: 36px; font-size: 1rem; }

  .export-block {
    flex-direction: column;
    align-items: stretch;
  }
  .captcha-input,
  #export-btn {
    width: 100%;
  }
}
/* ===== Instrucciones: pasos guiados ===== */
.instructions{
  background:#f0f8ff;
  border:1px solid #cce;
  border-radius:8px;
  padding:1rem;
  margin:1rem 0;
}
.instructions h3{
  margin:0 0 .8rem;
  font-size:1.1rem;
  color:var(--primary);
}
.step{
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  margin-bottom:.75rem;
}
.step:last-child{ margin-bottom:0; }
.step-icon{
  flex:0 0 28px;
  width:28px; height:28px;
  line-height:28px;
  text-align:center;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  font-weight:700;
}
.step p{ margin:0; line-height:1.5; }

@media (max-width:600px){
  .step-icon{ width:26px; height:26px; line-height:26px; }
}
.links-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.links-list li {
  margin-bottom: 0.5rem;
}

.links-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.links-list a:hover {
  color: var(--dark);
  text-decoration: none;
}
.donate-block {
  text-align: center;
  margin-bottom: 1rem;
}

.btn-donate {
  background: #0070ba; /* color oficial PayPal */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-donate:hover {
  background: #005ea6;
}
.donate-block {
  text-align: center;
  margin-bottom: 1rem;
}

.donate-text {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #444;
}
/* Ajustes de listas solo para páginas legales */
.legal-page .card ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.legal-page .card li {
  margin-bottom: 0.5rem;
}


/* --- Toast: Ubicación reportada --- */
#toast-ubicacion {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}
#toast-ubicacion.visible { opacity: 1; }
