/* =========================================================
   BIZARRO — Sistema de diseño v2 (sitio dinámico, Hito 1)
   Blanco y negro, fotografía en escala de grises.
   Tipografías autoalojadas: Montserrat (títulos) + Inter (texto)
   Paleta fija (D-17): solo estos tokens. No hay módulo de colores.
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --negro: #0b0b0c;
  --grafito: #151517;
  --linea: #2a2c30;
  --plata: #a3a7ae;
  --gris: #5a5e66;
  --hueso: #f2f2f1;
  --blanco: #ffffff;
  --error: #b3261e;

  --f-display: "Montserrat", system-ui, "Segoe UI", Arial, sans-serif;
  --f-text: "Inter", system-ui, "Segoe UI", Arial, sans-serif;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 80rem;
  --sec: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 4.75rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--negro);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.dark :focus-visible { outline-color: var(--blanco); }

.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--blanco); color: var(--negro);
  padding: .75rem 1.25rem; font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3.25rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 40rem; }
/* Línea breve de bienvenida sobre el título (Instructivo §8). No va en mayúsculas: el Manual de Marca
   no admite etiquetas en versalitas sobre cada título. */
.eyebrow { margin: 0 0 .4rem; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--plata); }
.muted { color: var(--gris); }
.dark .muted { color: var(--plata); }

/* ---------- Estructura ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); position: relative; }
.dark { background: var(--negro); color: var(--blanco); position: relative; isolation: isolate; }
.light { background: var(--hueso); color: var(--negro); }
.white { background: var(--blanco); color: var(--negro); }

/* Textura sutil, como el cartón negro de la tarjeta */
.grain::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .06;
}

/* Fondo fotográfico opcional de una sección (Hito R). Solo existe si se subió una imagen al espacio
   correspondiente en «Imágenes del sitio»; si no, la sección se ve igual que siempre.
   Encima de la fotografía va un velo del color de la sección: así el texto conserva su contraste
   sea cual sea la foto, y no hace falta elegir imágenes «claras» u «oscuras». */
.sec__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sec__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.sec__media::after { content: ""; position: absolute; inset: 0; }
.dark  .sec__media::after { background: rgba(11, 11, 12, .82); }
.light .sec__media::after { background: rgba(242, 242, 241, .88); }
.white .sec__media::after { background: rgba(255, 255, 255, .9); }
.section > .container { position: relative; z-index: 1; }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { max-width: 20ch; }
.section-head p { max-width: 38rem; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3rem; padding: .75rem 1.6rem;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 3px;
  transition: background-color .18s, color .18s, border-color .18s;
  cursor: pointer;
}
.btn--solid { background: var(--blanco); color: var(--negro); }
.btn--solid:hover { background: var(--plata); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--blanco); background: transparent; }
.btn--ghost:hover { border-color: var(--blanco); background: rgba(255,255,255,.08); }
.btn--dark { background: var(--negro); color: var(--blanco); }
.btn--dark:hover { background: #2a2c30; }
.btn--line { border-color: var(--negro); color: var(--negro); background: transparent; }
.btn--line:hover { background: var(--negro); color: var(--blanco); }
/* Botón principal sobre fondo claro (formulario) */
.white .btn--solid, .light .btn--solid { background: var(--negro); color: var(--blanco); }
.white .btn--solid:hover, .light .btn--solid:hover { background: #2a2c30; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: .5rem;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
  transition: text-decoration-thickness .15s;
}
.link:hover { text-decoration-thickness: 2px; }
.back-link { margin-top: 2rem; }

/* ---------- Cabecera acoplada, con paneles anchos bajo la barra (Hito F) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--blanco);
}
/* El fondo y el velo viven en pseudo-elementos: backdrop-filter en el propio header
   convertiría al menú móvil (position: fixed) en un elemento atrapado de 76 px. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11,11,12,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .25s;
}
.site-header.is-solid::before { opacity: 1; }
/* Velo que atenúa la página mientras hay un panel abierto */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; z-index: -1; height: 100vh;
  background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, visibility 0s .3s;
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex: none; align-items: center; min-height: 2.75rem; position: relative; z-index: 3; }
/* El logotipo nunca se comprime: con flex: none y max-width: none conserva su proporción en cualquier ancho. */
.brand img { flex: none; height: 2rem; width: auto; max-width: none; }

.nav { display: flex; align-items: stretch; align-self: stretch; gap: 1.25rem; }
.nav__list { display: flex; align-items: stretch; }
.nav__item { display: flex; align-items: stretch; }
.nav__row { position: relative; display: flex; align-items: center; }
.nav__row > a {
  display: inline-flex; align-items: center; align-self: stretch; padding: 0 .85rem;
  font-family: var(--f-display); font-weight: 300; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.nav__item--mega .nav__row > a { padding-right: .15rem; }
.nav__chev {
  display: inline-flex; align-items: center; justify-content: center; align-self: stretch; width: 2.75rem;
  background: none; border: 0; color: inherit; padding: 0; cursor: pointer;
}
.nav__chev svg { transition: rotate .25s cubic-bezier(.2,.7,.1,1); }
/* Subrayado grueso al borde inferior de la barra: pasar, abrir o página actual */
.nav__row::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 0; height: 3px;
  background: var(--blanco); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2,.7,.1,1);
}
.nav__item--mega .nav__row::after { right: .5rem; }
.nav__row:hover::after,
.nav__row:focus-within::after,
.nav__row:has(> a[aria-current="page"])::after { transform: scaleX(1); }
.nav > .btn { align-self: center; min-height: 2.75rem; padding-inline: 1.3rem; white-space: nowrap; border-radius: 3px; }
/* Entre 1360 y 1519 px el botón usa el texto corto para no partir la cabecera. */
@media (min-width: 1360px) and (max-width: 1519px) { .nav .btn__more { display: none; } }

.nav-toggle { display: none; }

/* Botones magnéticos: se desplazan hacia el puntero (main.js, solo con puntero fino y sin reducción de movimiento) */
[data-magnetic] { transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .3s cubic-bezier(.2,.7,.1,1), background-color .18s, color .18s, border-color .18s; }

