/* ════════════════════════════════════════════════════════════════
   KPI Consulting — sistema de diseño v3
   Firma editorial: serif de titulares (Newsreader), texto en Albert Sans,
   petróleo profundo como color de autoridad, teal de marca, menta solo
   sobre oscuro y dorado reservado para la certificación.
   Imagen propia: curvas de nivel del Popocatépetl y el Iztaccíhuatl.
   ════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader.woff2') format('woff2'); font-weight: 350 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Albert Sans'; src: url('../fonts/albert-sans.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --petrol: #062a2f;
  --petrol-2: #0a3940;
  --petrol-3: #0f4950;
  --petrol-deep: #041d21;
  --ink: #0e1c20;
  --teal: #008e87;
  --teal-700: #00736d;
  --teal-800: #005b56;
  --teal-050: #e6f2f0;
  --mint: #3fd9cc;
  --gold: #c9a84c;
  --gold-200: #e8d39a;
  --gold-700: #7d6219;
  --white: #ffffff;
  --mist: #f3f6f5;
  --mist-2: #e8eeed;
  --line: #d8e0de;
  --line-dark: rgba(232, 244, 242, .16);
  --muted: #4a5a5e;
  --muted-dark: #a9bfc1;
  --ok: #1f7a4d;
  --error: #b42318;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Albert Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --t-display: clamp(2.875rem, 1.6rem + 5vw, 6rem);
  --t-h1: clamp(2.5rem, 1.55rem + 4vw, 5.25rem);
  --t-h2: clamp(2rem, 1.4rem + 2.5vw, 3.6rem);
  --t-h3: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --t-h4: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  --t-lead: clamp(1.125rem, 1.04rem + .4vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-sm: .9375rem;
  --t-xs: .8125rem;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --container: 82rem;
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --header-h: 72px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(6, 42, 47, .06), 0 24px 48px -24px rgba(6, 42, 47, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--sans); font-size: var(--t-body); line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--teal-800); }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.08; text-wrap: balance; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 650; }
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: var(--white); padding: .75rem 1rem; }
.skip:focus { top: 1rem; color: var(--white); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Tipografía de sistema ────────────────────────────────────── */
.serif { font-family: var(--serif); }
.display { font-family: var(--serif); font-size: var(--t-display); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.h1 { font-family: var(--serif); font-size: var(--t-h1); font-weight: 400; line-height: 1.02; letter-spacing: -.018em; }
.h2 { font-family: var(--serif); font-size: var(--t-h2); font-weight: 400; line-height: 1.06; letter-spacing: -.015em; }
.h3 { font-family: var(--serif); font-size: var(--t-h3); font-weight: 450; line-height: 1.12; letter-spacing: -.01em; }
.h4 { font-family: var(--sans); font-size: var(--t-h4); font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--muted); }
.label { font-size: var(--t-sm); font-weight: 600; color: var(--teal-700); letter-spacing: .005em; }
.small { font-size: var(--t-sm); }
.muted { color: var(--muted); }
.dark { background: var(--petrol); color: var(--white); }
.dark .lead, .dark .muted { color: var(--muted-dark); }
.dark .label { color: var(--mint); }
.dark a:not(.btn) { color: var(--mint); }

/* ── Layout ───────────────────────────────────────────────────── */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.bg-mist { background: var(--mist); }
.bg-white { background: var(--white); }
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.sec-head .h2 { max-width: 18ch; }
.sec-head .label + .h2, .sec-head .label + h2 { margin-top: 1rem; }
.sec-head .lead { max-width: 36rem; }
@media (min-width: 1024px) {
  .sec-head--split { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 4rem; }
  .sec-head--split .lead { padding-bottom: .4rem; }
}
.rule { border: 0; border-top: 1px solid var(--line); }
.grid-12 { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 2rem 3rem; } }

