:root {
  --forest: #1f3a2e;
  --forest-2: #2c5241;
  --paper: #f5f1e8;
  --paper-2: #ebe4d4;
  --ink: #1c1f1d;
  --muted: #5b625d;
  --rust: #b4532a;
  --rust-dark: #8f3f1e;
  --gold: #d9a441;
  --line: #d6cdb9;
  --white: #ffffff;
  --ok: #2f7a4b;
  --warn: #b7791f;
  --bad: #a33a2b;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(28, 31, 29, 0.08);
  --head: 'Archivo', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--forest); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand-mark { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-header nav a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rust); color: var(--white); border: 0; border-radius: var(--radius);
  padding: 14px 22px; font: 700 1.05rem var(--body); text-decoration: none; cursor: pointer;
  min-height: 48px;
}
.btn:hover { background: var(--rust-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--paper); border: 2px solid var(--paper); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 8px 14px; min-height: 38px; font-size: 0.95rem; }
.site-header .btn { padding: 10px 16px; min-height: 42px; }

/* Hero */
.hero {
  position: relative; color: var(--paper); background: var(--forest);
  background-image: linear-gradient(180deg, rgba(20, 38, 30, 0.55), rgba(20, 38, 30, 0.85)), var(--hero-img, none);
  background-size: cover; background-position: center;
  padding: 72px 0 64px;
}
.hero p.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 640px; color: #e9e4d6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--gold); font-weight: 700; margin-bottom: 12px; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.step { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step .num { font-family: var(--head); font-weight: 800; color: var(--rust); font-size: 1.6rem; }

/* Map */
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1.5px solid var(--forest-2); background: var(--white); color: var(--forest);
  border-radius: 999px; padding: 6px 14px; font: 600 0.95rem var(--body); cursor: pointer; min-height: 36px;
}
.chip[aria-pressed='true'] { background: var(--forest); color: var(--paper); }
select.compact { padding: 8px 10px; border-radius: var(--radius); border: 1.5px solid var(--line); font: 600 0.95rem var(--body); background: var(--white); min-height: 38px; }
#map { height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 0; }
.map-count { color: var(--muted); font-size: 0.95rem; margin-left: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }

.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(31, 58, 46, 0.25); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--forest); color: var(--paper); font: 700 13px var(--body); }

.popup h4 { margin: 0 0 4px; font: 700 1rem var(--head); }
.popup .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.popup .tag { display: inline-block; background: var(--paper-2); border-radius: 4px; padding: 1px 6px; font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; }
.popup img { margin-top: 6px; border-radius: 6px; max-height: 160px; object-fit: cover; }

/* Notice and disclaimer */
.notice { border-left: 4px solid var(--gold); background: var(--white); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #c9c4b6; padding: 36px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer strong { color: var(--paper); }
.site-footer a { color: #c9c4b6; }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 760px; margin: 0 auto; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font: 800 1.25rem var(--head); margin-bottom: 12px; padding: 0; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font: 400 1.05rem var(--body); background: var(--white); color: var(--ink); min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; }
select.compact { width: auto; padding: 8px 10px; min-height: 38px; font: 600 0.95rem var(--body); }
input:focus, select:focus, textarea:focus, .chip:focus-visible, .btn:focus-visible, .choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; background: var(--white); font-weight: 700; min-height: 48px;
}
.choice span small { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.choice input:checked + span { border-color: var(--forest); background: #e7efe9; box-shadow: inset 0 0 0 1px var(--forest); }

#pick-map { height: 340px; border-radius: var(--radius); border: 1.5px solid var(--line); margin-bottom: 10px; z-index: 0; }
.pin-status { font-size: 0.95rem; color: var(--muted); }
.pin-status.set { color: var(--ok); font-weight: 700; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.alert.error { background: #f7e3df; color: var(--bad); }
.alert.success { background: #e2f0e6; color: var(--ok); }
.file-list { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .row { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  #map { height: 420px; }
  .site-header nav .hide-sm { display: none; }
  .hero { padding: 52px 0 44px; }
  .map-count { margin-left: 0; width: 100%; }
}

/* v2 home: bolder hero, live stats, attack band */
.hero {
  background-color: #14261e;
  background-image: url('/img/topo.svg'), radial-gradient(ellipse at 80% 20%, #2c5241 0%, #14261e 60%);
  background-size: cover; padding: 88px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 0.35em; }
.hero h1 .hl { color: var(--gold); }
.hero p.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 30ch; color: #e9e4d6; }
.hero .actions { align-items: center; gap: 22px; margin-top: 28px; }
.btn-big { font-size: 1.15rem; padding: 18px 30px; min-height: 58px; }
.link-light { color: var(--paper); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-light:hover { color: var(--gold); }
.stat-card { background: rgba(245, 241, 232, 0.06); border: 1px solid rgba(217, 164, 65, 0.35); border-radius: 16px; padding: 28px; backdrop-filter: blur(2px); }
.stat-total { font-family: var(--head); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1; color: var(--paper); padding-bottom: 18px; border-bottom: 1px solid rgba(245, 241, 232, 0.18); margin-bottom: 14px; }
.stat-total small { display: block; font: 600 1rem var(--body); color: var(--gold); letter-spacing: 0.04em; margin-top: 8px; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stat-list li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; color: #e9e4d6; }
.stat-list b { font-family: var(--head); font-size: 1.5rem; color: var(--paper); min-width: 2ch; text-align: right; }
.stat-list .dot { width: 14px; height: 14px; }

.map-block { padding-top: 64px; }
.map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.map-head .map-count { margin: 0; font-weight: 700; }
#map { height: 600px; }

.steps { margin-top: 0; }
.step { background: transparent; box-shadow: none; padding: 8px 0; border-top: 3px solid var(--forest); border-radius: 0; }
.step .num { font-size: 2.6rem; line-height: 1; margin: 14px 0 8px; }
.step h3 { font-size: 1.5rem; margin-bottom: 0.25em; }
.step p { color: var(--muted); margin: 0; }

.attack { background: var(--rust); color: var(--white); padding: 72px 0; }
.attack-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.attack h2 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; margin: 0; }
.attack-steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 14px; }
.attack-steps li { counter-increment: a; display: flex; gap: 14px; font-size: 1.2rem; font-weight: 600; align-items: baseline; }
.attack-steps li::before { content: counter(a); font: 800 1.4rem var(--head); color: var(--gold); min-width: 1.2ch; }
.btn-light { background: var(--paper); color: var(--rust-dark); }
.btn-light:hover { background: var(--white); }
.attack-note { margin: 18px 0 0; opacity: 0.9; }
.site-footer .disclaimer { max-width: 560px; font-size: 0.88rem; }

@media (max-width: 820px) {
  .hero-grid, .attack-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 0 48px; }
  #map { height: 440px; }
}

/* DRAFT: remove at launch */
.draft-banner { background: var(--gold); color: var(--ink); text-align: center; font-weight: 700; font-size: 0.95rem; padding: 8px 16px; }
