/* =========================================================================
   Loteo El Empalme · monografía
   Voz: panorámica, relevada, pausada.
   Estrategia de color: Restrained — blanco frío + acento musgo lago.
   Tipografía: Spectral (display serif) + Hanken Grotesk (body sans).
   ========================================================================= */

:root {
  --paper:       oklch(0.985 0.005 200);
  --paper-warm:  oklch(0.975 0.005 200);
  --paper-deep:  oklch(0.955 0.008 220);
  --ink:         oklch(0.205 0.022 235);
  --ink-soft:    oklch(0.40 0.018 235);
  --ink-fade:    oklch(0.55 0.015 235);
  --moss:        oklch(0.42 0.075 165);
  --moss-deep:   oklch(0.34 0.078 165);
  --moss-wash:   oklch(0.94 0.025 165);
  --rule:        oklch(0.90 0.008 220);
  --rule-strong: oklch(0.80 0.012 220);

  --serif: "Spectral", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;

  --max: 1480px;
  --gutter: clamp(1.5rem, 4vw, 3.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
  border-radius: 1px;
}

button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }

.num {
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

/* Hero kicker keeps tracked-uppercase as a single brand voice moment */
.hero-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

/* Section + intro kickers are Spectral italic chapter-markers, not tiny tracked labels */
.kicker,
.intro-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.005em;
  color: var(--moss-deep);
  margin: 0;
}

.t-it { font-style: italic; font-family: var(--serif); font-weight: 300; }

/* ===================== Utility bar ===================== */

.util {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.util-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  font-size: 13px;
}

.util-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.util-ref {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
  text-align: center;
}

.util-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--moss);
  padding-bottom: 2px;
  transition: color 250ms var(--ease-out), border-color 250ms var(--ease-out);
}

.util-cta:hover { color: var(--moss); border-color: var(--moss-deep); }

@media (max-width: 720px) {
  .util-row { grid-template-columns: auto auto; }
  .util-ref { display: none; }
}

/* ===================== Hero (full-bleed photo) ===================== */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: clamp(560px, 82vh, 900px);
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04) brightness(0.92);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.205 0.022 235 / 0.05) 0%,
    oklch(0.205 0.022 235 / 0.10) 45%,
    oklch(0.205 0.022 235 / 0.70) 100%
  );
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  color: var(--paper);
  z-index: 2;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: oklch(0.95 0.012 200);
  font-size: 11.5px;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--paper);
  max-width: 18ch;
}

.hero-title .t-it { color: oklch(0.94 0.015 200); }

.hero-lede {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: oklch(0.92 0.012 200);
  max-width: 52ch;
}

.hero-credit {
  position: absolute;
  right: var(--gutter);
  top: 1rem;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.95 0.012 200 / 0.78);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}

@media (max-width: 600px) {
  .hero-credit { display: none; }
}

/* ===================== Intro spread ===================== */

