/* El Edén Condominio Campestre
   Dirección visual: plano de agrimensor. Papel de plano, parcelas proporcionales,
   curvas de nivel y el verde hoja del logo como color de acción. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #eef0e8;
  --paper-2: #e2e6da;
  --sheet: #f8f9f4;
  --ink: #16211a;
  --ink-2: #4a564d;
  --ink-3: #5c665d;
  --monte: #1f3326;
  --monte-2: #29412f;
  --hoja: #7b9d45;
  --hoja-hi: #8db355;
  --hoja-deep: #46621f;
  --hoja-tint: #dfe8cf;
  --tapia: #c58c3f;
  --alert: #8f2d16;
  --line: rgba(22, 33, 26, 0.16);
  --line-strong: rgba(22, 33, 26, 0.34);
  --on-dark: #e4eadf;
  --on-dark-2: #b4c0b0;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 3px;
  --r-m: 8px;
  --r-l: 16px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 112px);

  --t-sm: 0.875rem;
  --t-0: 1.0625rem;
  --t-1: 1.25rem;
  --t-2: clamp(1.45rem, 2.2vw, 1.75rem);
  --t-3: clamp(1.9rem, 3.6vw, 2.75rem);
  --t-4: clamp(2.35rem, 5.4vw, 4.25rem);
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.1; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--hoja-deep); outline-offset: 2px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible, .is-links :focus-visible { outline-color: var(--hoja-hi); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--sheet); padding: 10px 16px; border-radius: var(--r-m); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); position: relative; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.note { font-size: var(--t-sm); color: var(--ink-3); margin-top: 1rem; }
.mt { margin-top: 2.5rem; }
.icon { flex: none; }

/* ───────── tipografía ───────── */
.h1, .hero__title {
  font-size: var(--t-4);
  font-weight: 680;
  font-stretch: 112%;
  letter-spacing: -0.022em;
  line-height: 0.98;
}
.h2 { font-size: var(--t-3); font-weight: 650; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.04; }
.h3 { font-size: var(--t-1); font-weight: 650; font-stretch: 104%; letter-spacing: -0.005em; display: flex; gap: 0.5rem; align-items: center; }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.lede--lg { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; }
.eyebrow { font-size: var(--t-sm); font-weight: 600; color: var(--hoja-deep); margin-bottom: 0.75rem; }
.section--dark .eyebrow, .eyebrow--light { color: var(--hoja-hi); }
.num { font-stretch: 78%; font-variant-numeric: tabular-nums; }

/* ───────── botones ───────── */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.2rem;
  border: 1.5px solid var(--bd); border-radius: var(--r-m);
  background: var(--bg); color: var(--fg);
  font-weight: 620; font-stretch: 104%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { --bg: var(--hoja); --fg: var(--ink); --bd: var(--hoja); }