/* Paneles anchos: aparecen con el puntero o con el foco (sin JavaScript) y con el botón de despliegue. Solo en escritorio. */
.mega { display: none; }
@media (min-width: 1360px) {
  .mega {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(18rem, 27%, 24rem);
    position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    background: var(--blanco); color: var(--negro);
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
    visibility: hidden; pointer-events: none; clip-path: inset(0 0 100% 0);
    transition: clip-path .38s cubic-bezier(.2,.7,.1,1), visibility 0s .38s;
  }
  .mega__main { padding: 2.25rem 3rem 3rem max(var(--gut), calc((100% - var(--max)) / 2)); display: grid; gap: 1.5rem; align-content: start; }
  .mega__title {
    display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; justify-self: start;
    font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.02em; text-decoration: none;
  }
  .mega__arrow { flex: none; transition: translate .25s cubic-bezier(.2,.7,.1,1); }
  .mega__title:hover .mega__arrow, .mega__title:focus-visible .mega__arrow,
  .mega__side-link:hover .mega__arrow, .mega__side-link:focus-visible .mega__arrow { translate: .35rem 0; }
  .mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
  .mega__area {
    display: flex; align-items: center; min-height: 2.75rem; margin-bottom: .35rem;
    font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; text-decoration: none;
    border-bottom: 1px solid rgba(11,11,12,.18);
  }
  .mega__links a, .mega__cols--list a {
    display: flex; align-items: center; min-height: 2.75rem; padding-block: .3rem;
    color: #2b2d31; font-size: .97rem; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - .2rem) / 0 1px; transition: background-size .25s;
  }
  .mega__links a:hover, .mega__links a:focus-visible, .mega__cols--list a:hover, .mega__cols--list a:focus-visible { background-size: 100% 1px; color: var(--negro); }
  .mega__area:hover, .mega__area:focus-visible { text-decoration: underline; text-underline-offset: .3em; }
  .mega--solutions .mega__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__cols--list { list-style: none; }
  .mega__cols--list a { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; color: var(--negro); }
  .mega__side {
    display: grid; gap: .75rem; align-content: start; padding: 2.25rem max(var(--gut), 2rem) 3rem 2.5rem;
    background: var(--hueso); border-left: 1px solid rgba(11,11,12,.1);
  }
  .mega__side-label { font-size: .9rem; color: var(--gris); }
  .mega__side-name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
  .mega__side-text { font-size: .95rem; line-height: 1.55; color: #2b2d31; }
  .mega__side-link {
    display: inline-flex; align-items: flex-start; gap: .6rem; min-height: 2.75rem; justify-self: start; padding-block: .6rem;
    font-family: var(--f-display); font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: .35em;
  }
  .mega__side-link .mega__arrow, .mega__title .mega__arrow { width: 1.35rem; height: 1.35rem; }
  /* Hito V (D-110): enlace a las cinco soluciones al pie del panel de Capacidades. */
  .mega__all {
    display: inline-flex; align-items: flex-start; gap: .6rem; min-height: 2.75rem; justify-self: start; padding-block: .6rem;
    font-family: var(--f-display); font-weight: 700; font-size: .97rem; text-decoration: underline; text-underline-offset: .35em;
  }
  .mega__all .mega__arrow { width: 1.35rem; height: 1.35rem; }
  .mega__all:hover .mega__arrow, .mega__all:focus-visible .mega__arrow { translate: .35rem 0; }
  .mega :focus-visible { outline-color: var(--negro); outline-offset: 3px; }

  /* Entrada escalonada del contenido */
  .mega__col, .mega__cols--list li, .mega__side > * { opacity: 0; translate: 0 .75rem; transition: opacity .3s, translate .4s cubic-bezier(.2,.7,.1,1); }

  /* Abierto: botón, foco dentro o puntero encima (solo con puntero fino). «Descartado» (Escape / segundo clic) va al final y gana. */
  .nav__item--mega.is-open > .mega,
  .nav__item--mega:focus-within > .mega { visibility: visible; pointer-events: auto; clip-path: inset(0); transition-delay: 0s; }
  .nav__item--mega.is-open .mega__col, .nav__item--mega.is-open .mega__cols--list li, .nav__item--mega.is-open .mega__side > *,
  .nav__item--mega:focus-within .mega__col, .nav__item--mega:focus-within .mega__cols--list li, .nav__item--mega:focus-within .mega__side > * { opacity: 1; translate: 0 0; }
  .nav__item--mega.is-open .nav__chev svg, .nav__item--mega:focus-within .nav__chev svg { rotate: 180deg; }
  .nav__item--mega.is-open .nav__row::after, .nav__item--mega:focus-within .nav__row::after { transform: scaleX(1); }
  .mega__col:nth-child(2), .mega__cols--list li:nth-child(3) { transition-delay: .05s; }
  .mega__col:nth-child(3), .mega__cols--list li:nth-child(5) { transition-delay: .1s; }
  .mega__side > :nth-child(1) { transition-delay: .06s; }
  .mega__side > :nth-child(2) { transition-delay: .1s; }
  .mega__side > :nth-child(3) { transition-delay: .14s; }
  .mega__side > :nth-child(4) { transition-delay: .18s; }
  .site-header:has(.nav__item--mega.is-open)::before,
  .site-header:has(.nav__item--mega:focus-within)::before { opacity: 1; }
  .site-header:has(.nav__item--mega.is-open)::after,
  .site-header:has(.nav__item--mega:focus-within)::after { opacity: 1; visibility: visible; transition-delay: 0s; }
}
@media (min-width: 1360px) and (hover: hover) and (pointer: fine) {
  .nav__item--mega:hover > .mega { visibility: visible; pointer-events: auto; clip-path: inset(0); transition-delay: 0s; }
  .nav__item--mega:hover .mega__col, .nav__item--mega:hover .mega__cols--list li, .nav__item--mega:hover .mega__side > * { opacity: 1; translate: 0 0; }
  .nav__item--mega:hover .nav__chev svg { rotate: 180deg; }
  .nav__item--mega:hover .nav__row::after { transform: scaleX(1); }
  .site-header:has(.nav__item--mega:hover)::before { opacity: 1; }
  .site-header:has(.nav__item--mega:hover)::after { opacity: 1; visibility: visible; transition-delay: 0s; }
}
@media (min-width: 1360px) {
  .nav__item--mega.is-dismissed > .mega { visibility: hidden; pointer-events: none; clip-path: inset(0 0 100% 0); transition-delay: 0s; }
  .nav__item--mega.is-dismissed .mega__col, .nav__item--mega.is-dismissed .mega__cols--list li, .nav__item--mega.is-dismissed .mega__side > * { opacity: 0; translate: 0 .75rem; }
  .nav__item--mega.is-dismissed .nav__chev svg { rotate: 0deg; }
  .nav__item--mega.is-dismissed .nav__row::after { transform: scaleX(0); }
  .nav__item--mega.is-dismissed:has(a[aria-current="page"]) .nav__row::after { transform: scaleX(1); }
}
@media (min-width: 1360px) and (prefers-reduced-motion: reduce) {
  .mega, .mega__col, .mega__cols--list li, .mega__side > *, .nav__row::after, .nav__chev svg, .site-header::after { transition: none; }
}

@media (max-width: 1359px) {
  .site-header__inner { gap: 1rem; }
  .mega.mega--solutions, .nav__chev { display: none; }
  html:not(.js) .site-header { height: auto; position: absolute; }
  html:not(.js) .site-header::before { opacity: 1; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .nav { flex-wrap: wrap; align-items: center; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
  html:not(.js) .nav__row > a { min-height: 2.75rem; }

  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .75rem;
    min-height: 2.75rem; padding: 0 .75rem 0 .75rem;
    background: none; border: 0; color: inherit;
    font-family: var(--f-display); font-weight: 600; font-size: .9rem;
    position: relative; z-index: 3;
  }
  .nav-toggle__bars { position: relative; width: 1.5rem; height: 1rem; }
  .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform .25s, top .25s;
  }
  .nav-toggle__bars::before { top: 3px; }
  .nav-toggle__bars::after { top: 11px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 7px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 7px; transform: rotate(-45deg); }

  .js .nav {
    position: fixed; inset: 0; z-index: 2;
    display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: calc(var(--header-h) + 2rem) var(--gut) 2.5rem;
    background: var(--negro);
    overflow-y: auto;
  }
  .js .nav.is-open { display: flex; }
  .js .nav__list { flex-direction: column; gap: 0; }
  .js .nav__item { display: block; }
  .js .nav__row { display: block; }
  .js .nav__row::after { content: none; }
  .js .nav__row > a {
    display: flex; min-height: 3.75rem; padding: 0; width: 100%;
    font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 300;
    border-bottom: 1px solid var(--linea);
  }
  .js .nav__item--mega .nav__row > a { padding-right: 0; }
  .js .nav__row > a[aria-current="page"] { font-weight: 700; }
  .js .nav > .btn { align-self: flex-start; min-height: 3.25rem; }
  /* En el menú móvil, «Capacidades» muestra solo las tres áreas (los servicios están en cada área) */
  .mega { display: block; }
  .mega__main, .mega__cols { display: grid; }
  .mega__title, .mega__links, .mega__side { display: none; }
  .mega__area, .mega__all {
    display: flex; align-items: center; min-height: 3rem; padding-left: 1rem;
    font-size: 1.15rem; font-weight: 300; text-decoration: none; color: var(--plata);
    border-bottom: 1px solid var(--linea);
  }
  .mega__all .mega__arrow { display: none; }
}
/* Pantallas muy angostas: se conserva el logotipo completo y queda solo el ícono del menú */
@media (max-width: 399px) {
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .js .nav-toggle { padding: 0 .75rem; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 2.5rem); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.6) 40%, rgba(11,11,12,.92) 82%, var(--negro) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-settle 2.6s cubic-bezier(.2,.6,.2,1) both; }
  @keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
}
.hero__body { padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.hero h1 {
  font-weight: 800; font-size: clamp(2.5rem, 6.6vw, 5.75rem);
  letter-spacing: -0.04em; line-height: 1; max-width: 14em;
}
.hero .lead { color: #d9dbde; max-width: 46rem; }

/* ---------- Fotografía ---------- */
.photo { position: relative; overflow: hidden; background: var(--grafito); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo figcaption { position: absolute; left: 0; bottom: 0; padding: .6rem .9rem; font-size: .8rem; background: rgba(11,11,12,.8); color: var(--blanco); }

/* ---------- Áreas (inicio) ---------- */
.areas { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.area { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.area .photo { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.area__text { grid-column: 9 / span 4; display: grid; gap: 1.25rem; }
.area:nth-child(even) .photo { grid-column: 6 / span 7; grid-row: 1; }
.area:nth-child(even) .area__text { grid-column: 1 / span 4; grid-row: 1; }
.area__text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.svc-list { display: grid; margin-top: .5rem; }
.svc-list li { border-top: 1px solid rgba(11,11,12,.18); padding: .4rem 0 .8rem; display: grid; gap: .1rem; }
.svc-list li:last-child { border-bottom: 1px solid rgba(11,11,12,.18); }
.svc-list a { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--f-display); font-weight: 600; text-decoration: none; justify-self: start; }
.svc-list a:hover { text-decoration: underline; text-underline-offset: .3em; }
.svc-list span { font-size: .92rem; color: var(--gris); }
.svc-list--wide { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 5rem); margin-top: 0; }
.svc-list--wide li:last-child { border-bottom: 0; }
.svc-list--wide li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(11,11,12,.18); }
@media (max-width: 899px) {
  .area { grid-template-columns: 1fr; }
  .area .photo, .area:nth-child(even) .photo { grid-column: 1; grid-row: auto; }
  .area__text, .area:nth-child(even) .area__text { grid-column: 1; grid-row: auto; }
}
@media (max-width: 699px) {
  .svc-list--wide { grid-template-columns: 1fr; }
  .svc-list--wide li:nth-last-child(2) { border-bottom: 0; }
}

/* ---------- Método (secuencia real) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: paso; gap: 0; border-top: 1px solid var(--linea); }
.steps li { padding: 1.75rem 1.5rem 0 0; display: grid; gap: .9rem; align-content: start; counter-increment: paso; }
.steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--linea); }
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--f-display); font-weight: 200; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--plata);
}
.steps h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.steps p { color: var(--plata); font-size: .98rem; }
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { padding: 1.75rem 1.5rem 2rem 0; border-bottom: 1px solid var(--linea); }
  .steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(even) { padding-left: 1.5rem; }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(even) { padding: 1.5rem 0 1.75rem; border-left: 0; }
}
/* Sobre fondo claro (Bizarro Studio, Hito L3): la plata y la línea oscura no se leen sobre blanco. El Instructivo §13
   prohíbe la plata sobre fondo claro y pide contraste mínimo de 4,5:1; aquí se usan el gris y la línea tenue del sitio. */
.white .steps, .light .steps { border-top-color: rgba(11,11,12,.2); }
.white .steps li + li, .light .steps li + li { border-left-color: rgba(11,11,12,.2); }
.white .steps li::before, .light .steps li::before { color: var(--gris); }
.white .steps p, .light .steps p { color: var(--gris); }
@media (max-width: 1023px) {
  .white .steps li, .light .steps li { border-bottom-color: rgba(11,11,12,.2); }
}

/* ---------- Trabajos ---------- */
.case { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.case .photo { grid-column: 1 / span 7; aspect-ratio: 16 / 9; }
.case__text { grid-column: 9 / span 4; display: grid; gap: 1.1rem; }
.case__text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-size: .85rem; padding: .3rem .8rem; border: 1px solid rgba(11,11,12,.3); border-radius: 999px; }
@media (max-width: 899px) {
  .case { grid-template-columns: 1fr; }
  .case .photo, .case__text { grid-column: 1; }
}

.clients { width: 100%; border-collapse: collapse; }
.clients caption { text-align: left; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; padding-bottom: 1rem; }
.clients th, .clients td { text-align: left; vertical-align: top; padding: 1.15rem 1.5rem 1.15rem 0; border-top: 1px solid rgba(11,11,12,.18); }
.clients tr:last-child th, .clients tr:last-child td { border-bottom: 1px solid rgba(11,11,12,.18); }
.clients th[scope="row"] { font-family: var(--f-display); font-weight: 600; width: 38%; }
.clients td:last-child { color: var(--gris); padding-right: 0; }
@media (max-width: 767px) {
  .clients, .clients tbody, .clients tr, .clients th, .clients td { display: block; width: 100% !important; }
  .clients tr { border-top: 1px solid rgba(11,11,12,.18); padding: 1rem 0; }
  .clients th, .clients td { border: 0 !important; padding: 0 !important; }
  .clients td:last-child { margin-top: .25rem; }
}

/* ---------- Podcast ---------- */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.feature .photo { grid-column: 1 / span 5; aspect-ratio: 1; max-width: 32rem; }
.feature__text { grid-column: 7 / span 6; display: grid; gap: 1.35rem; }
.feature__text h2 { max-width: 14ch; }
@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; }
  .feature .photo, .feature__text { grid-column: 1; }
  .feature .photo { max-width: 24rem; }
}

/* Hito V (D-109): variante compacta de la portada (fotografía apaisada y más pequeña). */
@media (min-width: 900px) {
  .feature--compact .photo { grid-column: 1 / span 4; aspect-ratio: 4 / 3; max-width: 24rem; }
  .feature--compact .feature__text { grid-column: 6 / span 7; gap: 1.1rem; }
}
@media (max-width: 899px) {
  .feature--compact .photo { aspect-ratio: 16 / 9; max-width: 100%; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid rgba(11,11,12,.2); }
.faq details:last-child { border-bottom: 1px solid rgba(11,11,12,.2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4rem; padding: 1rem 0;
  font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1rem; height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; transform: rotate(180deg); }
.faq__a { padding: 0 3rem 1.6rem 0; color: #2f3237; max-width: 44rem; }

/* ---------- Llamado final ---------- */
.cta { overflow: hidden; text-align: left; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.6) 100%); }
.cta__inner { display: grid; gap: 1.75rem; max-width: 52rem; }
.cta h2 { font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4.5rem); letter-spacing: -0.035em; line-height: 1.02; }
.cta p { color: #d9dbde; max-width: 36rem; }
.cta .btn--solid { background: var(--blanco); color: var(--negro); }
.cta .btn--solid:hover { background: var(--plata); }

/* ---------- Pie ---------- */
.site-footer { background: #050506; color: var(--blanco); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 2.5rem 2rem; padding-bottom: 3.5rem; }
.footer-brand img { height: 2.1rem; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--plata); font-size: .95rem; max-width: 18rem; }
.site-footer h2 a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.site-footer h2 { font-family: var(--f-display); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; margin-bottom: .75rem; line-height: 1.2; padding-block: .3rem; }
.site-footer li { margin-bottom: .1rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem 0; color: var(--plata); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.site-footer li a:hover { color: var(--blanco); text-decoration: underline; text-underline-offset: .3em; }
.footer-address { margin-top: .75rem; color: var(--plata); font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--linea); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: var(--plata); font-size: .88rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem 0; color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--blanco); text-decoration: underline; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-contact { grid-column: 1 / -1; } }

/* ---------- Páginas interiores ---------- */
.hero--inner { min-height: 0; justify-content: flex-start; padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero--inner .hero__media::after { background: linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.86) 55%, rgba(11,11,12,.6) 100%); }
.hero--inner h1 { font-size: clamp(2.2rem, 5.6vw, 4.75rem); max-width: 18ch; }
.hero--inner .hero__body { padding-bottom: 0; }
/* Hito M: las migas se alinean en una sola línea base. Antes el enlace era el único elemento con
   altura de 44 px (objetivo táctil) y el separador y la página actual quedaban más arriba: ahora la
   altura la da cada <li>, así que todo queda centrado y el enlace conserva su objetivo de 44 px. */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-size: .88rem; color: var(--plata); }