/* ── Botones y enlaces ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 54px; padding: .85rem 1.6rem;
  border: 1.5px solid transparent; border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--teal-700); color: var(--white); }
.btn-primary:hover { background: var(--teal-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--petrol); }
.btn-light:hover { background: var(--teal-050); color: var(--petrol); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(14, 28, 32, .3); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .site-footer .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .site-footer .btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-wa { background: #0b7a3e; color: var(--white); }
.btn-wa:hover { background: #096632; color: var(--white); }
.btn-block { width: 100%; }
.btns { display: grid; gap: .75rem; }
@media (min-width: 560px) { .btns { display: flex; flex-wrap: wrap; align-items: center; } }

.link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--teal-700); min-height: 44px; }
.link span { background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .25s var(--ease); }
.link:hover span { background-size: 0 1px; }
.link .ico-arrow { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.link:hover .ico-arrow { transform: translateX(3px); }
.dark .link, .hero .link, .page-hero .link { color: var(--mint); }

/* ── Barra superior y encabezado ──────────────────────────────── */
.topbar { background: var(--petrol-deep); color: var(--muted-dark); font-size: var(--t-xs); display: none; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1.5rem; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--mint); }
.topbar ul { list-style: none; padding: 0; display: flex; gap: 1.5rem; }
.topbar .cred { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-200); }
.topbar .cred::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (min-width: 1080px) { .topbar { display: block; } }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header > .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.brand svg { height: 38px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 600; font-size: var(--t-sm); }
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars i { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars i { top: 5px; } .nav-toggle .bars::after { top: 10px; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars i { opacity: 0; }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); padding: 1rem var(--gutter) 7rem; overflow-y: auto; display: none; border-top: 1px solid var(--line); }
.site-nav.is-open { display: block; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav-list { list-style: none; padding: 0; display: grid; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list > li > a, .mega-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1rem 0; font-family: var(--serif); font-size: 1.625rem; font-weight: 400; background: none; border: 0; text-align: left; }
.mega-btn svg { width: 14px; transition: transform .2s; }
.mega-btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.mega { display: none; padding: 0 0 1.25rem; }
.mega.is-open { display: block; }
.mega-grid { list-style: none; padding: 0; display: grid; gap: .25rem; }
.mega-grid a { display: grid; gap: .15rem; padding: .7rem 0; }
.mega-grid strong { font-weight: 650; font-size: 1.0625rem; }
.mega-grid span { color: var(--muted); font-size: var(--t-sm); line-height: 1.45; }
.mega-feature { display: none; }
.nav-cta { margin-top: 1.75rem; display: grid; gap: .75rem; }

@media (min-width: 1080px) {
  :root { --header-h: 84px; }
  .brand svg { height: 44px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 2.25rem; padding: 0; overflow: visible; border: 0; background: none; }
  .nav-list { display: flex; gap: 2rem; }
  .nav-list > li { border: 0; position: static; }
  .nav-list > li > a, .mega-btn { font-family: var(--sans); font-size: 1rem; font-weight: 500; padding: .5rem 0; gap: .4rem; position: relative; }
  .nav-list > li > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 2px; background: var(--teal); transition: right .25s var(--ease); }
  .nav-list > li > a:hover::after, .nav-list > li > a[aria-current='page']::after { right: 0; }
  .mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(6, 42, 47, .35); padding: 2.5rem 0 3rem; }
  .mega > .container { display: grid; grid-template-columns: 1fr 22rem; gap: 4rem; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: .5rem 3rem; }
  .mega-grid a { padding: 1rem 0; border-top: 1px solid var(--line); }
  .mega-grid a:hover strong { color: var(--teal-700); }
  .mega-grid strong { font-family: var(--serif); font-weight: 450; font-size: 1.5rem; }
  .mega-feature { display: grid; gap: .75rem; align-content: start; background: var(--petrol); color: var(--white); padding: 1.75rem; }
  .mega-feature p { color: var(--muted-dark); font-size: var(--t-sm); }
  .mega-feature .h4 { font-family: var(--serif); font-weight: 450; font-size: 1.5rem; }
  .nav-cta { margin: 0; display: block; }
  .nav-cta .btn-wa { display: none; }
  .nav-cta .btn { min-height: 48px; padding: .7rem 1.25rem; font-size: .9688rem; }
}

/* ── Hero de inicio ───────────────────────────────────────────── */
.hero { position: relative; background: var(--petrol); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-topo { position: absolute; inset: 0; z-index: -1; }
.hero-topo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 78% 50%; opacity: .7; }
.hero-topo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--petrol) 0%, rgba(6, 42, 47, .9) 36%, rgba(6, 42, 47, .2) 62%, rgba(6, 42, 47, 0) 100%); }
@media (max-width: 899px) { .hero-topo img { object-position: 74% 30%; opacity: .7; } .hero-topo::after { background: linear-gradient(180deg, rgba(6, 42, 47, .35), rgba(6, 42, 47, .85) 45%, var(--petrol) 80%); } }
.hero-inner { padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); display: grid; gap: 2.5rem; position: relative; }
.hero-copy { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); position: relative; z-index: 2; }
.hero-kw { font-size: var(--t-sm); font-weight: 600; color: var(--mint); margin-bottom: 1.5rem; display: block; font-family: var(--sans); letter-spacing: .005em; line-height: 1.4; }
.hero h1 .display { display: block; max-width: 13ch; }
.hero-lead { margin: 1.75rem 0 2.5rem; font-size: var(--t-lead); color: #d4e3e2; max-width: 36rem; line-height: 1.55; }
.hero-person { margin: 0; position: relative; display: flex; justify-content: center; align-items: flex-end; z-index: 1; }
.hero-person img { width: auto; height: clamp(280px, 72vw, 400px); object-fit: contain; object-position: bottom; }
.hero-person.is-photo img { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%); }
.hero-person figcaption { position: absolute; left: 0; bottom: 1.25rem; font-size: var(--t-xs); color: var(--muted-dark); line-height: 1.4; max-width: 15rem; padding-left: .9rem; border-left: 2px solid var(--gold); }
.hero-person figcaption span { display: block; color: var(--white); font-weight: 650; font-size: var(--t-sm); }
@media (max-width: 1023px) { .hero-copy { padding-bottom: 0; } .hero-person figcaption { left: auto; right: 0; } }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 3rem; }
  .hero-person { align-self: end; height: 100%; min-height: 620px; }
  .hero-person img { position: absolute; bottom: 0; right: -6%; height: min(900px, 96%); max-width: none; }
  .hero-person figcaption { left: auto; right: 0; bottom: 2rem; }
}
.creds { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.creds li { padding: 1.25rem 1rem 1.25rem 0; display: grid; gap: .25rem; align-content: start; }
.creds b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); line-height: 1.05; color: var(--white); letter-spacing: -.01em; }
.creds span { font-size: var(--t-sm); color: var(--muted-dark); line-height: 1.45; }
.creds { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); max-width: 38rem; }
.creds li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.creds li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
@media (prefers-reduced-motion: no-preference) {
  .hero-topo img { animation: topo-in 1.6s var(--ease) both; }
  @keyframes topo-in { from { opacity: 0; transform: scale(1.04); } to { opacity: .95; transform: none; } }
}

