/* MGR Technology — hoja de estilos del sitio
   Paleta y tipografía tomadas de la Presentación Ejecutiva 2026 */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy-950: #0A1628;
  --navy-900: #14263F;
  --navy-700: #223A57;
  --slate-500: #556579;      /* texto secundario pequeño: 5.4:1 sobre papel */
  --slate-400: #93A5BC;
  --mist: #D7E0EC;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --orange: #FF6B35;
  --orange-ink: #C2410C;      /* naranja con contraste suficiente sobre blanco */
  --ink: #0A1628;
  --ink-soft: #3B4E66;
  --good: #2F9E6B;
  --warn: #E8A33D;
  --bad: #D94A3D;
  --orange-hover: #FF8257;
  --field-border: #7A8BA0;   /* borde de campos: 3.5:1 sobre blanco (WCAG 1.4.11) */
  --error-ink: #A3261A;
  --error-bg: #FDECEA;
  --wa: #167347;             /* verde WhatsApp con texto blanco 5.7:1 */
  --wa-hover: #115C38;
  --header-h: 72px;

  /* Movimiento: una sola personalidad para todo el sitio */
  --ease-out: cubic-bezier(.23, 1, .32, 1);       /* entradas y respuesta a clics */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);   /* movimiento dentro de pantalla */
  --press: scale(.97);

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Con viewport-fit=cover: en horizontal el contenido se aleja del notch */
  --gutter-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --radius-s: 6px;
  --radius-m: 12px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px rgba(10, 22, 40, .06);

  --fs-xs: .8125rem;
  --fs-s: .9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --fs-2xl: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  --fs-3xl: clamp(2.2rem, 1.3rem + 3vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; accent-color: var(--navy-950); -webkit-tap-highlight-color: transparent; }
/* Móvil: respuesta inmediata al tocar (sin espera de doble toque) y controles que no seleccionan su texto al mantener presionado */
a, button, label, summary, select, [role="button"] { touch-action: manipulation; }
.btn, .nav-toggle, .wa, .quiz .opts label, .quiz-reset, .field-suggest button, .faq summary { -webkit-user-select: none; user-select: none; }
.btn, .wa { -webkit-touch-callout: none; }
::selection { background: rgba(255, 107, 53, .28); color: var(--ink); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
/* Al enfocar un campo (errores, aviso del 911), queda visible bajo el encabezado fijo */
input, select, textarea { scroll-margin-top: calc(var(--header-h) + 72px); scroll-margin-bottom: 24px; }
input, textarea { caret-color: var(--orange-ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; } /* evita una palabra sola en el último renglón */
h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-l); letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; }
/* El contorno sigue el radio propio de cada elemento: no se fuerza border-radius aquí */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter-l); }
.measure { max-width: 64ch; }
.lead { font-size: var(--fs-l); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-s); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, .97); /* sin backdrop-filter: a esta opacidad no se veía y costaba pintura en cada scroll */
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand span { font-size: .72rem; font-weight: 600; letter-spacing: .32em; color: var(--slate-400); padding-top: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: var(--fs-s); font-weight: 500; color: var(--mist); padding: 8px 12px; border-radius: var(--radius-s); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
}
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .btn { margin-left: 8px; font-weight: 700; }
.btn.header-cta { display: none; }
/* Mientras el botón principal del hero está a la vista, el del encabezado espera (un solo naranja en pantalla) */
.btn.header-cta { transition: opacity 200ms var(--ease-out), visibility 200ms; }
.btn.header-cta.is-standby { opacity: 0; visibility: hidden; }
/* Celular: el botón "Agendar" queda siempre a la mano; la palabra TECHNOLOGY cede el espacio */
@media (max-width: 37.49em) {
  .btn.header-cta { display: inline-flex; margin-left: auto; padding: 8px 12px; font-size: var(--fs-s); }
  .header-cta + .nav-toggle { margin-left: 8px; min-width: 0; }
  .brand span { display: none; }
  .nav .btn { display: none; } /* un solo botón naranja en pantalla: el del encabezado */
}
/* Selector de idioma: «EN»/«ES» en escritorio; la palabra completa en el menú móvil */
.nav a.lang-switch { font-weight: 700; letter-spacing: .04em; }
.lang-switch .ls-long { display: none; }
@media (max-width: 1080px) { .lang-switch .ls-short { display: none; } .lang-switch .ls-long { display: inline; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nav-wa { display: none !important; }
@media (max-width: 600px) { .nav-wa { display: block !important; } }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--white); border-radius: var(--radius-s); padding: 8px 12px; font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; min-width: 6.25em; justify-content: center; transition: transform 160ms var(--ease-out); }
.nav-toggle:active { transform: var(--press); }
@media (max-width: 1180px) and (min-width: 1081px) {
  .site-header .wrap { gap: 16px; }
  .nav a { padding: 8px 9px; }
}
/* em: si la persona usa letra grande en su navegador, el botón extra se oculta antes de que no quepa */
@media (min-width: 37.5em) and (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; }
  .btn.header-cta { display: inline-flex; margin-left: auto; padding: 9px 14px; }
  .header-cta + .nav-toggle { margin-left: 0; }
  .nav .btn { display: none; }
}
/* Fondo oscurecido detrás del menú móvil; tocarlo cierra el menú (site.js) */
.menu-open body::after { content: ""; position: fixed; inset: var(--header-h) 0 0; background: rgba(10, 22, 40, .55); z-index: 45; }
@media (prefers-reduced-motion: no-preference) {
  .menu-open body::after { animation: fade-in 200ms var(--ease-out); }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-950); padding: 8px var(--gutter-r) 20px var(--gutter-l); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.is-open { display: flex; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .nav.is-open { opacity: 0; } }
  @media (prefers-reduced-motion: no-preference) {
    @starting-style { .nav.is-open { transform: translateY(-6px); } }
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--white); font-weight: 700; }
  .nav a[aria-current="page"]::after { content: ""; display: block; width: 24px; height: 2px; margin-top: 6px; background: var(--orange); }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: var(--fs-s);
  text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: var(--radius-s);
  border: 2px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active:not([disabled]) { transform: var(--press); }