.intro {
  background: var(--paper);
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.intro-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.intro-kicker {
  margin: 0;
}

.intro-h {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
}

.intro-body {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.intro-meta {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  max-width: 760px;
}

@media (min-width: 900px) {
  .intro-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.intro-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 0.35rem;
}

.intro-meta dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ===================== Section heads (shared) ===================== */

.sec-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.sec-h {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 28ch;
}

.sec-lede {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===================== Map section ===================== */

.mapa {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.map-figure {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.map {
  width: 100%;
  height: auto;
  display: block;
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
}

.map .city-name {
  font-family: "Spectral", serif;
  font-size: 16px;
  font-weight: 500;
  fill: oklch(0.205 0.022 235);
  letter-spacing: -0.005em;
}

.map .city-name-sm {
  font-family: "Spectral", serif;
  font-size: 13px;
  font-weight: 500;
  fill: oklch(0.205 0.022 235);
}

.map .city-meta {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  fill: oklch(0.50 0.018 235);
  letter-spacing: 0.06em;
}

.map .poi {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: oklch(0.34 0.078 165);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map .parcel-name {
  font-family: "Spectral", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  fill: oklch(0.34 0.078 165);
}

.map .route-label text {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: oklch(0.205 0.022 235);
}

.map .compass-lbl {
  font-family: "Spectral", serif;
  font-size: 13px;
  font-weight: 500;
  fill: oklch(0.205 0.022 235);
}

.map .scale-lbl {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 500;
  fill: oklch(0.40 0.018 235);
}

.map .inset rect.predio-bg { fill: oklch(0.985 0.005 200); }

.map .lots rect {
  fill: oklch(0.985 0.005 200);
  stroke: oklch(0.205 0.022 235);
  stroke-width: 0.8;
}

.map .lot-n {
  font-family: "Spectral", serif;
  font-size: 22px;
  font-weight: 500;
  text-anchor: middle;
  fill: oklch(0.205 0.022 235);
  font-variant-numeric: tabular-nums;
}

.map .lot-n.lot-sold { fill: oklch(0.34 0.078 165); }

.map .lot-a {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  text-anchor: middle;
  fill: oklch(0.40 0.018 235);
  font-variant-numeric: tabular-nums;
}

.map .inset-title {
  font-family: "Spectral", serif;
  font-size: 13px;
  font-weight: 500;
  fill: oklch(0.205 0.022 235);
  font-style: italic;
}

.map .inset-meta {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  fill: oklch(0.40 0.018 235);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map .inset-road {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: oklch(0.50 0.018 235);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map .inset-route {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: oklch(0.34 0.078 165);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map .basemap .road {
  fill: none;
  stroke: oklch(0.32 0.022 235);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map .basemap .node {
  fill: oklch(0.985 0.005 200);
  stroke: oklch(0.205 0.022 235);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.map .basemap .leader {
  fill: none;
  stroke: oklch(0.42 0.075 165);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.map .basemap .predio-mark {
  fill: oklch(0.42 0.075 165);
}

.map .basemap .predio-lbl {
  font-family: "Spectral", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 4px;
  fill: oklch(0.34 0.078 165);
}

.map .parcel-ring {
  fill: none;
  stroke: oklch(0.42 0.075 165);
}

.map .plano-ink {
  fill: oklch(0.30 0.028 235);
  stroke: oklch(0.30 0.028 235);
  stroke-width: 1.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}

.map-caption {
  max-width: 70ch;
  margin: 1.5rem 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-fade);
  font-style: italic;
  font-family: var(--serif);
}

/* ===================== Gallery (asymmetric) ===================== */

.galeria {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  grid-auto-rows: clamp(180px, 22vw, 320px);
}

.gallery figure { margin: 0; position: relative; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}

.gallery figcaption {
  position: absolute;
  bottom: 0.65rem;
  left: 0.85rem;
  right: 0.85rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 6px oklch(0.205 0.022 235 / 0.6);
}

/* sizes */
.gallery .g-1 { grid-column: span 4; grid-row: span 2; }
.gallery .g-2 { grid-column: span 2; grid-row: span 2; }
.gallery .g-3 { grid-column: span 3; }
.gallery .g-4 { grid-column: span 3; }
.gallery .g-5 { grid-column: span 2; }
.gallery .g-6 { grid-column: span 4; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 30vw, 260px); }
  .gallery .g-1 { grid-column: span 4; grid-row: span 1; }
  .gallery .g-2 { grid-column: span 4; }
  .gallery .g-3, .gallery .g-4 { grid-column: span 2; }
  .gallery .g-5 { grid-column: span 2; }
  .gallery .g-6 { grid-column: span 2; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery > * { grid-column: auto !important; grid-row: auto !important; }
}

/* ===================== Plat plan (subdivisión) ===================== */

.plano-sec {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.plano-figure {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.plano-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}

.pp {
  display: block;
  width: 100%;
  max-width: 92vh;
  min-width: 660px;
  height: auto;
  margin-inline: auto;
}

.pp-cell {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 0.8;
  transition: stroke 200ms var(--ease-out), stroke-width 200ms var(--ease-out);
}

.pp-lot[data-state="vendido"] .pp-cell { fill: url(#pp-sold); }

.pp-lot:hover .pp-cell {
  stroke: var(--moss);
  stroke-width: 1.8;
}

.pp-id {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 9px;
  fill: var(--ink);
  text-anchor: middle;
  letter-spacing: -0.01em;
}
.pp-id--e { font-size: 13px; }

.pp-area {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 6.5px;
  fill: var(--ink-fade);
  text-anchor: middle;
}
.pp-area--e { font-size: 8.5px; }

.pp-estado {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 7px;
  letter-spacing: 0.14em;
  text-anchor: middle;
}
.pp-estado--vendido { fill: var(--moss-deep); }

.pp-sec-lbl {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  fill: var(--ink);
  text-anchor: middle;
}

.pp-sec-count {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 8px;
  fill: var(--ink-fade);
  text-anchor: middle;
}

.pp-road rect {
  fill: var(--paper-deep);
  stroke: var(--rule);
  stroke-width: 0.5;
}

.pp-road-lbl {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 6.5px;
  letter-spacing: 0.2em;
  fill: var(--ink-fade);
  text-anchor: middle;
}

.pp-north-box {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.2;
}
.pp-north-mark { fill: var(--ink); }
.pp-north-n {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 11px;
  fill: var(--ink);
  text-anchor: middle;
}

.pp-arrow {
  stroke: var(--moss);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.pp-arrow-head { fill: var(--moss); }
.pp-arrow-lbl {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--moss-deep);
  text-anchor: end;
}

.pp-foot {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  fill: var(--ink-fade);
}

.plano-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.75rem;
  margin: 1.25rem 0 0;
}

.pp-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.pp-sw {
  width: 1.6rem;
  height: 1rem;
  border: 1px solid var(--ink);
  flex: none;
}
.pp-sw-av { background: var(--paper); }
.pp-sw-sd {
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 3px,
    var(--moss) 3px, var(--moss) 4.5px
  );
}

.pp-leg-note {
  margin-left: auto;
  max-width: 48ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-fade);
}

@media (max-width: 640px) {
  .pp-leg-note { margin-left: 0; }
}

/* ===================== Lot directory (spacious) ===================== */

.lotes {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.filter {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter--sec {
  padding-top: 0;
  padding-bottom: 2rem;
}

.filt {
  display: inline-flex;
  align-items: baseline;
  padding: 0.55rem 1rem 0.5rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out);
}

.filt:hover { border-color: var(--ink); }

.filt.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.lot-table {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.lot-table thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  white-space: nowrap;
}

.lot-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.lot-table tbody tr {
  transition: background 250ms var(--ease-out);
}

.lot-table tbody tr:hover {
  background: var(--moss-wash);
}

.lot-table .c-num { width: 8rem; }
.lot-table .c-sec { width: 7rem; }
.lot-table .c-num .lot-id {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lot-table .c-area,
.lot-table .c-m2 {
  text-align: right;
  white-space: nowrap;
}

.lot-table tr[data-hidden="true"] { display: none; }

.st {
  display: inline-block;
  padding: 0.3rem 0.65rem 0.27rem;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1;
}

.st-av { color: var(--ink); background: var(--paper-warm); }
.st-rs { color: var(--ink-soft); background: var(--paper-deep); }
.st-sd { color: var(--moss-deep); background: var(--moss-wash); border-color: var(--moss); }

.table-note {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 0 var(--gutter);
  font-size: 13px;
  color: var(--ink-fade);
  font-style: italic;
  font-family: var(--serif);
}

@media (max-width: 720px) {
  .lot-table .c-m2 { display: none; }
  .lot-table thead th.c-m2 { display: none; }
}

/* ===================== Infrastructure ===================== */

.infra {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
}

.spec-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--rule-strong);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.spec {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spec h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.spec p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.badge {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem 0.27rem;
  border: 1px solid currentColor;
  line-height: 1;
}

.badge-ok { color: var(--moss-deep); background: var(--moss-wash); border-color: var(--moss); }
.badge-soft { color: var(--ink-soft); background: var(--paper-deep); }

/* ===================== Ubicación ===================== */

.ubic {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.ubic-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .ubic-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
}

.ubic-photo { margin: 0; }
.ubic-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}

.ubic-photo figcaption {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-fade);
}

.dist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.dist li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.d-place {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.d-km {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--moss-deep);
  white-space: nowrap;
}

.d-time {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-fade);
  white-space: nowrap;
}

/* ===================== Documents ===================== */

.docs {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--ink);
}

.doc-list li {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1rem 1.75rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.doc-n {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--moss-deep);
  font-variant-numeric: tabular-nums;
}

.doc-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--ink);
}

.doc-meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-fade);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .doc-list li { grid-template-columns: 4rem 1fr; }
  .doc-meta { grid-column: 2; }
}

/* ===================== Contact ===================== */

.contacto {
  padding: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.ct-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .ct-grid { grid-template-columns: 1fr 1.1fr; }
}

.ct-info {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.ct-info > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.ct-info dt {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.ct-info dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.ct-form {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}

.ct-fh {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.ct-form label { display: grid; gap: 0.4rem; }

.ct-form label span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.ct-form input {
  font: inherit;
  font-family: var(--serif);
  font-size: 16px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 1px;
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}

.ct-form input:hover { border-color: var(--ink-fade); }
.ct-form input:focus { border-color: var(--moss); background: var(--moss-wash); outline: none; }

.ct-submit {
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--moss-deep);
  border: 1px solid var(--moss-deep);
  border-radius: 1px;
  justify-self: start;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.ct-submit:hover { background: var(--ink); border-color: var(--ink); }

.ct-ok {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--moss-wash);
  border: 1px solid var(--moss);
  color: var(--moss-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
}

/* ===================== Footer ===================== */

.foot {
  background: var(--ink);
  color: oklch(0.85 0.012 220);
  padding: 3rem 0;
}

.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 1rem 2.5rem;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  font-size: 13px;
}

.foot-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: oklch(0.94 0.025 165);
}

.foot-line { font-family: var(--sans); }

.foot-legal {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.65 0.012 220);
  text-align: right;
  max-width: 38ch;
}

@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { text-align: left; }
}

/* ===================== Motion ===================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