.crumbs li { display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--gris); line-height: 1; }
.crumbs a { text-decoration: none; padding: .25rem 0; display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs [aria-current] { display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--blanco); text-decoration: underline; }
.crumbs [aria-current] { color: var(--blanco); }
.article-meta { color: var(--plata); font-size: .95rem; }
.error-code { font-family: var(--f-display); font-weight: 200; font-size: clamp(4rem, 12vw, 9rem); line-height: 1; color: var(--plata); }

.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid rgba(11,11,12,.2); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc__title { grid-column: 1 / span 4; }
.svc__title h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.svc__title h2 a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.svc__title h2 a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.svc__body { grid-column: 6 / span 7; display: grid; gap: 1.25rem; }
.svc__body p { max-width: 40rem; }
.ticks { display: grid; }
.ticks li { border-top: 1px solid rgba(11,11,12,.15); padding: .7rem 0; }
.ticks li:last-child { border-bottom: 1px solid rgba(11,11,12,.15); }
/* Fotografía dentro de un bloque .svc (Capacidades y La firma, Hito L2): usa .photo, que ya la pasa a blanco y negro. */
.svc__photo { width: 100%; max-width: 40rem; aspect-ratio: 4 / 3; }
.svc__photo--portrait { max-width: 22rem; aspect-ratio: 4 / 5; }
@media (max-width: 699px) {
  .svc__photo--portrait { max-width: 15rem; }
}
@media (max-width: 899px) {
  .svc__title, .svc__body { grid-column: 1 / -1; }
}