.btn-primary { background: var(--orange); color: var(--navy-950); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-outline { border-color: var(--navy-950); color: var(--navy-950); background: transparent; }
.nav .btn-primary { padding: 10px 16px; color: var(--navy-950); }
/* Hover solo con mouse: en pantallas táctiles el estado se quedaba "pegado" tras el tap */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--orange-hover); }
  .btn-ghost:hover { border-color: var(--white); }
  .btn-outline:hover { background: var(--navy-950); color: var(--white); }
  .nav .btn-primary:hover { background: var(--orange-hover); color: var(--navy-950); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-950); color: var(--white); }
.bg-navy-2 { background: var(--navy-900); color: var(--white); }
.bg-navy .lead, .bg-navy-2 .lead, .bg-navy .muted, .bg-navy-2 .muted { color: var(--slate-400); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-bottom: 0; }
.kicker { display: inline-block; font-size: var(--fs-s); font-weight: 600; color: var(--orange-ink); margin-bottom: 12px; }
.bg-navy .kicker, .bg-navy-2 .kicker, .page-hero .kicker { color: var(--orange); }

/* ---------- Portada ---------- */
.hero { background: var(--navy-950); color: var(--white); overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { margin-bottom: 24px; text-wrap: pretty; } /* balance lo estrechaba a 6 renglones */
.hero h1 .line-2 { display: block; color: var(--orange); }
.hero .lead { color: var(--mist); max-width: 56ch; }
.hero-proof { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); max-width: 56ch; }
.hero-proof p { margin: 0 0 10px; color: var(--mist); font-size: var(--fs-s); line-height: 1.5; }
.hero-proof strong { color: var(--white); font-weight: 700; }
.hero-firms-label { margin: 0 0 4px !important; font-size: var(--fs-xs) !important; color: var(--slate-400) !important; }
.hero-firms { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; color: var(--white) !important; font-weight: 600; letter-spacing: .01em; }
.hero-firms span:not(.sr-only) { white-space: nowrap; }
@media (max-width: 520px) { .hero-firms { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-proof-link { display: inline-block; margin-top: 4px; font-size: var(--fs-s); font-weight: 700; color: var(--orange); text-decoration: underline; text-decoration-color: rgba(255,107,53,.45); }
@media (hover: hover) and (pointer: fine) { .hero-proof-link:hover { text-decoration-color: var(--orange); } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Curva de valor ganado (elemento distintivo) */
.ev-card { margin: 12px 0 0; background: var(--navy-900); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-m); padding: 20px 20px 16px; }
.ev-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-s); font-weight: 600; color: var(--white); margin-bottom: 8px; }
.ev-card figcaption small { white-space: nowrap; font-weight: 500; color: var(--slate-400); font-size: var(--fs-xs); }
.ev-chart { width: 100%; height: auto; overflow: visible; }
.ev-chart .grid line { stroke: rgba(255,255,255,.07); }
.ev-chart .axis text { fill: var(--slate-400); font-size: 11px; font-family: inherit; }
.ev-chart .pv { fill: none; stroke: var(--slate-400); stroke-width: 2; stroke-dasharray: 5 5; }
.ev-chart .ac { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }
.ev-chart .ac-drift { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 2 5; }
.ev-chart .ev { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; }
.ev-chart .mark { fill: var(--orange); }
.ev-chart .label { font-size: 11.5px; font-weight: 600; font-family: inherit; }
.ev-chart .label-pv { fill: var(--slate-400); }
.ev-chart .label-ev { fill: var(--orange); }
.ev-chart .label-ac { fill: rgba(255,255,255,.55); }
.ev-chart .intervene line { stroke: rgba(255,107,53,.5); stroke-dasharray: 3 4; }
.ev-chart .intervene text { fill: var(--white); font-size: 11px; font-weight: 600; font-family: inherit; }
.ev-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--slate-400); }
.ev-legend li { display: flex; align-items: center; gap: 8px; }
.ev-legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--orange); }
.ev-legend i.pv { border-top: 2px dashed var(--slate-400); }
.ev-legend i.ac { border-top: 2px dotted rgba(255,255,255,.4); }
.ev-kpis { display: flex; gap: 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.ev-kpis div { font-size: var(--fs-xs); color: var(--slate-400); }
.ev-kpis b { display: block; color: var(--white); font-size: 1.15rem; font-weight: 700; }
@media (max-width: 560px) {
  .ev-chart .axis text, .ev-chart .intervene text { font-size: 17px; }
  .ev-chart .label { font-size: 18px; }
  .ev-chart .label-ev, .ev-chart .label-ac { display: none; } /* la leyenda ya las nombra */
  .ev-kpis { gap: 16px; }
}
@media (max-width: 560px) { .ev-kpis { flex-direction: column; gap: 12px; } }
.ev-kpis b { white-space: nowrap; }
.ev-kpis b em { font-style: normal; color: var(--good); font-size: .8rem; margin-left: 6px; }
/* La curva se dibuja cuando entra a la vista. Sin JS o con movimiento reducido, se muestra completa. */
@media (prefers-reduced-motion: no-preference) {
  .js .ev-card .ev { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
  .js .ev-card .mark, .js .ev-card .label-ev { opacity: 0; }
  .js .ev-card .mark { transform-box: fill-box; transform-origin: center; }
  /* stroke-dashoffset no se compone en la GPU: se pinta en el hilo principal. Los trazos arrancan cuando la página
     terminó de cargar (.is-loaded, en base.html; máximo 2 s) para no competir con la carga y perder cuadros. */
  .js.is-loaded .ev-card.is-drawn .ev { animation: draw 1.6s .15s cubic-bezier(.16, 1, .3, 1) forwards; }
  /* Con la curva expo el trazo está casi completo a 1.15 s: el punto "aterriza" al final de la línea */
  .js.is-loaded .ev-card.is-drawn .mark { animation: land 300ms 1.15s var(--ease-out) forwards; }
  .js.is-loaded .ev-card.is-drawn .label-ev { animation: appear 400ms 1.2s var(--ease-out) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes land { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* ---------- Tesis ---------- */
.thesis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pillars { display: grid; gap: 0; border-top: 1px solid var(--mist); }
.pillar { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--mist); }
.pillar h3 { margin: 0; font-size: var(--fs-m); }
.pillar p { margin: 0; color: var(--ink-soft); }
blockquote.quote { position: relative; margin: 40px 0 0; padding: 0 0 0 52px; font-size: var(--fs-l); font-weight: 600; line-height: 1.45; color: var(--navy-900); text-wrap: balance; }
blockquote.quote::before { content: "«"; position: absolute; left: 0; top: -.3em; font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--orange); }
blockquote.quote::after { content: "»"; }
@media (max-width: 860px) { .thesis { grid-template-columns: 1fr; } .pillar { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Selector de servicios ---------- */
.situations { border-top: 2px solid var(--navy-950); }
.situation { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 280px; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--mist); text-decoration: none; color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .situation:hover .situation-name { color: var(--orange-ink); }
}
.situation-when { font-size: var(--fs-l); font-weight: 600; line-height: 1.35; color: var(--navy-900); }
.situation-when small { display: block; font-size: var(--fs-s); font-weight: 500; color: var(--slate-500); margin-bottom: 4px; }
.situation-name { font-size: var(--fs-l); font-weight: 800; letter-spacing: -.01em; transition: color 150ms ease; }
.situation-name span { display: block; font-size: var(--fs-s); font-weight: 500; color: var(--ink-soft); letter-spacing: 0; margin-top: 2px; }
.situation-figs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--navy-700); border: 1px solid var(--mist); white-space: nowrap; }
.bg-navy .chip, .bg-navy-2 .chip, .page-hero .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--mist); }
@media (max-width: 860px) { .situation { grid-template-columns: 1fr; gap: 8px; } .situation-figs { justify-content: flex-start; } }