/* ── Hero de páginas interiores ───────────────────────────────── */
.page-hero { position: relative; background: var(--petrol); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero .hero-topo img { left: auto; right: 0; width: 100%; object-position: 70% 50%; opacity: .8; }
@media (min-width: 900px) { .page-hero .hero-topo img { width: 68%; } }
.page-hero .hero-topo::after { background: linear-gradient(90deg, var(--petrol) 0%, rgba(6, 42, 47, .88) 40%, rgba(6, 42, 47, .1) 100%); }
.page-hero-inner { padding-block: clamp(1.75rem, 1rem + 2vw, 2.5rem) clamp(3.5rem, 2.5rem + 5vw, 7.5rem); }
.page-hero h1 { font-family: var(--serif); font-size: var(--t-h1); font-weight: 400; line-height: 1.02; letter-spacing: -.018em; max-width: 16ch; margin: .9rem 0 1.5rem; }
.page-hero .lead { color: #d4e3e2; max-width: 38rem; margin-bottom: 2.25rem; }
.page-hero--split .page-hero-inner { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .page-hero--split .page-hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero-figure figcaption { font-size: var(--t-xs); color: var(--muted-dark); margin-top: .25rem; text-align: right; padding-right: 7%; }
@media (min-width: 1024px) { .hero-figure { margin-right: -3%; } }

.crumbs { font-size: var(--t-xs); color: var(--muted-dark); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: '/'; margin-right: .35rem; opacity: .6; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs--light, .crumbs--light a { color: var(--muted); }
.crumbs--light a:hover { color: var(--ink); }

/* ── Respuesta directa (bloque citable) ───────────────────────── */
.answer { display: grid; gap: 2rem; padding-block: clamp(3rem, 2rem + 4vw, 6rem); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .answer { grid-template-columns: 7fr 5fr; gap: 5rem; align-items: start; } }
.answer h2 { font-family: var(--serif); font-size: var(--t-h3); font-weight: 450; margin-bottom: 1rem; }
.answer p { font-size: var(--t-lead); line-height: 1.6; }
.facts { display: grid; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; color: var(--muted); }

/* ── Listas con marca ─────────────────────────────────────────── */
.ticks { list-style: none; padding: 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: .95rem; height: .5rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.dark .ticks li::before { border-color: var(--mint); }

/* ── Problemas (selector) ─────────────────────────────────────── */
.pr { display: grid; gap: 2rem; }
@media (min-width: 960px) { .pr { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.pr-list { display: grid; border-top: 1px solid var(--line); }
.pr-list button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 1.15rem 2.5rem 1.15rem 0; position: relative; color: var(--muted); font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 400; line-height: 1.25; transition: color .2s, padding .25s var(--ease); }
.pr-list button::after { content: ''; position: absolute; right: .5rem; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: .5; }
.pr-list button:hover { color: var(--ink); }
.pr-list button[aria-selected='true'] { color: var(--ink); padding-left: 1.25rem; }
.pr-list button[aria-selected='true']::before { content: ''; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 3px; background: var(--teal); }
.pr-list button[aria-selected='true']::after { opacity: 1; color: var(--teal-700); }
.pr-panel { background: var(--mist); padding: clamp(1.75rem, 1.4rem + 1.5vw, 3rem); display: grid; gap: 1.5rem; border-top: 3px solid var(--teal); }
@media (min-width: 960px) { .pr-panels { position: sticky; top: calc(var(--header-h) + 2rem); } }
.pr-panel:focus-visible { outline-offset: -3px; }
.pr-big { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.15; }
.pr-panel dl { display: grid; gap: 1.1rem; }
.pr-panel dt { font-size: var(--t-sm); font-weight: 650; color: var(--teal-700); }
.pr-panel dd { margin: .2rem 0 0; }
.pr-panel .btn { justify-self: start; }

/* ── Capacidades (filas editoriales) ──────────────────────────── */
.cap { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--line); }
.cap:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .cap { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .cap:nth-child(even) .cap-media { order: 2; }
}
.cap-media { position: relative; background: var(--white); aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; }
.cap-media .topo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.cap-media .ill { position: relative; width: 88%; height: auto; }
.cap-body { display: grid; gap: 1rem; }
.cap-body .h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); }
.cap-body p:not(.label) { color: var(--muted); max-width: 34rem; }
.cap-body .h3 a { color: var(--ink); text-decoration: none; }
.cap-body .h3 a:hover { color: var(--teal-700); }
.cap-body .ticks { margin: .25rem 0 .5rem; }

/* ── Método KPI ───────────────────────────────────────────────── */
.mc { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .mc { grid-template-columns: .95fr 1.05fr; gap: 5rem; } .mc-visual { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; } }
.mc-visual svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; }
@media (max-width: 959px) { .mc-visual svg { max-width: 320px; } }
.mc-track { stroke: var(--line-dark); }
.mc-arc { opacity: .25; transition: opacity .4s; }
.mc-arc.is-active { opacity: 1; }
.mc-letter { font-family: var(--serif); font-weight: 450; font-size: 34px; }
.mc-node circle { fill: var(--petrol); stroke: var(--line-dark); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.mc-node text { font-family: var(--sans); font-weight: 600; font-size: 14px; fill: var(--muted-dark); }
.mc-node.is-done circle { stroke: var(--teal); }
.mc-node.is-active circle { fill: var(--mint); stroke: var(--mint); }
.mc-node.is-active text { fill: var(--petrol); }
.mc-c1 { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--mint); }
.mc-c2 { font-family: var(--serif); font-size: 34px; font-weight: 400; fill: var(--white); }
.mc-c3 { font-family: var(--sans); font-size: 14px; fill: var(--muted-dark); }
.mc-steps { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line-dark); }
.mc-step { padding: 1.75rem 0 1.75rem 1.5rem; border-bottom: 1px solid var(--line-dark); position: relative; transition: background .3s; }
.mc-step::before { content: ''; position: absolute; left: 0; top: 1.9rem; bottom: 1.9rem; width: 2px; background: var(--line-dark); transition: background .3s; }
.mc-step.is-active::before { background: var(--mint); }
.mc-tag { font-size: var(--t-xs); font-weight: 600; color: var(--muted-dark); }
.mc-tag b { color: var(--gold-200); margin-right: .35rem; }
.mc-step h3 { font-family: var(--serif); font-size: var(--t-h4); font-size: 1.75rem; margin: .3rem 0 .5rem; color: var(--white); }
.mc-step p { color: var(--muted-dark); }
.mc-get { margin-top: .75rem; color: var(--white) !important; font-weight: 500; }
.mc-get span { color: var(--mint); font-weight: 650; }
.mc-light .mc-track { stroke: var(--line); }
.mc-light .mc-node circle { fill: var(--white); stroke: var(--line); }
.mc-light .mc-node text { fill: var(--muted); }
.mc-light .mc-node.is-active circle { fill: var(--teal-700); stroke: var(--teal-700); }
.mc-light .mc-node.is-active text { fill: var(--white); }
.mc-light .mc-c1 { fill: var(--teal-700); } .mc-light .mc-c2 { fill: var(--ink); } .mc-light .mc-c3 { fill: var(--muted); }

/* ── Etapas de crecimiento ────────────────────────────────────── */
.gs { border-top: 2px solid var(--ink); }
.gs-chart { position: relative; height: clamp(120px, 18vw, 220px); margin-top: 2rem; }
.gs-chart svg { width: 100%; height: 100%; }
.gs-curve { fill: none; stroke: var(--teal); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.gs-area { fill: url(#gsfill); }
.gs-stem { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.gs-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--teal); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background .3s; }
.gs-dot.is-active { background: var(--teal-700); border-color: var(--teal-700); transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 8px rgba(0, 142, 135, .15); }
.gs-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.gs-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 1rem .25rem 1.1rem; display: grid; justify-items: center; gap: .15rem; color: var(--muted); min-height: 54px; text-align: center; transition: color .2s, border-color .2s; }
.gs-tabs button:hover { color: var(--ink); }
.gs-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--teal); }
.gs-name { font-family: var(--serif); font-size: clamp(1rem, .85rem + .7vw, 1.5rem); }
.gs-short { font-size: var(--t-xs); line-height: 1.3; display: none; }
@media (min-width: 760px) { .gs-short { display: block; } }
.gs-panel { display: grid; gap: 2rem; padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.gs-panel:focus-visible { outline-offset: 4px; }
@media (min-width: 960px) { .gs-panel { grid-template-columns: 1.2fr 1fr 1.1fr; gap: 3.5rem; } }
.no-js .gs-panel + .gs-panel { border-top: 1px solid var(--line); margin-top: 2rem; }
.gs-lbl { font-size: var(--t-sm); font-weight: 650; color: var(--teal-700); margin-bottom: .6rem; }
.gs-here { font-family: var(--serif); font-size: var(--t-h4); font-size: 1.5rem; line-height: 1.25; }
.gs-next { font-weight: 600; }
.gs-ctas { margin-top: 1.25rem; display: grid; gap: .5rem; justify-items: start; }
.wa-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: var(--t-sm); min-height: 44px; color: #0b6d38; }

/* ── Centro Evaluador ─────────────────────────────────────────── */
.ce { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .ce { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.seal { width: 120px; color: var(--gold-700); margin-bottom: 2rem; }
.ce .h2 { font-size: clamp(2rem, 1.5rem + 1.9vw, 3.1rem); max-width: 16ch; }
.seal text { font-family: var(--sans); }
.std-table { width: 100%; border-collapse: collapse; }
.std-table th, .std-table td { text-align: left; vertical-align: top; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); }
.std-table thead th { font-size: var(--t-xs); font-weight: 650; color: var(--muted); border-bottom: 2px solid var(--ink); padding-top: 0; }
.std-table td:first-child { width: 7.5rem; }
.code { display: inline-block; font-weight: 700; font-size: var(--t-sm); color: var(--gold-200); background: var(--petrol); padding: .2rem .55rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.std-table .std-t { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; }
.std-table .std-f { display: block; color: var(--muted); font-size: var(--t-sm); margin-top: .35rem; }

/* ── Tarjetas editoriales (insights) ──────────────────────────── */
.feat { display: grid; gap: 2rem; padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); position: relative; }
@media (min-width: 960px) { .feat { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center; } }
.feat img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.feat .h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
.feat .h2 a { color: var(--ink); text-decoration: none; }
.feat .h2 a::after { content: ''; position: absolute; inset: 0; }
.feat:hover .h2 a { color: var(--teal-700); }
.feat-body { display: grid; gap: 1rem; }
.cards { list-style: none; padding: 0; display: grid; gap: 2.5rem 2rem; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: grid; gap: .75rem; align-content: start; }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: .5rem; }
.card-cat { font-size: var(--t-xs); font-weight: 650; color: var(--teal-700); }
.card-t { font-family: var(--serif); font-size: 1.5rem; line-height: 1.18; }
.card-t a { color: var(--ink); text-decoration: none; }
.card-t a::after { content: ''; position: absolute; inset: 0; }
.card:hover .card-t a { color: var(--teal-700); }
.card:focus-within { outline: 3px solid var(--teal-700); outline-offset: 6px; }
.card-t a:focus-visible { outline: none; }
.card p { color: var(--muted); font-size: var(--t-sm); }
.card time, .meta { font-size: var(--t-xs); color: var(--muted); }

/* ── Rejilla de servicios (filetes, sin tarjetas) ─────────────── */
.sg { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .sg { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
@media (min-width: 1100px) { .sg { grid-template-columns: repeat(3, 1fr); } .sg--4 { grid-template-columns: repeat(4, 1fr); } .sg--5 { grid-template-columns: repeat(5, 1fr); } }
.sg > li { padding: 2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .75rem; align-content: start; }
.sg-n { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--teal); }
.sg h3 { font-family: var(--serif); font-size: 1.625rem; font-weight: 450; line-height: 1.15; }
.sg p { color: var(--muted); }
.sg .ticks { font-size: var(--t-sm); margin-top: .25rem; }
.dark .sg { border-color: var(--line-dark); }
.dark .sg > li { border-color: var(--line-dark); }
.dark .sg h3 { color: var(--white); }
.dark .sg p { color: var(--muted-dark); }
.dark .sg-n { color: var(--mint); }

/* ── Comparativo (marketing) ──────────────────────────────────── */
.vs { border-top: 2px solid var(--ink); }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.vs-row > * { padding: 1.1rem 1.25rem 1.1rem 0; font-size: var(--t-lead); }
.vs-head > * { font-size: var(--t-sm); font-weight: 650; color: var(--muted); }
.vs-no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, .45); }
.vs-yes { font-weight: 600; }