.related { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.3); }
.related a { display: grid; gap: .75rem; padding: 2rem 2rem 2.5rem 0; text-decoration: none; }
.related a + a { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.14); }
.related__name { font-family: var(--f-display); font-weight: 200; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.1; transition: font-weight .25s; overflow-wrap: anywhere; }
.related a:hover .related__name { font-weight: 500; }
.related p { color: var(--plata); max-width: 26rem; }
@media (max-width: 699px) {
  .related { grid-template-columns: 1fr; }
  .related a, .related a + a { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Texto largo (artículos y páginas legales) ---------- */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-top: 2.75rem; }
.prose h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 2rem; }
.prose h2 + *, .prose h3 + * { margin-top: .9rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4rem; }
.prose a { text-underline-offset: .2em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--negro); color: #2f3237; }
.prose img { height: auto; }
.prose .note, .note { padding: 1rem 1.25rem; background: var(--hueso); border-left: 4px solid var(--negro); font-size: .95rem; }

/* ---------- Artículos ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); }
.posts li { border-top: 1px solid rgba(11,11,12,.2); }
.posts a { display: grid; gap: .6rem; padding: 1.75rem 0 2rem; text-decoration: none; height: 100%; align-content: start; }
.posts__cat { font-size: .88rem; color: var(--gris); }
.posts__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; letter-spacing: -0.015em; }
.posts a:hover .posts__title { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.posts__more { font-family: var(--f-display); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
@media (max-width: 767px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Contacto y formularios ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 3vw, 3rem); }
.contact__form { grid-column: 1 / span 7; display: grid; gap: 1.5rem; align-content: start; }
.contact__form h2, .contact__info h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.contact__form form { display: grid; gap: 1.5rem; }
.rights { display: grid; gap: 1.5rem; max-width: 44rem; align-content: start; }
.rights h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.rights form { display: grid; gap: 1.5rem; }
.contact__info { grid-column: 9 / span 4; display: grid; gap: 1.5rem; align-content: start; }
@media (max-width: 899px) { .contact__form, .contact__info { grid-column: 1 / -1; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: .9rem; }
.optional { font-family: var(--f-text); font-weight: 400; color: var(--gris); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem;
  border: 1px solid #aeb1b7; border-radius: 3px; background: var(--blanco); color: var(--negro);
}
.field select { font-family: var(--f-text); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--negro); outline-offset: 1px; border-color: var(--negro); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { color: var(--error); font-size: .9rem; font-weight: 600; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 1.35rem; height: 1.35rem; margin: .7rem 0 0; accent-color: var(--negro); }
.field--check label { min-height: 2.75rem; font-family: var(--f-text); font-weight: 400; font-size: .95rem; padding-block: .65rem; }
.field--check .field__error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.25rem; border: 1px solid var(--negro); border-left-width: 6px; font-size: .98rem; }
.alert--error { border-color: var(--error); color: var(--error); font-weight: 600; }
.contact-list { display: grid; }
.contact-list li { border-top: 1px solid rgba(11,11,12,.2); padding: 1rem 0; display: grid; gap: .2rem; overflow-wrap: anywhere; }
.contact-list li:last-child { border-bottom: 1px solid rgba(11,11,12,.2); }
.contact-list span { font-family: var(--f-display); font-weight: 600; font-size: .9rem; }
.contact-list a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .3em; }

/* ---------- Botón flotante «¿Conversamos?» y tarjeta de contacto (D-57, enmendado en L1.1) ----------
   Primero aparece solo un botón pequeño, pegado al borde derecho, abajo. Al tocarlo se abre una tarjeta con
   IA Bizarro y WhatsApp; se minimiza y el botón queda siempre. Blanco y negro de la paleta fija (D-17):
   sin azul, sin dorado y sin acentos nuevos. El León se muestra tal cual, sin filtros ni sombras (Manual §9).
   Todo sale del servidor con el atributo hidden y main.js lo muestra tras el retardo que se configura en el
   panel de IA Bizarro. Sin JavaScript no aparece y el sitio conserva WhatsApp en contacto, cierre y pie. */