/* ---------- Curva de deterioro ---------- */
.decay { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; }
.decay::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 4px; background: linear-gradient(90deg, var(--good), var(--warn) 50%, var(--bad)); border-radius: 4px; }
.decay-step { position: relative; padding: 56px 28px 0 0; }
.decay-step::before { content: ""; position: absolute; top: 15px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 4px solid var(--navy-950); }
.decay-month { font-size: var(--fs-s); font-weight: 700; color: var(--slate-500); }
.decay-step h3 { font-size: var(--fs-xl); margin: 4px 0 6px; }
.decay-step p { color: var(--ink-soft); margin: 0; }
.decay-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding: 20px 24px; background: var(--paper); border-radius: var(--radius-m); font-weight: 500; color: var(--navy-900); }
.decay-note p { margin: 0; max-width: 62ch; }
@media (max-width: 760px) {
  .decay { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
  .decay::before { left: 8px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: linear-gradient(180deg, var(--good), var(--warn) 50%, var(--bad)); }
  .decay-step { padding: 0; }
  .decay-step::before { left: -36px; top: 2px; }
}

/* ---------- Tablero de indicadores ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-m); overflow: hidden; }
.board-cell { background: var(--navy-950); padding: 26px 22px; }
.board-cell .board-label { font-size: var(--fs-xs); font-weight: 600; color: var(--slate-400); margin: 0 0 10px; line-height: 1.4; }
.board-cell p { margin: 0; font-weight: 600; line-height: 1.4; color: var(--white); }
.board-cell .metric { display: block; font-size: 1.35rem; font-weight: 800; color: var(--orange); letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.1; }
@media (max-width: 960px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .board { grid-template-columns: 1fr; } }

/* ---------- Casos reales ---------- */
.cases { border-top: 2px solid var(--navy-950); }
.case { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); gap: 16px 40px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--mist); }
.case-sector { margin: 0 0 6px; font-size: var(--fs-s); font-weight: 600; color: var(--slate-500); }
.case h3 { margin: 0 0 18px; font-size: var(--fs-l); }
.case-figure { margin: 0; font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.4; }
.case-figure span { display: block; margin-bottom: 4px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--navy-950); font-variant-numeric: tabular-nums; }
.case-story { margin: 0; display: grid; gap: 14px; }
.case-story dt { font-size: var(--fs-s); font-weight: 700; color: var(--navy-900); }
.case-story dd { margin: 2px 0 0; color: var(--ink-soft); font-size: var(--fs-s); }
.case-delta { margin: 0; display: grid; gap: 1px; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--mist); background: var(--mist); }
.case-delta div { padding: 14px 16px; background: var(--white); }
.case-delta .after { background: var(--navy-950); }
.case-delta dt { font-size: var(--fs-xs); font-weight: 700; color: var(--slate-500); }
.case-delta .after dt { color: var(--orange); }
.case-delta dd { margin: 2px 0 0; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.35; overflow-wrap: anywhere; }
.case-delta .after dd { color: var(--white); }
.note-measure { max-width: 62ch; }
.cases-note { margin: 24px 0 0; max-width: 62ch; font-size: var(--fs-xs); color: var(--slate-500); }
.case-more { grid-column: 1 / -1; }
.case-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: var(--fs-s); font-weight: 700; color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; }
.case-more summary::-webkit-details-marker { display: none; }
.case-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.case-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.case-more .case-story { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 32px; margin-top: 16px; }
@media (max-width: 760px) { .case { grid-template-columns: minmax(0, 1fr); padding: 28px 0; } .case-more .case-story { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; list-style: none; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 3px solid var(--navy-950); }
.steps li:first-child { border-top-color: var(--orange); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: var(--fs-s); font-weight: 800; color: var(--orange-ink); margin-bottom: 10px; }
.steps h3 { font-size: var(--fs-m); }
.steps p { color: var(--ink-soft); font-size: var(--fs-s); margin: 0; }
.bg-navy .steps li, .bg-navy-2 .steps li { border-top-color: rgba(255,255,255,.3); }
.bg-navy .steps li:first-child { border-top-color: var(--orange); }
.bg-navy .steps li::before { color: var(--orange); }
.bg-navy .steps p { color: var(--slate-400); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Diferenciadores ---------- */
.diffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.diff { padding: 28px 0; border-top: 1px solid var(--mist); }
.diff h3 { font-size: var(--fs-l); }
.diff p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .diffs { grid-template-columns: 1fr; } }

/* ---------- Fundador ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.founder img { border-radius: var(--radius-m); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; width: 100%; }
/* Nosotros: la foto de cuerpo completo va desde la altura del nombre hasta el final del texto */
.founder-lg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "photo title" "photo text"; column-gap: clamp(32px, 5vw, 72px); row-gap: 0; align-items: stretch; }
.founder-lg .founder-title { grid-area: title; }
.founder-lg .founder-photo { grid-area: photo; position: relative; min-height: 0; border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.founder-lg .founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: center top; }
.founder-lg .founder-text { grid-area: text; }
.founder-lg .founder-text > :first-child { margin-top: 0; }
@media (max-width: 1100px) { .founder-lg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .founder-lg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "photo" "text"; row-gap: 20px; } .founder-lg .founder-photo { aspect-ratio: 3 / 4; max-width: 420px; width: 100%; } }
.creds .chip { white-space: normal; } /* una credencial larga se parte en dos renglones antes que desbordar en celular */
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; list-style: none; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 320px; } .founder-lg img { max-width: 100%; } }

