/* ==========================================================================
   Edward General Service — Garantías de Alquiler
   Sistema visual armado con recursos reales de GitHub:
   - Tipografía: Mona Sans / Mona Sans Mono (github/mona-sans, OFL)
   - Neutros: Radix Colors "Sand" (radix-ui/colors)
   - Azules y estados: GitHub Primer (primer/primitives)
   Reglas: un solo radio (4px), sin sombras salvo el menú desplegable,
   separación con filetes de 1px, sin degradados ni decoración.
   ========================================================================== */

@font-face { font-family: 'Mona Sans'; src: url('/fonts/MonaSans.woff2') format('woff2'); font-weight: 200 900; font-stretch: 75% 125%; font-style: oblique 0deg 10deg; font-display: swap; }
@font-face { font-family: 'Mona Sans Mono'; src: url('/fonts/MonaSansMono.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  /* Radix Sand */
  --sand1: #fdfdfc; --sand2: #f9f9f8; --sand3: #f1f0ef; --sand4: #e9e8e6;
  --sand6: #dad9d6; --sand7: #cfceca; --sand8: #bcbbb5; --sand11: #63635e; --sand12: #21201c;
  /* Primer */
  --blue0: #ddf4ff; --blue6: #0550ae; --blue7: #033d8b; --blue8: #0a3069;
  --green1: #aceebb; --green5: #1a7f37;
  --yellow1: #fae17d; --yellow5: #9a6700;
  --red1: #ffcecb; --red5: #cf222e;

  --bg: var(--sand1);
  --surface: var(--sand2);
  --surface-2: var(--sand3);
  --line: var(--sand6);
  --line-strong: var(--sand8);
  --ink: var(--sand12);
  --muted: var(--sand11);
  --brand: #0050be;          /* azul del logo */
  --brand-hover: var(--blue7);
  --link: var(--blue6);
  --band: var(--blue8);
  --on-band: #ffffff;
  --on-band-2: #b6cdea;
  --on-band-line: rgba(255, 255, 255, 0.16);

  --font: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Mona Sans Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-h4: 1.375rem;
  --t-h3: clamp(1.45rem, 1.2rem + 0.9vw, 1.8rem);
  --t-h2: clamp(1.9rem, 1.4rem + 1.9vw, 3rem);
  --t-h1: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);

  --r: 4px;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --header-h: 72px;
  --section: clamp(4rem, 3rem + 5vw, 7rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t-md); line-height: 1.6; font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 640; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--blue0); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input, textarea { caret-color: var(--brand); }
html { scrollbar-color: var(--sand8) transparent; }
fieldset { min-inline-size: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r); }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }

/* ---------- Tipografía ---------- */
.h1 { font-size: var(--t-h1); line-height: 1.02; }
.h2 { font-size: var(--t-h2); line-height: 1.06; }
.h3 { font-size: var(--t-h3); line-height: 1.15; }
.h4 { font-size: var(--t-h4); line-height: 1.25; }
.lede { font-size: var(--t-lg); line-height: 1.55; color: var(--ink); max-width: 38rem; }
.body-lg { font-size: var(--t-md); color: var(--muted); max-width: 38rem; }
.prose { max-width: 40rem; color: var(--ink); }
.prose p + p { margin-top: 1rem; }
.prose a { color: var(--link); }

