/* Foque Ingeniería — hoja de plano: papel con cuadrícula, láminas con cajetín, filetes azules. */
:root {
  --paper: #F5F7FC;
  --sheet: #FFFFFF;
  --ink: #010C80;
  --on-ink: #FFFFFF;
  --text: #12163A;
  --muted: #545B80;
  --line: #D3D8EC;
  --grid: rgba(1, 12, 128, 0.055);
  --cota: #0A7FC0;
  --band: #010C80;
  --on-band: #FFFFFF;
  --on-band-muted: #C3CAF5;
  --band-line: rgba(255, 255, 255, 0.24);
  --wa: #128C4A;
  --error: #B42318;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.3rem, 5.4vw, 4.1rem);
  --step-h1: clamp(2.1rem, 4.6vw, 3.5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #070B2B;
    --sheet: #0C1240;
    --ink: #BAC4FF;
    --on-ink: #070B2B;
    --text: #E6E9FA;
    --muted: #9AA2CB;
    --line: #262E68;
    --grid: rgba(186, 196, 255, 0.06);
    --cota: #5CC6FF;
    --band: #111A5C;
    --on-band: #EEF0FF;
    --on-band-muted: #A9B2E6;
    --band-line: rgba(255, 255, 255, 0.16);
    --wa: #3FCB7E;
    --error: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #070B2B;
  --sheet: #0C1240;
  --ink: #BAC4FF;
  --on-ink: #070B2B;
  --text: #E6E9FA;
  --muted: #9AA2CB;
  --line: #262E68;
  --grid: rgba(186, 196, 255, 0.06);
  --cota: #5CC6FF;
  --band: #111A5C;
  --on-band: #EEF0FF;
  --on-band-muted: #A9B2E6;
  --band-line: rgba(255, 255, 255, 0.16);
  --wa: #3FCB7E;
  --error: #FF8A80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cota); outline-offset: 3px; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 8px 14px; text-decoration: none;
}
.skip:focus { left: 12px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.label {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); font-stretch: 112%; font-weight: 720; line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-stretch: 105%; font-weight: 650; line-height: 1.2; }
p { margin: 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.8em 1.25em;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sheet); }
.btn-wa { border-color: var(--wa); color: var(--wa); background: transparent; }
.btn-wa:hover { background: var(--sheet); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; }
.logo { display: block; color: var(--ink); line-height: 0; flex: none; }
.logo svg { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 14px 12px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--text);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-link .caret { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.drop {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 300px;
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  padding: 8px 0;
  z-index: 35;
}
.drop.cols { min-width: 580px; }
.drop.cols .drop-grid { columns: 2; column-gap: 0; }
.drop.right { left: auto; right: 0; }
.has-drop:hover > .drop, .has-drop:focus-within > .drop { display: block; }
.drop a { display: block; padding: 7px 18px; text-decoration: none; font-size: 0.95rem; break-inside: avoid; }
.drop a:hover { background: var(--paper); color: var(--ink); }
.drop .drop-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 600; color: var(--ink); }
.header-phone { font-family: var(--f-mono); font-weight: 500; font-size: 0.95rem; padding: 0.55em 0.9em; margin-left: 8px; }

.mnav { display: none; }
.mnav > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.55em 0.85em;
  border: 1.5px solid var(--ink); border-radius: 2px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 8px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
}
.mnav-panel .label { display: block; margin: 18px 0 6px; }
.mnav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.mnav-panel a { display: block; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1rem; }
.mnav-panel .cta-row { margin-top: 20px; }
@media (max-width: 1020px) {
  .nav .nav-item, .nav .nav-plain { display: none; }
  .mnav { display: block; }
}
@media (max-width: 520px) {
  .mnav-panel ul { grid-template-columns: minmax(0, 1fr); }
  .header-phone .num { display: none; }
  .logo svg { height: 40px; }
}

/* Cuadrícula de fondo */
.grid-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
}