/* ---------- CTA final ---------- */
.cta-band { background: var(--navy-950); color: var(--white); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--slate-400); margin: 0; max-width: 58ch; }
.cta-band .actions { margin-top: 0; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Encabezado de página interior ---------- */
.page-hero { background: var(--navy-950); color: var(--white); }
.page-hero .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 80px); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 22ch; }
.page-hero .lead { color: var(--mist); max-width: 62ch; }
.page-hero .promise { font-size: var(--fs-xl); font-weight: 700; color: var(--orange); margin: 0 0 16px; letter-spacing: -.01em; }
.breadcrumb { font-size: var(--fs-xs); color: var(--slate-400); margin-bottom: 20px; }
.breadcrumb a { color: var(--slate-400); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { color: var(--white); } }
.next-steps { list-style: none; display: grid; gap: 14px; counter-reset: ns; margin: 8px 0 0; max-width: 62ch; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 38px; color: var(--mist); line-height: 1.5; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--navy-950); font-size: var(--fs-xs); font-weight: 800; display: grid; place-items: center; }
.next-steps strong { display: block; color: var(--white); }
.hero-aside { margin: 16px 0 0; font-size: var(--fs-s); color: var(--slate-400); }
.hero-aside a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
@media (hover: hover) and (pointer: fine) { .hero-aside a:hover { text-decoration-color: var(--orange); } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ---------- Bloques de contenido ---------- */
.zones { list-style: none; display: grid; gap: 0; margin: 20px 0 20px; border-top: 1px solid var(--mist); }
.zones li { padding: 12px 0 12px 20px; border-bottom: 1px solid var(--mist); position: relative; font-size: var(--fs-s); color: var(--ink-soft); }
.zones li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.zones li:nth-child(2)::before { background: var(--warn); }
.zones li:nth-child(3)::before { background: var(--bad); }
.zones strong { display: block; color: var(--navy-950); }
@media (min-width: 861px) { .quiz-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230A1628' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.signal-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--mist); }
.signal-list li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--mist); position: relative; font-weight: 500; }
.signal-list li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 8px; height: 8px; border-radius: 2px; background: var(--navy-700); transform: rotate(45deg); }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 44px; left: 0; right: 0; height: 2px; background: var(--mist); }
.timeline li { position: relative; padding-right: 24px; }
.timeline .t-when { display: block; font-size: 2rem; font-weight: 800; color: var(--navy-950); letter-spacing: -.03em; line-height: 1; height: 36px; }
.timeline .t-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--orange); margin: 16px 0 18px; position: relative; z-index: 1; }
.timeline h3 { font-size: var(--fs-m); margin-bottom: 6px; }
.timeline p { font-size: var(--fs-s); color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 32px; }
  .timeline::before { left: 8px; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  .timeline .t-dot { position: absolute; left: -32px; top: 6px; margin: 0; }
  .timeline .t-when { height: auto; font-size: 1.6rem; margin-bottom: 6px; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--mist); border: 1px solid var(--mist); border-radius: var(--radius-m); overflow: hidden; }
