/* ==========================================================
   Cortex Consulting · Landing Asturias
   Tipografía autoalojada: IBM Plex Sans / IBM Plex Mono (SIL OFL 1.1).
   Sin dependencias externas.
   ========================================================== */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0c2a3a;          /* azul petróleo oscuro (principal) */
  --ink-2: #143c50;
  --text: #1d2b34;
  --muted: #4f5f69;
  --rule: #d6dde1;
  --rule-strong: #b7c3ca;
  --bg: #ffffff;
  --tint: #f2f4f4;         /* gris claro */
  --accent: #0f766e;       /* verde azulado, AA sobre blanco */
  --accent-soft: #5eead4;  /* acento sobre fondo oscuro */
  --error: #b42318;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
figure { margin: 0; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .6em; font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.experience :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-soft); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: .75rem 1rem; font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); line-height: 1.6; color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-link { padding-left: .25rem; padding-right: .25rem; color: var(--ink); border-bottom: 1px solid var(--rule-strong); border-radius: 0; min-height: 44px; }
.btn-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.btn-link .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .15s; }
.btn-link:hover .arrow { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1.2; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark rect { fill: var(--ink); }
.logo-mark path { fill: none; stroke: var(--accent-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav ul a { color: var(--text); text-decoration: none; font-size: .95rem; padding: .4rem 0; border-bottom: 1px solid transparent; }
.site-nav ul a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 20px; height: 1.5px; background: var(--ink); transform: translateX(-50%); transition: transform .2s, background-color .2s; content: "";
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; flex: none; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; padding: .5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(12, 42, 58, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .site-nav ul a:hover { border-bottom-color: var(--rule); color: var(--accent); }
  .no-js .site-nav { display: flex; position: static; }
}
@media (max-width: 420px) { .logo { font-size: .9rem; } .logo-mark { width: 26px; height: 26px; } }

/* ---------- Hero ---------- */
.hero { background: var(--tint); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.hero-text { padding: clamp(3rem, 6.5vw, 5.5rem) 0 clamp(3rem, 5.5vw, 4.5rem); align-self: center; }
.hero h1 { max-width: 15ch; }
.hero-sub { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 36em; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-bottom: 3rem; }
.trust { display: flex; flex-direction: column; gap: .45rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); max-width: 40em; font-size: .93rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; }
.trust li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: .6rem; }

/* Interfaz de demostración (hero) */
.hero-demo { align-self: center; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.demo { font-size: 13px; line-height: 1.4; color: var(--text); }
.demo-window { background: #fff; border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(12,42,58,.04), 0 24px 48px -24px rgba(12,42,58,.25); }
.demo-bar { display: flex; align-items: center; gap: .9rem; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); background: #f8f9f9; }
.demo-dots { display: flex; gap: 5px; }
.demo-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cfd7db; }
.demo-url { font-family: var(--mono); font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: .15rem .6rem; }
.demo-body { display: grid; grid-template-columns: 9.5rem 1fr; min-height: 300px; }
.demo-nav { display: flex; flex-direction: column; gap: .15rem; padding: .9rem .6rem; border-right: 1px solid var(--rule); background: #fbfbfb; }
.demo-nav span { padding: .38rem .55rem; border-radius: 3px; color: var(--muted); }
.demo-nav .demo-nav-title { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding-bottom: .5rem; }
.demo-nav .is-on { background: var(--tint); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.demo-main { padding: .95rem 1.1rem 1.1rem; min-width: 0; }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; }
.demo-h { font-size: 15px; font-weight: 600; color: var(--ink); }
.demo-btn { background: var(--ink); color: #fff; border-radius: 3px; padding: .25rem .6rem; font-size: 12px; font-weight: 500; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.demo-kpis div { border: 1px solid var(--rule); border-radius: 4px; padding: .5rem .65rem; }
.demo-kpis span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-kpis b { font-family: var(--mono); font-weight: 500; font-size: 18px; color: var(--ink); }
.demo-row { display: grid; grid-template-columns: 4.2rem 1fr 5.4rem 4.6rem; gap: .5rem; align-items: center; padding: .45rem .2rem; border-bottom: 1px solid #edf0f1; }
.demo-row span:first-child, .demo-row span:last-child { font-family: var(--mono); font-size: 12px; }
.demo-row span:last-child { text-align: right; }
.demo-row-h { font-size: 11px; color: var(--muted); border-bottom-color: var(--rule); }
.demo-row-h span { font-family: var(--sans) !important; }
.st { font-style: normal; font-size: 11px; padding: .1rem .45rem; border-radius: 3px; }
.st-ok { background: #e0f2ef; color: #0b5e57; }
.st-sent { background: #e6eef3; color: #1f4d66; }
.st-draft { background: #f1f1ee; color: #5b5f62; }
.demo-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.1rem; counter-reset: f; }
.demo-flow li { counter-increment: f; position: relative; font-size: 12px; color: var(--ink); font-weight: 500; padding: .55rem 0 0; border-top: 1px solid var(--ink); }
.demo-flow li::before { content: counter(f, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: .1rem; }
.demo-flow li:not(:last-child)::after { content: "→"; position: absolute; right: .6rem; top: .95rem; color: var(--accent); }
.hero-demo figcaption { margin-top: 1rem; }
.demo-tag { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 3px; padding: .2rem .5rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head > p:last-child { color: var(--muted); margin-bottom: 0; font-size: 1.075rem; }
.section-head-row { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.section-head-row h2 { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.split-head h2 { max-width: 14ch; margin: 0; }
@media (min-width: 861px) { .split-head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.list-title { font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 .5rem; }
.rule-list { counter-reset: r; border-top: 1px solid var(--ink); }
.rule-list li { counter-increment: r; position: relative; padding: 1.05rem 0 1.05rem 3rem; border-bottom: 1px solid var(--rule); }
.rule-list li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 1.25rem; font-family: var(--mono); font-size: .85rem; line-height: 1; color: var(--accent); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 3.25rem; }
.service { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.service .icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.25rem; }
.service h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service p { color: var(--muted); margin-bottom: 0; }
.service .service-note { margin-top: .9rem; font-size: .9rem; color: var(--muted); padding-left: .85rem; border-left: 2px solid var(--accent); }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.5rem 0 0; border-top: 1px solid var(--rule-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-band p { margin: 0; max-width: 46em; color: var(--ink); font-size: 1.08rem; }
.cta-band-dark { background: var(--ink); border: 0; padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem); }
.cta-band-dark p { color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e3ebef; color: var(--ink); }
.cta-band-dark :focus-visible { outline-color: var(--accent-soft); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.step { padding: 1.75rem 1.75rem 0 0; position: relative; }
.step + .step { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--accent); }
.step + .step::before { left: 1.75rem; }
.step-num { display: block; font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 2.5rem; }
.step h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Experiencia ---------- */
.experience { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #d5e0e6; }
.experience-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; filter: saturate(.85); }
.experience-text { padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 6rem); max-width: 720px; align-self: center; }
.experience .eyebrow { color: var(--accent-soft); }
.experience h2 { color: #fff; }
.experience .lead { color: #fff; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.45; margin: 0 0 1.25rem; }
.experience-text > p:not(.lead):not(.eyebrow) { color: #c9d6dd; }
.exp-list { margin-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.22); }
.exp-list li { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #c9d6dd; }
.exp-list strong { color: #fff; font-weight: 500; }

/* ---------- Casos de uso ---------- */
.cases { border-top: 1px solid var(--ink); counter-reset: c; }
.case { counter-increment: c; display: grid; grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 1rem clamp(1.5rem, 4vw, 4rem); padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.case::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: .85rem; color: var(--accent); padding-top: .25rem; }
.case h3 { font-size: 1.25rem; font-weight: 500; margin: 0; max-width: 26ch; }
.case p { color: var(--muted); margin: 0; }
.others { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); }
.others h3 { font-size: 1.05rem; margin: 0; }
.others li { position: relative; padding: 0 0 .7rem 1.25rem; color: var(--muted); }
.others li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: 1px; background: var(--accent); }
.others strong { font-weight: 500; }

/* ---------- Razones ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: z; }
.reasons li { counter-increment: z; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.reasons li::before { content: counter(z, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 1.5rem; }
.reasons p { margin: 0; font-size: 1.2rem; line-height: 1.4; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 3rem 1.3rem 0; font-weight: 500; font-size: 1.1rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 3rem 1.5rem 0; margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-info > p { color: var(--muted); max-width: 32em; }
.contact-info > .contact-lead { color: var(--ink); font-size: 1.15rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { margin: 2rem 0 2.5rem; border-top: 1px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: 7rem 1fr; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.contact-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }

.contact-form { background: #fff; border: 1px solid var(--rule); padding: clamp(1.5rem, 4vw, 2.75rem); }
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { display: block; font-weight: 500; margin-bottom: .4rem; color: var(--ink); font-size: .95rem; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  padding: .75rem .9rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); min-height: 48px;
}
textarea { resize: vertical; min-height: 140px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: .9rem; margin: .35rem 0 0; }
.error:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: .2rem 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; color: var(--text); margin: 0; }
.field-check .error { grid-column: 2; }
.privacy-note, .form-hint { font-size: .87rem; color: var(--muted); }
.form-hint { margin-bottom: 1.5rem; }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ink); background: var(--tint); border-left: 3px solid var(--accent); padding: .9rem 1rem; }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c8d0; padding: 3rem 0; font-size: .93rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--accent-soft); }

/* ---------- Página legal ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.placeholder-warning { background: #fff7e6; border-left: 3px solid #d9a21b; padding: 1rem 1.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::before { left: 0; }
  .step:nth-child(n+3) { margin-top: 2.5rem; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .contact-grid, .section-head-row { grid-template-columns: 1fr; }
  .hero-grid { gap: 0; }
  .hero-text { padding-bottom: 2.5rem; }
  .hero-demo { padding: 0 0 3rem; }
  .experience { grid-template-columns: 1fr; }
  .experience-media img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .case { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .case p { grid-column: 2; }
  .others { grid-template-columns: 1fr; }
  .split-head h2 { max-width: none; }
}
@media (max-width: 600px) {
  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
  .services { row-gap: 2rem; }
  .service { padding-top: 1.1rem; }
  .service .icon { margin-bottom: .75rem; }
  .cta-band { margin-top: 2rem; }
  .cta-band .btn { width: 100%; }
  .others { margin-top: 1.75rem; }
  .case { padding: 1.4rem 0; }
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .demo-nav { display: none; }
  .demo-row { grid-template-columns: 3.6rem 1fr 4.9rem 4.1rem; font-size: 12px; }
  .demo-kpis b { font-size: 16px; }
  .demo-flow li { font-size: 11px; }
  .demo-flow li:not(:last-child)::after { right: .25rem; }
  .services, .steps, .reasons, .field-row { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.5rem 0 0; border-left: 0; }
  .step + .step::before, .step::before { left: 0; }
  .step + .step { margin-top: 2rem; border-top: 1px solid var(--rule); }
  .step-num { margin-bottom: .6rem; }
  .step + .step { margin-top: 1.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-actions .btn-link { align-self: flex-start; }
  .contact-list div { grid-template-columns: 6rem 1fr; }
  .faq summary { padding-right: 2.25rem; }
  .faq details p { padding-right: 0; }
}

/* Marca textual «Cortex Consulting» */
.logo-text { font-weight: 400; letter-spacing: -.005em; }
.logo-text b { font-weight: 600; letter-spacing: -.015em; }

/* Interfaz de demostración en anchos intermedios (portátiles pequeños, tabletas en horizontal) */
.demo-row span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 861px) and (max-width: 1140px) {
  .demo-body { grid-template-columns: 7.6rem 1fr; }
  .demo-nav span { padding: .38rem .45rem; }
  .demo-main { padding: .9rem .85rem 1rem; }
  .demo-row { grid-template-columns: 3.9rem minmax(0, 1fr) 4.9rem 4.3rem; gap: .4rem; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-nav { display: none; }
}

/* Páginas secundarias cortas (gracias, 404): pie siempre al final de la ventana */
body:has(> main.legal) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> main.legal) > main.legal { flex: 1 0 auto; }