/* ── Testimonios ──────────────────────────────────────────────── */
.quotes { list-style: none; padding: 0; display: grid; gap: 3rem; }
@media (min-width: 960px) { .quotes { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.quote blockquote p { font-family: var(--serif); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); line-height: 1.3; }
.quote figcaption { margin-top: 1rem; display: flex; gap: .85rem; align-items: center; font-size: var(--t-sm); color: var(--muted); }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { color: var(--ink); display: block; }

/* ── Banda local ──────────────────────────────────────────────── */
.local { position: relative; overflow: hidden; isolation: isolate; }
.local .band { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: -1; }
.local .band img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.local-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .local-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end; } }

/* ── Preguntas frecuentes ─────────────────────────────────────── */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } .faq-grid .sticky { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q { font-family: var(--serif); font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem); font-weight: 450; line-height: 1.3; }
.faq summary:hover .q { color: var(--teal-700); }
.plus { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: 50%; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq details > div { padding: 0 3rem 1.5rem 0; color: var(--muted); max-width: 46rem; }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group > h2 { font-family: var(--sans); font-size: var(--t-sm); font-weight: 650; color: var(--teal-700); margin-bottom: 1rem; }

/* ── Diagnóstico (formulario) ─────────────────────────────────── */
.diag-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .diag-grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; } }
.steps-n { list-style: none; padding: 0; margin: 2rem 0; display: grid; border-top: 1px solid var(--line); }
.steps-n li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.steps-n .n { font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--teal); }
.steps-n strong { display: block; }
.steps-n p { color: var(--muted); font-size: var(--t-sm); }
.panel { background: var(--white); border-top: 3px solid var(--teal); padding: clamp(1.5rem, 1.2rem + 2vw, 3rem); box-shadow: var(--shadow); }
.panel-t { font-family: var(--serif); font-size: var(--t-h3); }
.form { display: grid; gap: 1.15rem; }
.form .two { display: grid; gap: 1.15rem; align-items: start; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: .85rem 1rem; font-size: 1rem; background: var(--white); border: 1.5px solid #c3cecc; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e1c20' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 12px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(0, 115, 109, .16); }
.field [aria-invalid='true'] { border-color: var(--error); }
.hint { font-size: var(--t-xs); color: var(--muted); }
.err { font-size: var(--t-xs); color: var(--error); font-weight: 650; }
.err:empty { display: none; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--teal-700); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--t-sm); font-weight: 650; color: var(--error); }
.form-status:empty { display: none; }
.form-ok { padding: 1rem 0; }
.form-ok .h3 { margin: .5rem 0 .75rem; }

