/* Estudio Aéreo · delivery pages. Layout: survey-report sheet — index of parcels, then one plate per parcel (plan + aerial media). */
:root {
  --ground: #eef1ec; --paper: #fbfcfa; --ink: #18211c; --muted: #5d6a62; --line: #d3dad4;
  --survey: #a67c00; --survey-fill: rgba(232, 181, 0, .16); --track: #c7432a; --ok: #2f7a4f; --wait: #8a6d1d; --err: #b3261e;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --ground: #0f1512; --paper: #161e1a; --ink: #e5ebe6; --muted: #98a69d; --line: #2a362f;
  --survey: #f0c230; --survey-fill: rgba(240, 194, 48, .14); --track: #f06a4e; --ok: #6cc98f; --wait: #e0bb5a; --err: #ff8a80; color-scheme: dark } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.6 var(--f-body); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-block: 28px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 36px; }
.barra { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; font: 500 13px/1.3 var(--f-mono); color: var(--muted); }
.marca { font: 700 15px/1 var(--f-display); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.barra nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.barra button, .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.top { display: grid; gap: 14px; }
.eyebrow { margin: 0; font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font: 800 clamp(34px, 6vw, 56px)/1.02 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.lead { margin: 0; max-width: 64ch; color: var(--muted); font-size: 16px; }
.indice { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.indice a { background: var(--paper); padding: 14px 16px; text-decoration: none; font: 600 15px/1.3 var(--f-body); display: grid; gap: 4px; }
.indice a span { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.indice a:hover, .indice a:focus-visible { background: var(--survey-fill); outline: none; }
.lote, .panel { background: var(--paper); border: 1px solid var(--line); padding: 24px; display: grid; gap: 18px; scroll-margin-top: 16px; min-width: 0; }
.lote header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
h2 { margin: 4px 0 0; font: 700 clamp(22px, 3.2vw, 30px)/1.15 var(--f-display); text-wrap: balance; }
h3 { margin: 0; font: 700 18px/1.3 var(--f-display); }
.pill { font: 500 12px/1 var(--f-mono); letter-spacing: .04em; padding: 7px 10px; border: 1px solid currentColor; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.wait { color: var(--wait); }
.ficha { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; border-block: 1px solid var(--line); padding-block: 10px; }
.ficha div { display: grid; gap: 2px; }
.ficha dt { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ficha dd { margin: 0; font: 500 15px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; }
.cuerpo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .cuerpo { grid-template-columns: minmax(0, 1fr); } .lote, .panel { padding: 16px; } }
.mapa { margin: 0; display: grid; gap: 8px; }
.mapa svg { width: 100%; height: auto; max-height: 460px; background: var(--ground); border: 1px solid var(--line); }
.mapa figcaption { font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
.lot { fill: var(--survey-fill); stroke: var(--survey); stroke-width: 2.5; stroke-linejoin: round; }
.trk { fill: none; stroke: var(--track); stroke-width: 1.6; stroke-opacity: .75; stroke-linejoin: round; stroke-linecap: round; }
.bar line { stroke: var(--ink); stroke-width: 2; } .bar text, .north text { fill: var(--muted); font: 500 15px var(--f-mono); }
.north path { fill: var(--ink); } .north text { text-anchor: middle; }
.media { display: grid; gap: 12px; min-width: 0; }
video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ph { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ground); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ph:hover img, .ph:focus-visible img { transform: scale(1.04); }
.ph:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--survey); outline-offset: 2px; }
.meta { margin: 0; font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
.doc { margin: 0; font: 500 14px/1.4 var(--f-body); }
.empty { border: 1px dashed var(--line); padding: 32px 20px; color: var(--muted); display: grid; place-items: center; min-height: 160px; text-align: center; }
.empty p { margin: 0; max-width: 36ch; }
.fb { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.fb-t { margin: 0; font-weight: 600; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
label { font: 500 13px/1.3 var(--f-body); color: var(--muted); }
input, select, textarea { font: 400 15px/1.4 var(--f-body); color: var(--ink); background: var(--ground); border: 1px solid var(--line); padding: 9px 10px; border-radius: 0; width: 100%; max-width: 100%; }
select { width: auto; }
textarea { resize: vertical; }
button[type="submit"], .btn { font: 600 14px/1 var(--f-body); background: var(--ink); color: var(--paper); border: 0; padding: 11px 16px; cursor: pointer; }
button[disabled] { opacity: .55; cursor: default; }
.fb-msg, .msg { font: 500 13px/1.3 var(--f-mono); }
.msg.err, .fb-msg.err { color: var(--err); } .fb-msg.ok, .msg.ok { color: var(--ok); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contacto { display: grid; gap: 10px; }
.contacto p { margin: 0; max-width: 64ch; }
.copiable { font: 500 15px/1.4 var(--f-mono); user-select: all; }
footer { font: 400 12px/1.5 var(--f-mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.acceso { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.acceso .panel { width: 100%; max-width: 420px; }
.acceso input { font: 500 20px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; font-family: var(--f-mono); }
.tabla { overflow-x: auto; }
.nuevo-codigo { font: 700 26px/1.2 var(--f-mono); letter-spacing: .1em; padding: 12px 14px; background: var(--survey-fill); border: 1px solid var(--survey); user-select: all; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.campo { display: grid; gap: 4px; }
.estado { font: 500 12px/1 var(--f-mono); }
.estado.revocado { color: var(--err); } .estado.vencido { color: var(--wait); } .estado.activo { color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .ph img { transition: none; } }
.cota { fill: var(--ink); font: 600 17px var(--f-mono); text-anchor: middle; paint-order: stroke; stroke: var(--ground); stroke-width: 3px; }
a.btn { display: inline-block; text-decoration: none; }