/* Dato pendiente: subrayado punteado, sin cápsula */
.tbd { font-style: normal; text-decoration: underline dotted var(--yellow5); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.tbd::after { content: ' (a confirmar)'; color: var(--yellow5); font-size: 0.86em; }
html[lang='en'] .tbd::after { content: ' (pending)'; }
.on-band .tbd { text-decoration-color: var(--yellow1); }
.on-band .tbd::after { color: var(--yellow1); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0 1.2rem; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: var(--t-sm); font-weight: 600; font-stretch: 105%; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { --bg: var(--brand-hover); --bd: var(--brand-hover); }
.btn .icon { width: 1.05rem; height: 1.05rem; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn--lg { min-height: 3.25rem; padding: 0 1.5rem; font-size: var(--t-md); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--sand8); }
.btn--ghost:hover { --bg: var(--sand3); --bd: var(--sand8); }
.btn--white { --bg: #fff; --fg: var(--blue8); --bd: #fff; }
.btn--white:hover { --bg: var(--blue0); --bd: var(--blue0); }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { --bg: rgba(255, 255, 255, 0.1); --bd: #fff; }
.btn--block { width: 100%; }
.btn--quiet { --bg: transparent; --fg: var(--muted); --bd: transparent; padding-inline: 0.25rem; }
.btn--quiet:hover { --bg: transparent; --bd: transparent; --fg: var(--ink); text-decoration: underline; }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.7; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); font-size: var(--t-sm); }
.link:hover { text-decoration-color: currentColor; }
.link .icon { width: 1rem; height: 1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.brand-sub { padding-left: 0.85rem; border-left: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; font-stretch: 105%; line-height: 1.15; color: var(--ink); }

.primary-nav { flex: 1; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-link, .nav-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 0.3rem; height: var(--header-h); padding: 0 0.75rem;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font-size: var(--t-sm); font-weight: 500; color: var(--ink);
}
.nav-link::after, .nav-trigger::after { content: ''; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform 0.2s var(--ease); }
.nav-link:hover::after, .nav-trigger:hover::after, .nav-trigger[aria-expanded='true']::after, .nav-link[aria-current='page']::after, .nav-item.is-current > .nav-trigger::after { transform: scaleX(1); }
.nav-trigger .icon { width: 0.8rem; height: 0.8rem; color: var(--muted); transition: transform 0.2s var(--ease); }
.nav-trigger[aria-expanded='true'] .icon { transform: rotate(180deg); }
.nav-item { position: relative; }

/* Menú desplegable */
.dropdown {
  position: absolute; top: 100%; left: 0; z-index: 70;
  width: min(560px, 90vw); padding: 0.5rem 0;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--brand); border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 1px 0 var(--sand6), 0 8px 16px rgb(33 32 28 / 0.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0s 0.15s;
}
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown--sm { width: 320px; }
.dd-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.dropdown--sm .dd-grid { grid-template-columns: 1fr; }
.dd-link { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; padding: 0.85rem 1.1rem; text-decoration: none; }
.dd-link:hover, .dd-link:focus-visible { background: var(--sand2); }
.dd-link:hover .dd-title { color: var(--brand); }
.dd-icon { display: block; color: var(--brand); padding-top: 0.1rem; }
.dd-icon .icon { width: 1.2rem; height: 1.2rem; }
.dd-title { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); line-height: 1.3; }
.dd-desc { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.45; margin-top: 0.15rem; }
.dd-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.5rem; padding: 0.85rem 1.1rem 0.35rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }

.header-tools { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.lang { display: flex; align-items: center; gap: 0.35rem; }
.lang a { display: grid; place-items: center; padding: 4px; border-bottom: 2px solid transparent; opacity: 0.55; transition: opacity 0.15s; }
.lang a:hover { opacity: 1; }
.lang a[aria-current='true'] { opacity: 1; border-bottom-color: var(--brand); }
.lang img { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(33 32 28 / 0.15); }
.menu-toggle { display: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-toggle .icon { width: 1.3rem; height: 1.3rem; }
.menu-toggle .icon-x { display: none; }
.menu-toggle[aria-expanded='true'] .icon-x { display: block; }
.menu-toggle[aria-expanded='true'] .icon-list { display: none; }
.nav-cta-mobile { display: none; }

@media (max-width: 1060px) {
  .header-bar { gap: 1rem; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: var(--bg); overflow-y: auto;
    padding: 0.5rem var(--gutter) 2rem;
    visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; height: 3.5rem; padding: 0; font-size: 1.1rem; font-weight: 600; }
  .nav-link::after, .nav-trigger::after { display: none; }
  .dropdown, .dropdown--sm { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0.75rem; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav-item.is-open > .dropdown { display: block; }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-link { padding: 0.65rem 0; }
  .dd-link:hover { background: none; }
  .dd-foot { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 1.5rem; }
}
@media (max-width: 560px) { .brand-sub { display: none; } .brand img { height: 32px; } }

.en-notice { background: var(--sand3); border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--t-xs); padding: 0.55rem 0; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--first { border-top: 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.25rem, 2rem + 2vw, 3.5rem); max-width: 44rem; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 4rem; } .split--even { grid-template-columns: 1fr 1fr; } }
.split > *, .hero-grid > *, .page-hero-grid > *, .quote-layout > *, .flow > *, .form > *, .form-row > *, .panel > *, .q-field > *, .app-body > *, .app-foot > * { min-width: 0; }
.stack > * + * { margin-top: 1.25rem; }
.sticky-col { align-self: start; }
@media (min-width: 900px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(4rem, 3rem + 4vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; } }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 1.5rem; }
.hero .actions { margin-top: 2.25rem; }

/* ---------- Panel de producto (solicitud rápida) ---------- */
.app { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.app-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.app-title { font-size: var(--t-sm); font-weight: 600; font-stretch: 105%; }
.app-step { font-size: var(--t-xs); color: var(--muted); }
.app-body { padding: 1.25rem; display: grid; gap: 1.25rem; }
.app-foot { padding: 1.1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); background: var(--sand2); display: grid; gap: 0.9rem; }
.progress { height: 2px; background: var(--sand3); }
.progress i { display: block; height: 100%; width: 33.3%; background: var(--brand); }

.q-field { display: grid; gap: 0.45rem; border: 0; margin: 0; padding: 0; }
.q-field > label, .q-field > .q-label { font-size: var(--t-xs); font-weight: 600; color: var(--ink); padding: 0; }
.q-money { display: flex; align-items: center; border: 1px solid var(--sand8); border-radius: var(--r); padding: 0 0.9rem; height: 3.25rem; background: #fff; }
.q-money span { color: var(--muted); font-size: 1.15rem; margin-right: 0.35rem; }
.q-money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.4rem; font-weight: 600; font-stretch: 105%; }
.q-money input::placeholder { color: var(--sand8); }
.q-money:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--blue0); }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--sand8); border-radius: var(--r); overflow: hidden; }
.segmented label { position: relative; }
.segmented label + label { border-left: 1px solid var(--sand8); }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 0.6rem 0.25rem; font-size: var(--t-sm); font-weight: 500; transition: background-color 0.15s, color 0.15s; }
.segmented input:hover + span { background: var(--sand2); }
.segmented input:checked + span { background: var(--brand); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -4px; }
.q-summary { display: grid; gap: 0.4rem; font-size: var(--t-sm); }
.q-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.q-row b { font-weight: 600; color: var(--ink); }
.q-row--total { padding-top: 0.55rem; margin-top: 0.15rem; border-top: 1px solid var(--line); color: var(--ink); }
.q-note { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

/* Línea de estado (cómo funciona) */
.timeline { list-style: none; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.85rem; align-items: start; padding-bottom: 1.1rem; color: var(--muted); font-size: var(--t-sm); }
.timeline li::before { content: ''; position: absolute; left: calc(0.55rem - 0.5px); top: 1.25rem; bottom: 0.1rem; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.tl-dot { position: relative; z-index: 1; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; border-radius: 50%; border: 1.5px solid var(--sand8); background: var(--bg); display: grid; place-items: center; transition: background-color 0.25s, border-color 0.25s; }
.tl-dot .icon { width: 0.65rem; height: 0.65rem; opacity: 0; }
.is-done .tl-dot { background: var(--green5); border-color: var(--green5); color: #fff; }
.is-done .tl-dot .icon { opacity: 1; }
.is-now .tl-dot { border-color: var(--brand); background: var(--brand); }
.timeline .is-done, .timeline .is-now { color: var(--ink); }
.timeline .is-now { font-weight: 600; }
.timeline small { display: block; color: var(--muted); font-size: var(--t-xs); font-weight: 400; }

/* Etiquetas de estado: texto con borde, sin cápsula */
.badge { display: inline-block; padding: 0.1rem 0.45rem; border: 1px solid currentColor; border-radius: 2px; font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge--ok { color: var(--green5); border-color: var(--green1); }
.badge--brand { color: var(--blue6); border-color: #b6e3ff; }
.badge--warn { color: var(--yellow5); border-color: var(--yellow1); }
.badge--muted { color: var(--muted); border-color: var(--sand6); }

/* ---------- Audiencias (pestañas subrayadas) ---------- */
.tabs-list { display: flex; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; overflow-x: auto; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 0 0.9rem; border: 0; background: none; cursor: pointer; font-size: var(--t-md); font-weight: 600; font-stretch: 105%; color: var(--muted); white-space: nowrap; }
.tab .icon { width: 1.15rem; height: 1.15rem; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform 0.2s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--ink); }
.tab[aria-selected='true']::after { transform: scaleX(1); }
.tab-panel { display: grid; gap: 2.5rem; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering { animation: step-in 0.3s var(--ease); }
@media (min-width: 900px) { .tab-panel { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.tab-panel .h3 + p { margin-top: 1rem; color: var(--ink); max-width: 34rem; }
.tab-panel .actions { margin-top: 2rem; }

.checks { list-style: none; display: grid; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.checks li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink); }
.checks .icon { display: none; }
.on-band .checks, .on-band .checks li { border-color: var(--on-band-line); color: #fff; }

.photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--sand3); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 4 / 3; }

/* ---------- Pasos ---------- */
.flow { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .flow { grid-template-columns: 1.2fr 0.8fr; gap: 5rem; } }
.steps { list-style: none; counter-reset: s; }
.step { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); transition: opacity 0.3s var(--ease); }
.step:first-child { border-top: 2px solid var(--ink); }
.step::before { content: counter(s); font-size: var(--t-h3); font-weight: 640; font-stretch: 112%; line-height: 1; color: var(--sand8); transition: color 0.3s; }
.step h3 { font-size: var(--t-lg); }
.step p { margin-top: 0.4rem; color: var(--muted); font-size: var(--t-sm); max-width: 34rem; }
.step .who { margin-top: 0.5rem; font-size: var(--t-xs); color: var(--ink); font-weight: 600; }
.js .steps[data-tracked] .step { opacity: 0.45; }
.js .steps[data-tracked] .step.is-active { opacity: 1; }
.js .steps[data-tracked] .step.is-active::before { color: var(--brand); }
.tracker { border-left: 1px solid var(--line); padding-left: 2rem; }
.tracker-title { font-size: var(--t-xs); font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; }

.steps-row { list-style: none; display: grid; counter-reset: s; border-top: 2px solid var(--ink); }
@media (min-width: 700px) { .steps-row { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
@media (min-width: 1100px) { .steps-row { grid-template-columns: repeat(3, 1fr); } .steps-row--4 { grid-template-columns: repeat(4, 1fr); } }
.steps-row li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.steps-row li::before { content: counter(s); font-size: var(--t-lg); font-weight: 640; font-stretch: 112%; color: var(--brand); line-height: 1.3; }
.steps-row h3 { font-size: var(--t-lg); }
.steps-row p { margin-top: 0.35rem; font-size: var(--t-sm); color: var(--muted); max-width: 30rem; }
.on-band .steps-row { border-top-color: #fff; }
.on-band .steps-row li { border-color: var(--on-band-line); }
.on-band .steps-row li::before { color: var(--on-band-2); }
.on-band .steps-row p { color: var(--on-band-2); }

/* ---------- Contraste en prosa (dos columnas) ---------- */
.contrast { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .contrast { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contrast > div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.contrast > div:last-child { border-top: 2px solid var(--brand); }
.contrast h3 { font-size: var(--t-lg); margin-bottom: 0.75rem; }
.contrast p { color: var(--muted); font-size: var(--t-sm); }
.contrast > div:last-child p { color: var(--ink); }
.contrast p + p { margin-top: 0.75rem; }

/* ---------- Principios (lista de definición) ---------- */
.principles { list-style: none; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 800px) { .principles { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }
.principles li { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.principles h3 { font-size: var(--t-lg); }
.principles p { margin-top: 0.45rem; color: var(--muted); font-size: var(--t-sm); max-width: 32rem; }
.on-band .principles { border-top-color: #fff; }
.on-band .principles li { border-color: var(--on-band-line); }
.on-band .principles p { color: var(--on-band-2); }

.register { display: grid; border-top: 2px solid var(--ink); }
.register div { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.register dt { color: var(--muted); }
.register dd { margin: 0; }
@media (max-width: 520px) { .register div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Banda de marca ---------- */
.on-band { background: var(--band); color: var(--on-band); border-top: 0; }
.on-band .muted, .on-band .lede, .on-band .body-lg { color: var(--on-band-2); }
.on-band ::selection { background: #fff; color: var(--band); }
.on-band :focus-visible { outline-color: #fff; }
.on-band .link { color: #fff; }
.on-band + .section { border-top: 0; }

/* Tabla de portal (vista ilustrativa, solo en inmobiliarias) */
.portal { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.portal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); }
.portal-head strong { font-size: var(--t-sm); font-weight: 600; }
.portal-wrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; font-size: var(--t-xs); }
.portal-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--sand2); }
.portal-table td { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-table td.mono { color: var(--muted); }
.portal-note { padding: 0.6rem 1.25rem; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- FAQ (una columna) ---------- */
.faq-wrap { max-width: 46rem; }
.faq-wrap .h2 { margin-bottom: 2rem; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding-block: 1.15rem; font-size: var(--t-md); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary .icon { width: 1rem; height: 1rem; color: var(--muted); transition: transform 0.2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding-bottom: 1.35rem; color: var(--ink); font-size: var(--t-sm); }
.faq .answer p + p { margin-top: 0.75rem; }
.faq .answer a { color: var(--link); }
.faq-more { margin-top: 1.5rem; }

/* ---------- Cierre ---------- */
.closing { padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); border-top: 1px solid var(--line); }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.closing h2 { max-width: 22ch; }
.closing p { margin-top: 0.6rem; color: var(--muted); max-width: 36rem; }

/* ---------- Página interna ---------- */
.page-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.page-hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; } }
.page-hero h1 { max-width: 15ch; }
.page-hero .lede { margin-top: 1.25rem; }
.page-hero .actions { margin-top: 2rem; }
.page-hero .photo { aspect-ratio: 5 / 4; }
.crumbs { margin-bottom: 1.75rem; font-size: var(--t-xs); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.crumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--sand8); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.doclist { list-style: none; border-top: 2px solid var(--ink); }
.doclist li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.doclist .dd-icon { padding-top: 0.15rem; }
.doclist strong { font-size: var(--t-sm); font-weight: 600; }
.doclist p { font-size: var(--t-sm); color: var(--muted); margin-top: 0.2rem; }

.callout { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.75rem; padding: 0.9rem 0 0.9rem 1rem; border-left: 2px solid var(--yellow5); font-size: var(--t-sm); color: var(--ink); }
.callout .icon { width: 1.1rem; height: 1.1rem; color: var(--yellow5); margin-top: 0.15rem; }

.statement { font-size: var(--t-h3); line-height: 1.25; font-weight: 500; font-stretch: 105%; letter-spacing: -0.015em; max-width: 28ch; text-wrap: balance; }

/* ---------- Formularios ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field label, .field legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--muted); font-size: var(--t-xs); }
.input {
  width: 100%; height: 2.875rem; padding: 0 0.85rem; border: 1px solid var(--sand8); border-radius: var(--r); background: #fff;
  font-size: var(--t-md); appearance: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { height: auto; min-height: 7.5rem; padding: 0.75rem 0.85rem; resize: vertical; line-height: 1.5; }
select.input { padding-right: 2.25rem; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2363635e' stroke-width='1.5'/%3E%3C/svg%3E") right 0.85rem center / 11px no-repeat; }
.input::placeholder { color: #7c7c75; }
.input:hover { border-color: var(--sand11); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--blue0); }
.input-money { display: flex; align-items: center; height: 2.875rem; padding: 0 0.85rem; border: 1px solid var(--sand8); border-radius: var(--r); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.input-money span { color: var(--muted); margin-right: 0.4rem; }
.input-money .input { border: 0; box-shadow: none !important; padding: 0; height: 100%; }
.input-money:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--blue0); }
.field.has-error .input, .field.has-error .input-money { border-color: var(--red5); }
.field-error { display: flex; align-items: center; gap: 0.35rem; color: var(--red5); font-size: var(--t-xs); }
.field-error:empty { display: none; }
.field-error .icon { width: 0.95rem; height: 0.95rem; }
.field-hint { font-size: var(--t-xs); color: var(--muted); }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: block; padding: 0.55rem 0.95rem; border: 1px solid var(--sand8); border-radius: var(--r); background: #fff; font-size: var(--t-sm); font-weight: 500; transition: border-color 0.15s, background-color 0.15s, color 0.15s; cursor: pointer; }
.choice input:hover + span { border-color: var(--sand11); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.7rem; align-items: start; font-size: var(--t-xs); color: var(--ink); line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; width: 1.1rem; height: 1.1rem; margin: 0.1rem 0 0; border: 1px solid var(--sand11); border-radius: 2px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.consent input:checked { background: var(--brand); border-color: var(--brand); }
.consent input:checked::after { content: ''; width: 0.3rem; height: 0.58rem; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.consent a { color: var(--link); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: var(--t-sm); }
.form-status:empty { display: none; }
.form-status[data-state='error'] { color: var(--red5); }
.form-success { display: none; }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sent .form-success { display: grid; gap: 1rem; }
.success-ref { justify-self: start; padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 2px; font-size: var(--t-sm); }
.success-ref b { font-family: var(--mono); font-weight: 600; }
.success-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--green5); color: #fff; }
.success-icon .icon { width: 1.25rem; height: 1.25rem; }
.form-success ol { padding-left: 1.2rem; display: grid; gap: 0.5rem; font-size: var(--t-sm); }

/* ---------- Cotizador ---------- */
.quote-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: 1.5fr 1fr; gap: 4rem; } }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.75rem; }
.stepper li { display: grid; gap: 0.5rem; font-size: var(--t-xs); color: var(--muted); }
.stepper li::before { content: ''; height: 3px; background: var(--sand3); transition: background-color 0.3s; }
.stepper li.is-done::before, .stepper li[aria-current='step']::before { background: var(--brand); }
.stepper li[aria-current='step'] { color: var(--ink); font-weight: 600; }
.stepper b { font-weight: 600; margin-right: 0.35rem; }
.wizard-step { display: none; }
.wizard-step.is-active { display: grid; gap: 1.35rem; animation: step-in 0.3s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }
.wizard-step > h2 { font-size: var(--t-h4); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap-reverse; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.review { display: grid; border-top: 2px solid var(--ink); margin: 0; }
.review div { display: grid; grid-template-columns: minmax(7rem, 1fr) 1.4fr auto; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); align-items: center; font-size: var(--t-sm); }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review button { background: none; border: 0; color: var(--link); cursor: pointer; font-size: var(--t-xs); font-weight: 600; padding: 0.25rem; text-decoration: underline; }
.review-title { font-size: var(--t-xs); font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }

/* ---------- Contacto ---------- */
.channels { list-style: none; border-top: 2px solid var(--ink); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a { display: grid; grid-template-columns: 1.5rem 1fr auto; gap: 0.9rem; align-items: center; padding: 1rem 0; text-decoration: none; }
.channels a:hover .ch-v { color: var(--brand); }
.channels .arrow { width: 1rem; height: 1rem; color: var(--muted); }
.ch-k { display: block; font-size: var(--t-xs); color: var(--muted); }
.ch-v { display: block; font-size: var(--t-md); font-weight: 600; word-break: break-word; transition: color 0.15s; }

/* ---------- Misión / visión ---------- */
.mv { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.mv > div { border-top: 2px solid var(--brand); padding-top: 1.25rem; }
.mv h2 { font-size: var(--t-xs); font-weight: 600; font-stretch: 100%; color: var(--brand); letter-spacing: 0; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--on-band); padding-block: 4rem 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; } }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--r); padding: 0.5rem 0.8rem; }
.footer-logo img { height: 32px; width: auto; }
.footer-about p { margin-top: 1.25rem; color: var(--on-band-2); font-size: var(--t-sm); max-width: 32ch; }
.footer-col h2 { font-size: var(--t-xs); font-weight: 600; font-stretch: 100%; color: var(--on-band-2); letter-spacing: 0; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: #fff; text-decoration: none; font-size: var(--t-sm); }
.footer-col a:hover { text-decoration: underline; }
.footer-flags { display: flex; gap: 0.75rem; margin-top: 3rem; }
.footer-flags img { width: 48px; height: 36px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.footer-legal { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--on-band-line); display: grid; gap: 1rem; font-size: var(--t-xs); color: var(--on-band-2); }
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1.7fr 1fr; } }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (min-width: 900px) { .footer-legal ul { justify-content: flex-end; } }
.footer-legal a { color: #fff; }
.site-footer ::selection { background: #fff; color: var(--band); }
.site-footer :focus-visible { outline-color: #fff; }

.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: none; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #1a7f37; color: #fff; }
.wa-float .icon { width: 1.6rem; height: 1.6rem; }
@media (max-width: 760px) { .wa-float { display: grid; } }

@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 0.6rem; }
  .actions .btn--lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print { .site-header, .site-footer, .wa-float { display: none; } }

/* ==========================================================================
   Documentación (/docs): superficie de lectura
   ========================================================================== */
.docs-search { margin-top: 2rem; max-width: 40rem; }
.docs-search .input { height: 3.25rem; font-size: var(--t-md); }
.docs-search .field-hint { margin-top: 0.5rem; min-height: 1.2em; }
.docs-group { display: grid; gap: 1.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.docs-group:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .docs-group { grid-template-columns: 4fr 8fr; gap: 4rem; } }
.docs-group-head .muted { margin-top: 0.5rem; font-size: var(--t-sm); max-width: 28rem; }
.docs-group[hidden] { display: none; }
.docs-list { list-style: none; border-top: 2px solid var(--ink); }
.docs-list li { border-bottom: 1px solid var(--line); }
.docs-list li[hidden] { display: none; }
.docs-list a { display: grid; gap: 0.25rem; padding: 1.1rem 0; text-decoration: none; }
.docs-list-title { font-size: var(--t-lg); font-weight: 600; font-stretch: 105%; color: var(--ink); transition: color 0.15s; }
.docs-list a:hover .docs-list-title { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.docs-list-sum { font-size: var(--t-sm); color: var(--muted); max-width: 40rem; }
.docs-list-meta { font-size: var(--t-xs); color: var(--muted); }
.docs-list--compact .docs-list-title { font-size: var(--t-md); }

.docs-layout { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem) var(--section); }
@media (min-width: 900px) { .docs-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; } }
@media (min-width: 1240px) { .docs-layout { grid-template-columns: 15rem minmax(0, 1fr) 13rem; } }
.docs-side { display: none; }
@media (min-width: 900px) { .docs-side { display: block; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; padding-right: 0.5rem; } }
.docs-nav-home { display: block; font-size: var(--t-sm); font-weight: 600; text-decoration: none; padding: 0.35rem 0 0.35rem 0.85rem; border-left: 2px solid var(--line); }
.docs-nav-home.is-current, .docs-nav-home:hover { border-left-color: var(--brand); color: var(--brand); }
.docs-nav-group { margin-top: 1.5rem; }
.docs-nav-title { font-size: var(--t-xs); font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.docs-nav ul, .doc-toc ul { list-style: none; }
.docs-nav li a { display: block; padding: 0.35rem 0 0.35rem 0.85rem; border-left: 2px solid var(--line); font-size: var(--t-sm); line-height: 1.35; text-decoration: none; color: var(--muted); }
.docs-nav li a:hover { color: var(--ink); border-left-color: var(--sand8); }
.docs-nav li a[aria-current='page'] { color: var(--ink); font-weight: 600; border-left-color: var(--brand); }

.doc { min-width: 0; max-width: 44rem; }
.doc-head { padding-bottom: 1.75rem; border-bottom: 2px solid var(--ink); }
.doc-head .lede { margin-top: 1rem; color: var(--muted); }
.doc-meta { margin-top: 1rem; font-size: var(--t-xs); color: var(--muted); }
.doc-body { font-size: 1.0625rem; line-height: 1.7; }
.doc-body section { padding-top: 2.25rem; }
.doc-body h2 { font-size: var(--t-h4); margin-bottom: 0.85rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.doc-body section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.doc-body h2 a { text-decoration: none; }
.doc-body h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.doc-body p + p, .doc-body p + ul, .doc-body p + ol, .doc-body p + dl, .doc-body ul + p, .doc-body dl + p, .doc-body ol + p, .doc-body .callout + p { margin-top: 1rem; }
.doc-body a { color: var(--link); }
.doc-body strong { font-weight: 600; }
.doc-body .callout { margin-top: 1.25rem; }
.doc-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.doc-list li { padding: 0.75rem 0 0.75rem 1.25rem; border-bottom: 1px solid var(--line); position: relative; }
.doc-list li::before { content: ''; position: absolute; left: 0; top: 1.45rem; width: 0.5rem; height: 2px; background: var(--brand); }
.doc-steps { list-style: none; counter-reset: ds; display: grid; border-top: 1px solid var(--line); }
.doc-steps li { counter-increment: ds; display: grid; grid-template-columns: 2rem 1fr; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.doc-steps li::before { content: counter(ds); font-weight: 640; font-stretch: 112%; color: var(--brand); }
.doc-dl { display: grid; border-top: 1px solid var(--line); margin: 0; }
.doc-dl div { display: grid; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .doc-dl div { grid-template-columns: 13rem 1fr; gap: 1.5rem; } }
.doc-dl dt { font-weight: 600; }
.doc-dl dd { margin: 0; color: var(--ink); }
.doc-quote { font-size: var(--t-h4); line-height: 1.4; font-weight: 500; font-stretch: 105%; padding-left: 1.25rem; border-left: 2px solid var(--brand); }
.doc-help { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.doc-pager a { display: grid; gap: 0.2rem; padding: 1rem 0; text-decoration: none; font-weight: 600; font-size: var(--t-sm); border-top: 2px solid var(--ink); }
.doc-pager a span { font-size: var(--t-xs); font-weight: 400; color: var(--muted); }
.doc-pager a:hover { color: var(--brand); }
.doc-pager .next { text-align: right; }
.doc-toc { display: none; }
@media (min-width: 1240px) { .doc-toc { display: block; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); } }
.doc-toc li a { display: block; padding: 0.3rem 0 0.3rem 0.75rem; border-left: 2px solid var(--line); font-size: var(--t-xs); line-height: 1.4; color: var(--muted); text-decoration: none; }
.doc-toc li a:hover { color: var(--ink); }
.doc-toc li a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--brand); }
.doc-body h2 a { color: inherit; }

/* ==========================================================================
   Construcciones: piezas propias de este sitio
   ========================================================================== */
.flags { display: flex; align-items: center; gap: 0.4rem; }
.flags img { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(33 32 28 / 0.15); }
@media (max-width: 400px) { .flags { display: none; } }

.hero h1 { max-width: 16ch; }
.hero-photo { aspect-ratio: 4 / 3; }
.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0.5rem 2.5rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.hero-meta dt { color: var(--muted); font-size: var(--t-xs); }
.hero-meta dd { margin: 0.15rem 0 0; font-weight: 600; }
@media (max-width: 520px) { .hero-meta { grid-template-columns: 1fr; } }

.highlights { border-top: 1px solid var(--line); background: var(--surface); }
.highlights-list { list-style: none; display: grid; gap: 1.5rem 2.5rem; padding-block: 2.25rem; }
@media (min-width: 640px) { .highlights-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .highlights-list { grid-template-columns: repeat(4, 1fr); } }
.highlights-list li { border-top: 2px solid var(--brand); padding-top: 0.9rem; }
.highlights-list strong { display: block; font-weight: 600; font-stretch: 105%; }
.highlights-list span { display: block; margin-top: 0.25rem; font-size: var(--t-sm); color: var(--muted); }

.section--tight { padding-top: 0; border-top: 0; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head--row .h2 { max-width: 20ch; }

.tab-panel .photo--wide img { position: absolute; inset: 0; }

.gallery { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery .photo { aspect-ratio: 4 / 5; }
.gallery .photo img { position: absolute; inset: 0; transition: transform 0.5s var(--ease); }
.gallery li:hover .photo img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; bottom: 0; padding: 0.35rem 0.6rem; background: var(--bg); border-top-right-radius: var(--r); font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.gallery--home { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery--home { grid-template-columns: repeat(4, 1fr); } }
.gallery--all .photo { aspect-ratio: 1; }
.gallery--all figcaption { right: 0; border-radius: 0; font-weight: 500; }

.page-hero .photo img { position: absolute; inset: 0; }

.principles--3 { margin-top: 1rem; }
@media (min-width: 800px) { .principles--3 { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; } }

.srv-quote { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--brand); font-size: var(--t-lg); line-height: 1.45; font-weight: 500; font-stretch: 105%; max-width: 26ch; }

.checks--icons li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.75rem; align-items: start; }
.checks--icons .icon { display: block; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--green5); }

.srv-list { list-style: none; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 800px) { .srv-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.srv-list li { border-bottom: 1px solid var(--line); }
.srv-list a { display: grid; grid-template-columns: 1.25rem 1fr auto; gap: 1rem; align-items: start; padding: 1.15rem 0; text-decoration: none; }
.srv-list strong { display: block; font-weight: 600; font-size: var(--t-md); }
.srv-list a > span:nth-child(2) > span { display: block; font-size: var(--t-sm); color: var(--muted); margin-top: 0.2rem; }
.srv-list a:hover strong { color: var(--brand); }
.srv-list .arrow { width: 1rem; height: 1rem; color: var(--muted); margin-top: 0.3rem; transition: transform 0.2s var(--ease); }
.srv-list a:hover .arrow { transform: translateX(3px); color: var(--brand); }

.channels .icon:first-child { color: var(--brand); }
.ch-static { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.9rem; align-items: center; padding: 1rem 0; }
.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.doc-body section:first-child { padding-top: 0; }
.footer-text { color: var(--on-band-2); font-size: var(--t-sm); }

/* ==========================================================================
   Home del grupo
   ========================================================================== */
.hero h1 { max-width: 13ch; }

.figures { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.figures-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: var(--t-sm); font-weight: 600; font-stretch: 105%; }
.figures-head .muted { font-size: var(--t-xs); font-weight: 400; }
.figures-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.figures-grid div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.35rem; padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }
.figures-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.figures-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.figures-grid dd { margin: 0; font-size: var(--t-h2); font-weight: 640; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.figures-grid div:first-child dd { color: var(--brand); }
.figures-grid dt { font-size: var(--t-sm); color: var(--muted); }
.figures-foot { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); background: var(--sand2); font-size: var(--t-xs); color: var(--muted); }
.figures-foot .icon { width: 1rem; height: 1rem; color: var(--brand); }

.units { list-style: none; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .units { grid-template-columns: 1fr 1fr; column-gap: 4.5rem; } }
.unit { display: flex; flex-direction: column; padding-block: 2rem 2.25rem; border-bottom: 1px solid var(--line); }
.unit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.unit-num { font-family: var(--mono); font-size: var(--t-sm); color: var(--muted); }
.unit-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--brand); }
.unit-icon .icon { width: 1.4rem; height: 1.4rem; }
.unit-name { font-size: var(--t-xs); font-weight: 600; color: var(--brand); margin-bottom: 0.5rem; }
.unit-text { margin-top: 0.75rem; color: var(--muted); font-size: var(--t-sm); max-width: 34rem; }
.unit .checks { margin-top: 1.25rem; }
.unit .actions { margin-top: auto; padding-top: 1.75rem; }
.unit .btn .icon { width: 1rem; height: 1rem; }
.unit:hover .unit-icon { border-color: var(--brand); }

.org { margin-bottom: 3.5rem; }
.org-top { position: relative; max-width: 26rem; margin-inline: auto; padding: 1rem 1.25rem; border: 1px solid #fff; border-radius: var(--r); text-align: center; }
.org-top strong { display: block; font-weight: 600; font-stretch: 105%; font-size: var(--t-lg); }
.org-top span { display: block; font-size: var(--t-xs); color: var(--on-band-2); margin-top: 0.2rem; }
.org-units { list-style: none; position: relative; display: grid; gap: 0.75rem; padding-top: 1.5rem; }
.org-units a { display: flex; align-items: center; gap: 0.75rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--on-band-line); border-radius: var(--r); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--t-sm); transition: background-color 0.15s, border-color 0.15s; }
.org-units a:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.org-units .icon { color: var(--on-band-2); }
@media (min-width: 800px) {
  .org-units { grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 2.5rem; }
  .org-top::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 1.25rem; background: var(--on-band-line); }
  .org-units::before { content: ''; position: absolute; top: 1.25rem; left: 12.5%; right: 12.5%; height: 1px; background: var(--on-band-line); }
  .org-units li { position: relative; }
  .org-units li::before { content: ''; position: absolute; left: 50%; top: -1.25rem; width: 1px; height: 1.25rem; background: var(--on-band-line); }
}

.closing-units { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.closing-units .icon { width: 0.9rem; height: 0.9rem; }

/* ==========================================================================
   Préstamos
   ========================================================================== */
.segmented--2 { grid-template-columns: repeat(2, 1fr); }
.checks--panel { margin: 0; border-top: 0; }
.checks--panel li { padding: 0.85rem 1.25rem; }
.checks--panel li:last-child { border-bottom: 0; }
.tab-panel--list { display: block; }
.tab-panel--list[hidden] { display: none; }
.doclist--grid { display: grid; }
@media (min-width: 800px) { .doclist--grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.steps-row--stack { grid-template-columns: 1fr !important; }
.callout p { margin: 0; }
.callout strong { font-weight: 600; }
.page-hero .figures { align-self: center; }