/* ── Artículo ─────────────────────────────────────────────────── */
.art-head { padding-block: clamp(1.75rem, 1rem + 2vw, 2.5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.art-head h1 { font-family: var(--serif); font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem); font-weight: 400; line-height: 1.04; letter-spacing: -.018em; margin: 1.5rem 0 1.25rem; max-width: 20ch; }
.art-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; font-size: var(--t-sm); color: var(--muted); margin-top: 1.5rem; }
.art-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.art-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
@media (min-width: 900px) { .art-cover img { aspect-ratio: 21 / 8; object-position: 70% 50%; } }
.art-grid { display: grid; gap: 3rem; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 1100px) { .art-grid { grid-template-columns: 15rem minmax(0, 44rem) 17rem; justify-content: space-between; gap: 3rem; } .art-aside, .toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.toc { font-size: var(--t-sm); }
.toc p { font-weight: 650; margin-bottom: .75rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--teal); }
@media (max-width: 1099px) { .toc { display: none; } }
.brief { background: var(--mist); border-left: 3px solid var(--teal); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; }
.brief p:first-child { font-weight: 650; font-size: var(--t-sm); color: var(--teal-700); margin-bottom: .5rem; }
.brief p:last-child { font-size: 1.125rem; line-height: 1.6; }
.prose { font-size: 1.125rem; line-height: 1.75; color: #1b2a2e; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.375rem); font-weight: 450; line-height: 1.12; margin-top: 2.2em; color: var(--ink); }
.prose h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 650; margin-top: 1.8em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose blockquote { border-left: 3px solid var(--teal); padding: .25rem 0 .25rem 1.5rem; font-family: var(--serif); font-size: 1.375rem; line-height: 1.45; color: var(--ink); }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; border-bottom: 2px solid var(--ink); }
.prose img { width: 100%; }
.prose .formula { background: var(--mist); padding: 1rem 1.25rem; font-size: 1rem; }
.prose a { font-weight: 500; }
.aside-box { background: var(--petrol); color: var(--white); padding: 1.75rem; display: grid; gap: .9rem; }
.aside-box .h4 { font-family: var(--serif); font-weight: 450; font-size: 1.5rem; }
.aside-box p:not(.h4) { color: var(--muted-dark); font-size: var(--t-sm); }
.author { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 3rem; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--petrol); color: var(--mint); display: grid; place-items: center; font-family: var(--serif); font-size: 1.625rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.author p { color: var(--muted); font-size: var(--t-sm); }
.author strong a { color: var(--ink); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.tags a { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .8rem; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--t-xs); }
.tags a:hover { border-color: var(--teal); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.filters a[aria-current='page'], .filters a:hover { background: var(--petrol); border-color: var(--petrol); color: var(--white); }

/* ── Fundador ─────────────────────────────────────────────────── */
.founder { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .founder { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.founder-photo { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; background: var(--petrol); position: relative; overflow: hidden; display: grid; place-items: center; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .mono { font-family: var(--serif); font-size: clamp(4rem, 3rem + 4vw, 7rem); color: var(--mint); position: relative; }
.founder-photo .topo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.founder-photo .since { position: absolute; left: 1.25rem; bottom: 1.1rem; color: var(--gold-200); font-size: var(--t-sm); font-weight: 600; }

/* ── Pie de página ────────────────────────────────────────────── */
.site-footer { background: var(--petrol-deep); color: var(--muted-dark); font-size: var(--t-sm); position: relative; overflow: hidden; isolation: isolate; }
.site-footer .band { position: absolute; left: 0; right: 0; top: 0; height: 22rem; z-index: -1; opacity: .55; }
.site-footer .band img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-footer a:not(.btn) { color: var(--white); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--mint); text-decoration: underline; }
.f-cta { display: grid; gap: 2rem; padding-block: clamp(4rem, 3rem + 4vw, 7rem) clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--line-dark); }
.f-cta .h2 { color: var(--white); max-width: 16ch; }
@media (min-width: 960px) { .f-cta { grid-template-columns: 1fr auto; align-items: end; } }
.f-top { display: grid; gap: 2.5rem; padding-top: 3.5rem; }
@media (min-width: 720px) { .f-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .f-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.f-brand svg { height: 48px; width: auto; margin-bottom: 1.25rem; }
.f-brand p { max-width: 22rem; }
.f-col h2 { font-family: var(--sans); font-size: var(--t-sm); font-weight: 650; color: var(--white); margin-bottom: 1rem; }
.f-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.f-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: var(--t-xs); }
.f-bottom ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer .f-bottom p a { text-decoration: underline; }

/* ── Barra fija de contacto en celular (siempre visible) ─────── */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 1px; background: var(--line-dark); border-top: 1px solid rgba(255,255,255,.08); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -12px 30px -12px rgba(4, 29, 33, .45); }
.mcta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 62px; padding: .5rem .25rem; text-decoration: none; font-size: .75rem; font-weight: 650; letter-spacing: .01em; line-height: 1.15; text-align: center; }
.mcta .ico { width: 22px; height: 22px; }
.mcta-wa { background: #0b7a3e; color: var(--white); }
.mcta-call { background: var(--petrol); color: var(--white); }
.mcta-diag { background: var(--teal-700); color: var(--white); }
.mcta:hover, .mcta:active { color: var(--white); filter: brightness(1.08); }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
.site-footer { padding-bottom: 2.5rem; }
@media (min-width: 1080px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }
.wa-float { display: none; }
@media (min-width: 1080px) {
  .wa-float { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 95; display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.15rem .8rem .95rem; background: #0b7a3e; color: var(--white); text-decoration: none; font-weight: 650; font-size: .9375rem; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(4, 29, 33, .5); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; }
  .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float:hover { background: #096632; color: var(--white); }
  .wa-float .ico { width: 22px; height: 22px; }
}
@media print { .mobile-cta, .wa-float { display: none !important; } }

/* ── Utilidades varias ────────────────────────────────────────── */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; } }
.stack { display: grid; gap: 1rem; }
.frame { background: var(--mist); padding: clamp(1rem, 3vw, 2rem); }
.frame img { width: 100%; }
.caption { font-size: var(--t-xs); color: var(--muted); margin-top: .6rem; }
.contact-list { list-style: none; padding: 0; border-top: 1px solid var(--line-dark); margin-top: 2.5rem; }
.contact-list li { display: grid; gap: .25rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 560px) { .contact-list li { grid-template-columns: 8rem 1fr; gap: 1rem; align-items: center; } }
.contact-list span { font-weight: 650; font-size: var(--t-sm); color: var(--white); }
.contact-list p, .contact-list a { color: var(--muted-dark); }
.contact-list a { color: var(--white) !important; }
.legal h2 { font-family: var(--serif); font-weight: 450; }
.nf h1 { font-family: var(--serif); font-size: var(--t-h1); font-weight: 400; max-width: 12ch; margin: 1rem 0 1.25rem; }
.nf ul { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: .25rem; font-size: 1.25rem; }
.nf a { display: inline-block; padding: .35rem 0; font-weight: 600; }
.principles { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(4, 1fr); column-gap: 2.5rem; } }
.principles li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; align-content: start; }
.principles h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 450; line-height: 1.15; }
.principles p { color: var(--muted); }
.kpi-letters { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); margin-top: 2rem; }
.kpi-letters div { padding: 1.25rem 1rem 0 0; }
.kpi-letters div + div { padding-left: 1.25rem; border-left: 1px solid var(--line-dark); }
.kpi-letters b { display: block; font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--mint); }
.kpi-letters span { display: block; margin-top: .5rem; color: var(--white); font-weight: 600; }
.kpi-letters small { color: var(--muted-dark); font-size: var(--t-sm); }