.fact { background: var(--white); padding: 22px 20px; }
.fact strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--navy-950); }
.fact span { font-size: var(--fs-s); color: var(--ink-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.feature h3 { font-size: var(--fs-m); padding-top: 16px; border-top: 1px solid var(--mist); display: block; }
.feature p { color: var(--ink-soft); margin: 0; font-size: var(--fs-s); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.phases { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: ph; }
.phases li { counter-increment: ph; background: var(--white); padding: 20px 16px; position: relative; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); padding-left: 28px; }
.phases li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 18px; }
.phases li::before { content: counter(ph) ". "; font-weight: 700; color: var(--orange-ink); }
.phases strong { font-size: var(--fs-s); }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } .phases li, .phases li:first-child { clip-path: none; padding: 16px 18px; border: 1px solid var(--mist); border-radius: var(--radius-s); } }

.faq { border-top: 1px solid var(--mist); }
.faq-intro p { margin: 0 0 20px; max-width: 40ch; }
.faq-intro a:not(.btn) { color: inherit; font-weight: 600; }
@media (min-width: 861px) { .faq-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
/* 911: rescates citados junto a "Qué recibe la dirección" */
.proof { margin-top: 28px; display: grid; gap: 12px; max-width: 420px; }
.proof-title { margin: 0; font-size: var(--fs-s); font-weight: 600; color: var(--slate-500); }
.proof-item { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--mist); border-radius: var(--radius-m); background: var(--white); text-decoration: none; color: inherit; transition: border-color 150ms ease; }
.proof-item strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-950); line-height: 1.15; }
.proof-item span { color: var(--ink-soft); font-size: var(--fs-s); }
.proof-sector { font-size: var(--fs-xs); color: var(--slate-500); }
@media (hover: hover) and (pointer: fine) { .proof-item:hover { border-color: var(--navy-950); } }
.proof-item:active { background: var(--paper); }
/* PM Arena: galería del taller */
.gallery { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: clamp(180px, 20vw, 250px) clamp(180px, 20vw, 250px); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--mist); min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-main { grid-row: 1 / 3; }
.gallery .g-wide { grid-column: 2 / 4; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .gallery .g-main { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .gallery .g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: var(--fs-m); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
/* El desplazamiento va dentro de transform (antes cambiaba "top", que no se anima y hacía saltar la flecha) */
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--navy-950); border-bottom: 2.5px solid var(--navy-950); transform: translateY(0) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); max-width: 70ch; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--navy-900); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: end start; padding: clamp(10px, 3%, 20px); /* abajo a la izquierda, sobre el público: no tapa letrero, gladiador, tablero, insignias ni lema */ color: var(--white); text-decoration: none; background: var(--navy-900); }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.video-play { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; background: var(--white); color: var(--navy-950); font-weight: 700; font-size: var(--fs-s); transition: transform 160ms var(--ease-out); }
.video-play svg { width: 22px; height: 22px; }
.video-facade .video-play { padding: 9px 16px 9px 12px; gap: 8px; font-size: var(--fs-xs); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.video-facade .video-play svg { width: 18px; height: 18px; }
/* En celular, solo el círculo de reproducir: la etiqueta queda para lectores de pantalla y no tapa las insignias */
@media (max-width: 520px) { .video-facade .video-play { padding: 12px; } .video-facade .vp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.video-facade:active .video-play { transform: var(--press); }
@media (hover: hover) and (pointer: fine) { .video-facade:hover .video-play { background: var(--mist); } }
.video-alt { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--slate-500); }

.callout { padding: 24px 28px; border-radius: var(--radius-m); background: var(--paper); }
.callout p:last-child { margin: 0; }

.prose h2 { font-size: var(--fs-xl); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- Servicios (hub) ---------- */
.svc-list { display: grid; gap: 20px; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 36px; border: 1px solid var(--mist); border-radius: var(--radius-m); text-decoration: none; color: inherit; background: var(--white); position: relative; }
/* Borde de hover como capa aparte: animar opacity no obliga a repintar la tarjeta completa en cada cuadro */
.svc::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--navy-950); border-radius: inherit; opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover::after { opacity: 1; }
}
.svc .kicker { margin-bottom: 6px; }
.svc h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
.svc .promise { font-weight: 600; color: var(--navy-700); margin: 0; }
.svc ul { list-style: none; display: grid; gap: 10px; align-content: start; }
.svc li { padding-left: 20px; position: relative; color: var(--ink-soft); font-size: var(--fs-s); }
.svc li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.svc .go { display: inline-block; margin-top: 18px; font-weight: 700; font-size: var(--fs-s); color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; }
.svc .go::after { content: " →"; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- Autodiagnóstico ---------- */
.quiz { border: 1px solid var(--mist); border-radius: var(--radius-m); padding: clamp(20px, 4vw, 36px); background: var(--white); }
.quiz fieldset { border: 0; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--mist); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.quiz legend { float: left; padding: 0; font-weight: 500; }
.quiz .opts { display: flex; gap: 6px; }
.quiz .opts label { position: relative; }
.quiz .opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.quiz .opts span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--field-border); border-radius: 999px; font-size: var(--fs-s); font-weight: 600; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.quiz .opts label:active span { transform: var(--press); }
@media (hover: hover) and (pointer: fine) {
  .quiz .opts label:hover input:not(:checked) + span { border-color: var(--navy-950); }
}
.quiz .opts input:checked + span { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.quiz .opts input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
html:not(.js) .quiz-progress { display: none; }
@media (max-width: 860px) {
  /* En móvil el progreso acompaña mientras se responde */
  .quiz-progress { position: sticky; bottom: 0; z-index: 2; margin-left: calc(-1 * clamp(20px, 4vw, 36px)) !important; margin-right: calc(-1 * clamp(20px, 4vw, 36px)) !important; padding: 10px clamp(20px, 4vw, 36px); background: var(--white); border-top: 1px solid var(--mist); }
}
.quiz-progress { margin: 18px 0 0; font-size: var(--fs-s); color: var(--slate-500); font-variant-numeric: tabular-nums; }
.quiz-result:focus { outline: none; }
.quiz-reset { display: block; margin-top: 16px; padding: 6px 0; font: inherit; font-size: var(--fs-s); font-weight: 600; color: var(--mist); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; text-decoration-color: rgba(255,255,255,.4); }
@media (hover: hover) and (pointer: fine) { .quiz-reset:hover { color: var(--white); text-decoration-color: var(--orange); } }
.quiz-result { margin-top: 20px; padding: 24px; border-radius: var(--radius-m); background: var(--navy-950); color: var(--white); display: none; }
.quiz-result.is-visible { display: block; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
@starting-style { .quiz-result.is-visible { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  @starting-style { .quiz-result.is-visible { transform: translateY(8px); } }
}
.quiz-result h3 { color: var(--orange); font-size: var(--fs-xl); }
.quiz-result p { color: var(--mist); }
.quiz-meter { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); margin: 6px 0 18px; overflow: hidden; }
/* Se anima con transform (no width) para no recalcular el diseño en cada cuadro */
.quiz-meter i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--good), var(--warn), var(--bad)); transform: scaleX(var(--score, 0)); transform-origin: left center; transition: transform 400ms var(--ease-out); }
@starting-style { .quiz-result.is-visible .quiz-meter i { transform: scaleX(0); } }
@media (max-width: 640px) { .quiz fieldset { grid-template-columns: 1fr; gap: 10px; } }

.articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.article-card { padding: 28px; border: 1px solid var(--mist); border-radius: var(--radius-m); }
.article-card h3 { font-size: var(--fs-l); }
.article-card p { color: var(--ink-soft); font-size: var(--fs-s); }
.article-card a { font-weight: 700; color: var(--orange-ink); font-size: var(--fs-s); }
@media (max-width: 760px) { .articles { grid-template-columns: 1fr; } }

/* ---------- Formulario ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
/* minmax(0, 1fr): un valor largo (sugerencia de correo, opción del menú) ya no ensancha el formulario */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
.field label { display: block; font-size: var(--fs-s); font-weight: 600; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--slate-500); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-m); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--field-border); border-radius: var(--radius-s); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-950); box-shadow: 0 0 0 3px rgba(255,107,53,.35); }
.field ::placeholder { color: var(--slate-500); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--error-ink); }
.hint { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--slate-500); line-height: 1.45; }
.field-error { margin: 6px 0 0; font-size: var(--fs-s); font-weight: 600; color: var(--error-ink); line-height: 1.4; }
.field-error:empty { display: none; }
.field-suggest { margin: 6px 0 0; font-size: var(--fs-s); color: var(--ink-soft); }
.field-suggest:empty { display: none; }
.field-count { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--slate-500); font-variant-numeric: tabular-nums; }
.field-count:empty { display: none; }
.field-count.is-low { color: var(--error-ink); font-weight: 600; }
.field-suggest button { overflow-wrap: anywhere; text-align: left; font: inherit; font-weight: 700; color: var(--orange-ink); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
@media (hover: hover) and (pointer: fine) { .field-suggest button:hover { color: var(--navy-950); } }
.consent + .field-error { margin: -8px 0 0; }
.btn[disabled] { opacity: .75; cursor: progress; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy-950); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { scroll-margin-top: calc(var(--header-h) + 16px); padding: 14px 18px; border-radius: var(--radius-s); font-weight: 600; }
.form-status.error { background: var(--error-bg); color: var(--error-ink); }
.form-status ul { margin: 6px 0 0; padding-left: 1.2em; list-style: disc; font-weight: 500; }
.form-status a { color: inherit; text-underline-offset: .18em; }
.form-more { border: 1px solid var(--mist); border-radius: var(--radius-s); }
.form-more summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: var(--fs-s); list-style: none; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary::before { content: "+"; font-weight: 700; color: var(--orange-ink); width: 1ch; }
.form-more[open] summary::before { content: "−"; }
.form-more summary .opt { font-weight: 400; color: var(--slate-500); }
.form-more-body { display: grid; gap: 18px; padding: 4px 16px 18px; }
.contact-card { background: var(--paper); border-radius: var(--radius-m); padding: 28px; }
/* Móvil: quién responde, arriba del formulario (la tarjeta completa queda abajo) */
.host-strip { display: none; }
.hint.is-nudge { color: var(--orange-ink); font-weight: 600; font-size: var(--fs-s); }
@media (max-width: 860px) {
  .host-strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border-radius: var(--radius-m); }
  .host-strip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
  .host-strip p { margin: 0; font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.4; }
  .page-hero .lead-extra { display: none; } /* en móvil los tiempos van en la franja, junto al formulario */
  .contact-card .host { display: none; } /* la foto ya está en la franja */
  .host-strip strong { color: var(--navy-950); }
}
.diag-note { margin: 0; padding: 12px 16px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--mist); font-size: var(--fs-s); color: var(--navy-900); }
.contact-card .host { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-card .host img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.contact-card .host p { margin: 0; font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.4; }
.contact-card .host strong { display: block; color: var(--navy-950); font-size: var(--fs-m); }
.contact-card h3 { font-size: var(--fs-s); color: var(--slate-500); font-weight: 600; letter-spacing: 0; margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--mist); }
.agenda { list-style: none; display: grid; gap: 12px; counter-reset: ag; margin: 16px 0 0; }
.agenda li { counter-increment: ag; position: relative; padding-left: 34px; font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.45; }
.agenda li::before { content: counter(ag); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-950); color: var(--white); font-size: var(--fs-xs); font-weight: 700; display: grid; place-items: center; }
.agenda strong { display: block; color: var(--navy-950); }
.contact-card h2 { font-size: var(--fs-l); }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-size: var(--fs-xs); font-weight: 600; color: var(--slate-500); }
.contact-card dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-card dd a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .contact-card dd a:hover { text-decoration: underline; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-400); font-size: var(--fs-s); border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .wrap { padding-top: 56px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .85fr) auto; gap: 32px; } /* auto: el correo de contacto no se corta ni se desborda */
.footer-grid h2 { font-size: var(--fs-s); color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--white); } }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: var(--fs-xs); }
.footer-bottom a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-bottom a:hover { color: var(--white); } }
/* Columnas en rem: con la letra al 200 % el pie pasa solo a una columna en lugar de desbordar */
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); } }

