/* Horizonte · Alcorta Linares (demo de BlackCirca Webs)
   Sistema documentado en DESIGN.md. Todo valor sale de los tokens. */

:root {
  --paper: #f5f6f7;
  --white: #ffffff;
  --ink: #0e1116;
  --slate: #26303b;
  --muted: #4a5360;
  --mist: #c9d5df;
  --mist-2: #b4c4d1;
  --mist-soft: #e6ecf1;
  --error: #b42318;
  --ok: #1f6b45;
  --veil: rgba(8, 11, 15, 0.46);

  --f: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --s-small: 1rem;
  --s-xs: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --s-lead: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  --s-h3: clamp(1.5rem, 1rem + 1.3vw, 2.25rem);
  --s-h2: clamp(2.25rem, 1rem + 3.2vw, 4rem);
  --s-display: clamp(2.75rem, 0.9rem + 5.2vw, 6rem);

  --m: clamp(16px, 2.2vw, 32px);
  --max: 1440px;
  --section: clamp(96px, 10vw, 160px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-ui: 200ms;

  --header-h: 84px;
}

/* ---------- Tipografía local (Satoshi, ITF Free Font License: ver assets/fonts/LICENCIA-Satoshi-FFL.txt) ---------- */
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Base y superficies del navegador ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); accent-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--f);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.3em; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mist); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--mist); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
html { scrollbar-color: var(--mist-2) var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.section { padding-block: var(--section); }
h2.h2 { font-size: var(--s-h2); line-height: 1; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.h3 { font-size: var(--s-h3); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.lead { font-size: var(--s-lead); line-height: 1.42; text-wrap: pretty; }
.small { font-size: var(--s-small); line-height: 1.5; }
.muted { color: var(--muted); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.section-head .lead { max-width: 36ch; }

/* ---------- Iconos ---------- */
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 8px 0 26px; border: 0; border-radius: 999px;
  font: 500 var(--s-small)/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.btn .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform 260ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink .dot { background: var(--mist); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light .dot { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .dot { transform: rotate(-45deg); }
  .btn-ink:hover { background: var(--slate); }
  .btn-light:hover { background: var(--mist-soft); }
}
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; transition: text-decoration-color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: var(--mist-2); } .on-dark .link:hover { text-decoration-color: var(--mist); } }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; transition: height 240ms var(--ease-out); }
.site-header.scrolled .bar { height: 68px; }
.mark { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; border-radius: 999px; }
.site-header .mark, .menu-panel .mark { margin-right: auto; }
.mark .mono { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 0.9375rem/1 var(--f); letter-spacing: -0.02em; }
.mark b { font: 700 1.25rem/1 var(--f); letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: var(--s-small); font-weight: 500; padding: 12px 16px; border-radius: 999px; transition: background-color var(--t-ui) ease; }
.nav a[aria-current="true"] { background: var(--white); }
@media (hover: hover) { .nav a:hover { background: var(--white); } }
.site-header .btn { min-height: 48px; font-size: var(--s-small); padding-left: 22px; }
.site-header .btn .dot { width: 32px; height: 32px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--white); font-weight: 500; font-size: var(--s-small); cursor: pointer; }

/* Menú móvil */
.menu-panel {
  position: fixed; inset: 0; z-index: 80; background: var(--paper);
  display: flex; flex-direction: column; padding: 0 var(--m) calc(24px + env(safe-area-inset-bottom));
  display: none;
}
.menu-panel.open { display: flex; animation: menu-in 320ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu-panel .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu-panel nav { margin-top: 24px; display: grid; gap: 4px; }
.menu-panel nav a { font: 700 2.5rem/1.1 var(--f); letter-spacing: -0.035em; text-decoration: none; padding: 8px 0; }
.menu-panel .menu-foot { margin-top: auto; display: grid; gap: 16px; }
.menu-panel .btn { width: 100%; justify-content: space-between; }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
.stage { position: relative; height: calc(100svh - var(--header-h) - 48px); min-height: 640px; max-height: 900px; border-radius: var(--r-lg); overflow: hidden; background: var(--slate); isolation: isolate; }
.stage picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 40%; z-index: -2; transform-origin: 70% 35%; }
/* Velo neutro más denso del lado del texto (la única excepción de degradé del sistema: velo bajo texto sobre foto) */
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 11, 15, 0.84) 0%, rgba(8, 11, 15, 0.76) 48%, rgba(8, 11, 15, 0.28) 68%, rgba(8, 11, 15, 0.1) 100%); }
.stage .content { position: absolute; left: clamp(24px, 4vw, 64px); right: clamp(24px, 4vw, 64px); bottom: clamp(128px, 11vw, 168px); color: #fff; display: grid; gap: 28px; max-width: 780px; }
.stage h1 { font-size: var(--s-display); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.stage .lead { max-width: 34ch; }
.stage .actions { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.stage .actions .link { display: inline-flex; align-items: center; min-height: 44px; }

/* Barra del orientador apoyada sobre el borde del hero */
.finder {
  position: relative; z-index: 2; margin: -96px auto 0; width: min(1120px, calc(100% - 2 * clamp(24px, 4vw, 64px)));
  background: var(--white); border-radius: var(--r-md); padding: 20px 20px 20px 28px;
  display: grid; grid-template-columns: auto 1fr; gap: 16px 24px; align-items: center;
}
.finder h2 { font-size: var(--s-body); line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.finder ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border-radius: 999px; background: var(--mist-soft); text-decoration: none; font-size: var(--s-small); font-weight: 500; border: 0; cursor: pointer;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) { .chip:hover { background: var(--mist); } }

/* ---------- Orientador ---------- */
.orientador .tool { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: stretch; }
.orientador fieldset { border: 0; padding: 0; min-width: 0; }
.options { display: grid; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; z-index: 1; margin: 0; cursor: pointer; }
.option label {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding: 16px 16px 16px 24px; border-radius: var(--r-md); background: var(--white);
  font-size: var(--s-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
.option .tick { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mist-soft); color: var(--ink); transition: background-color var(--t-ui) ease, transform 260ms var(--ease-out); }
.option input:checked + label { background: var(--ink); color: #fff; }
.option input:checked + label .tick { background: var(--mist); transform: rotate(-45deg); }
.option input:active + label { transform: scale(0.985); }
.option input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .option input:not(:checked):hover + label { background: var(--mist-soft); } }
.result { background: var(--white); border-radius: var(--r-md); padding: 40px; display: grid; align-content: start; }
.result-panel { display: grid; gap: 28px; }
.js .result-panel[hidden] { display: none; }
.js .result-panel.enter { animation: panel-in 240ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.result-panel .area-name { font-size: var(--s-small); color: var(--muted); margin-top: 8px; }
.result-panel .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.result-panel h4 { font-size: var(--s-body); font-weight: 700; margin-bottom: 10px; }
.list li { position: relative; padding-left: 20px; }
.list li + li { margin-top: 8px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--mist-2); }
.result-panel .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.no-js { margin-top: 16px; }
.js .no-js { display: none; }

/* ---------- Áreas: mosaico ---------- */
.bento { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 12px; }
.tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  text-decoration: none; color: inherit;
}
.tile p { max-width: 38ch; }
.tile .list { margin-top: 4px; }
.tile .more { position: absolute; top: clamp(20px, 2vw, 28px); right: clamp(20px, 2vw, 28px); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: transform 300ms var(--ease-out); }
.tile .cta-label { font-size: var(--s-small); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; margin-top: 4px; }
.tile .bg { position: absolute; inset: 0; z-index: -2; }
.tile .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile.photo { color: #fff; }
.tile.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 11, 15, 0.5); }
.tile.photo .more { background: var(--white); color: var(--ink); }
.tile.photo .list li::before { background: var(--mist); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .bg img, .tile:hover .side-img img { transform: scale(1.05); }
  .tile:hover .more { transform: rotate(-45deg); }
}
.t1 { grid-column: span 7; grid-row: span 2; }
.t2 { grid-column: span 5; background: var(--mist); }
.t2 .more, .t4 .more { background: var(--ink); color: #fff; }
.t2 .list li::before { background: var(--ink); }
.t3 { grid-column: span 5; }
.t4 { grid-column: span 7; background: var(--white); padding: 0; flex-direction: row; align-items: stretch; }
.t4 .side-img { width: 42%; flex: none; overflow: hidden; }
.t4 .side-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.t4 .t4-text { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.t5 { grid-column: span 5; background: var(--ink); color: #fff; }
.t5 .btn { margin-top: 12px; align-self: flex-start; }

/* ---------- El estudio ---------- */
.estudio-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 12px; align-items: stretch; }
.estudio-photo { border-radius: var(--r-lg); overflow: hidden; min-height: 560px; background: var(--slate); }
.estudio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.estudio-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; gap: 24px; }
.estudio-card .lead { max-width: 30ch; }
.principles { margin-top: 8px; display: grid; gap: 20px; }
.principles h3 { font-size: var(--s-body); font-weight: 700; }
.principles p { color: var(--muted); max-width: 46ch; }
.facts { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--paper); border-radius: 999px; padding: 10px 16px; font-size: var(--s-small); font-weight: 500; }
.estudio-card > .btn { align-self: flex-start; }

/* ---------- Cómo trabajamos ---------- */
.metodo-grid { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; }
.metodo-photo { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; background: var(--slate); }
.metodo-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step { background: var(--white); border-radius: var(--r-md); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.step:nth-child(2) { background: var(--mist-soft); }
.step:nth-child(3) { background: var(--mist-soft); }
.step h3 { font-size: var(--s-lead); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.step p { color: var(--muted); }

/* ---------- Publicaciones ---------- */
.pubs-grid { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 12px; }
.pub { position: relative; background: var(--white); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.pub .ph { overflow: hidden; background: var(--slate); }
.pub .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.pub .body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pub .meta { font-size: var(--s-small); color: var(--muted); font-feature-settings: "tnum" 1; }
.pub h3 a { text-decoration: none; }
.pub h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.pub h3 a:focus-visible { outline: none; }
.pub:has(h3 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.pub p.excerpt { max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .pub:hover .ph img { transform: scale(1.05); } }
.pub-lead .ph { aspect-ratio: 16 / 9; }
.pub-side { display: grid; gap: 12px; }
.pub-side .pub { flex-direction: row; }
.pub-side .ph { width: 40%; flex: none; }
.pub-side h3 { font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem); }
.pub-side .body { justify-content: center; }
.pending { margin-top: 20px; min-height: 1.5em; }

/* ---------- Consulta ---------- */
.consulta { padding-bottom: clamp(64px, 6vw, 96px); }
.consulta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; }
.consulta-intro { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.consulta-intro .lead { color: #e9edf1; max-width: 32ch; }
.contact { margin-top: auto; display: grid; gap: 16px; }
.contact dt { font-size: var(--s-small); color: #b9c4cf; }
.contact dd { font-weight: 500; }
.contact .tag { display: inline-block; margin-left: 8px; font-size: var(--s-xs); font-weight: 500; color: var(--ink); background: var(--mist); border-radius: 999px; padding: 2px 10px; vertical-align: 2px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); }
.form-card .note { margin-bottom: 28px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--s-small); font-weight: 700; }
.field .hint { font-size: var(--s-xs); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--paper); border: 1.5px solid var(--mist-2); color: var(--ink);
  transition: border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230e1116' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background-color: var(--white); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--mist); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { font-size: var(--s-xs); font-weight: 500; color: var(--error); }
.field .error:empty { display: none; }
.field.prefilled select { border-color: var(--ink); background-color: var(--mist-soft); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.radios legend { margin-bottom: 8px; padding: 0; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--mist-soft); font-size: var(--s-small); font-weight: 500; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.radio input:checked + span { background: var(--ink); color: #fff; }
.radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--s-small); line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.form-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.summary { margin-bottom: 24px; padding: 18px 20px; border-radius: var(--r-sm); background: #fdf0ef; color: var(--error); }
.summary[hidden] { display: none; }
.summary h3 { font-size: var(--s-body); font-weight: 700; }
.summary ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.summary a { color: var(--error); font-weight: 500; }
.done { display: grid; gap: 16px; justify-items: start; }
.done[hidden] { display: none; }
.done .badge { display: inline-flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 700; }

/* ---------- Pie ---------- */
/* Dos identidades separadas: primero la tarjeta clara de BlackCirca Webs (único CTA comercial) y después el pie de tinta del estudio. */
.bc-close { padding-top: clamp(48px, 5vw, 80px); }
.site-footer { padding-top: 12px; padding-bottom: 12px; }
.foot-panel {
  container-type: inline-size; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px 32px;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(20px, 3vw, 44px); border-radius: var(--r-lg); background: var(--ink); color: #fff;
}
.foot-panel .mark .mono { background: var(--mist); color: var(--ink); }
.foot-brand p { margin-top: 20px; max-width: 30ch; color: var(--mist); }
.foot-panel h2 { font-size: var(--s-xs); font-weight: 500; color: var(--mist-2); margin-bottom: 14px; }
.foot-panel ul a { display: inline-flex; align-items: center; min-height: 36px; color: #fff; text-decoration: none; text-underline-offset: 0.3em; text-decoration-thickness: 1.5px; }
.foot-panel ul a[aria-current="page"] { text-decoration-line: underline; text-decoration-color: var(--mist-2); }
@media (hover: hover) and (pointer: fine) { .foot-panel ul a:hover { text-decoration-line: underline; } }
/* La marca ocupa todo el ancho del panel y se ve completa, con el mismo margen inferior que los laterales */
.foot-name { grid-column: 1 / -1; margin-top: clamp(-8px, -1cqi, 0px); font: 700 16.2cqi/0.74 var(--f); letter-spacing: -0.055em; color: var(--mist); white-space: nowrap; user-select: none; }

.foot-bc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end;
  padding: clamp(24px, 3.5vw, 48px) clamp(24px, 4vw, 56px); border-radius: var(--r-lg); background: var(--white);
}
.bc-sig { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: var(--s-small); text-decoration: none; }
.bc-sig b { color: var(--ink); white-space: nowrap; }
.bc-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .bc-sig:hover b { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1.5px; } }
.foot-bc h2 { margin-top: 12px; max-width: 20ch; font-size: var(--s-h3); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.foot-bc .bc-copy > p { margin-top: 14px; max-width: 46ch; color: var(--muted); }
.bc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.bc-actions .link { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 1000px) {
  .foot-panel { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bc { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .foot-panel { grid-template-columns: 1fr; gap: 28px; }
  .foot-panel ul a { min-height: 44px; }
  .bc-actions { flex-direction: column; align-items: stretch; }
  .bc-actions .btn { justify-content: space-between; }
  .bc-actions .link { align-self: flex-start; }
}

/* ---------- WhatsApp del estudio (demostrativo) ---------- */
/* Representa el contacto con Alcorta Linares. Como el estudio es ficticio, abre una vista previa en un diálogo (site.js). */
.wa-fab {
  position: fixed; z-index: 45; right: calc(16px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 3px solid var(--paper); border-radius: 50%; background: var(--ink); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-ui) ease, transform 260ms var(--ease-out), visibility 0s linear var(--t-ui), background-color var(--t-ui) ease;
}
.wa-fab .icon { width: 26px; height: 26px; }
.wa-fab.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wa-fab.show:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .wa-fab:hover { background: var(--slate); } }
@media (min-width: 1001px) { .wa-fab { right: 32px; bottom: 32px; width: 64px; height: 64px; } .wa-fab .icon { width: 28px; height: 28px; } }

.wa-demo { width: min(100% - 32px, 480px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.wa-demo::backdrop { background: rgba(8, 11, 15, 0.56); }
.wa-in { position: relative; display: grid; gap: 20px; padding: clamp(24px, 4vw, 36px); }
.wa-demo h2 { padding-right: 56px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.wa-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; transition: background-color var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.wa-close:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .wa-close:hover { background: var(--mist-soft); } }
.wa-chat { display: grid; gap: 16px; padding: 16px; border-radius: var(--r-md); background: var(--mist-soft); }
.wa-contact { display: flex; align-items: center; gap: 12px; }
.wa-contact > span:last-child { display: grid; line-height: 1.25; }
.wa-contact small { color: var(--muted); font-size: var(--s-xs); }
.wa-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; }
.wa-logo .icon { width: 22px; height: 22px; }
.wa-bubble { justify-self: end; max-width: 88%; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: #d9fdd3; color: #111b21; line-height: 1.45; }
.wa-note { color: var(--muted); font-size: var(--s-small); }
.wa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.wa-actions .link { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) { .wa-actions .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: no-preference) {
  .wa-demo[open] { animation: wa-in 240ms var(--ease-out); }
  .wa-demo[open]::backdrop { animation: wa-fade 200ms ease; }
}
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes wa-fade { from { opacity: 0; } }

/* ---------- Barra móvil ---------- */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; transform: translateY(160%); transition: transform 320ms var(--ease-out); }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; justify-content: space-between; }

/* =========================================================
   Página «El estudio» (estudio.html)
   Reutiliza tokens, botones, chips, listas y encabezados de sección.
   Composición propia: hero partido con foto que se apoya, columna fija
   de principios, relación en dos voces y mosaico editorial.
   ========================================================= */

/* Hero partido: titular sobre papel, foto con una tarjeta que se le apoya */
.page-hero { padding-top: clamp(24px, 3vw, 48px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.page-hero h1 { font-size: var(--s-display); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; max-width: 10em; }
.page-hero .lead { margin-top: 28px; max-width: 34ch; }
.page-hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.page-hero .actions .link { display: inline-flex; align-items: center; min-height: 44px; }
.page-hero-media { position: relative; padding-bottom: 56px; }
.page-hero-media .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--slate); }
.page-hero-media .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.page-hero-media .note-card {
  position: absolute; left: clamp(-56px, -3vw, -24px); bottom: 0; width: min(440px, 86%);
  background: var(--white); border-radius: var(--r-md); padding: 24px 28px; display: grid; gap: 14px;
}
.note-card p { font-weight: 700; letter-spacing: -0.01em; }
.note-card .facts { margin: 0; padding: 0; }
.note-card .facts li { background: var(--paper); padding: 8px 14px; font-size: var(--s-xs); }

/* Enfoque boutique: declaración ancha y foto panorámica */
.enfoque .statement-h { font-size: var(--s-h2); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; max-width: 16em; }
.enfoque-cols { margin-top: clamp(32px, 3vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; max-width: 1040px; }
.enfoque-cols p { max-width: 52ch; }
.enfoque-photo { margin-top: clamp(40px, 4vw, 64px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--slate); }
.enfoque-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* Principios: columna de título fija y lista de principios sobre niebla */
.principios-field { background: var(--mist); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.principios-intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.principios-intro .lead { max-width: 30ch; }
.principios-list { display: grid; gap: clamp(28px, 3vw, 44px); }
.principio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; align-items: baseline; }
.principio h3 { font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.principio p { color: var(--ink); }

/* Relación con el cliente: foto alta y dos voces */
.relacion-grid { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px; align-items: stretch; }
.relacion-photo { border-radius: var(--r-lg); overflow: hidden; background: var(--slate); min-height: 520px; }
.relacion-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.voces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.voz { border-radius: var(--r-lg); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.voz.nuestra { background: var(--white); }
.voz.suya { background: var(--mist-soft); }
.voz h3 { font-size: var(--s-h3); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.voz .list li + li { margin-top: 12px; }

/* Mosaico editorial de presencia humana */
.editorial-grid { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 12px; }
.ed { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--slate); }
.ed img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.ed figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: var(--s-xs); font-weight: 500; }
.ed-1 { grid-column: span 7; grid-row: span 2; }
.ed-2 { grid-column: span 5; }
.ed-3 { grid-column: span 5; }
.ed-note { margin-top: 16px; max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .ed:hover img { transform: scale(1.04); } }

/* Cómo comienza una consulta: campo de tinta con tres pasos */
.inicio-field { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 80px); }
.inicio-field .section-head .lead { color: #e9edf1; }
.inicio-steps { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.inicio-step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; position: relative; }
.inicio-step::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--mist); }
.inicio-step h3 { font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.inicio-step p { color: #d5dde5; }
.inicio-step .link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; }
.inicio-note { margin-top: 24px; color: #b9c4cf; font-size: var(--s-xs); max-width: 62ch; }

/* Cierre contextual */
.cierre-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; }
.cierre-card .lead { margin-top: 16px; max-width: 40ch; }
.cierre-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.btn-soft { background: var(--mist-soft); color: var(--ink); }
.btn-soft .dot { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-soft:hover { background: var(--mist); } }

/* Movimiento propio del hero de página */
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero .hero-copy > * { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 900ms var(--ease-out); }
  .js .page-hero.in .hero-copy > * { opacity: 1; transform: none; }
  .js .page-hero.in .hero-copy > :nth-child(2) { transition-delay: 120ms; }
  .js .page-hero.in .hero-copy > :nth-child(3) { transition-delay: 220ms; }
  .js .page-hero .ph img { transform: scale(1.08); transition: transform 2200ms var(--ease-out); }
  .js .page-hero.in .ph img { transform: scale(1.0); }
  .js .page-hero .note-card { opacity: 0; transform: translateY(32px); transition: opacity 700ms ease 420ms, transform 900ms var(--ease-out) 420ms; }
  .js .page-hero.in .note-card { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { padding-bottom: 72px; }
  .page-hero-media .ph { aspect-ratio: 16 / 11; }
  .page-hero-media .note-card { left: 24px; }
  .enfoque-photo { aspect-ratio: 16 / 9; }
  .principios-field { grid-template-columns: 1fr; }
  .principios-intro { position: static; }
  .relacion-grid { grid-template-columns: 1fr; }
  .relacion-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .inicio-steps { grid-template-columns: 1fr; }
  .cierre-card { grid-template-columns: 1fr; }
  .cierre-actions { justify-content: flex-start; }
  .ed-1 { grid-column: span 12; grid-row: span 1; min-height: 360px; }
  .ed-2, .ed-3 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .page-hero .actions .btn { width: 100%; justify-content: space-between; }
  .page-hero-media .ph { aspect-ratio: 4 / 4.2; }
  .page-hero-media .note-card { left: 12px; right: 12px; width: auto; padding: 20px; }
  .enfoque-cols { grid-template-columns: 1fr; }
  .enfoque-photo { aspect-ratio: 4 / 3; }
  .principio { grid-template-columns: 1fr; }
  .voces { grid-template-columns: 1fr; }
  .ed-2, .ed-3 { grid-column: span 12; min-height: 240px; }
  .ed-1 { min-height: 300px; }
  .cierre-actions .btn { width: 100%; justify-content: space-between; }
}

/* =========================================================
   Página «Áreas de práctica» (areas.html)
   Composición propia: titular con índice de las cuatro áreas,
   barra de áreas fija con sección activa, una ficha por área
   (alternando lado y campo) y preguntas frecuentes desplegables.
   ========================================================= */

/* Hero: titular y un índice navegable de las cuatro áreas */
.areas-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.areas-hero .lead { margin-top: 28px; max-width: 36ch; }
.areas-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.areas-hero .actions .link { display: inline-flex; align-items: center; min-height: 44px; }
.area-index { background: var(--white); border-radius: var(--r-lg); padding: 12px; display: grid; gap: 4px; }
.area-index a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 18px; align-items: center;
  padding: 14px 16px 14px 14px; border-radius: var(--r-md); text-decoration: none;
  transition: background-color var(--t-ui) ease;
}
.area-index img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.area-index b { display: block; font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.02em; }
.area-index span.sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--s-small); line-height: 1.4; }
.area-index .go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mist-soft); transition: background-color var(--t-ui) ease, transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .area-index a:hover { background: var(--paper); }
  .area-index a:hover .go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
}

/* Barra de áreas fija bajo el encabezado */
.area-nav { position: sticky; top: var(--header-h); z-index: 30; background: var(--paper); padding-block: 10px; margin-top: clamp(48px, 5vw, 80px); }
.area-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.area-nav ul::-webkit-scrollbar { display: none; }
.area-nav a { white-space: nowrap; }
.area-nav a[aria-current="true"] { background: var(--ink); color: #fff; }
.site-header.scrolled ~ main .area-nav { top: 68px; }

/* Ficha de cada área */
/* html ya reserva el alto del encabezado (scroll-padding-top); acá solo se suma la barra de áreas */
.area-detail { scroll-margin-top: calc(var(--spy-offset, 156px) - var(--header-h) - 16px); margin-top: 12px; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.area-detail.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.area-detail.flip .ad-media { order: 2; }
.area-detail.f-white { background: var(--white); }
.area-detail.f-paper { background: transparent; padding-inline: 0; }
.area-detail.f-mist { background: var(--mist); }
.area-detail.f-ink { background: var(--ink); color: #fff; }
.ad-media { position: sticky; top: calc(var(--header-h) + 96px); }
.ad-media .ph { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--slate); }
.ad-media .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.ad-body h2 { font-size: var(--s-h2); line-height: 1; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.ad-body .lead { margin-top: 20px; max-width: 40ch; }
.ad-cols { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.ad-cols h3 { font-size: var(--s-body); font-weight: 700; margin-bottom: 12px; }
.ad-cols .list li + li { margin-top: 10px; }
.ad-approach { margin-top: clamp(28px, 3vw, 40px); font-size: var(--s-lead); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; max-width: 38ch; }
.ad-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.ad-actions .link { display: inline-flex; align-items: center; min-height: 44px; }
.f-ink .lead, .f-ink .ad-approach { color: #e9edf1; }
.f-ink .list li::before { background: var(--mist); }
.f-mist .list li::before { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .area-detail:hover .ad-media .ph img { transform: scale(1.03); } }

/* Preguntas frecuentes */
.faq-grid { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(32px, 4vw, 72px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--white); border-radius: var(--r-md); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 18px 20px 18px 28px; font-size: var(--s-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  border-radius: var(--r-md);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--mist-soft); display: grid; place-items: center; transform: rotate(45deg); transition: transform 260ms var(--ease-out), background-color var(--t-ui) ease; }
.faq-list details[open] summary .plus { transform: rotate(0deg); background: var(--mist); }
.faq-list .answer { padding: 0 28px 24px; max-width: 64ch; }
@media (hover: hover) and (pointer: fine) { .faq-list summary:hover .plus { background: var(--mist); } }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] .answer { animation: panel-in 240ms var(--ease-out); }
}

/* Cierre */
.areas-cierre { background: var(--mist); border-radius: var(--r-lg); padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; }
.areas-cierre .lead { margin-top: 16px; max-width: 42ch; }
.areas-cierre .cierre-actions .btn-soft { background: var(--white); }

/* Movimiento del hero de esta página */
@media (prefers-reduced-motion: no-preference) {
  .js .areas-hero .area-index { opacity: 0; transform: translateY(32px); transition: opacity 700ms ease 300ms, transform 900ms var(--ease-out) 300ms; }
  .js .areas-hero.in .area-index { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .areas-hero-grid { grid-template-columns: 1fr; }
  .area-detail, .area-detail.flip { grid-template-columns: 1fr; }
  .area-detail.flip .ad-media { order: 0; }
  .ad-media { position: static; }
  .ad-media .ph { aspect-ratio: 16 / 9; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .areas-cierre { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .area-index a { grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 14px; padding: 12px; }
  .area-index img { width: 52px; height: 52px; }
  .area-index .go { width: 40px; height: 40px; }
  .areas-hero .actions .btn { width: 100%; justify-content: space-between; }
  .area-nav { margin-inline: calc(var(--m) * -1); padding-inline: 0; }
  .area-nav ul { padding-inline: var(--m); scroll-padding-inline: var(--m); }
  .area-detail { padding: 24px; }
  .area-detail.f-paper { padding-inline: 0; }
  .ad-media .ph { aspect-ratio: 4 / 3; }
  .ad-cols { grid-template-columns: 1fr; }
  .ad-actions .btn { width: 100%; justify-content: space-between; }
  .faq-list summary { padding-left: 20px; min-height: 64px; }
  .faq-list .answer { padding: 0 20px 20px; }
  .areas-cierre .cierre-actions .btn { width: 100%; justify-content: space-between; }
}

/* =========================================================
   Publicaciones: listado (publicaciones.html) y artículos (publicacion-*.html)
   Listado: titular con filtros por tema, nota destacada partida y lista
   editorial en filas (no tarjetas iguales). Artículo: lectura en una
   columna de 68 caracteres con índice fijo y acción del área al costado.
   ========================================================= */

/* Hero del listado: titular, propósito y filtros por tema */
.lib-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 4vw, 72px); align-items: end; }
.lib-hero h1 { font-size: var(--s-display); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; max-width: 10em; }
.lib-hero .lead { max-width: 36ch; }
.lib-purpose { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.lib-purpose li { background: var(--white); border-radius: 999px; padding: 10px 16px; font-size: var(--s-small); font-weight: 500; }
.lib-filters { margin-top: clamp(40px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lib-filters .label { font-size: var(--s-small); font-weight: 700; margin-right: 4px; }
.lib-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lib-count { font-size: var(--s-small); color: var(--muted); margin-left: auto; }

/* Nota destacada: imagen y texto partidos sobre blanco */
.lib-featured { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--white); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.lib-featured .ph { min-height: 420px; background: var(--slate); overflow: hidden; }
.lib-featured .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.lib-featured .body { padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.lib-featured h2 { font-size: var(--s-h3); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.lib-featured h2 a { text-decoration: none; }
.lib-featured h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.lib-featured:has(h2 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.lib-featured h2 a:focus-visible { outline: none; }
.cat { display: inline-flex; align-self: flex-start; justify-self: start; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--mist-soft); font-size: var(--s-xs); font-weight: 500; }
.f-on-white .cat, .lib-featured .cat { background: var(--paper); }
.meta-line { font-size: var(--s-small); color: var(--muted); font-feature-settings: "tnum" 1; }
.meta-line .nw { white-space: nowrap; }
.read-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.read-more .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lib-featured:hover .ph img { transform: scale(1.03); }
  .lib-featured:hover .read-more .dot, .lib-row:hover .read-more .dot { transform: rotate(-45deg); }
}

/* Lista editorial en filas */
.lib-list { margin-top: 12px; display: grid; gap: 4px; }
.lib-row { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 0.9fr) auto; gap: 24px 40px; align-items: center; padding: 20px; border-radius: var(--r-md); transition: background-color var(--t-ui) ease; }
.lib-row .thumb { width: 160px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--slate); }
.lib-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-row h2 { font-size: clamp(1.375rem, 1rem + 0.9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.lib-row h2 a { text-decoration: none; }
.lib-row h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.lib-row:has(h2 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.lib-row h2 a:focus-visible { outline: none; }
.lib-row .titles { display: grid; gap: 10px; }
.lib-row .lib-sum { color: var(--muted); max-width: 46ch; }
.lib-row .read-more span.txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (hover: hover) and (pointer: fine) { .lib-row:hover { background: var(--white); } }
.lib-empty { padding: 32px; background: var(--white); border-radius: var(--r-md); }
.js [data-filter-item][hidden] { display: none; }

/* Cierre del listado */
.lib-cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; }
.lib-cta.with-ph { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 4fr); align-items: center; }
.lib-cta .ph { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--slate); }
.lib-cta .ph img { width: 100%; height: 100%; object-fit: cover; }
.lib-cta .lead { margin-top: 16px; color: #e9edf1; max-width: 42ch; }

/* ---------- Artículo ---------- */
.art-head { padding-top: clamp(24px, 3vw, 48px); }
.art-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; }
.art-back .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--white); transform: rotate(180deg); transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .art-back:hover .dot { transform: rotate(180deg) translateX(3px); } }
.art-title { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; align-items: end; }
.art-title h1 { font-size: clamp(1.875rem, 0.75rem + 4.8vw, 4.25rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; max-width: 14em; }
.art-meta { display: grid; gap: 6px; font-size: var(--s-small); color: var(--muted); padding-bottom: 8px; }
.art-meta .cat { margin-bottom: 6px; }
.art-meta strong { color: var(--ink); font-weight: 500; }
.art-cover { margin-top: clamp(28px, 3vw, 48px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--slate); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }

.art-layout { padding-top: clamp(40px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 60ch); justify-content: space-between; gap: 40px clamp(32px, 5vw, 96px); align-items: start; }
.art-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 12px; }
.toc { background: var(--white); border-radius: var(--r-md); padding: 24px; }
.toc h2 { font-size: var(--s-small); font-weight: 700; margin-bottom: 10px; }
.toc a { display: flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--muted); font-size: var(--s-small); line-height: 1.35; padding: 6px 0; transition: color var(--t-ui) ease; }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 500; }
@media (hover: hover) { .toc a:hover { color: var(--ink); } }
.area-card { background: var(--mist); border-radius: var(--r-md); padding: 24px; display: grid; gap: 12px; justify-items: start; }
.area-card .ph { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--slate); margin-bottom: 4px; }
.area-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.area-card h2 { font-size: var(--s-body); font-weight: 700; }
.area-card .btn { margin-top: 4px; }

.prose-art { max-width: 60ch; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.7; }
.prose-art > * + * { margin-top: 1.1em; }
.prose-art > section { margin-top: 3.6em; }
.prose-art section > * + * { margin-top: 1.1em; }
.prose-art .intro { font-size: var(--s-lead); line-height: 1.5; letter-spacing: -0.005em; }
.prose-art h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.prose-art section h2 { margin-top: 0; }
.prose-art h3 { margin-top: 1.8em; font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.prose-art h2 + p, .prose-art h3 + p { margin-top: 0.6em; }
.prose-art ul.list { padding-left: 2px; }
.prose-art .list li + li { margin-top: 0.55em; }
.prose-art .summary-box { margin-top: 2.2em; background: var(--white); border-radius: var(--r-md); padding: 28px 32px; }
.prose-art .summary-box h2 { margin-top: 0; font-size: var(--s-lead); }
.prose-art .summary-box ul { margin-top: 12px; }
.prose-art .disclaimer { margin-top: 2em; padding: 20px 24px; border-radius: var(--r-md); background: var(--mist-soft); font-size: var(--s-small); line-height: 1.55; color: var(--ink); }

.art-related { padding-top: var(--section); }
.related-grid { margin-top: clamp(32px, 3vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rel { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center; background: var(--white); border-radius: var(--r-md); padding: 16px; transition: background-color var(--t-ui) ease; }
.rel .thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--slate); }
.rel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel h3 { font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.rel .cat { margin-top: 10px; }
.rel h3 a { text-decoration: none; }
.rel h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.rel:has(h3 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.rel h3 a:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) { .rel:hover { background: var(--mist-soft); } }

@media (max-width: 1000px) {
  .lib-hero-grid, .lib-featured, .lib-cta, .lib-cta.with-ph, .art-title { grid-template-columns: 1fr; }
  .lib-cta .ph { aspect-ratio: 16 / 7; }
  .art-aside .area-card .ph { display: none; }
  /* En una sola columna el índice quedaría después del texto: se muestra solo la tarjeta del área. */
  .art-aside .toc { display: none; }
  .lib-featured .ph { min-height: 0; aspect-ratio: 16 / 9; }
  .lib-row { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .lib-row .thumb { width: 120px; }
  .lib-row .lib-sum { grid-column: 2 / 3; }
  .art-layout { grid-template-columns: 1fr; }
  .art-aside { position: static; order: 2; }
  .art-cover { aspect-ratio: 16 / 8; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lib-count { margin-left: 0; width: 100%; }
  .lib-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 0 12px; align-items: start; }
  .lib-row .thumb { width: 100%; aspect-ratio: 16 / 7; }
  .lib-row .lib-sum { grid-column: auto; }
  .lib-row .read-more { display: none; }
  .lib-cta .cierre-actions .btn { width: 100%; justify-content: space-between; }
  .art-cover { aspect-ratio: 4 / 3; }
  .prose-art .summary-box { padding: 22px; }
  .rel { grid-template-columns: 88px minmax(0, 1fr); }
}

/* ---------- Contacto ---------- */
/* Hero partido: mensaje y pasos a la izquierda, formulario a la derecha desde la primera pantalla */
.cp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 4vw, 72px); align-items: start; }
/* En escritorio, mensaje y pasos acompañan al formulario mientras se completa */
.cp-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 40px; }
.cp-intro { padding-top: clamp(8px, 2vw, 32px); }
.page-hero.cp-hero h1 { font-size: clamp(2.5rem, 1rem + 3.9vw, 4.75rem); line-height: 0.98; max-width: 8.5em; }
.cp-form { min-width: 0; }
.cp-form-title { margin-bottom: 24px; font-size: var(--s-h3); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.cp-area-help { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; }
.cp-next { display: grid; gap: 20px; align-content: start; }
.cp-next h2 { font-size: var(--s-body); font-weight: 700; }
.cp-steps { display: grid; gap: 20px; max-width: 44ch; }
.cp-steps li::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--mist-2); margin-bottom: 12px; }
.cp-steps b { display: block; font-weight: 700; }
.cp-steps span { display: block; margin-top: 4px; color: var(--muted); }

/* Canales (tinta) y modalidad (blanco, con la sala de reuniones) */
.cp-canales-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; }
.cp-channels { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); display: grid; gap: 32px; align-content: start; }
.cp-channels .lead { margin-top: 16px; color: #e9edf1; max-width: 40ch; }
.channels { margin-top: 0; gap: 20px; }
.channels > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; }
.channels dd { grid-column: 1; }
.channels dd.act { grid-column: 2; grid-row: 1 / span 2; }
.ch-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 500; font-size: var(--s-small); transition: background-color var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.ch-btn:active { transform: scale(0.97); }
.ch-btn:focus-visible { outline: 3px solid var(--mist); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ch-btn:hover { background: rgba(255, 255, 255, 0.2); } }
.cp-channels .demo-msg { color: #e9edf1; min-height: 1.5em; }
.cp-modes { background: var(--white); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.cp-modes .ph { aspect-ratio: 16 / 10; background: var(--slate); overflow: hidden; }
.cp-modes .ph img { width: 100%; height: 100%; object-fit: cover; }
.cp-modes .body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; align-content: start; }
.modes { display: grid; gap: 16px; }
.modes b { display: block; font-weight: 700; }
.modes span { display: block; color: var(--muted); }

/* Puente al orientador */
.cp-orient { background: var(--mist); border-radius: var(--r-lg); padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 4vw, 72px); align-items: center; }
.cp-orient .lead { margin-top: 16px; max-width: 36ch; }
.cp-sit { display: grid; gap: 8px; }
.cp-sit a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 10px 10px 24px; border-radius: var(--r-sm); background: var(--white); text-decoration: none; font-weight: 500; transition: background-color var(--t-ui) ease; }
.cp-sit .go { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mist-soft); transition: transform 260ms var(--ease-out), background-color var(--t-ui) ease; }
.cp-sit a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .cp-sit a:hover { background: var(--paper); }
  .cp-sit a:hover .go { transform: translateX(4px); background: var(--ink); color: #fff; }
}