/* ── Complementos v3 ──────────────────────────────────────────── */
.js [data-initially-hidden] { display: none; }
html:not(.js) .gs-panel + .gs-panel, html:not(.js) .pr-panel + .pr-panel { margin-top: 1.5rem; }
.section--answer { background: var(--white); }
.section--answer .answer { border-bottom: 0; }
.answer .label { margin-bottom: .75rem; }
.hero-note { position: absolute; right: var(--gutter); bottom: 1rem; font-size: var(--t-xs); color: rgba(169, 191, 193, .7); display: none; }
@media (min-width: 900px) { .hero-note { display: block; } }
.table-scroll { overflow-x: auto; }
.caps { display: grid; }
.page-hero h1 .hero-kw { margin-bottom: 1.25rem; }
.local { min-height: 32rem; display: grid; align-items: start; }
.local .band { opacity: .9; }
.local .lead { color: #d4e3e2; }
.signals { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.signals li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.1875rem, 1.1rem + .45vw, 1.5rem); line-height: 1.3; }
.signals .n { font-family: var(--sans); font-size: var(--t-sm); font-weight: 650; color: var(--teal-700); padding-top: .3rem; }
.deliv { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 720px) { .deliv { grid-template-columns: repeat(3, 1fr); } }
.deliv-item { margin: 0; display: grid; gap: 1rem; align-content: start; }
.deliv-img { background: var(--mist); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: clamp(.75rem, 2vw, 1.5rem); overflow: hidden; }
.deliv-img img { width: 100%; height: 100%; object-fit: contain; }
.deliv-item figcaption { display: grid; gap: .3rem; }
.deliv-item strong { font-family: var(--serif); font-weight: 450; font-size: 1.375rem; line-height: 1.2; }
.deliv-item span { color: var(--muted); font-size: var(--t-sm); }
.labs { display: grid; border-top: 2px solid var(--ink); }
.lab { display: grid; gap: 1rem 3rem; padding: 2.25rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 2rem); }
@media (min-width: 960px) { .lab { grid-template-columns: 14rem 1fr 1fr; align-items: start; } }
.lab-name { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; color: var(--teal-700); }
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.dark .std-table th, .dark .std-table td { border-bottom-color: var(--line-dark); }
.dark .std-table thead th { color: var(--muted-dark); border-bottom-color: rgba(255, 255, 255, .55); }
.dark .std-table .std-f { color: var(--muted-dark); }
.dark .std-table .std-f strong { color: var(--white); }
.dark .code { background: rgba(255, 255, 255, .08); }
.dark .seal { color: var(--gold); }
.hero-cred { display: inline-flex; align-items: center; gap: .75rem; color: var(--gold-200); font-weight: 600; font-size: var(--t-sm); margin: -.75rem 0 2rem; }
.hero-cred .code { background: rgba(201, 168, 76, .14); color: var(--gold-200); }
.faq-nav ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; border-top: 1px solid var(--line); }
.faq-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.faq-nav a:hover { color: var(--teal-700); }
.faq-group { scroll-margin-top: calc(var(--header-h) + 2rem); }
.tags .tag { display: inline-flex; align-items: center; min-height: 32px; padding: .25rem .75rem; border: 1px solid var(--line); font-size: var(--t-xs); }
.principles .sg-n { font-size: 1.25rem; font-family: var(--sans); font-weight: 650; color: var(--teal-700); }
.sg > li { scroll-margin-top: calc(var(--header-h) + 2rem); }
.std-table tr { scroll-margin-top: calc(var(--header-h) + 2rem); }
.std-table .wa-link { margin-top: .5rem; }
.f-cta .h2 { max-width: 22ch; font-size: clamp(2rem, 1.45rem + 2vw, 3.25rem); }
.site-footer .band, .local .band { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }

/* Dibujo de Puebla en el pie */
.f-skyline { color: var(--mint); margin-top: 3rem; opacity: .75; }
.f-skyline .puebla { width: 100%; max-width: 1440px; margin-inline: auto; height: auto; }
.f-skyline .puebla-solid path { fill: var(--petrol-deep); }
.f-skyline + .container .f-bottom { margin-top: 0; border-top: 0; }
@media (max-width: 600px) { .kpi-letters { grid-template-columns: 1fr; } .kpi-letters div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 1rem; } .kpi-letters div { padding-bottom: 1rem; } }