/* WhatsApp flotante */
.wa { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: var(--white); text-decoration: none; font-weight: 700; font-size: var(--fs-s); padding: 13px; border-radius: 999px; box-shadow: 0 2px 6px rgba(10, 22, 40, .18), 0 10px 24px rgba(10, 22, 40, .18); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms, background-color 150ms ease; }
.wa:active { transform: var(--press); transition-duration: 160ms; }
.wa.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); }
.wa svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .wa:hover { background: var(--wa-hover); }
}
.wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* ícono solo; el nombre queda para lectores de pantalla */
@media (max-width: 600px) { .wa { display: none; } }
@media (max-width: 520px) { .wa { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }

/* Respuesta al tocar en enlaces que no son botones (sustituye el destello gris del navegador) */
.nav a:not(.btn):active { background: rgba(255, 255, 255, .08); }
.situation:active { background: var(--paper); }
.svc:active { background: var(--paper); }
.svc:active::after { opacity: 1; }
.footer-grid a:active, .footer-bottom a:active, .breadcrumb a:active { color: var(--white); }
.hero-proof-link:active, .hero-aside a:active, .article-card a:active, .contact-card dd a:active { opacity: .7; }

/* ---------- Movimiento: oportunidades aplicadas 2026-10-22 ---------- */

/* 1. Página Gracias: la confirmación entra en cascada y la palomita se dibuja (se ve una vez por persona) */
.success-check { display: block; width: 48px; height: 48px; margin-bottom: 20px; }
.success-check circle { fill: none; stroke: rgba(255, 107, 53, .35); stroke-width: 2; }
.success-check path { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .success .wrap > * { opacity: 0; animation: rise 400ms var(--ease-out) forwards; }
  .success .wrap > :nth-child(2) { animation-delay: 60ms; }
  .success .wrap > :nth-child(3) { animation-delay: 120ms; }
  .success .wrap > :nth-child(4) { animation-delay: 180ms; }
  .success .wrap > :nth-child(n+5) { animation-delay: 240ms; }
  .js .success-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js.is-loaded .success-check path { animation: draw 450ms 150ms var(--ease-out) forwards; } /* mismo motivo que la curva del hero */
}
@media (prefers-reduced-motion: reduce) {
  .success .wrap > * { opacity: 0; animation: appear 300ms ease forwards; }
}

/* 2. Preguntas frecuentes: la respuesta entra al abrir; al cerrar desaparece al instante */
.faq details[open] > div { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .faq details[open] > div { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  @starting-style { .faq details[open] > div { transform: translateY(-4px); } }
}

/* 3. Curva de deterioro Mes 3/8/12: la barra se dibuja una vez al entrar a la vista (site.js agrega .is-drawn) */
@media (prefers-reduced-motion: no-preference) {
  .js .decay::before { clip-path: inset(0 100% 0 0); }
  .js .decay.is-drawn::before { clip-path: inset(0); transition: clip-path 900ms var(--ease-in-out); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .js .decay::before { clip-path: inset(0 0 100% 0); } /* en móvil la barra es vertical: se dibuja hacia abajo */
  .js .decay.is-drawn::before { clip-path: inset(0); }
}

/* 5. Sugerencia de correo: entra en lugar de aparecer de golpe */
.field-suggest:not(:empty) { transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
@starting-style { .field-suggest:not(:empty) { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  @starting-style { .field-suggest:not(:empty) { transform: translateY(-4px); } }
}

@media print { .site-header, .wa, .cta-band { display: none; } }

/* Enlaces que abren otra pestaña: flecha visible y aviso para lectores de pantalla */
a[target="_blank"]:not(.wa):not(.video-facade)::after { content: " ↗" / " (abre en otra pestaña)"; font-size: .85em; }
:lang(en) a[target="_blank"]:not(.wa):not(.video-facade)::after { content: " ↗" / " (opens in a new tab)"; }
:lang(en) blockquote.quote::before { content: "“"; }
:lang(en) blockquote.quote::after { content: "”"; }
/* Con el menú abierto, el botón del encabezado vuelve a estar disponible */
.menu-open .btn.header-cta.is-standby { opacity: 1; visibility: visible; }

/* Listas de entregables: rejilla de 2 columnas más compacta */
.diffs-compact .diff { padding: 20px 0; }
.diffs-compact .diff h3 { font-size: var(--fs-m); margin-bottom: 6px; }
.diffs-compact .diff p { font-size: var(--fs-s); }
/* Niveles de madurez: misma estructura que los pilares, con el número del nivel */
.levels .pillar h3 { white-space: nowrap; }
.levels { margin-top: 8px; }

/* Escritorio: el botón del menú también espera mientras el del hero está a la vista */
@media (min-width: 1081px) {
  .nav .nav-cta { transition: opacity 200ms var(--ease-out), visibility 200ms; }
  .nav .nav-cta.is-standby { opacity: 0; visibility: hidden; }
}
/* Pasos: el número va en la misma línea que el título, no como etiqueta encima */
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; align-content: start; }
.steps li::before { margin-bottom: 0; }
.steps li > * { grid-column: 2; }

/* Situaciones de la portada: señal visible de que cada fila lleva a su servicio */
.situation-go { display: inline-block; margin-top: 8px; font-size: var(--fs-s); font-weight: 700; color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; }
.situation-go::after { content: " →"; }
/* Antes/después compacto en las tarjetas de rescate del 911 */
.case-delta-sm { margin: 8px 0 6px; }
.case-delta-sm > div { padding: 8px 12px; }
.case-delta-sm dd { font-size: var(--fs-s); }

/* 911: tarjetas de rescate con el mismo patrón que los casos de la portada (título + antes/después) */
.proof-item .proof-title-case { font-size: var(--fs-m); line-height: 1.3; letter-spacing: -.01em; }
/* Línea de trayectoria en End-to-End y PMO Inteligente */
.proof-line { margin: 0; padding: 18px 0; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); color: var(--ink-soft); max-width: 80ch; }
.proof-line a { color: var(--navy-900); font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: .2em; }

/* 911: rescates en su propia sección, en rejilla */
.proof.proof-grid { max-width: none; margin-top: 0; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 12px; }
.proof-grid .proof-item { margin: 0; }
/* Resultado del autodiagnóstico: barra de un solo color según la zona (el degradado es exclusivo de la escala Mes 3/8/12) */
.quiz-meter i { background: var(--zone, var(--good)); }
/* Laptop de poca altura: el botón principal de la portada cabe completo en la primera pantalla */
@media (min-width: 861px) and (max-height: 860px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
}

/* Escritorio: el contador del autodiagnóstico también queda a la vista mientras se responde */
@media (min-width: 861px) {
  .quiz-progress { position: sticky; bottom: 0; z-index: 2; padding: 10px 0; background: var(--white); border-top: 1px solid var(--mist); }
}
/* 911: tarjetas de rescate con detalle desplegable en la misma página */
.proof-grid .proof-item .case-more { margin-top: 4px; }
/* Línea de tiempo del 911: la etiqueta "4 horas hábiles" cabe en una línea, igual que las demás */
.timeline .t-when { white-space: nowrap; font-size: clamp(1.25rem, 2.1vw, 1.75rem); }

/* ---------- Avisos legales: diálogos de agenda y WhatsApp, páginas legales (v1.0, 20-nov-2026) ---------- */
.aviso-dialog { width: min(640px, calc(100vw - 24px)); max-height: min(88vh, 760px); padding: 0; border: 0; border-radius: var(--radius-m); background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgba(10, 22, 40, .35); overflow: hidden; }
.aviso-dialog:not([open]) { display: none; }
.aviso-dialog::backdrop { background: rgba(10, 22, 40, .62); }
.aviso-dialog-body { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 4vw, 34px); }
.aviso-dialog h2 { font-size: var(--fs-l); margin: 0 40px 6px 0; line-height: 1.25; }
.aviso-dialog h2:focus { outline: none; }
.aviso-dialog h2:focus-visible { outline: 3px solid rgba(255,107,53,.6); outline-offset: 4px; border-radius: 2px; }
.aviso-dialog p { font-size: var(--fs-s); line-height: 1.6; color: var(--ink-soft); margin: 0 0 12px; }
.aviso-dialog a { color: var(--navy-950); text-underline-offset: .18em; overflow-wrap: anywhere; }
.aviso-version { font-size: var(--fs-xs) !important; color: var(--slate-500) !important; margin-bottom: 16px !important; }
.aviso-nota { background: var(--paper); border-radius: var(--radius-s); padding: 10px 14px; }
.aviso-leyenda { color: var(--ink) !important; font-weight: 600; border-top: 1px solid var(--mist); padding-top: 14px; margin-top: 16px !important; }
.aviso-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.aviso-acciones .btn { justify-content: center; }
@media (max-width: 520px) { .aviso-acciones .btn { flex: 1 1 100%; } }
.aviso-cerrar { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.aviso-cerrar:focus-visible { outline: 3px solid rgba(255,107,53,.6); }
@media (hover: hover) and (pointer: fine) { .aviso-cerrar:hover { background: var(--paper); color: var(--ink); } }
.btn-wa { background: var(--wa); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { background: var(--wa-hover); } }
.btn-wa[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.aviso-pendiente { color: var(--error-ink) !important; font-weight: 600; }
/* Agenda: el formulario se habilita al aceptar el aviso; sin JavaScript se ofrece el correo */
.form.is-locked { opacity: .45; }
html:not(.js) [data-contact-form] { display: none; }
.aviso-estado { margin: 0; font-size: var(--fs-xs); color: var(--slate-500); line-height: 1.5; }
.aviso-estado button { font: inherit; font-weight: 600; color: var(--navy-950); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.aviso-estado a { color: var(--navy-950); }
.consent-opt .hint { margin-left: 28px; }
.form-nota { margin: 10px 0 0; }
.quiz-nota { font-size: var(--fs-xs) !important; color: var(--slate-500) !important; margin-top: 10px; }
/* Páginas legales */
.legal-volver { margin: 0 0 18px; font-size: var(--fs-s); }
.legal-volver a { color: var(--mist); text-underline-offset: .18em; }
.legal h2 { font-size: var(--fs-l); }
.legal ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal ol li { margin-bottom: .4em; }
.legal a { overflow-wrap: anywhere; }
.legal-fecha { margin-top: 2.4em; padding-top: 16px; border-top: 1px solid var(--mist); }
@media print { .aviso-dialog, .legal-volver { display: none; } }
.legal > h2:first-child { margin-top: 0; }