.bz-side[hidden] { display: none; }
.bz-side {
  position: fixed; right: 0; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 80;
  /* Estado inicial de la entrada; main.js agrega .is-in tras forzar el cálculo de estilos */
  opacity: 0; transform: translateX(1.5rem);
}
.bz-side.is-in { opacity: 1; transform: none; }
.bz-side__fab {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-height: 3.25rem; padding: .5rem 1rem .55rem;
  font-family: var(--f-display); font-size: .85rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  /* Hito X: fondo blanco, letras y León negros; el borde negro lo separa de los fondos claros */
  background: var(--blanco); color: var(--negro);
  border: 1px solid var(--negro); border-right: 0;
  transition: background-color .2s, color .2s;
}
.bz-side__brand { font-weight: 700; }
.bz-side__ask { font-weight: 400; }
.bz-side__fab:hover { background: var(--hueso); color: var(--negro); }
/* Doble aro (blanco por dentro, negro por fuera): se ve sobre fondos claros y oscuros */
.bz-side__fab:focus-visible { outline: 2px solid var(--negro); outline-offset: 2px; box-shadow: 0 0 0 2px var(--blanco); }
/* El León se muestra tal cual, sin filtros (Manual §9): es el archivo oscuro, no el claro con un filtro encima */
.bz-side__lion { flex: none; width: auto; height: 1.6rem; }

.bz-side__card {
  position: absolute; right: 0; bottom: calc(100% + .6rem);
  width: min(18rem, calc(100vw - 1rem));
  display: grid; gap: .55rem;
  padding: .95rem 1.1rem 1.1rem;
  background: var(--blanco); color: var(--negro);
  border: 1px solid var(--negro); border-right: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  /* Minimizada: invisible y fuera del orden de tabulación (visibility), pero con transición de salida */
  visibility: hidden; opacity: 0; transform: translateY(.6rem);
}
.bz-side.is-open .bz-side__card { visibility: visible; opacity: 1; transform: none; }
.bz-side__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.bz-side__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.bz-side__text { margin: 0 0 .25rem; font-size: .88rem; line-height: 1.45; color: var(--gris); }
/* La × ocupa 44 px de área táctil aunque el aspa se dibuje más pequeña */
.bz-side__x {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin: -.7rem -.7rem 0 0; padding: 0;
  background: none; border: 0; color: var(--gris); cursor: pointer;
}
.bz-side__x:hover { color: var(--negro); }
.bz-side__x:focus-visible { outline: 2px solid var(--negro); outline-offset: -6px; }
.bz-side__action {
  display: flex; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: .5rem .9rem;
  font-family: var(--f-display); font-weight: 600; font-size: .92rem; line-height: 1.2;
  text-align: left; text-decoration: none; cursor: pointer;
  background: var(--blanco); color: var(--negro); border: 1px solid var(--negro);
  transition: background-color .2s, color .2s;
}
.bz-side__action--solid { background: var(--negro); color: var(--blanco); }
.bz-side__action:hover { background: var(--grafito); color: var(--blanco); }
.bz-side__action--solid:hover { background: var(--blanco); color: var(--negro); }
.bz-side__action:focus-visible { outline: 2px solid var(--negro); outline-offset: 2px; }
.bz-side__action--solid:focus-visible { outline-offset: -5px; outline-color: var(--blanco); }
.bz-side__icon { flex: none; }
/* Movimiento: entrada lenta desde el borde, y tarjeta que sube al abrir y baja al minimizar.
   Con movimiento reducido no hay transiciones: todo aparece y desaparece sin animación. */
@media (prefers-reduced-motion: no-preference) {
  .bz-side { transition: opacity .6s cubic-bezier(.22, .8, .3, 1), transform .6s cubic-bezier(.22, .8, .3, 1); }
  .bz-side__card { transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .bz-side.is-open .bz-side__card { transition: opacity .32s ease, transform .32s cubic-bezier(.22, .8, .3, 1), visibility 0s; }
}
/* Con el botón visible, la última fila del pie queda libre: nada de texto queda debajo del botón */
html.has-side .footer-bottom { padding-bottom: 5.25rem; }
/* Móvil: botón más pequeño y tarjeta compacta (solo título y las dos acciones) */
@media (max-width: 599px) {
  .bz-side { bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .bz-side__fab { min-height: 3rem; padding: .4rem .8rem .45rem; font-size: .8rem; }
  .bz-side__lion { height: 1.35rem; }
  .bz-side__card { width: min(16rem, calc(100vw - 1rem)); padding: .8rem 1rem 1rem; bottom: calc(100% + .5rem); }
  .bz-side__text { display: none; }
  html.has-side .footer-bottom { padding-bottom: 4.5rem; }
}

/* ---------- Portada e imágenes dentro de los artículos ---------- */
.article-cover { max-width: 56rem; margin: 0 0 clamp(1.75rem, 4vw, 2.75rem); background: var(--grafito); }
.article-cover img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.prose img { filter: grayscale(1) contrast(1.05); }

/* ---------- Vídeo incrustado con fachada (el reproductor se carga al hacer clic) ---------- */
.video { margin: 1.75rem 0; max-width: 44rem; aspect-ratio: 16 / 9; background: var(--negro); color: var(--blanco); position: relative; }
.video__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
  padding: 1.1rem 1.25rem; color: inherit; text-decoration: none;
}
.video__play:hover .video__icon { background: var(--blanco); }
.video__play:hover .video__icon::after { border-left-color: var(--negro); }
.video__play:focus-visible { outline: 3px solid var(--blanco); outline-offset: -6px; }
.video__icon {
  position: absolute; top: 50%; left: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem;
  border: 2px solid var(--blanco); border-radius: 50%; transition: background-color .18s;
}
.video__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -.7rem 0 0 -.4rem;
  border-style: solid; border-width: .7rem 0 .7rem 1.15rem; border-color: transparent transparent transparent var(--blanco);
}
.video__title { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.video__hint { font-size: .85rem; color: var(--plata); }
.video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .video__icon { transition: none; } }