.btn--primary:hover { --bg: var(--hoja-hi); --bd: var(--hoja-hi); }
.btn--wa { --bg: var(--ink); --fg: var(--sheet); --bd: var(--ink); }
.btn--wa:hover { --bg: var(--monte-2); --bd: var(--monte-2); }
.btn--ghost { --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light { --bg: var(--sheet); --fg: var(--ink); --bd: var(--sheet); }
.btn--light:hover { --bg: #fff; }
.btn--outline-light { --fg: var(--on-dark); --bd: rgba(228, 234, 223, 0.4); }
.btn--outline-light:hover { --bd: var(--on-dark); }
.btn--lg { min-height: 56px; padding: 0 1.5rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 0 0.9rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.ctas--center { justify-content: center; }
.textlink { color: var(--hoja-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; display: inline-flex; align-items: center; gap: 0.35rem; }
.textlink .icon { display: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

/* ───────── curvas de nivel ───────── */
.topo {
  position: absolute; inset: 0; pointer-events: none;
  background-color: rgba(70, 98, 31, 0.2);
  -webkit-mask: url("/assets/img/topo.svg") center / cover no-repeat;
  mask: url("/assets/img/topo.svg") center / cover no-repeat;
}
.topo--dark, .topo--footer { background-color: rgba(141, 179, 85, 0.16); }

/* ───────── cabecera ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { width: 132px; height: auto; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 560; font-size: 0.975rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--hoja); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--r-m); width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gut) 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav__cta { margin-top: 1rem; min-height: 52px; }
  .is-menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .is-menu-open .nav-toggle__open { display: none; }
  .is-menu-open .nav-toggle__close { display: block; }
}
.site-header--minimal { position: sticky; }

/* ───────── hero ───────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 5vw, 72px) var(--sec); }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
  .hero__grid--form { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); align-items: start; }
}
.hero__title { margin-bottom: 1.25rem; max-width: 14ch; }
.hero--landing .hero__title { max-width: 16ch; }
.hero__media { margin: 0; position: relative; }
.hero__media img, .feature-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--paper-2); }
.hero__media figcaption, .feature-media figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; font-size: var(--t-sm); color: var(--ink-3); }
.coords { font-stretch: 82%; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.feature-media { margin: 0; }
.hero--thanks { padding-block: clamp(48px, 9vw, 120px); }

/* bloque de datos, como el rótulo de un plano */
.hero__copy { container-type: inline-size; }
.titleblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.75rem 0 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.titleblock > div { padding: 0.8rem 0.9rem 0.85rem 0; }
.titleblock > div:nth-child(odd) { border-right: 1px solid var(--line); }
.titleblock > div:nth-child(even) { padding-left: 0.9rem; }
.titleblock > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.titleblock dt { font-size: 0.8125rem; color: var(--ink-3); font-weight: 520; }
.titleblock dd { margin: 0.1rem 0 0; font-size: 1.4rem; font-weight: 700; font-stretch: 78%; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
@container (min-width: 540px) {
  .titleblock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .titleblock > div { border-bottom: 0 !important; border-right: 1px solid var(--line); padding: 0.8rem 0.9rem; }
  .titleblock > div:first-child { padding-left: 0; }
  .titleblock > div:last-child { border-right: 0; }
}

.avail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
.avail strong { color: var(--ink); font-stretch: 85%; font-size: 1.05rem; }
.avail__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hoja); box-shadow: 0 0 0 4px rgba(123, 157, 69, 0.22); }
.avail__date { color: var(--ink-3); }
.is-links .avail, .section--dark .avail { color: var(--on-dark-2); }
.is-links .avail strong { color: var(--on-dark); }

/* ───────── secciones ───────── */
.section { position: relative; padding-block: var(--sec); }
.section--tight { padding-top: clamp(24px, 4vw, 48px); }
.section--paper { background: var(--sheet); }
.section--stone { background: var(--paper-2); }
.section--dark { background: var(--monte); color: var(--on-dark); overflow: hidden; }
.section--dark .lede { color: var(--on-dark-2); }
.section__head { margin-bottom: clamp(24px, 3.5vw, 44px); max-width: 760px; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.section__head--split > div { max-width: 640px; }
.section__head .lede, .section__head--split .lede { margin-bottom: 0; }

.split { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--media { align-items: center; }
  .split--form { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
}

.page-hero { position: relative; overflow: hidden; padding-block: clamp(20px, 3vw, 36px) clamp(36px, 6vw, 72px); }
.page-hero .h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 20ch; margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 1.5rem; }
.crumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ───────── tablero de lotes ───────── */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: var(--t-sm); color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend__sw { width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 2px; }
.legend__sw--disponible { background: var(--hoja); }
.legend__sw--reservado { background: var(--hoja-tint); border-style: dashed; }
.legend__sw--vendido { background: repeating-linear-gradient(135deg, var(--ink) 0 1.2px, var(--sheet) 1.2px 4.5px); }
.legend__sw--comercial { background: var(--tapia); }

.lots { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .lots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lots { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.lot { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 8px 10px; display: flex; flex-direction: column; transition: border-color 0.15s; }
.lot.is-hidden { display: none; }
.lot.is-picked { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lot__plot {
  aspect-ratio: 3 / 2; display: grid; place-items: center; border-radius: 2px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 25% 25%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 25%,
    var(--paper);
}
.lot__plot span {
  height: calc(var(--s) * 82%); aspect-ratio: 1; width: auto;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--hoja);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 760; font-stretch: 72%; font-variant-numeric: tabular-nums; line-height: 1;
  transform-origin: center;
}
.lot[data-status="vendido"] .lot__plot span { background: repeating-linear-gradient(135deg, rgba(22, 33, 26, 0.55) 0 1.2px, var(--sheet) 1.2px 6px); color: var(--ink-3); }
.lot[data-status="reservado"] .lot__plot span { background: var(--hoja-tint); border-style: dashed; }
.lot[data-status="comercial"] .lot__plot span { background: var(--tapia); }
.lot__body { padding: 0.55rem 0.15rem 0; display: flex; flex-direction: column; flex: 1; }
.lot__name { font-size: 0.95rem; font-weight: 680; font-stretch: 100%; margin: 0; }
.lot__area { font-size: 0.875rem; color: var(--ink-2); margin: 0; font-stretch: 88%; font-variant-numeric: tabular-nums; }
.lot__price { font-size: 0.95rem; font-weight: 650; margin: 0.15rem 0 0; font-stretch: 84%; font-variant-numeric: tabular-nums; }
.lot[data-status="vendido"] .lot__price { text-decoration: line-through; color: var(--ink-3); font-weight: 500; }
.lot[data-status="comercial"] .lot__price { font-weight: 500; color: var(--ink-2); font-size: 0.85rem; }
.lot__status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; color: var(--ink-2); margin: 0.2rem 0 0; }
.lot__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hoja-deep); }
.lot[data-status="vendido"] .lot__dot { background: var(--ink-3); }
.lot[data-status="reservado"] .lot__dot { background: transparent; border: 1.5px dashed var(--hoja-deep); }
.lot[data-status="comercial"] .lot__dot { background: var(--tapia); }
.lot__cta { margin-top: auto; padding-top: 0.6rem; }
.lot__cta {
  margin-top: 0.6rem; min-height: 38px; border-radius: var(--r-m); border: 1.5px solid var(--ink);
  background: transparent; font-weight: 620; font-size: 0.875rem; cursor: pointer;
}
.lot__cta:hover { background: var(--hoja); border-color: var(--hoja); }
.lot:not([data-status="disponible"]) .lot__cta { display: none; }
/* Único movimiento orquestado: las parcelas se trazan al entrar en pantalla */
@media (prefers-reduced-motion: no-preference) {
  .js .lots:not(.is-drawn) .lot__plot span { transform: scale(0.35); opacity: 0; }
  .js .lots .lot__plot span { transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s; transition-delay: calc(var(--i, 0) * 35ms); }
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem; margin-bottom: 1.25rem; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r-m); overflow: hidden; }
.seg__btn { border: 0; background: transparent; padding: 0 1rem; min-height: 42px; font-weight: 600; cursor: pointer; }
.seg__btn.is-on { background: var(--ink); color: var(--sheet); }
.toolbar__sort { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-2); }
.toolbar__sort select { min-height: 42px; border: 1.5px solid var(--line-strong); border-radius: var(--r-m); background: var(--sheet); padding: 0 0.75rem; }

/* ───────── tablas ───────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--sheet); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.975rem; }
.table th, .table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table thead th { font-size: var(--t-sm); color: var(--ink-3); font-weight: 600; background: var(--paper); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table--lots tr[data-status="vendido"] td, .table--lots tr[data-status="vendido"] th { color: var(--ink-3); }
.table--lots tr[data-status="vendido"] td:nth-child(3) { text-decoration: line-through; }
.prose .table { margin: 1.5rem 0; border: 1px solid var(--line); }
.prose .table th, .prose .table td { white-space: normal; }

/* ───────── listas ───────── */
.ticks { list-style: none; display: grid; gap: 0.6rem; margin: 1.25rem 0 1.5rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks .icon { color: var(--hoja-deep); margin-top: 0.2rem; }
.section--dark .ticks .icon { color: var(--hoja-hi); }
.ticks--hero { margin-top: 1.5rem; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 0.85rem; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 2.4rem; height: 2.4rem; border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-stretch: 78%; font-size: 1.15rem;
}
.steps strong { font-weight: 650; }
.steps span { color: var(--ink-2); }
.steps--big li { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.steps--center { max-width: 520px; margin: 2.5rem auto; text-align: left; }

.stats { list-style: none; display: grid; gap: 1px; margin: 1.75rem 0 0; background: rgba(228, 234, 223, 0.18); border: 1px solid rgba(228, 234, 223, 0.18); border-radius: var(--r-m); overflow: hidden; }
.stats li { background: var(--monte); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.stats strong { font-size: 1.9rem; font-weight: 720; font-stretch: 76%; line-height: 1.1; color: var(--sheet); }
.stats span { color: var(--on-dark-2); font-size: 0.95rem; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats--dark { background: var(--line); border-color: var(--line); }
.stats--dark li { background: var(--sheet); }
.stats--dark strong { color: var(--ink); }
.stats--dark span { color: var(--ink-2); }

/* ───────── tarjetas ───────── */
.cards { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 760px) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 2.6vw, 32px); }
.section--paper .card { background: var(--paper); }
.card p:last-child { margin-bottom: 0; }
.card--link h2 a, .card--link h3 a { text-decoration: none; }
.card--link h2 a:hover, .card--link h3 a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.card .h3 .icon { color: var(--hoja-deep); }

.rules { margin: 0.5rem 0 0; }
.rules > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line-strong); }
.rules dt { color: var(--ink-2); }
.rules dd { margin: 0; font-weight: 620; text-align: right; }

.docs__head { display: flex; gap: 1rem; align-items: flex-start; max-width: 780px; }
.docs__icon { color: var(--hoja-deep); margin-top: 0.4rem; }
.docs__list { list-style: none; display: grid; gap: 1px; margin: 1.75rem 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
@media (min-width: 760px) { .docs__list { grid-template-columns: repeat(2, 1fr); } }
.docs__list li { background: var(--sheet); padding: 1.1rem 1.2rem; display: flex; gap: 0.85rem; align-items: flex-start; }
.docs__list .icon { color: var(--hoja-deep); margin-top: 0.15rem; }
.docs__list strong { display: block; font-weight: 650; }
.docs__list span { color: var(--ink-2); font-size: 0.95rem; }

/* ───────── video ───────── */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: var(--monte-2); border: 1px solid var(--line-strong); }
.video picture, .video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(16, 24, 18, 0.55)); pointer-events: none; }
.video.is-playing::after { display: none; }
.video__play {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.2rem 0 0.9rem; border: 0; border-radius: 999px; background: var(--sheet); color: var(--ink);
  font-weight: 650; cursor: pointer;
}
.video__play .icon { width: 26px; height: 26px; }
.video__play:hover { background: var(--hoja); }