/* Portada */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-stretch: 118%; font-weight: 780; line-height: 1.0; letter-spacing: -0.015em; }
.hero h1 span { display: block; font-weight: 380; font-stretch: 100%; color: var(--text); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 36rem; color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 4px 0 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.facts li::before { content: ""; width: 10px; height: 1.5px; background: var(--cota); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Lámina con cajetín */
.sheet { background: var(--sheet); border: 1.5px solid var(--ink); min-width: 0; margin: 0; }
.sheet-drawing { padding: 14px 14px 6px; }
.sheet-drawing svg { display: block; width: 100%; height: auto; }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: miter; }
.plan .wall-in { fill: none; stroke: var(--ink); stroke-width: 3.5; }
.plan .door { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plan .win { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; }
.plan .cota { fill: none; stroke: var(--cota); stroke-width: 1; }
.plan .cota-t { fill: var(--cota); font-family: var(--f-mono); font-size: 13px; }
.plan .room { fill: var(--muted); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; }
.plan .room-a { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; opacity: .8; }
.plan .sym { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.plan .pipe { fill: none; stroke: var(--cota); stroke-width: 1.6; stroke-dasharray: 7 5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 16px 12px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 18px; height: 12px; }
.cajetin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); margin: 0; }
.cajetin div { padding: 8px 12px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cajetin div:nth-child(3n) { border-right: 0; }
.cajetin div:nth-last-child(-n+3) { border-bottom: 0; }
.cajetin dt { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cajetin dd { margin: 2px 0 0; font-size: 0.86rem; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.cajetin .brand dd { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; color: var(--ink); }
@media (max-width: 480px) {
  .cajetin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cajetin div:nth-child(3n) { border-right: 1px solid var(--line); }
  .cajetin div:nth-child(2n) { border-right: 0; }
  .cajetin div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cajetin div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Secciones */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight-top { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-head .label { grid-column: 1 / -1; }
.section-head p { color: var(--muted); max-width: 32rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Tarjetas de servicio */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--sheet); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; min-width: 0; text-decoration: none; color: inherit; position: relative; }
a.svc:hover { background: var(--paper); }
a.svc:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.svc.big { grid-column: span 2; }
.svc h2 { font-size: var(--step-1); font-stretch: 105%; font-weight: 650; line-height: 1.2; }
.related.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .related.two { grid-template-columns: minmax(0, 1fr); } }
.svc-icon { width: 34px; height: 34px; color: var(--ink); }
.svc-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc p { color: var(--muted); max-width: 40rem; }
.svc .more { margin-top: auto; padding-top: 6px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink); letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 6px 0 0; list-style: none; }
.chips li { font-size: 0.9rem; font-weight: 500; padding: 0.3em 0.75em; border: 1px solid var(--line); border-radius: 2px; color: var(--text); background: var(--paper); }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid > .svc:last-child:nth-child(even) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc.big, .svc-grid > .svc:last-child:nth-child(even) { grid-column: auto; }
}

/* Catálogo */
.catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 28px; border-top: 1.5px solid var(--ink); padding-top: 28px; }
.catalog h3 { font-family: var(--f-mono); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.catalog ul, .dash-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.catalog li, .dash-list li { font-size: 0.98rem; line-height: 1.35; padding-left: 14px; position: relative; }
.catalog li::before, .dash-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1.5px; background: var(--cota); }
.catalog a, .dash-list a { text-decoration: none; }
.catalog a:hover, .dash-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog .group-last { grid-column: span 2; } }
@media (max-width: 520px) { .catalog { grid-template-columns: minmax(0, 1fr); } .catalog .group-last { grid-column: auto; } }