/* ---------- Vídeo: miniatura en la fachada (la imagen la elige el administrador; nunca se pide a YouTube ni a Vimeo) ---------- */
.video--thumb { overflow: hidden; }
.video__thumb { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.video--thumb .video__play::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11, 11, 12, .62); }
.video--thumb .video__title, .video--thumb .video__hint { position: relative; z-index: 2; }
.video--thumb .video__icon { z-index: 2; }
.video--thumb .video__hint { color: var(--blanco); }

/* ---------- Aviso de cookies de medición (solo existe si hay analítica configurada) ---------- */
.consent[hidden] { display: none; }
.consent {
  position: fixed; left: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 95;
  width: min(34rem, calc(100vw - 2rem)); padding: 1.25rem 1.4rem;
  background: var(--negro); color: var(--blanco);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 30px rgba(0, 0, 0, .4);
}
.consent:focus { outline: none; }
.consent:focus-visible { outline: 2px solid var(--blanco); outline-offset: 3px; }
.consent :focus-visible { outline-color: var(--blanco); }
.consent__title { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin-bottom: .5rem; }
.consent__text { font-size: .95rem; line-height: 1.55; color: var(--hueso); }
.consent__more a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--blanco); text-underline-offset: .25em; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .9rem; }
.consent__actions .btn { flex: 1 1 8rem; min-height: 2.75rem; }
html.consent-open { scroll-padding-bottom: var(--consent-h, 0px); }
html.consent-open body { padding-bottom: var(--consent-h, 0px); }
@media (max-width: 719.98px) {
  .consent { left: 0; right: 0; bottom: 0; width: auto; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 rgba(255, 255, 255, .45); }
}
/* Mientras el aviso de cookies está abierto, el botón se oculta para no taparlo (el aviso mide 34 rem a la izquierda) */
@media (max-width: 779.98px) {
  html.consent-open .bz-side { display: none; }
}
.footer-link {
  display: inline-block; padding: .4rem 0; border: 0; background: none; color: inherit;
  font: inherit; text-decoration: none; cursor: pointer;
}
.footer-link:hover { color: var(--blanco); text-decoration: underline; }

/* ---------- Impresión ---------- */
/* ---------- Piezas interactivas de la portada: una sección, dos columnas (Hito O) ---------- */
/* El detalle de cada pieza vive en lesson.css y explorer.css, que solo se cargan en su página. */
.try__grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); align-items: stretch; }
@media (min-width: 60em) {
  .try__grid { grid-template-columns: 1fr 1fr; }
  .try__grid--one { grid-template-columns: minmax(0, 36rem); }
}
/* Columna flexible: el contenido queda arriba y el botón baja al pie, así las dos piezas
   terminan a la misma altura aunque una tenga más texto que la otra. */
