:root {
  --azul: #1d4e89;
  --azul-oscuro: #123a63;
  --gris-fondo: #f4f6f8;
  --gris-borde: #d7dde3;
  --texto: #1c2733;
  --rojo: #b3261e;
  --verde: #1e7d43;
  --amarillo: #b8860b;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--gris-fondo);
  color: var(--texto);
  margin: 0;
  line-height: 1.5;
}

.banner-sitio {
  background: white;
  border-bottom: 1px solid var(--gris-borde);
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.banner-sitio .marca {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--texto);
}
.banner-sitio img.logo { height: 68px; width: auto; max-width: 100%; }
.marca-texto { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.marca-texto strong { font-size: 1.35rem; }
.marca-texto small { font-size: 0.85rem; color: #4a5568; font-weight: 400; }

header.sitio {
  background: var(--azul);
  color: white;
  padding: 0.75rem 1.25rem;
}
header.sitio a { color: white; text-decoration: none; }
header.sitio nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
header.sitio nav a { font-size: 0.95rem; opacity: 0.9; display: inline-flex; align-items: center; }
header.sitio nav a:hover { opacity: 1; text-decoration: underline; }

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem;
}

.aviso {
  background: #fff8e1;
  border: 1px solid var(--amarillo);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.tarjeta {
  background: white;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

fieldset {
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  margin-bottom: 1.25rem;
  padding: 1rem;
}
legend { font-weight: 600; padding: 0 0.4rem; }

label { display: block; font-weight: 600; margin-top: 0.75rem; margin-bottom: 0.25rem; font-size: 0.92rem; }
input[type="text"], input[type="date"], input[type="tel"], input[type="email"],
input[type="password"], input[type="file"], select, textarea {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--gris-borde);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 4rem; }

.checkbox-linea { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.75rem; }
.checkbox-linea input { width: auto; margin-top: 0.3rem; }
.checkbox-linea label { margin: 0; font-weight: 400; }

button, .boton {
  display: inline-block;
  background: var(--azul);
  color: white;
  border: none;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
}
button:hover, .boton:hover { background: var(--azul-oscuro); }
button.secundario, .boton.secundario { background: white; color: var(--azul); border: 1px solid var(--azul); }
button.peligro { background: var(--rojo); }
button.exito { background: var(--verde); }

#mapa { height: 280px; border-radius: 6px; margin-top: 0.5rem; border: 1px solid var(--gris-borde); }

.mensaje { padding: 0.8rem 1rem; border-radius: 6px; margin: 1rem 0; font-size: 0.95rem; }
.mensaje.ok { background: #e6f4ea; color: var(--verde); border: 1px solid var(--verde); }
.mensaje.error { background: #fdecea; color: var(--rojo); border: 1px solid var(--rojo); }

.etiqueta-estado {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}
.estado-desaparecido { background: var(--rojo); }
.estado-visto_con_vida { background: var(--verde); }
.estado-trasladado { background: var(--azul); }
.estado-fallecido { background: #444; }
.estado-reunido { background: #6a3fa0; }

.foto-miniatura { max-width: 140px; border-radius: 6px; margin: 0.4rem 0.4rem 0 0; }

.tabla-envoltorio { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--gris-borde); white-space: nowrap; }

footer.sitio { text-align: center; padding: 1.5rem; font-size: 0.8rem; color: #667; }

.icono {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  margin-right: 0.35em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1 .icono, h2 .icono, h3 .icono { width: 1em; height: 1em; }
.icono-suelto { margin-right: 0; }
