@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');
/* ── Variables ─────────────────────────────── */
:root {
  --verde-oscuro: #093a27;
  --verde-medio: #0b6b39;
  --verde-claro: #5fe254;
  --verde-hover: #4ecc44;
  --beige: #f5f0e8;
  --gris-fondo: #f7f7f5;
  --gris-borde: #ddd;
  --texto: #1a1a1a;
  --texto-suave: #666;
  --radio: 12px;
  --sombra: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--gris-fondo);
  color: var(--texto);
}

.hero-reportar {
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
  color: white;
  text-align: center; 
  padding: 32px 24px 28px;
  position: relative;
  overflow: hidden;
  
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-reportar::before {
  content: '';
  position: absolute;
  top: -40px; 
  right: -40px;
  width: 200px; 
  height: 200px;
  border-radius: 50%;
  background: rgba(95, 226, 84, 0.08);
  pointer-events: none;
  opacity: 1; 
}
.hero-reportar-inner {
  max-width: 740px; 
  width: 100%;
  margin: 0 auto;
}
.hero-reportar h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  text-transform: none; 
  
}

.hero-reportar p {
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8); 
  margin-top: 0;
}

/* ── CONTENEDOR PRINCIPAL ──────────────────── */
.contenedor-reporte {
  max-width: 780px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── TARJETA SECCIÓN ───────────────────────── */
.seccion-card {
  background: white;
  border-radius: var(--radio);
  padding: 32px;
  box-shadow: var(--sombra);
}

.seccion-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde-oscuro);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--verde-claro);
  display: inline-block;
}

/* ── CAMPO GENÉRICO ────────────────────────── */
.campo {
  margin-bottom: 20px;
}

.campo:last-child { margin-bottom: 0; }

.campo label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--verde-oscuro);
  margin-bottom: 8px;
}

.campo input[type="text"],
.campo textarea,
.campo select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
  color: var(--texto);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.campo input[type="text"]:focus,
.campo textarea:focus,
.campo select:focus {
  border-color: var(--verde-claro);
  box-shadow: 0 0 0 3px rgba(95,226,84,0.15);
  background: white;
}

.campo textarea { resize: vertical; min-height: 100px; }

/* ── MAPA ──────────────────────────────────── */
#mini-mapa {
  height: 340px;
  border-radius: 10px;
  border: 1.5px solid var(--gris-borde);
  margin-top: 10px;
  overflow: hidden;


}

.coords-ok {
  font-size: 0.8rem;
  color: var(--verde-medio);
  margin-top: 6px;
  font-weight: 600;
  display: none;
}

/* ── TIPOS DE RESIDUO (iconos) ─────────────── */
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.tipo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--gris-borde);
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--texto-suave);
  text-align: center;
  line-height: 1.3;
}

.tipo-btn:hover {
  border-color: var(--verde-claro);
  background: #f0fdf0;
  color: var(--verde-oscuro);
}

.tipo-btn.seleccionado {
  border-color: var(--verde-medio);
  background: #e8f8e8;
  color: var(--verde-oscuro);
}

.tipo-btn .icono {
  font-size: 1.8rem;
}

.icono-svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Select oculto vinculado */
#tipo-residuo { display: none; }
#contenedor-material { margin-top: 16px; }

/* ── SLIDER DE RIESGO ──────────────────────── */
.riesgo-wrapper {
  margin-top: 4px;
}

.slider-riesgo {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #5fe254, #f0c040, #e25454);
  outline: none;
  cursor: pointer;
  margin: 12px 0 6px;
}

.slider-riesgo::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--verde-medio);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: border-color 0.2s;
}

.slider-riesgo::-webkit-slider-thumb:hover {
  border-color: var(--verde-claro);
}

.labels-riesgo {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--texto-suave);
  font-weight: 600;
}

.riesgo-desc {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  background: #f0fdf0;
  color: var(--verde-oscuro);
  border-left: 3px solid var(--verde-claro);
  display: none;
}

/* ── FOTOS ─────────────────────────────────── */
.fotos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.foto-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--gris-borde);
  border-radius: 10px;
  padding: 20px 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
  font-size: 0.78rem;
  color: var(--texto-suave);
  font-weight: 600;
  text-align: center;
}

.foto-label:hover {
  border-color: var(--verde-claro);
  background: #f0fdf0;
  color: var(--verde-oscuro);
}

.foto-label .icono-foto { font-size: 1.6rem; }

.foto-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}

.foto-preview {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  display: none;
}

/* ── BOTÓN ENVIAR ──────────────────────────── */
.btn-enviar {
  width: 100%;
  padding: 16px;
  background: var(--verde-claro);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(95,226,84,0.35);
}

.btn-enviar:hover {
  background: var(--verde-hover);
  transform: translateY(-1px);
}

.btn-enviar:active { transform: translateY(0); }
.btn-enviar:disabled { background: #aaa; cursor: not-allowed; transform: none; }

/* ── MENSAJE CONFIRMACIÓN ──────────────────── */
.mensaje-exito {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.mensaje-exito h3 {
  color: var(--verde-oscuro);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.mensaje-exito p { color: var(--texto-suave); margin-bottom: 24px; }

.mensaje-exito .boton {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  margin: 6px;
}

.boton-primario {
  background: var(--verde-claro);
  color: white;
}

.boton-secundario {
  background: white;
  color: var(--verde-oscuro);
  border: 2px solid var(--verde-oscuro);
}

/* ── BUSCADOR ──────────────────────────────── */
.buscador-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  background: #fafafa;
}

.buscador-input:focus {
  border-color: var(--verde-claro);
  box-shadow: 0 0 0 3px rgba(95,226,84,0.15);
}

.sugerencias {
  background: white;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  position: relative;
}

.sugerencia-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.sugerencia-item:hover { background: #f0fdf0; }
.sin-resultados { padding: 10px 14px; color: var(--texto-suave); font-size: 0.85rem; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 600px) {
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .fotos-grid { grid-template-columns: 1fr; }
  .hero-reportar h1 { font-size: 1.6rem; }
}
#contenido-principal {
  min-height: 200px;
}

#mensaje-confirmacion.contenedor-reporte {
  display: block !important;
  min-height: 300px;
}

#mensaje-confirmacion {
  max-width: 780px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