/* ───────── mapa ───────── */
.map { aspect-ratio: 16 / 9; min-height: 280px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper-2); display: grid; place-content: center; justify-items: center; gap: 0.25rem; text-align: center; padding: 1rem; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map.is-loaded { padding: 0; display: block; }

/* ───────── formularios ───────── */
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label, .field > span { font-weight: 600; font-size: 0.95rem; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field__hint { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  min-height: 50px; width: 100%; padding: 0 0.9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-m); background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(123, 157, 69, 0.4); }
.field input[aria-invalid="true"] { border-color: var(--alert); }
.field input[type="range"] { width: 100%; accent-color: var(--hoja-deep); min-height: 32px; }
.field output { font-stretch: 84%; font-variant-numeric: tabular-nums; }

.calc { background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r-l); padding: clamp(20px, 2.6vw, 32px); }
.section--paper .calc { background: var(--paper); }
.calc__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0.5rem 0 0; border-top: 1.5px solid var(--ink); }
.calc__out > div { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.calc__out > div:nth-child(odd) { padding-right: 0.75rem; }
.calc__out dt { font-size: 0.8125rem; color: var(--ink-3); }
.calc__out dd { margin: 0; font-weight: 680; font-stretch: 82%; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.calc__main { grid-column: 1 / -1; }
.calc__main dd { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 760; font-stretch: 76%; color: var(--hoja-deep); line-height: 1.1; }
.calc__note { font-size: 0.875rem; color: var(--ink-3); margin: 0.75rem 0 1.1rem; }

.lead { background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r-l); padding: clamp(20px, 2.8vw, 34px); position: relative; }
.section--paper .lead { background: #fff; }
.lead__top { margin-bottom: 1.25rem; }
.lead__title { font-size: 1.4rem; font-weight: 700; font-stretch: 108%; line-height: 1.15; margin-bottom: 0.25rem; }
.lead__intro { color: var(--ink-2); margin-bottom: 0.75rem; }
.lead__progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 0.75rem; }
.lead__progress span { display: block; height: 100%; width: 100%; background: var(--hoja-deep); transform: scaleX(var(--p)); transform-origin: left center; transition: transform 0.3s; }
.lead__stepnum { font-size: 0.8125rem; color: var(--ink-3); margin: 0.4rem 0 0; }
.lead__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead__q { font-size: 1.15rem; font-weight: 650; padding: 0; margin-bottom: 0.85rem; display: block; }
.lead__q--sub { margin-top: 1.25rem; }
.choices { display: grid; gap: 0.6rem; }
@media (min-width: 480px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__label {
  display: flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 0.7rem 2.6rem 0.7rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-m); background: #fff; font-weight: 560; line-height: 1.25; cursor: pointer; position: relative;
}
.choice__label small { font-weight: 400; color: var(--ink-3); font-size: 0.8125rem; margin-top: 0.1rem; }
.choice__label::after { content: ""; position: absolute; right: 0.9rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.choice input:hover + .choice__label { border-color: var(--ink); }
.choice input:checked + .choice__label { border-color: var(--ink); background: var(--hoja-tint); }
.choice input:checked + .choice__label::after { border: 5px solid var(--ink); background: #fff; }
.choice input:focus-visible + .choice__label { outline: 3px solid var(--hoja-deep); outline-offset: 2px; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0.4rem 0 0.8rem; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--hoja-deep); flex: none; }
.check--consent { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.check--consent a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }
.lead__nav [data-next], .lead__nav [data-submit] { margin-left: auto; }
@media (max-width: 479px) { .lead__nav [data-submit] { white-space: normal; text-align: center; padding-block: 0.5rem; } }
.lead__error { background: #f6e4dd; color: var(--alert); border-radius: var(--r-m); padding: 0.7rem 0.9rem; font-size: 0.95rem; margin: 1rem 0 0; }
.lead__fine { font-size: 0.8125rem; color: var(--ink-3); margin: 1rem 0 0; }
.lead.is-sending [data-submit] { opacity: 0.6; pointer-events: none; }

/* ───────── preguntas ───────── */
.faq { border-top: 1.5px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 640; font-size: 1.1rem; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--hoja-deep); }
.faq__item[open] summary::after { content: "−"; }
.faq__a { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 68ch; }
.faq__a a { color: var(--hoja-deep); font-weight: 600; }

/* ───────── artículo / prosa ───────── */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--t-2); font-weight: 680; font-stretch: 106%; margin-top: 2.4rem; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.15rem; font-weight: 660; margin-top: 1.6rem; }
.prose p, .prose li { color: #26302a; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--hoja-deep); font-weight: 600; text-underline-offset: 0.18em; }
.prose .callout { border: 1px solid var(--line-strong); background: var(--hoja-tint); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: var(--r-m); }
.prose .callout p:last-child { margin: 0; }
.prose .checklist { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.prose .checklist ul { list-style: none; padding: 0; margin: 0; }
.prose .checklist li { padding-left: 1.9rem; position: relative; margin-bottom: 0.55rem; }
.prose .checklist li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 3px; }
.prose--legal h2 { font-size: 1.3rem; }
.prose--legal .legal-highlight, .prose--legal .legal-contact { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.sources { font-size: 0.9rem; }
.sources a { word-break: break-word; }
.article { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .article { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; } .article__toc { position: sticky; top: 96px; align-self: start; } }
.article__toc { font-size: 0.925rem; }
.article__toc-h { font-weight: 650; margin-bottom: 0.5rem; }
.article__toc ol { padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--ink-2); }
.article__toc a { text-decoration: none; }
.article__toc a:hover { text-decoration: underline; }
.cta-band { display: grid; gap: 1.5rem; background: var(--monte); color: var(--on-dark); border-radius: var(--r-l); padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.cta-band .lede { color: var(--on-dark-2); }
.cta-band .ctas { margin-top: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: center; } .cta-band .ctas { justify-content: flex-end; } }

.ref { font-size: 1.05rem; }
.ref strong { font-stretch: 80%; letter-spacing: 0.04em; font-size: 1.25rem; }

/* ───────── pie ───────── */
.site-footer { position: relative; overflow: hidden; background: var(--monte); color: var(--on-dark-2); padding-block: clamp(48px, 7vw, 88px) 2rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.site-footer__brand img { width: 168px; height: auto; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__h { color: var(--on-dark); font-weight: 650; margin-bottom: 0.75rem; }
.site-footer__links { list-style: none; display: grid; gap: 0.55rem; }
.site-footer__links a, .site-footer .linklike { color: var(--on-dark-2); text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; }
.site-footer__links a:hover, .site-footer .linklike:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer__hours { margin-top: 0.8rem; font-size: 0.875rem; }
.social { list-style: none; display: flex; gap: 0.5rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(228, 234, 223, 0.25); border-radius: 50%; color: var(--on-dark); }
.social a:hover { background: var(--hoja); color: var(--ink); border-color: var(--hoja); }
.site-footer__fine { border-top: 1px solid rgba(228, 234, 223, 0.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.8125rem; color: #95a291; }

/* ───────── barra fija en móvil ───────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.5rem;
  padding: 0.6rem var(--gut) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { min-height: 50px; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }
@media (max-width: 899px) { body.has-sticky { padding-bottom: 76px; } }

/* ───────── aviso de cookies ───────── */
.consent {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 440px;
  background: var(--ink); color: var(--on-dark); border-radius: var(--r-m); padding: 1rem 1.1rem;
  font-size: 0.9rem; box-shadow: 0 10px 30px rgba(16, 24, 18, 0.25);
}
body.has-sticky .consent { bottom: 86px; }
.consent p { margin-bottom: 0.75rem; }
.consent a { color: var(--hoja-hi); }
.consent__btns { display: flex; gap: 0.5rem; justify-content: flex-end; }
.consent .btn--ghost { --fg: var(--on-dark); --bd: rgba(228, 234, 223, 0.4); }

/* ───────── linktree ───────── */
.is-links { background: var(--monte); color: var(--on-dark); }
.links { position: relative; min-height: 100vh; min-height: 100dvh; padding: clamp(28px, 6vw, 56px) var(--gut) 2rem; overflow: hidden; }
.links__head, .links__list, .links__foot { position: relative; max-width: 520px; margin-inline: auto; }
.links__head { text-align: center; margin-bottom: 1.75rem; }
.links__head img { width: 190px; height: auto; margin: 0 auto 1rem; }
.links__head p { color: var(--on-dark-2); margin-bottom: 0.25rem; }
.links__head .avail { justify-content: center; margin-top: 0.5rem; }
.links__list { list-style: none; display: grid; gap: 0.7rem; }
.links__item {
  display: flex; align-items: center; gap: 0.9rem; min-height: 68px; padding: 0.7rem 1rem;
  border: 1px solid rgba(228, 234, 223, 0.18); border-radius: var(--r-m); background: rgba(248, 249, 244, 0.05);
  text-decoration: none; color: var(--on-dark); transition: background-color 0.15s, border-color 0.15s;
}
.links__item:hover { background: rgba(248, 249, 244, 0.1); border-color: rgba(228, 234, 223, 0.4); }
.links__item.is-highlight { background: var(--hoja); border-color: var(--hoja); color: var(--ink); }
.links__item.is-highlight:hover { background: var(--hoja-hi); }
.links__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(248, 249, 244, 0.1); flex: none; }
.links__item.is-highlight .links__icon { background: rgba(22, 33, 26, 0.12); }
.links__text { display: flex; flex-direction: column; line-height: 1.25; }
.links__text strong { font-weight: 650; }
.links__text small { color: var(--on-dark-2); font-size: 0.85rem; }
.links__item.is-highlight small { color: rgba(22, 33, 26, 0.75); }
.links__foot { text-align: center; margin-top: 2rem; font-size: 0.9rem; }
.links__foot a { color: var(--on-dark-2); }

/* ───────── panel ───────── */
.is-admin { background: var(--paper); }
.admin { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut) 3rem; }
.admin__bar { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin__tabs { display: flex; gap: 0.25rem; margin-right: auto; }
.admin__tabs button { border: 0; background: transparent; padding: 0.55rem 0.9rem; border-radius: var(--r-m); font-weight: 600; cursor: pointer; }
.admin__tabs button.is-on { background: var(--ink); color: var(--sheet); }
.admin__login { max-width: 420px; margin: 4rem auto; }
.admin__form { display: grid; gap: 0.75rem; }
.admin__form input { min-height: 48px; padding: 0 0.9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-m); width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.kpi { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.9rem 1rem; }
.kpi span { display: block; font-size: 0.8125rem; color: var(--ink-3); }
.kpi strong { font-size: 1.8rem; font-weight: 740; font-stretch: 78%; }
.admin .table td, .admin .table th { white-space: normal; vertical-align: top; }
.admin select, .admin textarea { border: 1.5px solid var(--line-strong); border-radius: var(--r-m); background: #fff; padding: 0.35rem 0.5rem; }
.admin textarea { width: 100%; min-height: 60px; }
.tier { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 650; }
.tier--caliente { background: var(--hoja); }
.tier--tibio { background: var(--hoja-tint); }
.tier--frio { background: var(--paper-2); color: var(--ink-2); }
.admin__filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .sticky-cta, .consent, .lead, .cta-band { display: none !important; }
  body { background: #fff; }
}