/* Cierre institucional */
.cp-cierre { background: var(--white); border-radius: var(--r-lg); padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 96px); }
.cp-cierre .h2 { max-width: 11em; }
.cp-cierre-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.cp-cierre-links .link { display: inline-flex; align-items: center; min-height: 44px; }
.cp-reglas { display: grid; gap: 24px; align-content: start; }
.cp-reglas b { display: block; font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.cp-reglas span { display: block; margin-top: 6px; color: var(--muted); }
.cp-fict { max-width: 52ch; }

@media (max-width: 1000px) {
  /* En una columna: mensaje, formulario y después los pasos */
  .cp-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "next"; }
  .cp-side { display: contents; }
  .cp-intro { grid-area: intro; }
  .cp-form { grid-area: form; }
  .cp-next { grid-area: next; }
  .cp-canales-grid, .cp-orient, .cp-cierre { grid-template-columns: 1fr; }
  .cp-modes .ph { aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  .channels > div { grid-template-columns: 1fr; }
  .channels dd.act { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .channels dd.act { justify-self: start; }
  .cp-sit a { padding-left: 18px; min-height: 72px; }
  .cp-form .form-foot .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .stage picture img { transform: scale(1.08); transition: transform 2200ms var(--ease-out); }
  .js .hero.in .stage picture img { transform: scale(1.02); }
  .js .stage .content > * { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 900ms var(--ease-out); }
  .js .hero.in .stage .content > * { opacity: 1; transform: none; }
  .js .hero.in .stage .content > :nth-child(2) { transition-delay: 120ms; }
  .js .hero.in .stage .content > :nth-child(3) { transition-delay: 220ms; }
  .js .finder { opacity: 0; transform: translateY(32px); transition: opacity 700ms ease 380ms, transform 900ms var(--ease-out) 380ms; }
  .js .hero.in .finder { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 0; transition: opacity 200ms ease; }
  .js [data-reveal].in { opacity: 1; }
  .menu-panel.open { animation: none; }
  .mobile-cta { transition: none; }
  .js .result-panel.enter { animation: none; }
  .wa-fab { transform: none; transition: opacity var(--t-ui) ease, visibility 0s linear var(--t-ui), background-color var(--t-ui) ease; }
  /* Sin zoom de las fotos al pasar el puntero */
  .tile:hover .bg img, .tile:hover .side-img img, .pub:hover .ph img, .ed:hover img, .area-detail:hover .ad-media .ph img, .lib-featured:hover .ph img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .bar { gap: 12px; }
  .finder { grid-template-columns: 1fr; }
  .finder ul { justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr; }
  .orientador .tool { grid-template-columns: 1fr; }
  .t1, .t2, .t3, .t4, .t5 { grid-column: span 6; grid-row: span 1; }
  .t1 { grid-column: span 12; min-height: 440px; }
  .t4 { grid-column: span 12; }
  .t5 { grid-column: span 12; }
  .estudio-grid, .metodo-grid, .pubs-grid, .consulta-grid { grid-template-columns: 1fr; }
  .estudio-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .metodo-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .site-header .bar > .btn { display: none; }
  .site-header .bar { gap: 8px; }
  .site-header .mark { gap: 10px; }
  .site-header .mark b { font-size: 1.0625rem; white-space: nowrap; }
  .site-header .menu-btn { padding: 0 16px; }
  /* Móvil: la foto ocupa la parte superior con el rostro completo; el texto va sobre tinta */
  .stage { height: auto; min-height: 720px; max-height: none; background: var(--ink); }
  .stage picture img { inset: 0 0 auto 0; height: 54%; object-position: 50% 20%; }
  .stage::after { inset: 0 0 auto 0; height: 54%;
    background: linear-gradient(180deg, rgba(14, 17, 22, 0) 45%, rgba(14, 17, 22, 0.75) 82%, var(--ink) 100%); }
  .stage .content { bottom: 116px; left: 20px; right: 20px; }
  .stage .actions .btn { width: 100%; justify-content: space-between; }
  .finder { margin-top: -84px; width: calc(100% - 24px); padding: 20px; }
  .finder ul { display: grid; grid-template-columns: 1fr 1fr; }
  .chip { padding: 0 10px; text-align: center; }
  .result { padding: 24px; }
  .result-panel .cols { grid-template-columns: 1fr; }
  .result-panel .actions .btn { width: 100%; justify-content: space-between; }
  .t1, .t2, .t3, .t4, .t5 { grid-column: span 12; }
  .t1 { min-height: 400px; }
  .t4 { flex-direction: column; }
  .t4 .side-img { width: 100%; height: 200px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px; }
  .pub-side .pub { flex-direction: column; }
  .pub-side .ph { width: 100%; aspect-ratio: 16 / 9; }
  .pub .body { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: space-between; }
  .mobile-cta { display: block; }
  body { padding-bottom: 84px; }
}

/* Página 404 (404.html) */
.e404 { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.e404 .bar { height: var(--header-h); display: flex; align-items: center; }
.e404 main { display: grid; align-content: center; padding-block: clamp(32px, 8vw, 96px); }
.e404 .code { font-size: var(--s-small); font-weight: 500; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 20px; }
.e404 h1 { font-size: var(--s-display); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; max-width: 10em; }
.e404 .lead { margin-top: 28px; max-width: 34ch; }
.e404 .actions { margin-top: 36px; }