.try__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(11, 11, 12, .2);
}
.try__card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 18ch; }
.try__card--dark { background: var(--negro); color: var(--blanco); border-color: var(--negro); }
.try__card--dark .try__lead { color: var(--plata); }
.try__card--light { background: var(--blanco); }
.try__card--light .try__lead { color: var(--gris); }
.try__lead { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.try__list { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--plata); }
.try__list li:not(:last-child)::after { content: "·"; color: var(--gris); margin-left: 1rem; }
.try__action { margin: auto 0 0; padding-top: .5rem; }
/* La tarjeta oscura vive dentro de una sección clara: su botón vuelve al contraste del fondo oscuro. */
.light .try__card--dark .btn--solid { background: var(--blanco); color: var(--negro); }
.light .try__card--dark .btn--solid:hover { background: var(--plata); }
.try__demo { background: var(--hueso); border: 1px solid rgba(11, 11, 12, .18); padding: 1rem; display: grid; gap: .5rem; }
.try__row { margin: 0; font-size: .92rem; line-height: 1.55; word-break: break-word; }
.try__row > span:first-child { color: var(--gris); margin-right: .5rem; }
.try__row--subject { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.try__hit { border: 1px dashed rgba(11, 11, 12, .55); border-radius: 2px; padding: .1em .3em; }

@media print {
  .site-header, .nav-toggle, .cta, .site-footer, .bz-side, .ai, .consent { display: none !important; }
  .dark, .light { background: #fff !important; color: #000 !important; }
}

/* ---------- Reposicionamiento: portada formal (Manual estratégico) ---------- */
/* ---------- Portada (Hito F): órbita de fotografías sobre anillos concéntricos, titular central, cifras y confianza ---------- */
.hero--home { justify-content: flex-start; padding-top: var(--header-h); --oy: 40%; }
.hero--home .hero__body { flex: 1; display: grid; align-content: center; }
/* Franja inferior de vidrio: las fotografías pasan por detrás, desenfocadas, y las cifras se leen siempre */
.hero__foot {
  display: grid; gap: .9rem; padding-block: .25rem 1.25rem;
  background: rgba(11,11,12,.72); border-top: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(16px) saturate(.8); backdrop-filter: blur(16px) saturate(.8);
}
.hero__foot > .container { display: grid; gap: .9rem; }
@media (min-width: 900px) { .hero__foot .trust-bar { padding-right: 12rem; } }
.hero__copy { align-self: center; justify-items: center; text-align: center; display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); padding-block: 1.5rem; min-width: 0; }
.hero--home h1 {
  font-size: clamp(2.25rem, 6.4vw, 6.5rem); line-height: .96; letter-spacing: -0.045em; font-weight: 800;
  max-width: none; overflow-wrap: break-word;
}
.hero--home .mask--2 { font-weight: 300; letter-spacing: -0.035em; }
.hero--home .lead { max-width: 32rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #e6e7e9; }
.hero--home .actions { justify-content: center; }
.btn--lg { min-height: 3.25rem; padding-inline: 1.9rem; border-radius: 3px; }

/* Revelado por máscara: cada línea sube desde su propio borde (solo CSS; sin movimiento reducido se ve completa) */
.mask { display: block; overflow: hidden; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
.mask__in { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .mask__in { animation: mask-up 1s cubic-bezier(.2,.7,.1,1) both; }
  .mask--2 .mask__in { animation-delay: .12s; }
  .mask--3 .mask__in { animation-delay: .24s; }
  @keyframes mask-up { from { transform: translateY(105%); } to { transform: none; } }
}

/* Órbita: anillos finos y fotografías que giran despacio, con profundidad por el puntero y por el desplazamiento.
   Es decorativa (aria-hidden). Cada fotografía sale de un espacio de «Imágenes del sitio». */
.orbit {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  --k: 1; --mx: 0; --my: 0; --p: 0;
  -webkit-mask-image: radial-gradient(ellipse 54% 50% at 50% var(--oy), transparent 48%, #000 92%), linear-gradient(180deg, transparent calc(var(--header-h) - 1rem), #000 calc(var(--header-h) + 2.5rem));
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 54% 50% at 50% var(--oy), transparent 48%, #000 92%), linear-gradient(180deg, transparent calc(var(--header-h) - 1rem), #000 calc(var(--header-h) + 2.5rem));
          mask-composite: intersect;
}
.orbit__zoom { position: absolute; inset: 0; scale: calc(1 + var(--p) * .18); opacity: calc(1 - var(--p) * .85); }
.ring {
  position: absolute; left: 50%; top: var(--oy);
  width: calc(var(--R) * 2); aspect-ratio: 1; margin: calc(var(--R) * -1) 0 0 calc(var(--R) * -1);
  border: 1px solid rgba(255,255,255,.26); border-radius: 50%;
}
.ring::before { /* satélite: marca el giro de cada anillo */
  content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: var(--blanco);
}
.ring--1 { --R: 44vmin; --dur: 130s; }
.ring--2 { --R: 64vmin; --dur: 170s; --dir: reverse; border-style: dashed; border-color: rgba(255,255,255,.3); }
.ring--3 { --R: 88vmin; --dur: 220s; border-color: rgba(255,255,255,.2); }
.ring--4 { --R: 114vmin; border-color: rgba(255,255,255,.1); }
.ring--4::before { content: none; }

/* Las fotografías ya no cuelgan de los anillos que giran (Hito Q): ocupan una posición fija dada en
   porcentaje del alto y del ancho de la primera pantalla, para que ninguna quede fuera de la vista.
   --x y --y son el centro de la fotografía; --w su ancho en vmin; --ar su proporción. */
.orbit__tiles { position: absolute; inset: 0; }
.tile { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.tile__in {
  --tw: clamp(3.75rem, calc(var(--w) * var(--k) * 1vmin), 17rem);
  position: absolute; left: calc(var(--tw) / -2); top: calc(var(--tw) / var(--ar) / -2);
  width: var(--tw); aspect-ratio: var(--ar);
  translate: calc(var(--mx) * var(--d) * 1px) calc(var(--my) * var(--d) * 1px);
  transition: translate .9s cubic-bezier(.2,.7,.1,1);
}
.tile__card {
  width: 100%; height: 100%; overflow: hidden; border-radius: 1rem; background: var(--grafito);
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 22px 50px rgba(0,0,0,.5);
  rotate: var(--tilt);
}
.tile__card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(var(--b, 1)); }

/* Escritorio: tres fotografías por costado y dos bajo los botones. Ninguna pisa el titular ni se
   mete debajo de la franja de cifras, que forma parte de esta misma primera pantalla. */
.tile--1 { --x: 10%; --y: 26%;   --w: 21; --ar: .8;   --tilt: -4deg; --d: 26; --b: 1;   --delay: .5s; }
.tile--2 { --x: 12%; --y: 52%;   --w: 18; --ar: 1.25; --tilt: 3deg;  --d: 22; --b: .92; --delay: .7s; }
.tile--3 { --x: 86%; --y: 71%;   --w: 20; --ar: 1.4;  --tilt: 3deg;  --d: 16; --b: .86; --delay: .9s; }
.tile--4 { --x: 10%; --y: 69%;   --w: 14; --ar: .75;  --tilt: -3deg; --d: 14; --b: .92; --delay: 1.1s; }
.tile--5 { --x: 90%; --y: 28%;   --w: 21; --ar: .8;   --tilt: 2deg;  --d: 18; --b: 1;   --delay: 1.3s; }
.tile--6 { --x: 89%; --y: 55%;   --w: 20; --ar: 1.3;  --tilt: -2deg; --d: 9;  --b: .86; --delay: 1.5s; }
.tile--7 { --x: 26%; --y: 73.5%; --w: 15; --ar: 1.6;  --tilt: 2deg;  --d: 8;  --b: .86; --delay: 1.7s; }
.tile--8 { --x: 74%; --y: 73.5%; --w: 13; --ar: 1.5;  --tilt: -3deg; --d: 10; --b: .86; --delay: 1.9s; }

/* Tableta: la primera pantalla es más alta y más estrecha. Las ocho se reparten en dos franjas,
   una encima del titular y otra debajo de los botones. */
@media (max-width: 899px) {
  .hero--home { --oy: 42%; }
  .orbit { --k: .95; }
  .tile--1 { --x: 13%; --y: 19%; }
  .tile--8 { --x: 37%; --y: 19%; }
  .tile--5 { --x: 63%; --y: 19%; }
  .tile--6 { --x: 87%; --y: 19%; }
  .tile--2 { --x: 13%; --y: 70%; }
  .tile--4 { --x: 37%; --y: 70%; }
  .tile--7 { --x: 63%; --y: 70%; }
  .tile--3 { --x: 87%; --y: 70%; }
}

/* Teléfono (Hito V.1): las ocho fotografías se ven, en dos franjas de cuatro pequeñas: una entre la cabecera y el titular,
   otra entre los botones y la franja de cifras. El hueco de la máscara cubre solo el texto, así que no hay fotografías
   detrás de él. En un teléfono muy bajo el titular manda y las fotografías se reducen al mínimo del ancho (3,75 rem). */
@media (max-width: 599px) {
  .hero--home { --oy: 38%; }
  .orbit {
    --k: .85;
    -webkit-mask-image: radial-gradient(ellipse 96% 27% at 50% 38%, transparent 76%, #000 84%), linear-gradient(180deg, transparent calc(var(--header-h) - .5rem), #000 calc(var(--header-h) + .5rem));
            mask-image: radial-gradient(ellipse 96% 27% at 50% 38%, transparent 76%, #000 84%), linear-gradient(180deg, transparent calc(var(--header-h) - .5rem), #000 calc(var(--header-h) + .5rem));
  }
  .tile--2 { --x: 14%; --y: calc(var(--header-h) + 2.1rem); --ar: 1.4; }
  .tile--4 { --x: 38%; --y: calc(var(--header-h) + 2.1rem); --ar: 1.4; }
  .tile--6 { --x: 62%; --y: calc(var(--header-h) + 2.1rem); --ar: 1.4; }
  .tile--8 { --x: 86%; --y: calc(var(--header-h) + 2.1rem); --ar: 1.4; }
  /* --foot-h lo publica main.js (altura de la franja de cifras); 17.25rem es el valor de respaldo sin JavaScript. */
  .tile--1 { --x: 14%; --y: calc(100% - var(--foot-h, 17.25rem) - 1.9rem); --ar: 1.4; }
  .tile--5 { --x: 38%; --y: calc(100% - var(--foot-h, 17.25rem) - 1.9rem); --ar: 1.4; }
  .tile--7 { --x: 62%; --y: calc(100% - var(--foot-h, 17.25rem) - 1.9rem); --ar: 1.4; }
  .tile--3 { --x: 86%; --y: calc(100% - var(--foot-h, 17.25rem) - 1.9rem); --ar: 1.4; }
}

@media (prefers-reduced-motion: no-preference) {
  /* El movimiento lo dan los anillos y sus satélites; las fotografías solo entran y respiran. */
  .ring { animation: ring-in 1.4s cubic-bezier(.2,.7,.1,1) both, orbit-spin var(--dur, 0s) linear infinite var(--dir, normal); }
  .ring--4 { animation-name: ring-in; }
  .tile__card { animation: tile-in 1.1s var(--delay) cubic-bezier(.2,.7,.1,1) both, tile-bob 8s calc(var(--delay) * -4) ease-in-out infinite alternate; }
  .orbit.is-off .ring, .orbit.is-off .tile__card { animation-play-state: paused; }
  @keyframes orbit-spin { to { rotate: 360deg; } }
  @keyframes ring-in { from { scale: .82; opacity: 0; } to { scale: 1; opacity: 1; } }
  @keyframes tile-in { from { scale: .55; opacity: 0; } to { scale: 1; opacity: 1; } }
  @keyframes tile-bob { from { translate: 0 -.5rem; } to { translate: 0 .5rem; } }
}
@media (prefers-reduced-motion: reduce) { .tile__in { transition: none; } }

/* Cifras: números grandes y reales; el conteo de áreas y soluciones sale de los datos.
   Son tres (Hito H): se quitó «metodologías aplicadas», que no se puede respaldar. */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; padding: .9rem clamp(.75rem, 2vw, 2rem) 0 0; }
.metric + .metric { padding-left: clamp(.75rem, 2vw, 2rem); border-left: 1px solid rgba(255,255,255,.14); }
.metric dd {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.metric dt { color: var(--plata); font-size: .9rem; line-height: 1.35; }
/* Hito Q: tres columnas también en tableta y teléfono. Desde que las cifras son tres (Hito H),
   la rejilla de dos dejaba la última sola y un hueco a su derecha. Para que entren, la cifra y su
   etiqueta bajan de tamaño; la rejilla no cambia. */
@media (max-width: 767px) {
  .metric { padding: .8rem .5rem 0 0; }
  .metric + .metric { padding-left: .5rem; }
  .metric dd { font-size: clamp(1.5rem, 7.5vw, 2.1rem); }
  .metric dt { font-size: .76rem; line-height: 1.3; hyphens: auto; }
}
@media (max-width: 400px) {
  .metric { padding-right: .35rem; }
  .metric + .metric { padding-left: .35rem; }
  .metric dt { font-size: .72rem; }
}

/* Franja de confianza (D-21: solo nombres en texto) */
.trust-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.14); }
.trust-bar h3 { font-family: var(--f-display); font-weight: 600; font-size: .9rem; letter-spacing: 0; color: var(--plata); flex: none; }
.trust-bar__list { display: flex; flex-wrap: wrap; gap: .25rem 0; flex: 1 1 28rem; }
.trust-bar__list li { font-family: var(--f-display); font-weight: 300; font-size: clamp(.9rem, 1.1vw, 1rem); line-height: 1.5; color: var(--hueso); }
.trust-bar__list li:not(:last-child)::after { content: "·"; margin-inline: .8rem; color: var(--plata); }

/* Hito V (D-109): «Tres áreas, una sola mirada» y sus soluciones en un solo bloque. Sustituye a los paneles apilados
   (.stack*) y a la lista de soluciones de la portada. Una fila por área: fotografía, nombre con su línea y las soluciones. */
.areas__list { border-top: 1px solid var(--linea); }
.areas__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
  gap: 1.25rem clamp(1.5rem, 3vw, 3rem); padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--linea);
}
.areas__photo { grid-column: 1 / span 3; aspect-ratio: 4 / 3; }
.areas__text { grid-column: 4 / span 4; display: grid; gap: .75rem; align-content: center; }
.areas__text h3 { font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: break-word; }
.areas__text h3 a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.areas__text h3 a:hover, .areas__text h3 a:focus-visible { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.areas__text p { color: #d9dbde; max-width: 26rem; }
.areas__solutions { grid-column: 8 / span 5; }
.areas__solutions li { display: grid; gap: .1rem; padding-block: .35rem .8rem; border-top: 1px solid var(--linea); }
.areas__solutions li:first-child { border-top: 0; padding-top: 0; }
.areas__solutions a { display: inline-flex; align-items: center; min-height: 2.75rem; justify-self: start; font-family: var(--f-display); font-weight: 600; text-decoration: none; }
.areas__solutions a:hover, .areas__solutions a:focus-visible { text-decoration: underline; text-underline-offset: .3em; }
.areas__solutions span { color: var(--plata); font-size: .95rem; line-height: 1.5; max-width: 30rem; }
@media (max-width: 899px) {
  /* Tableta: fotografía y nombre lado a lado; las soluciones debajo. */
  .areas__photo { grid-column: 1 / span 5; }
  .areas__text { grid-column: 6 / span 7; }
  .areas__solutions { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  /* Teléfono (Hito V.1): una columna; la fotografía de cada área se ve arriba del texto, en proporción panorámica para no alargar la portada. */
  .areas__row { grid-template-columns: 1fr; }
  .areas__photo { grid-column: 1; aspect-ratio: 16 / 9; }
  .areas__text, .areas__solutions { grid-column: 1; }
}
.svc__title h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.svc__title h3 a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.svc__title h3 a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }

.engagements { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(11,11,12,.2); }
.engagements li { padding: 1.75rem clamp(1rem, 2vw, 2rem) 0 0; display: grid; gap: .75rem; align-content: start; }
.engagements li + li { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid rgba(11,11,12,.14); }
.engagements h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.engagements p { color: var(--gris); }
@media (max-width: 899px) {
  .engagements { grid-template-columns: 1fr; }
  .engagements li, .engagements li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(11,11,12,.14); }
}

/* Cuestionario de alcance (contacto) */
.form-intro { max-width: 40rem; color: var(--gris); margin-bottom: 1.5rem; }
.form-note { font-size: .92rem; color: var(--gris); margin-top: 1rem; max-width: 34rem; }
/* Hito L4: línea de contexto («Consulta sobre Educación») sobre el cuestionario y ayuda bajo «Objetivos». Solo tipografía y tokens existentes. */
.form-context { margin: 0 0 .5rem; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--negro); }
.form-context[hidden], .field__hint[hidden] { display: none; }
.field__hint { margin: 0; font-size: .92rem; color: var(--gris); }

/* Suscripción a las novedades (pie del sitio y /suscripcion/) */
.subscribe { display: grid; gap: 1rem; max-width: 40rem; }
.subscribe__row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; }
.subscribe__row .btn { min-height: 3.25rem; }
@media (max-width: 599px) { .subscribe__row { grid-template-columns: 1fr; } }
.subscribe-page { display: grid; gap: 1.5rem; max-width: 40rem; }
.subscribe-page .form-status:empty { display: none; }
.newsletter { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem 3rem; align-items: start; padding-bottom: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: clamp(2.25rem, 5vw, 3.25rem); border-bottom: 1px solid var(--linea); }
.newsletter__text p { color: var(--plata); font-size: .95rem; max-width: 26rem; }
@media (max-width: 899px) { .newsletter { grid-template-columns: 1fr; } }
.subscribe--dark .field label { color: var(--blanco); }
.subscribe--dark .field input:not([type="checkbox"]) { background: var(--grafito); color: var(--blanco); border-color: var(--plata); }
.subscribe--dark .field input:focus { outline-color: var(--blanco); border-color: var(--blanco); }
.subscribe--dark .field--check label { color: var(--plata); }
.subscribe--dark .field--check input { accent-color: var(--blanco); }
.subscribe--dark .field--check a { color: var(--blanco); text-underline-offset: .25em; }
.subscribe--dark .field__error { color: #ff9b94; }
.site-footer :focus-visible { outline-color: var(--blanco); }

/* ---------- Imagen a color (interruptor por espacio en Administrador → Imágenes del sitio) ---------- */
html img[data-color] { filter: none; }