/* Banda azul */
.band { background: var(--band); color: var(--on-band); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px 64px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.band h2 { color: var(--on-band); }
.band .label { color: var(--on-band-muted); margin-bottom: 14px; display: block; }
.band p { color: var(--on-band-muted); margin-top: 18px; max-width: 36rem; font-size: var(--step-1); line-height: 1.5; }
.band .btn { border-color: var(--on-band); color: var(--on-band); background: transparent; }
.band .cta-row { margin-top: 28px; }
.band .btn:hover { background: rgba(255, 255, 255, 0.08); }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--band-line); }
.checklist li { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--band-line); font-size: var(--step-1); font-weight: 500; }
.checklist svg { width: 18px; height: 18px; flex: none; transform: translateY(3px); fill: none; stroke: var(--on-band); stroke-width: 2; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Banda de contacto corta */
.cta-band { background: var(--band); color: var(--on-band); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 44px; }
.cta-band h2 { color: var(--on-band); font-size: var(--step-2); }
.cta-band p { color: var(--on-band-muted); margin-top: 8px; }
.cta-band .phone { font-family: var(--f-mono); font-size: 1.5rem; color: var(--on-band); letter-spacing: 0.02em; }
.cta-band .btn { border-color: var(--on-band); color: var(--on-band); background: transparent; }
.cta-band .btn-primary { background: var(--on-band); color: var(--band); }
.cta-band .btn:hover { background: rgba(255, 255, 255, 0.08); }
.cta-band .btn-primary:hover { background: var(--on-band); }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.steps li { counter-increment: paso; border-top: 1.5px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: counter(paso, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--step--1); color: var(--cota); letter-spacing: 0.08em; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Zonas */
.zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.zone { background: var(--sheet); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; min-height: 96px; text-decoration: none; color: inherit; }
a.zone:hover { background: var(--paper); }
a.zone:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.zone strong { font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: 1.15rem; color: var(--ink); }
.zone span { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.zone.other { background: var(--paper); }
.zone.other strong { color: var(--text); }
@media (max-width: 860px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 64px; }
.faq-wrap h2 { margin-top: 14px; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0; position: relative;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 600; font-size: 1.12rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--f-mono); font-size: 1.4rem; color: var(--ink); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 42rem; display: flex; flex-direction: column; gap: 0.8em; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* Contacto */
.contact { border-top: 1px solid var(--line); background: var(--sheet); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px 72px; }
.contact-data { display: flex; flex-direction: column; gap: 22px; }
.contact-data p.intro { color: var(--muted); max-width: 28rem; }
.nap { margin: 0; display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); }
.nap div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.nap dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nap dd { margin: 3px 0 0; font-size: 1.05rem; font-weight: 500; }
.nap dd.big { font-family: var(--f-mono); font-size: 1.5rem; color: var(--ink); letter-spacing: 0.02em; }
.nap a { text-decoration: none; }
.nap a:hover { text-decoration: underline; text-underline-offset: 3px; }
form.quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line); border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 0.7em 0.8em; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cota); outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--ink); flex: none; }
.consent a { color: var(--ink); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 0.9rem; color: var(--error); }
.form-status.ok { color: var(--wa); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { form.quote { grid-template-columns: minmax(0, 1fr); } }

/* Cabecera de página interior */
.page-hero .wrap { display: grid; gap: 18px; padding-block: clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: var(--step-h1); font-stretch: 114%; font-weight: 760; line-height: 1.03; letter-spacing: -0.012em; max-width: 22ch; }
.page-hero .lead { max-width: 40rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.post-meta { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }

/* Contenido con ficha lateral */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 72px; align-items: start; }
.with-aside > aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 980px) {
  .with-aside { grid-template-columns: minmax(0, 1fr); }
  .with-aside > aside { position: static; }
}

.prose { max-width: 44rem; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--step-2); font-stretch: 108%; font-weight: 700; line-height: 1.15; margin-top: 2.1em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5em; }
.prose ul > li { position: relative; padding-left: 20px; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 9px; height: 1.5px; background: var(--cota); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; position: relative; padding-left: 34px; }
.prose ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.12em; font-family: var(--f-mono); font-size: 0.85rem; color: var(--cota); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .note { border-left: 2px solid var(--cota); padding: 4px 0 4px 18px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* Ficha técnica lateral */
.ficha { background: var(--sheet); border: 1.5px solid var(--ink); }
.ficha-head { padding: 12px 16px; border-bottom: 1.5px solid var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ficha-head strong { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; color: var(--ink); }
.ficha dl { margin: 0; }
.ficha dl > div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ficha dl > div:last-child { border-bottom: 0; }
.ficha dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ficha dd { margin: 0; font-size: 0.93rem; line-height: 1.45; }
.ficha dd ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ficha dd li { padding-left: 12px; position: relative; }
.ficha dd li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 1.5px; background: var(--cota); }
.aside-cta { background: var(--sheet); border: 1px solid var(--line); padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.aside-cta .phone { font-family: var(--f-mono); font-size: 1.35rem; color: var(--ink); }
.aside-cta .btn { justify-content: center; }

/* Relacionados */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.related a { background: var(--sheet); padding: 20px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.related a:hover { background: var(--paper); }
.related a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.related strong { font-family: var(--f-display); font-stretch: 106%; font-weight: 650; font-size: 1.08rem; color: var(--ink); }
.related span { color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
@media (max-width: 860px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; text-decoration: none; }
.post-list a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.post-list time { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); padding-top: 4px; }
.post-list h2 { font-size: var(--step-2); font-stretch: 106%; font-weight: 680; }
.post-list p { color: var(--muted); margin-top: 8px; max-width: 44rem; }
@media (max-width: 640px) { .post-list a { grid-template-columns: minmax(0, 1fr); } }

/* Pie */
.site-footer { border-top: 1.5px solid var(--ink); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-block: 48px 36px; }
.site-footer .logo svg { height: 52px; }
.foot-nap { font-size: 0.92rem; color: var(--muted); line-height: 1.65; margin-top: 16px; font-style: normal; }
.foot-nap a { text-decoration: none; }
.foot-nap a:hover { color: var(--ink); text-decoration: underline; }
.foot-col h2 { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-stretch: 100%; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.86rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.copy { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Utilidades */
.center-block { max-width: 40rem; display: flex; flex-direction: column; gap: 18px; }
.muted { color: var(--muted); }
