:root {
  --bg: #ffffff;
  --panel-bg: #ffffff;
  --border: #d8dbd4;
  --text: #22281f;
  --muted: #667063;
  --accent: #3f7d3a;
  --accent-dark: #2e5c2a;
  --warn: #a15c00;
  --error: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  padding: 1.5rem 1.5rem 0.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.header-inner {
  text-align: center;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.panel[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0;
}

.field input {
  font-size: 1rem;
  color: var(--text);
}

.field.inline {
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

input[type="number"],
input[type="file"] {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.file-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--accent-dark);
}

button:disabled {
  background: #a9b3a3;
  cursor: not-allowed;
}

.radio-group {
  border: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.radio-group legend {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0;
  margin-bottom: 0.25rem;
}

.radio-group label {
  font-size: 0.95rem;
}

.status {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.status.warn {
  color: var(--warn);
}

.status.error {
  color: var(--error);
}

.status.ok {
  color: var(--accent-dark);
}

#resumen-personas {
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

#resumen-personas table {
  border-collapse: collapse;
  width: 100%;
}

#resumen-personas td, #resumen-personas th {
  text-align: left;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

#map {
  height: 420px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

#leyenda-mapa {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

#leyenda-mapa .item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#leyenda-mapa .swatch {
  width: 14px;
  height: 4px;
  display: inline-block;
  border-radius: 2px;
}

.site-footer {
  margin-top: 2.5rem;
  background: #1e2a44;
  color: #eef1f6;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.footer-col h3,
.footer-contact-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-col p {
  color: #c7cde0;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #c7cde0;
}

.footer-divider {
  border: none;
  border-top: 2px solid #eef1f6;
  width: 60px;
  margin: 0.5rem auto 1rem;
}

.logo-footer {
  height: 130px;
  flex-shrink: 0;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  color: #c7cde0;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #c7cde0;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
