/* KIN Desarrollos — sitio web
   Paleta del Manual de Marca KIN v1.0 sobre el sistema editorial VoiceBox
   (designmd.ai/chef/voicebox): esquinas rectas, sin sombras, filetes de 2 px
   en lo interactivo y un solo acento (Óxido) por vista. Mobile-first. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Paleta de marca */
  --oxford: #2D5190;
  --oxford-deep: #1F3A6B;
  --tinta: #2C3C4E;        /* azul pizarra profundo: pie y secciones hondas */
  --cal: #E0DDDD;          /* cal cálida: superficies elevadas y láminas */
  --oxido: #B5532C;
  --oxido-hover: #9C4524;
  --pizarra: #56657A;
  --acero: #8A97A6;
  --piedra: #A8A197;
  --niebla: #E6E8EB;
  --bruma: #F3F4F5;
  --papel: #FAFAFA;
  --carbon: #2B2F35;
  --grafito: #1A1D21;
  --white: #FFFFFF;
  --bad: #A3342A;

  /* Roles */
  --bg: var(--bruma);
  --surface: var(--white);
  --raised: var(--cal);
  --ink: var(--grafito);
  --ink-2: var(--pizarra);
  --heading: var(--oxford);
  --rule: #D5D9DE;
  --rule-strong: #C2C8D0;
  --focus: var(--oxford);

  /* Tipografía: titulares en serif, texto en grotesca (VoiceBox) */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --f-mono: "Space Mono", "Courier New", Consolas, monospace;

  /* Escala fluida (móvil → escritorio) */
  --t-display: clamp(2.6rem, 1.6rem + 5vw, 5.75rem);
  --t-h1: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);
  --t-h2: clamp(1.875rem, 1.35rem + 2.4vw, 3.25rem);
  --t-h3: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  --t-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --t-body: 1rem;
  --t-small: .875rem;
  --t-note: .8125rem;

  /* Espaciado 8pt (manual: s1–s7) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 144px;
  --section: clamp(72px, 10vw, 152px);
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1320px;

  /* Forma */
  --r: 0;            /* VoiceBox: esquinas rectas en todo */
  --r-lg: 0;

  /* Movimiento */
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --d-fast: 160ms;
  --d-med: 320ms;
  --d-slow: 1100ms;
  --ease-arch: cubic-bezier(.7, 0, .2, 1);   /* trazo de dibujo: arranque firme, asiento lento */

  /* Capas */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 100;

  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -.015em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
strong { font-weight: 600; color: var(--grafito); }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: fixed; left: 16px; top: -100px; z-index: var(--z-skip);
  background: var(--oxford); color: var(--white); padding: 12px 18px; border-radius: var(--r);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--white { background: var(--surface); }
.section--dark {
  --heading: var(--white);
  --ink: #DCE2EA;
  --ink-2: #A9B6C6;
  --rule: rgba(255,255,255,.18);
  --rule-strong: rgba(255,255,255,.4);
  --focus: var(--white);
  background: var(--oxford);
  color: var(--ink);
  position: relative;
  isolation: isolate;
}
.section--deep { background: var(--tinta); }
.section--dark strong { color: var(--white); }
/* La diagonal: retícula a 45° al 7 % de blanco sobre Oxford */
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 1px, transparent 1px 28px);
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
          mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
}

.grid { display: grid; gap: var(--s4) var(--s3); grid-template-columns: minmax(0, 1fr); }

.measure { max-width: 62ch; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.note { font-size: var(--t-note); line-height: 1.55; color: var(--ink-2); }

/* Cabecera de sección: título a la izquierda, contexto a la derecha en escritorio */
.head { display: grid; gap: var(--s3); margin-bottom: clamp(40px, 6vw, 80px); }
.head p { color: var(--ink-2); max-width: 52ch; }

/* Etiqueta (manual: Hanken 600 · 12/16 · +12 %) precedida por la corona */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .6875rem; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s3);
}
.corona { display: inline-flex; gap: 4px; flex: none; }
.corona i { width: 5px; height: 5px; border-radius: 50%; background: var(--oxido); }
.section--dark .corona i { background: var(--white); }

.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: 0; }

/* ---------- Botones ---------- */
/* VoiceBox: sólido en tinta de marca, el acento Óxido aparece al pasar el cursor.
   El relleno entra como un trazo de izquierda a derecha. */
.btn {
  --bbg: var(--oxford); --bfg: var(--white); --bbd: var(--oxford);
  --bfill: var(--oxido); --bfill-fg: var(--white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border: 2px solid var(--bbd); border-radius: 0;
  background: var(--bbg); color: var(--bfg);
  font-family: var(--f-body); font-weight: 700; font-size: .875rem; line-height: 1.3; text-align: center;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--d-med) var(--ease-arch), color var(--d-med) var(--ease-arch);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bfill);
  transform: scaleX(0); transform-origin: right;
  transition: transform 520ms var(--ease-arch);
}
.btn:hover { --bbd: var(--bfill); color: var(--bfill-fg); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { --bfill: var(--oxido-hover); }
.btn--ghost { --bbg: transparent; --bfg: var(--oxford); --bbd: var(--oxford); --bfill: var(--oxford); }
.section--dark .btn { --bbg: var(--white); --bfg: var(--oxford); --bbd: var(--white); }
.section--dark .btn--ghost { --bbg: transparent; --bfg: var(--white); --bbd: var(--white); --bfill: var(--white); --bfill-fg: var(--oxford); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .8125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 260px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--oxford); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size var(--d-med) var(--ease-out);
}
.link:hover { background-size: 40% 1px; color: var(--oxido); }
.section--dark .link { color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--bruma) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-med) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: block; flex: none; padding-block: 8px; }
.brand img { height: 40px; width: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.nav a {
  position: relative; display: inline-block; padding-block: 10px; white-space: nowrap;
  font-size: .9375rem; font-weight: 500; color: var(--carbon); text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--oxido);
  transform: scaleX(0); transform-origin: left; transition: transform var(--d-med) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--oxford); font-weight: 600; }
.nav .is-flagship { color: var(--oxido); }
.header-cta { display: none; white-space: nowrap; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px 8px 12px;
  background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--oxford);
}
.menu-btn__bars { position: relative; width: 22px; height: 12px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--d-med) var(--ease-out), top var(--d-med) var(--ease-out);
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 10px; }
.menu-open .menu-btn__bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn__bars::after { top: 5px; transform: rotate(-45deg); }

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--bruma);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s4) var(--gutter) calc(var(--s4) + env(safe-area-inset-bottom));
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out), visibility 0s linear var(--d-med);
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-menu ul { display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--rule); }
.mobile-menu a.mm-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0;
  font-family: var(--f-display); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 500; line-height: 1.15;
  color: var(--oxford); text-decoration: none;
}
.mobile-menu a.mm-link small { font-family: var(--f-body); font-size: .8125rem; font-weight: 500; color: var(--pizarra); }
.mobile-menu a[aria-current="page"] { color: var(--oxido); }
.mobile-menu .btn { width: 100%; margin-top: var(--s4); }
.mobile-menu .mm-contact { margin-top: var(--s3); font-size: var(--t-small); color: var(--pizarra); }
.menu-open { overflow: hidden; }

/* ---------- Marcador de imagen ---------- */
/* Sustituir: añade style="--img:url(ruta.jpg)" al .ph o reemplaza por <img>. */
.ph {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: var(--r);
  background-color: var(--cal);
  background-image:
    var(--img, linear-gradient(160deg, rgba(45,81,144,.08), rgba(168,161,151,.22))),
    repeating-linear-gradient(45deg, rgba(45,81,144,.07) 0 1px, transparent 1px 22px);
  background-size: cover, auto;
  background-position: center;
}
.ph--warm { background-color: #E9E6E1; }
.ph--dark { background-color: #24457D; background-image: var(--img, linear-gradient(160deg, rgba(255,255,255,.05), rgba(15,31,51,.4))), repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px); }
.ph__label {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  font-family: var(--f-mono); font-size: .6875rem; line-height: 1.4; color: var(--pizarra);
}
.ph__label b { font-weight: 500; color: var(--oxford); }
.ph--dark .ph__label { color: #A9B6C6; }
.ph--dark .ph__label b { color: var(--white); }
.ph[style*="--img"] .ph__label { display: none; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }

/* El marco: doble filete de esquinas suaves (exterior 2 : interior 1) */
.marco { position: relative; padding: 10px; }
.marco::before, .marco::after {
  content: ""; position: absolute; pointer-events: none;
}
.marco::before { inset: 0; border: 2px solid var(--oxford); opacity: .85; }
.marco::after { inset: 5px; border: 1px solid var(--oxford); opacity: .45; }
.section--dark .marco::before, .section--dark .marco::after { border-color: var(--white); }

/* ---------- Hero ---------- */
.hero, .e11-hero { overflow-x: clip; }
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: var(--section); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.hero__copy { display: grid; gap: var(--s3); align-content: end; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.9rem); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; }
.hero .lead { max-width: 46ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: var(--s3); border-top: 1px solid var(--rule);
  font-size: var(--t-small); color: var(--ink-2);
}

/* Ensamble: la imagen principal se arma desde paneles desplazados */
.assembly {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78svh;
  margin: 10px;
}
.assembly__piece {
  position: absolute; inset: 0; border-radius: var(--r);
  background-color: var(--cal);
  background-image:
    var(--img, linear-gradient(160deg, rgba(45,81,144,.06), rgba(168,161,151,.28))),
    repeating-linear-gradient(45deg, rgba(45,81,144,.075) 0 1px, transparent 1px 22px);
  background-size: cover, auto; background-position: center;
  clip-path: inset(var(--clip));
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0);
  transition: transform var(--d-slow) var(--ease-out) var(--delay, 0ms), clip-path var(--d-slow) var(--ease-out) var(--delay, 0ms);
  will-change: transform;
}
.assembly__frame {
  position: absolute; pointer-events: none; border: 1px solid var(--oxford);
  inset: var(--fi);
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0);
  opacity: .6;
  transition: transform var(--d-slow) var(--ease-out) var(--delay, 0ms), opacity var(--d-slow) ease var(--delay, 0ms);
}
/* Estado de reposo (arranque): piezas desplazadas como en un montaje */
.js .assembly:not(.is-set) .p1 { --dx: -7%; --dy: 5%; }
.js .assembly:not(.is-set) .p2 { --dx: 9%; --dy: -6%; }
.js .assembly:not(.is-set) .p3 { --dx: -5%; --dy: 8%; }
.js .assembly:not(.is-set) .p4 { --dx: 6%; --dy: 4%; }
.js .assembly:not(.is-set) .f1 { --dx: -4%; --dy: -3%; }
.js .assembly:not(.is-set) .f2 { --dx: 5%; --dy: 6%; }
.assembly .p1 { --clip: 0 50% 42% 0; --delay: 0ms; }
.assembly .p2 { --clip: 0 0 42% 50%; --delay: 90ms; }
.assembly .p3 { --clip: 58% 50% 0 0; --delay: 180ms; }
.assembly .p4 { --clip: 58% 0 0 50%; --delay: 270ms; }
/* Al asentarse, las piezas se cierran en una sola imagen */
.assembly.is-set .assembly__piece { clip-path: inset(var(--clip-set, var(--clip))); }
.assembly.is-set .p1 { --clip-set: 0 50% 42% 0; }
.assembly.is-set .p2 { --clip-set: 0 0 42% 50%; }
.assembly.is-set .p3 { --clip-set: 58% 50% 0 0; }
.assembly.is-set .p4 { --clip-set: 58% 0 0 50%; }
.assembly .f1 { --fi: 6% 30% 30% -2%; --delay: 120ms; }
.assembly .f2 { --fi: 34% -2% 8% 38%; --delay: 220ms; }
.assembly.is-set .assembly__frame { opacity: 0; }
.assembly__caption {
  position: absolute; left: 0; right: 0; bottom: -34px;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--f-mono); font-size: .6875rem; color: var(--pizarra);
}
.assembly__marco { position: absolute; inset: -10px; border: 2px solid var(--oxford); opacity: 0; transition: opacity 600ms ease 900ms; pointer-events: none; }
.assembly__marco::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--oxford); opacity: .55; }
.assembly.is-set .assembly__marco { opacity: .9; }
.assembly__label {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-family: var(--f-mono); font-size: .6875rem; color: var(--pizarra);
  opacity: 0; transition: opacity 500ms ease 1000ms;
}
.assembly__label b { color: var(--oxford); font-weight: 500; }
.assembly.is-set .assembly__label, .no-js .assembly__label { opacity: 1; }
.assembly[style*="--img"] .assembly__label { display: none; }

/* ---------- Franja de cifras ---------- */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.figure { padding: var(--s3) var(--s2) var(--s3) 0; border-bottom: 1px solid var(--rule); }
.figure:nth-child(odd) { border-right: 1px solid var(--rule); }
.figure:nth-child(even) { padding-left: var(--s2); }
.figure__n {
  display: block; font-family: var(--f-display); font-weight: 500; color: var(--oxford);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.75rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums;
}
.figure__n em { font-style: normal; color: var(--oxido); }
.figure__l { display: block; margin-top: 8px; font-size: var(--t-small); line-height: 1.4; color: var(--ink-2); max-width: 22ch; }

/* ---------- Listas de problema ---------- */
.risks { display: grid; border-top: 1px solid var(--rule); }
.risk { display: grid; gap: 8px; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.risk h3 { font-size: 1.25rem; font-weight: 600; color: var(--oxford); }
.risk p { color: var(--ink-2); }
.risk__k { font-family: var(--f-mono); font-size: .75rem; color: var(--oxido); }
.risk, .pillar, .region { transition: background-color var(--d-fast) ease; }
/* Pequeña marca de advertencia: punto en Óxido, sin color como único indicador */

/* ---------- Pilares ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pillar { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; }
.pillar h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.85rem); }
.pillar p { color: var(--ink-2); }
.pillar__n { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }

/* ---------- Filas de servicio ---------- */
.services { border-top: 1px solid var(--rule); }
.service { border-bottom: 1px solid var(--rule); }
.service > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start;
  padding: var(--s3) 0;
}
.service > summary::-webkit-details-marker { display: none; }
.service__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.015em; color: var(--oxford); transition: color var(--d-fast) ease; }
summary:hover .service__title { color: var(--oxido); }
.service__scope { grid-column: 1 / -1; color: var(--ink-2); max-width: 60ch; }
.service__model { grid-column: 1 / -1; font-size: var(--t-small); color: var(--carbon); }
.service__model b { font-weight: 600; }
.plus {
  width: 44px; height: 44px; flex: none; border: 2px solid var(--rule-strong);
  position: relative; transition: background-color var(--d-fast) ease, border-color var(--d-fast) ease, transform var(--d-med) var(--ease-out);
}
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--oxford); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--d-med) var(--ease-out); }
summary:hover .plus { border-color: var(--oxford); }
details[open] > summary .plus { transform: rotate(180deg); background: var(--oxford); border-color: var(--oxford); }
details[open] > summary .plus::before { background: var(--white); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); background: var(--white); }
.service__body { padding: 0 0 var(--s4); display: grid; gap: var(--s3); }
.service__body dl { display: grid; gap: var(--s2); margin: 0; }
.service__body dt { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pizarra); }
.service__body dd { margin: 4px 0 0; }
.service__body ul.dots li { padding-left: 18px; position: relative; }
.service__body ul.dots li + li { margin-top: 6px; }

ul.dots li { position: relative; padding-left: 18px; }
ul.dots li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--oxido); }
ul.dots li + li { margin-top: 8px; }
.section--dark ul.dots li::before { background: var(--white); }

/* ---------- Bloque proyecto insignia ---------- */
.flagship { display: grid; gap: var(--s5); }
.flagship__media { position: relative; }
.flagship__media .ph { --ar: 4 / 5; }
.flagship .ph { max-height: 78svh; }
.flagship__name {
  font-family: var(--f-display); font-weight: 500; font-style: italic; letter-spacing: -.03em;
  font-size: clamp(3.4rem, 2rem + 7vw, 8rem); line-height: .92; color: var(--white);
}
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.spec { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule); }
.spec:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
.spec dt { font-size: .75rem; color: var(--ink-2); }
.spec dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; color: var(--heading); font-variant-numeric: lining-nums; }
.spec dd small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- Regiones ---------- */
.regions { display: grid; border-top: 1px solid var(--rule); }
.region { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.region h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 500; }
.region .mono { color: var(--ink-2); }
.region p { color: var(--ink-2); font-size: var(--t-small); }

.scale { display: grid; gap: var(--s3); margin-top: var(--s5); }
.scale__item { padding: var(--s3); background: var(--surface); border: 2px solid var(--rule); border-top: 4px solid var(--oxford); }
.section--white .scale__item { background: var(--bruma); }
.scale__item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.scale__item p { color: var(--ink-2); font-size: .9375rem; }

/* ---------- Caso de estudio ---------- */
.case { display: grid; gap: var(--s5); }

.case__media .ph { --ar: 4 / 3; }
.case dl { display: grid; gap: var(--s3); margin: 0; }
.case dt { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.case dd { margin: 0; }
/* Cita destacada VoiceBox: filete de 4 px en Óxido, texto grande en itálica */
.result {
  margin-top: var(--s3); padding: var(--s3) var(--s3) var(--s3) calc(var(--s3) + 4px);
  background: var(--surface); border-left: 4px solid var(--oxido);
  font-family: var(--f-display); font-style: italic; font-size: var(--t-lead); line-height: 1.5;
}
.result strong:first-child { font-family: var(--f-body); font-style: normal; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; color: var(--oxido); }
.section--white .result { background: var(--bruma); }
.section--dark .result { background: rgba(255,255,255,.06); }
.kpis { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s2); }
.kpi b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--oxido); font-variant-numeric: lining-nums; }
.kpi span { font-size: var(--t-small); color: var(--ink-2); }

/* ---------- Proceso (secuencia real de 4 pasos) ---------- */
.process { position: relative; }
.process ol { display: grid; gap: 0; }
.process::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--rule);
}
.process__line {
  position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--oxido);
  transform-origin: top; transform: scaleY(var(--progress, 1));
}
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 0 var(--s3); padding-bottom: var(--s5); }
.step:last-child { padding-bottom: 0; }
.step__n {
  position: relative; z-index: 1; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--oxford);
  font-family: var(--f-mono); font-weight: 700; font-size: .875rem; color: var(--oxford);
  transition: background-color var(--d-med) ease, color var(--d-med) ease;
}
.section--white .step__n { background: var(--surface); }
.step h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem); font-weight: 500; padding-top: 4px; }
.step.is-on .step__n { background: var(--oxford); color: var(--white); }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 54ch; }
.step__out { margin-top: 12px; font-size: var(--t-small); color: var(--carbon); }
.step__out b { color: var(--oxido); font-weight: 600; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--rule); }
table.matrix { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.matrix thead th { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--oxford); }
.matrix tbody th { font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; color: var(--heading); line-height: 1.2; min-width: 11ch; }
.matrix tbody tr { transition: background-color var(--d-fast) ease; }
.matrix tbody tr:hover { background: var(--raised); }
.matrix td { color: var(--ink-2); }
/* En móvil la matriz se lee como fichas */
@media (max-width: 767px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  table.stack th, table.stack td { border: 0; padding: 0; }
  table.stack td { margin-top: 10px; }
  table.stack td::before { content: attr(data-label); display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pizarra); margin-bottom: 2px; }
  .table-wrap { overflow: visible; }
}

/* ---------- Tarjetas (alianzas, pilares numerados) ---------- */
.cards { display: grid; gap: 12px; }
.card {
  padding: var(--s4) var(--s3); background: var(--surface); border: 2px solid var(--rule);
  display: grid; gap: 10px; align-content: start;
  transition: border-color var(--d-med) var(--ease-arch);
}
.card:hover { border-color: var(--oxford); }
.section--white .card { background: var(--bruma); border-color: var(--bruma); }
.section--white .card:hover { border-color: var(--oxford); }
.section--dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--dark .card:hover { border-color: var(--white); }
.card h3 { font-size: 1.375rem; font-weight: 600; }
.card p { color: var(--ink-2); font-size: .9375rem; }
.card__k { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }
.card--feature { background: var(--oxford) !important; border-color: var(--oxford) !important; border-top: 4px solid var(--oxido) !important; --heading: var(--white); color: #DCE2EA; }
.card--feature p { color: #C4CEDA; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; color: var(--oxford);
  transition: color var(--d-fast) ease;
}
.faq summary:hover { color: var(--oxido); }
.faq summary::-webkit-details-marker { display: none; }
.faq .faq__a { padding: 0 0 24px; max-width: 64ch; color: var(--ink-2); }

/* ---------- Llamado a acción ---------- */
.cta { display: grid; gap: var(--s5); }
.cta h2 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4.25rem); line-height: 1.05; }
.cta__points { display: grid; gap: 10px; margin-top: var(--s3); }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact-list > div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.contact-list dd { margin: 0; font-size: 1.0625rem; }
.contact-list a { color: var(--heading); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; font-family: var(--f-display); font-size: 1.25rem; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Puente / callout ---------- */
.bridge {
  display: grid; gap: var(--s3); padding: clamp(28px, 5vw, 64px);
  background: var(--raised); border: 2px solid var(--raised); border-top: 4px solid var(--oxido); position: relative;
}
.bridge h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }

/* ---------- Formulario ---------- */
.form { display: grid; gap: var(--s3); padding: clamp(24px, 4vw, 48px); background: var(--surface); border-top: 4px solid var(--oxido); color: var(--grafito); --heading: var(--oxford); --ink-2: var(--pizarra); --focus: var(--oxford); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--carbon); }
.field .req { color: var(--oxido); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--grafito);
  background: var(--papel); border: 2px solid var(--rule-strong); border-radius: 0;
  transition: border-color var(--d-fast) ease, background-color var(--d-fast) ease, box-shadow var(--d-fast) ease;
}
.field input:hover { border-color: var(--acero); }
.field input:focus { outline: none; border-color: var(--oxford); background: var(--white); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--oxford); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field .err { font-size: .8125rem; color: var(--bad); display: none; }
.field .err.is-on { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 8px; margin-top: 4px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 2px solid var(--rule-strong); cursor: pointer; background: var(--papel); transition: border-color var(--d-fast) ease; }
.choice:hover { border-color: var(--acero); }
.choice:has(input:checked) { border-color: var(--oxford); background: var(--white); }
.choice input { width: 18px; height: 18px; accent-color: var(--oxford); margin: 0; }
.form .btn { width: 100%; }
.form__status { font-size: .9375rem; padding: 14px 16px; background: #E8EEF7; border-left: 4px solid var(--oxford); color: var(--oxford); display: none; }
.form__status.is-on { display: block; }

/* ---------- Pie ---------- */
.site-footer { background: var(--tinta); color: #B4BFCC; --focus: var(--white); padding: clamp(56px, 8vw, 104px) 0 calc(32px + env(safe-area-inset-bottom)); }
.site-footer a { color: #DCE2EA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s5); }
.footer__brand img { height: 52px; width: auto; }
.footer__brand p { margin-top: var(--s3); max-width: 34ch; font-size: .9375rem; }
.footer__col h2 { font-family: var(--f-body); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8F9CAC; margin-bottom: 14px; }
.footer__col li { padding-block: 4px; }
.footer__col a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__base { margin-top: clamp(48px, 7vw, 88px); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; }

/* ---------- Eleven 11 ---------- */
.e11-hero { padding: clamp(32px, 5vw, 72px) 0 var(--section); }
.e11-hero__grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.e11-hero__copy { display: grid; gap: var(--s3); align-content: end; }
.e11-hero__loc { color: #A9B6C6; }
.e11-mark {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em;
  font-size: clamp(4.2rem, 2.2rem + 10vw, 10.5rem); line-height: .86; font-weight: 500;
  letter-spacing: -.035em; color: var(--white);
}
.e11-mark span:first-child { font-style: italic; }
.e11-mark span:last-child { color: var(--oxido); }
.e11-hero__h { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); line-height: 1.25; color: var(--white); max-width: 30ch; }
.e11-specs { margin-top: clamp(48px, 7vw, 96px); }
.e11-specs .spec dd { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); }
.e11-specs .spec dd small { color: #A9B6C6; }

.assembly--dark .assembly__piece {
  background-color: #2A4677;
  background-image:
    var(--img, linear-gradient(170deg, rgba(181,83,44,.16), rgba(44,60,78,.55))),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px);
}
.assembly--dark .assembly__frame { border-color: rgba(255,255,255,.7); }
.assembly--dark .assembly__marco { border-color: var(--white); }
.assembly--dark .assembly__marco::after { border-color: var(--white); }
.assembly--dark .assembly__label { color: #A9B6C6; }
.assembly--dark .assembly__label b { color: var(--white); }

.pillars--stack { grid-template-columns: 1fr !important; }
.pillars--stack .pillar { border-top: 0 !important; border-bottom: 1px solid var(--rule) !important; padding: var(--s3) 0; }
.pillars--stack .pillar:first-child { border-top: 1px solid var(--rule) !important; }

.materials { display: grid; gap: var(--s4) var(--s3); }
.material { display: grid; gap: 8px; align-content: start; }
.material h3 { font-size: 1.375rem; font-weight: 500; margin-top: 8px; }
.material p { color: var(--ink-2); }
.swatch {
  display: block; aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.swatch--chukum {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.09) 0 1.5px, transparent 2.5px) 0 0 / 17px 23px,
    radial-gradient(circle at 70% 60%, rgba(90,62,40,.08) 0 1px, transparent 2px) 0 0 / 11px 13px,
    linear-gradient(160deg, #CDB89C, #B79E7F);
}
.swatch--terracota {
  background:
    linear-gradient(rgba(255,255,255,.55) 0 0) 0 0 / 100% 2px,
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.55) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,255,255,.4) 70px 72px),
    linear-gradient(160deg, #E0C3AB, #CFA488);
}
.swatch--madera {
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,.07) 0 2px, transparent 2px 9px, rgba(255,255,255,.05) 9px 11px, transparent 11px 19px),
    linear-gradient(160deg, #9A7150, #6E4C33);
}

/* ---------- Láminas: ilustraciones del proyecto ----------
   Cada ilustración se monta como una lámina de dibujo: fondo papel,
   marcas de corte en las esquinas y rótulo técnico en mono. */
.ph--illus { background: var(--papel); }
.ph--illus > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: var(--fit, contain); object-position: center;
  padding: var(--pad, clamp(14px, 4%, 36px));
  scale: var(--zoom, 1);
  translate: 0 var(--py, 0px);
  transition: scale 1600ms var(--ease-out);
}
.ph--cover > img { --fit: cover; --pad: 0px; }
.ph--illus::after, .mapa::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none; z-index: 1;
  --c: var(--acero);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px 16px,
    linear-gradient(var(--c), var(--c)) top right / 16px 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px 16px,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 16px,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 16px;
  background-repeat: no-repeat;
}
.ph__sheet {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--f-mono); font-size: .625rem; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pizarra);
  background: color-mix(in srgb, var(--papel) 88%, transparent); padding: 4px 6px;
}
.ph__sheet b { font-weight: 700; color: var(--oxido); }

/* Ilustración dentro del ensamble del hero */
.assembly--illus .assembly__piece {
  background-color: var(--papel);
  background-size: contain; background-repeat: no-repeat; background-position: center;
  background-origin: content-box; padding: 7%;
}
.assembly--illus .assembly__label { display: none; }
/* Ilustraciones con mucho margen propio: se amplían dentro del marco */
.assembly--zoom .assembly__piece { padding: 0; background-size: 125%; }
.assembly--fit .assembly__piece { padding: 0; }

/* Ilustración de sección (debajo de los encabezados de proceso, servicios) */
.illus { margin-top: var(--s4); }
.service__illus { --ar: 16 / 10; max-width: 520px; }
.process-layout .illus { --ar: 4 / 3; max-width: 460px; }


/* Ilustración junto a una lista (Inicio · problema) */
.split-media { display: grid; gap: var(--s5); }
.split-media__fig { --ar: 16 / 10 !important; }
.services__fig { margin-bottom: clamp(32px, 5vw, 64px); }
@media (max-width: 767px) { .services__fig { --ar: 16 / 10 !important; } }

/* ---------- Mapa de cobertura ---------- */
.mapa {
  position: relative; margin: 0 0 clamp(40px, 6vw, 72px);
  padding: clamp(14px, 3vw, 40px) clamp(10px, 3vw, 40px) clamp(40px, 5vw, 56px);
  background: var(--papel); border: 1px solid var(--rule);
}
.mapa .ph__sheet { left: 18px; bottom: 16px; }
.mapa__svg { width: 100%; height: auto; overflow: visible; }
.mapa__grid path { fill: none; stroke: rgba(45,81,144,.14); stroke-width: 1; stroke-dasharray: 2 5; }
.mapa__grid text, .mapa__scale text, .mapa__north text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; fill: var(--acero); }
.mapa__edo { fill: transparent; stroke: var(--pizarra); stroke-opacity: .5; stroke-width: .8; stroke-linejoin: round; transition: fill 400ms ease; }
.mapa__edo:hover { fill: rgba(45,81,144,.05); }
.mapa__edo.is-hl { fill: rgba(45,81,144,.1); stroke: var(--oxford); stroke-opacity: .9; stroke-width: 1.2; }
.mapa__scale path { fill: none; stroke: var(--oxford); stroke-width: 1; }
.mapa__north path { fill: var(--oxford); }
.mapa__north text { fill: var(--oxford); }
.mapa__dot { fill: var(--oxido); stroke: var(--papel); stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform 400ms var(--ease-arch), fill 300ms ease; }
.mapa__pulse { fill: none; stroke: var(--oxido); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulso 2600ms ease-out infinite; animation-delay: calc(var(--i, 0) * 600ms); }
@keyframes pulso { from { transform: scale(1); opacity: .9; } to { transform: scale(3.8); opacity: 0; } }
.mapa__lead { fill: none; stroke: var(--oxido); stroke-width: 1; }
.mapa__name { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 24px; fill: var(--oxford); }
.mapa__coord { font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; fill: var(--pizarra); }
.mapa__name, .mapa__coord { paint-order: stroke; stroke: var(--papel); stroke-width: 6px; stroke-linejoin: round; }
.mapa__pin { cursor: default; }
.mapa__pin.is-active .mapa__dot { transform: scale(1.5); fill: var(--oxford); }
.region { transition: background-color var(--d-fast) ease; }
.region.is-active h3 { color: var(--oxido); }
@media (max-width: 639px) {
  .mapa__name { font-size: 34px; }
  .mapa__coord, .mapa__grid text { display: none; }
}
/* Trazo del mapa al entrar en pantalla */
.js .reveal-map .mapa__edo { stroke-dasharray: 1; stroke-dashoffset: 1; fill: transparent; transition: stroke-dashoffset 2400ms var(--ease-arch), fill 900ms ease 1800ms; }
.js .reveal-map.is-in .mapa__edo { stroke-dashoffset: 0; }
.js .reveal-map.is-in .mapa__edo.is-hl { fill: rgba(45,81,144,.1); }
.js .reveal-map .mapa__lead { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--ease-arch); transition-delay: calc(1900ms + var(--i, 0) * 250ms); }
.js .reveal-map.is-in .mapa__lead { stroke-dashoffset: 0; }
.js .reveal-map .mapa__dot { transform: scale(0); transition-delay: calc(1600ms + var(--i, 0) * 250ms); }
.js .reveal-map.is-in .mapa__dot { transform: scale(1); }
.js .reveal-map.is-in .mapa__pin.is-active .mapa__dot { transform: scale(1.5); transition-delay: 0s; }
.js .reveal-map .mapa__name, .js .reveal-map .mapa__coord, .js .reveal-map .mapa__grid { opacity: 0; transition: opacity 700ms ease; transition-delay: calc(2200ms + var(--i, 0) * 250ms); }
.js .reveal-map .mapa__grid { transition-delay: 200ms; }
.js .reveal-map.is-in .mapa__name, .js .reveal-map.is-in .mapa__coord, .js .reveal-map.is-in .mapa__grid { opacity: 1; }


/* ---------- CTA de sección ---------- */
.cta-inline {
  display: grid; gap: var(--s3);
  margin-top: clamp(56px, 7vw, 96px); padding-top: var(--s4);
  border-top: 2px solid var(--oxford);
}
.section--dark .cta-inline { border-top-color: rgba(255,255,255,.55); }
.cta-inline__k, .ghl__step {
  margin: 0 0 10px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--oxido);
}
.section--dark .cta-inline__k { color: #F0B49A; }
.cta-inline__t { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.15; letter-spacing: -.015em; color: var(--heading); text-wrap: balance; }
.cta-inline__s { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }
.cta-inline__a { display: grid; gap: 10px; align-content: center; }
.cta-inline__a .btn { width: 100%; }
.cta-inline__tel { font-size: var(--t-small); color: var(--ink-2); text-align: center; text-decoration: none; padding: 6px; }
.cta-inline__tel:hover { color: var(--oxido); text-decoration: underline; }
.btn[href="#contacto"]::after, .cta-inline .btn::after { content: "→"; font-family: var(--f-body); transition: transform var(--d-med) var(--ease-arch); }
.btn:hover::after { transform: translateX(4px); }
.btn--sm::after { display: none; }

/* Sellos de confianza bajo las acciones del hero */
.hero__trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: -4px; }
.hero__trust li { position: relative; padding-left: 14px; font-size: .8125rem; color: var(--ink-2); }
.hero__trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--oxido); }
.e11-hero .hero__trust li { color: #B4BFCC; }

/* Qué sigue (secciones de contacto) */
.cta__next { margin-top: var(--s5); }
.cta__next ol { counter-reset: paso; border-top: 1px solid var(--rule); }
.cta__next li { counter-increment: paso; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cta__next li::before { content: counter(paso, decimal-leading-zero); font-family: var(--f-mono); font-size: .75rem; color: #F0B49A; padding-top: 3px; }

/* ---------- Formulario GoHighLevel ---------- */
.ghl {
  position: relative; align-self: start;
  background: var(--surface); color: var(--grafito);
  --heading: var(--oxford); --ink-2: var(--pizarra); --rule: #D5D9DE; --focus: var(--oxford);
  border-top: 4px solid var(--oxido);
  padding: clamp(22px, 3.5vw, 44px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.ghl::before { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(255,255,255,.28); pointer-events: none; }
.ghl__step span { display: inline-block; margin-right: 8px; padding: 1px 6px; border: 1px solid currentColor; }
.ghl__title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 500; line-height: 1.1; }
.ghl__sub { margin-top: 10px; color: var(--pizarra); }
.ghl__trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.ghl__trust li {
  padding: 4px 12px; border: 2px solid var(--rule);
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pizarra);
}
.ghl__frame { position: relative; margin-top: var(--s4); min-height: 520px; border-top: 1px solid var(--rule); padding-top: var(--s2); }
.ghl__frame iframe { position: relative; z-index: 1; display: block; min-height: 500px; opacity: 0; transition: opacity 600ms ease; }
.ghl.is-loaded .ghl__frame iframe { opacity: 1; }
.ghl__skeleton { position: absolute; inset: var(--s2) 0 auto; display: grid; gap: 14px; transition: opacity 400ms ease; }
.ghl.is-loaded .ghl__skeleton { opacity: 0; visibility: hidden; }
.ghl__skeleton i, .ghl__skeleton b {
  display: block; height: 48px; border: 2px solid var(--rule);
  background: linear-gradient(90deg, transparent 0 30%, rgba(45,81,144,.07) 50%, transparent 70%) 0 0 / 300% 100% no-repeat, var(--papel);
  animation: shimmer 1600ms linear infinite;
}
.ghl__skeleton b { height: 52px; width: 60%; background-color: var(--cal); border-color: var(--cal); }
.ghl__skeleton span { font-family: var(--f-mono); font-size: .6875rem; color: var(--acero); letter-spacing: .06em; }
@keyframes shimmer { from { background-position: 100% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
.ghl__foot { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--pizarra); }
.ghl__foot a { color: var(--oxford); font-weight: 600; }
.ghl__foot a:hover { color: var(--oxido); }
.ghl__note { margin-top: var(--s2); font-size: var(--t-note); line-height: 1.5; color: var(--pizarra); }

/* ---------- Barra fija de contacto (móvil y tableta) ---------- */
.sticky-cta { display: none; }
@media (max-width: 1023px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; gap: 8px; align-items: stretch;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bruma) 94%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
    transform: translateY(110%); visibility: hidden;
    transition: transform 500ms var(--ease-arch), visibility 0s linear 500ms;
  }
  .show-sticky .sticky-cta { transform: none; visibility: visible; transition-delay: 0s; }
  .menu-open .sticky-cta { visibility: hidden; }
  .sticky-cta .btn { flex: 1; }
  .sticky-cta__tel {
    display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; min-height: 44px;
    border: 2px solid var(--oxford); color: var(--oxford); text-decoration: none;
    font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  }
}

/* ---------- Animaciones arquitectónicas ----------
   Referencia: trazo de planos (dibujo línea a línea), retícula de guías finas,
   texto que se entinta con el desplazamiento y láminas que se descubren como
   un telón. Todo se desactiva con prefers-reduced-motion. */

/* Telón de lámina: la imagen se descubre de abajo hacia arriba */
.js .reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1400ms var(--ease-arch); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }
.js .reveal > img { --zoom: 1.14; }
.js .reveal.is-in > img { --zoom: 1; }
.js .reveal::after, .js .reveal .ph__sheet { opacity: 0; transition: opacity 700ms ease 1000ms; }
.js .reveal.is-in::after, .js .reveal.is-in .ph__sheet { opacity: 1; }

/* Titulares: cada palabra sube desde su propia línea de corte */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin: 0 -.06em -.12em 0; }
.js .split .w > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1100ms var(--ease-arch); transition-delay: calc(var(--i, 0) * 38ms); }
.js .split.is-in .w > span { transform: none; }

/* Enunciado que se entinta palabra por palabra al desplazarse */
.js [data-fill] .fw { opacity: .2; transition: opacity 360ms ease; }
.js [data-fill] .fw.on { opacity: 1; }

/* Elementos que suben en secuencia */
.js .rise { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 900ms ease, transform 1100ms var(--ease-arch); transition-delay: calc(var(--i, 0) * 90ms + var(--base, 0ms)); }
.js .rise.is-in, .is-ready .hero__copy > .rise, .is-ready .e11-hero__copy > .rise { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 800ms ease, transform 1100ms var(--ease-arch); transition-delay: calc(var(--i, 0) * 90ms); }
.js .stagger.is-in > * { opacity: 1; transform: none; }

/* Filetes que se trazan de izquierda a derecha */
.js .draw { border-top-color: transparent !important; position: relative; }
.js .draw::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; z-index: 1;
  background: var(--draw-c, var(--rule)); transform: scaleX(0); transform-origin: left;
  transition: transform 1500ms var(--ease-arch);
}
.js .draw.is-in::before { transform: scaleX(1); }

/* Encabezado de sección: número de lámina + cota superior */
main { counter-reset: lam; }
.head { position: relative; counter-increment: lam; }
.head::before {
  content: "§ " counter(lam, decimal-leading-zero);
  position: absolute; left: 0; top: calc(-1 * clamp(28px, 3.5vw, 40px));
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; color: var(--oxido);
}
.section--dark .head::before { color: #C9D3E0; }
.head::after {
  content: ""; position: absolute; left: 4.5ch; right: 0; top: calc(-1 * clamp(28px, 3.5vw, 40px) + .55em);
  height: 1px; background: var(--rule);
  transform-origin: left; transition: transform 1600ms var(--ease-arch) 150ms;
}
.js .head:not(.is-in)::after { transform: scaleX(0); }

/* Cifras: trazo inferior en Óxido al contar */
.figure__n { position: relative; }

/* Retícula de guías (solo escritorio): dos ejes finos enmarcan el contenido
   y una marca de nivel acompaña el desplazamiento. */
.guides { display: none; }
@media (min-width: 1024px) {
  .js .guides { display: block; position: fixed; inset: 0; z-index: 30; pointer-events: none; }
  .guides .wrap { position: relative; height: 100%; }
  .guides i {
    position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(45,81,144,.1);
    transform: scaleY(0); transform-origin: top; transition: transform 1800ms var(--ease-arch);
  }
  .guides i:nth-child(1) { left: calc(var(--gutter) / 2); }
  .guides i:nth-child(2) { right: calc(var(--gutter) / 2); transition-delay: 160ms; transform-origin: bottom; }
  .is-ready .guides i { transform: scaleY(1); }
  .guides__level {
    position: absolute; right: calc(var(--gutter) / 2); top: calc(var(--header-h) + 24px + var(--scroll, 0) * (100vh - var(--header-h) - 72px));
    display: flex; align-items: center; gap: 6px; transform: translateX(50%);
    font-family: var(--f-mono); font-size: .5625rem; letter-spacing: .06em; color: var(--oxido);
    opacity: 0; transition: opacity 600ms ease 1200ms;
  }
  .guides__level::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--oxido); background: var(--bruma); transform: rotate(45deg); }
  .guides__level span { position: absolute; right: calc(100% + 2px); white-space: nowrap; background: var(--bruma); padding: 1px 4px; }
  .is-ready .guides__level { opacity: 1; }
}

/* ---------- Preloader: trazo de la fachada ---------- */
.intro { display: none; }
.is-loading .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bruma); color: var(--oxford);
  clip-path: inset(0 0 0 0);
  animation: intro-out 900ms var(--ease-arch) 5s forwards; /* respaldo si falla el JS */
}
.is-leaving .intro { animation: intro-out 1000ms var(--ease-arch) forwards; }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro::before, .intro::after { /* marco de la lámina */
  content: ""; position: absolute; inset: clamp(12px, 2.4vw, 28px); border: 1px solid rgba(45,81,144,.35); pointer-events: none;
}
.intro::after { inset: calc(clamp(12px, 2.4vw, 28px) + 5px); border-color: rgba(45,81,144,.15); }
.intro__draw { display: block; width: min(86vw, 880px); height: auto; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.intro__scan {
  position: absolute; left: 0; right: 0; top: 74%; height: 1px; background: var(--oxido);
  animation: scan 2000ms var(--ease-arch) 150ms forwards;
}
.intro__scan span {
  position: absolute; left: clamp(20px, 4vw, 48px); bottom: 6px;
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .06em; color: var(--oxido);
}
@keyframes scan { to { top: 24%; } }
.intro__data {
  position: absolute; right: clamp(28px, 4.5vw, 64px); bottom: clamp(28px, 4.5vw, 60px); margin: 0;
  display: grid; grid-template-columns: auto auto; gap: 4px 18px;
  font-family: var(--f-mono); font-size: .625rem; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; color: var(--pizarra);
  opacity: 0; animation: fade-in 700ms ease 500ms forwards;
}
.intro__data dt { color: var(--acero); }
.intro__data dd { margin: 0; color: var(--oxford); }
.intro__title {
  position: absolute; left: clamp(28px, 4.5vw, 64px); bottom: clamp(28px, 4.5vw, 60px); margin: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); line-height: 1.05; color: var(--oxford);
  opacity: 0; animation: fade-in 800ms ease 700ms forwards;
}
.intro__title small { display: block; margin-top: 10px; font-family: var(--f-mono); font-style: normal; font-size: .625rem; letter-spacing: .06em; color: var(--oxido); }
@media (max-width: 639px) { .intro__data { display: none; } }


/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .figure { padding-left: var(--s3) !important; border-right: 1px solid var(--rule); }
  .figure:first-child { padding-left: 0 !important; }
  .figure:last-child { border-right: 0; }
  .risks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices { grid-template-columns: 1fr 1fr; }
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .scale { grid-template-columns: 1fr 1fr; }
  .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .process::before, .process__line { left: 23px; }
  .step { grid-template-columns: 48px 1fr; }
  .step__n { width: 48px; height: 48px; font-size: 1.2rem; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .brand img { height: 46px; }

  .head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: var(--s6); }
  .head p { justify-self: end; }
  .head--stack { grid-template-columns: 1fr; }

  .hero__grid { grid-template-columns: 6fr 5fr; align-items: center; }
  .hero__copy { padding-bottom: 0; }
  .assembly { aspect-ratio: 5 / 6; max-height: calc(100svh - var(--header-h) - 80px); justify-self: end; width: calc(100% - 20px); }

  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; column-gap: var(--s5); }
  .pillar { border-top: 1px solid var(--rule); border-bottom: 0; align-content: start; }

  .service > summary { grid-template-columns: 5fr 6fr auto; column-gap: var(--s5); padding: var(--s4) 0; align-items: center; }
  .service__scope { grid-column: 2; grid-row: 1; }
  .service__model { grid-column: 2; grid-row: 2; }
  .service > summary .plus { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .service__body { grid-template-columns: 5fr 6fr 44px; column-gap: var(--s5); }
  .service__body > * { grid-column: 2; }
  .service__body > .service__illus { grid-column: 1; grid-row: 1 / span 4; align-self: start; margin-top: 0; }

  .flagship { grid-template-columns: 5fr 7fr; align-items: center; column-gap: var(--s7); }
  .flagship--rev { grid-template-columns: 7fr 5fr; }

  .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; column-gap: var(--s5); }
  .split-media { grid-template-columns: 5fr 7fr; column-gap: var(--s6); align-items: start; }
  .split-media__fig { --ar: 4 / 5 !important; position: sticky; top: calc(var(--header-h) + 32px); }
  .split-media .risks { grid-template-columns: 1fr; }
  .region { border-top: 1px solid var(--oxford); border-bottom: 0; }

  .case { grid-template-columns: 6fr 5fr; align-items: start; column-gap: var(--s7); }
  .case__media { position: sticky; top: calc(var(--header-h) + 32px); }

  .process-layout { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--s7); align-items: start; }
  .process-layout .head { position: sticky; top: calc(var(--header-h) + 40px); grid-template-columns: 1fr; }

  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards--5 .card { grid-column: span 2; }
  .cards--5 .card:nth-child(4) { grid-column: 2 / span 2; }

  .cta { grid-template-columns: 6fr 6fr; column-gap: var(--s7); align-items: start; }
  .cta-inline { grid-template-columns: 7fr 4fr; column-gap: var(--s6); align-items: end; }
  .bridge { grid-template-columns: 7fr 5fr; align-items: end; column-gap: var(--s6); }

  .footer__grid { grid-template-columns: 4fr 2fr 3fr 3fr; column-gap: var(--s5); }
  .risks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e11-hero__grid { grid-template-columns: 7fr 5fr; align-items: end; }
  .e11-hero .assembly { justify-self: end; width: calc(100% - 20px); max-height: calc(100svh - var(--header-h) - 80px); }
  .faq-layout { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--s7); align-items: start; }
}

@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: 6fr 5fr; column-gap: 96px; }
}

/* Paisaje en móvil: el ensamble no debe dominar la pantalla */
@media (max-width: 1023px) and (orientation: landscape) {
  .assembly { aspect-ratio: 16 / 9; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .js .assembly:not(.is-set) .assembly__piece, .js .assembly:not(.is-set) .assembly__frame { --dx: 0; --dy: 0; }
  .js .reveal { clip-path: none; }
  .js .reveal > img { scale: 1; translate: none; }
  .js .split .w > span, .js .stagger > *, .js .rise { transform: none; opacity: 1; }
  .js [data-fill] .fw { opacity: 1; }
  .intro { display: none !important; }
  .js .reveal-map .mapa__edo, .js .reveal-map .mapa__lead { stroke-dashoffset: 0; }
  .js .reveal-map .mapa__dot { transform: none; }
  .js .reveal-map .mapa__name, .js .reveal-map .mapa__coord, .js .reveal-map .mapa__grid { opacity: 1; }
  .mapa__pulse { display: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .mobile-menu, .skip { display: none !important; }
  .section--dark { background: none; color: #000; --heading: #000; }
}

/* ---------- Insignia Hybrid Properties: se traza, se asienta y brilla ---------- */
.hybrid-badge { position: relative; display: inline-block; margin: 0 0 var(--s3); width: min(300px, 72vw); border-radius: 999px; overflow: hidden; isolation: isolate; }
.hybrid-badge--sm { width: min(220px, 60vw); }
.hybrid-badge img { display: block; width: 100%; height: auto; }
.hybrid-badge::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  animation: badge-shine 5200ms ease-in-out 1800ms infinite;
}
.js .hybrid-badge { clip-path: inset(0 100% 0 0 round 999px); transform: translateY(8px); transition: clip-path 1300ms var(--ease-arch), transform 1300ms var(--ease-arch); }
.js .hybrid-badge.is-in, .is-ready .hero .hybrid-badge { clip-path: inset(0 0 0 0 round 999px); transform: none; }
.hybrid-badge.is-in img, .is-ready .hero .hybrid-badge img { animation: badge-float 6000ms ease-in-out 1400ms infinite; }
@keyframes badge-shine { 0%, 55% { background-position: -150% 0; } 85%, 100% { background-position: 250% 0; } }
@keyframes badge-float { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .js .hybrid-badge { clip-path: none; transform: none; }
  .hybrid-badge::after, .hybrid-badge img { animation: none !important; }
}

/* ---------- Selector de idioma ---------- */
.header-end { display: flex; align-items: center; gap: 12px; }
/* Navegación completa desde 1200 px; por debajo, el menú desplegable */
@media (min-width: 1200px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none; }
}
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--rule-strong); color: var(--oxford); text-decoration: none;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  transition: background-color var(--d-fast) ease, color var(--d-fast) ease, border-color var(--d-fast) ease;
}
.lang-switch:hover { background: var(--oxford); border-color: var(--oxford); color: var(--white); }
.mx .lang-switch { border-color: rgba(236,232,228,.4); color: var(--luz); min-height: 40px; }
.mx .lang-switch:hover { background: var(--luz); color: var(--noche); border-color: var(--luz); }

/* ---------- Proyectos: línea de tiempo de obra ----------
   Un eje vertical se entinta con el desplazamiento; el año vigente queda fijo
   mientras se leen sus obras y cada capítulo enlaza con el siguiente. */
.tl-years {
  position: sticky; top: var(--header-h); z-index: 5;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid var(--rule);
}
.tl-years ol {
  display: flex; gap: clamp(18px, 3vw, 40px); margin: 0 auto; padding-block: 14px; list-style: none;
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
}
.tl-years ol::-webkit-scrollbar { display: none; }
.tl-years a {
  position: relative; display: block; padding-block: 4px; white-space: nowrap; text-decoration: none;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; color: var(--acero);
  transition: color 400ms ease;
}
.tl-years a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--oxido);
  transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-arch);
}
.tl-years a:hover, .tl-years a.is-past { color: var(--pizarra); }
.tl-years a.is-current { color: var(--oxford); }
.tl-years a.is-current::after { transform: scaleX(1); }

.tl { --tl-col: clamp(150px, 24%, 300px); --tl-gap: clamp(32px, 5vw, 88px); --tl-top: calc(var(--header-h) + 76px); position: relative; margin-top: clamp(24px, 4vw, 56px); }
.tl__axis { position: absolute; top: 0; bottom: 0; left: var(--tl-col); width: 1px; background: var(--rule); }
.tl__fill { position: absolute; inset: 0; background: var(--oxido); transform-origin: top; transform: scaleY(var(--tl-p, 0)); }
.tl__mark {
  position: absolute; left: 0; top: calc(var(--tl-p, 0) * 100%);
  width: 9px; height: 9px; margin: -4px 0 0 -4px; background: var(--oxido); transform: rotate(45deg);
  transition: opacity 300ms ease; opacity: var(--tl-on, 0);
}
.tl__mark b {
  position: absolute; left: 16px; top: -6px; transform: rotate(-45deg); transform-origin: left top;
  font-family: var(--f-mono); font-size: .625rem; font-weight: 400; letter-spacing: .06em; white-space: nowrap; color: var(--oxido);
}
.tl__ch {
  position: relative; display: grid; grid-template-columns: var(--tl-col) 1fr; align-items: start;
  padding-block: clamp(48px, 7vw, 104px); scroll-margin-top: var(--tl-top);
}
.tl__ch::before { /* nodo del capítulo sobre el eje */
  content: ""; position: absolute; left: var(--tl-col); top: calc(clamp(48px, 7vw, 104px) + .6em);
  width: 11px; height: 11px; margin-left: -5px; border: 1px solid var(--rule-strong); background: var(--surface);
  transform: rotate(45deg); transition: background 500ms ease, border-color 500ms ease;
}
.tl__ch.is-in::before { border-color: var(--oxford); }
.tl__ch.is-current::before { background: var(--oxido); border-color: var(--oxido); }
.tl__year {
  position: sticky; top: var(--tl-top); display: grid; justify-items: end; gap: 10px; padding-right: var(--tl-gap);
}
.tl__num {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 1.6rem + 4.4vw, 6.5rem); line-height: .85; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px var(--rule-strong);
  transition: color 700ms var(--ease-arch), -webkit-text-stroke-color 700ms ease;
}
.tl__ch.is-in .tl__num { -webkit-text-stroke-color: var(--acero); }
.tl__ch.is-current .tl__num { color: var(--oxford); -webkit-text-stroke-color: var(--oxford); }
.tl__span { color: var(--oxido); }
.tl__body { padding-left: var(--tl-gap); transition: opacity 700ms ease; }
.tl__title { margin: 0 0 var(--s4); font-family: var(--f-display); font-weight: 500; font-size: var(--t-h3, 1.75rem); line-height: 1.15; color: var(--heading); }
.tl__fig { max-width: 640px; margin: 0 0 var(--s5); }
.tl__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); max-width: 820px; margin-bottom: var(--s5); }
.tl__pair .tl__fig { margin: 0; }
.tl__list { margin: 0; padding: 0; list-style: none; max-width: 720px; }
.tl__list li { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--rule); }
.tl__list li:last-child { border-bottom: 1px solid var(--rule); }
.tl__list p { margin: 0; color: var(--ink); }
.tl__loc { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--acero); }
.tl__next {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: var(--s5); text-decoration: none;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pizarra);
}
.tl__next b { font-weight: 400; color: var(--oxido); }
.tl__next i { font-style: normal; display: inline-block; color: var(--oxido); animation: tl-bob 2.4s ease-in-out infinite; }
.tl__next:hover { color: var(--oxford); }
@keyframes tl-bob { 50% { transform: translateY(4px); } }
.tl__open { display: flex; align-items: center; gap: 12px; margin: var(--s5) 0 0; font-family: var(--f-display); font-style: italic; font-size: 1.25rem; color: var(--oxford); }
.tl__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--oxido); }
.tl__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--oxido); animation: tl-ping 2s ease-out infinite; }
@keyframes tl-ping { to { transform: scale(3.2); opacity: 0; } }

/* Entrada: las obras se aclaran desde un leve desenfoque, una tras otra;
   el capítulo vigente queda nítido y los demás ceden protagonismo */
.js .tl__ch .tl__title, .js .tl__list li, .js .tl__next, .js .tl__open {
  opacity: 0; transform: translateY(18px); filter: blur(5px);
  transition: opacity 900ms ease, transform 1000ms var(--ease-arch), filter 900ms ease;
  transition-delay: calc(var(--i, 0) * 80ms + 120ms);
}
.js .tl__ch.is-in .tl__title, .js .tl__ch.is-in .tl__list li, .js .tl__ch.is-in .tl__next, .js .tl__ch.is-in .tl__open { opacity: 1; transform: none; filter: none; }
.js .tl__ch.is-in:not(.is-current) .tl__body { opacity: .42; }
.js .tl__ch.is-in:not(.is-current) .tl__body:hover { opacity: 1; }

@media (max-width: 899px) {
  .tl { --tl-col: 0px; --tl-gap: 28px; --tl-top: calc(var(--header-h) + 64px); }
  .tl__ch { grid-template-columns: 1fr; gap: var(--s3); }
  .tl__ch::before { top: calc(clamp(48px, 7vw, 104px) + 14px); }
  .tl__year { position: static; justify-items: start; padding-left: var(--tl-gap); padding-right: 0; }
  .tl__num { font-size: clamp(2.75rem, 2rem + 4vw, 4rem); }
  .tl__mark b { display: none; }
  .tl__pair { grid-template-columns: 1fr; }
  .js .tl__ch.is-in:not(.is-current) .tl__body { opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .js .tl__ch .tl__title, .js .tl__list li, .js .tl__next, .js .tl__open { opacity: 1; transform: none; filter: none; transition: none; }
  .js .tl__ch.is-in:not(.is-current) .tl__body { opacity: 1; }
  .tl__next i, .tl__pulse::after { animation: none; }
}

/* Proyectos · banner final: 2026, Eleven 11 */
.tl-banner {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: min(92svh, 860px); padding-block: clamp(72px, 10vw, 140px) clamp(56px, 8vw, 112px);
  background: var(--grafito); color: var(--white); scroll-margin-top: var(--header-h);
}
.tl-banner__media { position: absolute; inset: 0; z-index: -1; }
.tl-banner__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform: scale(1.14); transition: transform 2400ms var(--ease-arch);
}
.tl-banner.is-in .tl-banner__media img { transform: scale(1.02); }
.tl-banner__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,13,17,.88) 0%, rgba(10,13,17,.62) 45%, rgba(10,13,17,.12) 100%),
              linear-gradient(0deg, rgba(10,13,17,.7) 0%, rgba(10,13,17,0) 45%);
}
.tl-banner__grid { position: relative; display: grid; gap: var(--s4); }
.tl-banner__year {
  position: absolute; right: var(--gutter); top: calc(-1 * clamp(40px, 7vw, 100px)); margin: 0; overflow: hidden;
  font-family: var(--f-display); font-size: clamp(5rem, 2rem + 14vw, 15rem); line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); pointer-events: none;
}
.tl-banner__year span { display: block; transform: translateY(105%); transition: transform 1400ms var(--ease-arch) 200ms; }
.tl-banner.is-in .tl-banner__year span { transform: none; }
.tl-banner__copy { display: grid; gap: var(--s3); max-width: 600px; }
.tl-banner__k { margin: 0; color: #E38A63; font-size: .6875rem; letter-spacing: .14em; }
.tl-banner__logo { margin: 0; }
.tl-banner__logo img { display: block; width: clamp(130px, 14vw, 180px); height: auto; }
.tl-banner h2 { margin: 0; font-weight: 400; font-style: italic; font-size: var(--t-h2); line-height: 1.1; color: var(--white); }
.tl-banner__lead { margin: 0; color: rgba(255,255,255,.82); max-width: 52ch; }
.tl-banner__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.tl-banner__facts li { padding: 7px 12px; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.9); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.tl-banner .actions { margin-top: var(--s3); }
.tl-banner .btn { --bbg: var(--oxido); --bbd: var(--oxido); --bfg: var(--white); }
.js .tl-banner__copy > * { opacity: 0; transform: translateY(16px); transition: opacity 900ms ease, transform 1000ms var(--ease-arch); }
.js .tl-banner.is-in .tl-banner__copy > * { opacity: 1; transform: none; }
.js .tl-banner__copy > :nth-child(2) { transition-delay: 120ms; }
.js .tl-banner__copy > :nth-child(3) { transition-delay: 220ms; }
.js .tl-banner__copy > :nth-child(4) { transition-delay: 320ms; }
.js .tl-banner__copy > :nth-child(5) { transition-delay: 420ms; }
.js .tl-banner__copy > :nth-child(6) { transition-delay: 520ms; }
@media (max-width: 639px) {
  .tl-banner__year { position: static; order: -1; }
  .tl-banner__media::after { background: linear-gradient(0deg, rgba(10,13,17,.92) 0%, rgba(10,13,17,.55) 70%, rgba(10,13,17,.35) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-banner__media img, .tl-banner__year span, .js .tl-banner__copy > * { transform: none; opacity: 1; transition: none; }
}

/* ---------- Proyectos · obras destacadas ----------
   Paneles que se expanden al pasar el cursor (o con el foco); cada uno abre su ficha. */
.pj-section { background: var(--bruma); }
.pj-cards { display: flex; gap: 10px; height: clamp(460px, 66vh, 660px); margin: 0; padding: 0; list-style: none; }
.pj-card {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  background: var(--grafito); color: var(--white); cursor: pointer;
  transition: flex-grow 900ms var(--ease-arch);
}
.pj-card.is-active { flex-grow: 4.2; cursor: default; }
.pj-card__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.85) brightness(.72); transform: scale(1.08);
  transition: filter 900ms ease, transform 1400ms var(--ease-arch);
}
.pj-card:hover .pj-card__img { filter: grayscale(.4) brightness(.8); }
.pj-card.is-active .pj-card__img { filter: none; transform: scale(1); }
.pj-card::after { /* velo inferior para el texto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(12,15,19,.92) 0%, rgba(12,15,19,.7) 32%, rgba(12,15,19,.2) 58%, rgba(12,15,19,0) 75%);
}
.pj-card__n { position: absolute; top: 18px; left: 18px; font-size: .6875rem; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.pj-card__n::after { content: ""; display: inline-block; width: 0; height: 1px; margin-left: 10px; vertical-align: middle; background: #E38A63; transition: width 700ms var(--ease-arch) 200ms; }
.pj-card.is-active .pj-card__n::after { width: 32px; }
.pj-card__vert {
  position: absolute; left: 50%; bottom: 24px; margin: 0; white-space: nowrap;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-family: var(--f-display); font-style: italic; font-size: 1.25rem; color: rgba(255,255,255,.92);
  transition: opacity 400ms ease;
}
.pj-card.is-active .pj-card__vert { opacity: 0; }
.pj-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: clamp(22px, 2.6vw, 36px);
  max-width: 560px; opacity: 0; transform: translateY(14px);
  transition: opacity 300ms ease, transform 300ms ease; pointer-events: none;
}
.pj-card.is-active .pj-card__body { opacity: 1; transform: none; pointer-events: auto; transition: opacity 700ms ease 380ms, transform 900ms var(--ease-arch) 380ms; }
.pj-card__meta { margin: 0; font-size: .6875rem; letter-spacing: .1em; color: #E38A63; }
.pj-card__t { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.05; color: var(--white); }
.pj-card__d { margin: 0; color: rgba(255,255,255,.82); max-width: 44ch; }
.pj-card__open {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 0;
  background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); cursor: pointer;
  font: 600 .75rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--white);
  transition: border-color 300ms ease, gap 300ms ease;
}
.pj-card__open::after { content: "→"; }
.pj-card__open:hover, .pj-card__open:focus-visible { border-color: #E38A63; gap: 16px; }
.pj-card__open:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.pj-hint { display: flex; align-items: center; gap: 12px; margin: var(--s3) 0 0; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--acero); }
.pj-hint::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Ficha del proyecto */
.pj-sheet {
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--r);
  background: var(--surface); color: var(--ink); overflow: hidden; overflow: clip;
}
.pj-sheet::backdrop { background: rgba(16,22,29,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pj-sheet[open] { animation: pj-in 700ms var(--ease-arch); }
.pj-sheet[open]::backdrop { animation: pj-fade 500ms ease; }
@keyframes pj-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }
@keyframes pj-fade { from { opacity: 0; } }
.pj-sheet__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-height: calc(100svh - 32px); }
.pj-sheet__media { margin: 0; min-height: 100%; background: var(--grafito); }
.pj-sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.pj-sheet__copy { display: grid; align-content: start; gap: var(--s3); padding: clamp(28px, 4vw, 56px); overflow-y: auto; }
.pj-sheet__copy > p:not([class]) { margin: 0; color: var(--ink-2); }
.pj-sheet__k { margin: 0; font-size: .6875rem; letter-spacing: .12em; color: var(--oxido); }
.pj-sheet__t { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; color: var(--heading); }
.pj-sheet__specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px clamp(20px, 3vw, 40px); margin: 0; padding-block: var(--s3); border-block: 1px solid var(--rule); }
.pj-sheet__specs dt { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--acero); }
.pj-sheet__specs dd { margin: 4px 0 0; font-size: .9375rem; color: var(--ink); }
.pj-sheet__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.pj-sheet__stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--oxford); }
.pj-sheet__stats span { font-size: .8125rem; color: var(--ink-2); }
.pj-sheet__scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pj-sheet__scope li { padding: 7px 12px; border: 1px solid var(--rule-strong); font-size: .8125rem; color: var(--ink); }
.pj-sheet__a { margin-top: var(--s2); }
.pj-sheet__close {
  position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--rule-strong); cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--oxford);
  transition: background 300ms ease, color 300ms ease;
}
.pj-sheet__close:hover { background: var(--oxford); color: var(--white); }
html.pj-lock { overflow: hidden; }

@media (max-width: 899px) {
  .pj-cards {
    height: auto; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .pj-cards::-webkit-scrollbar { display: none; }
  .pj-card { flex: 0 0 min(80vw, 380px); aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .pj-card .pj-card__img { filter: none; transform: none; }
  .pj-card__vert { display: none; }
  .pj-card__body { opacity: 1; transform: none; pointer-events: auto; }
  .pj-card__d { display: none; }
  .pj-sheet__grid { grid-template-columns: 1fr; overflow-y: auto; }
  .pj-sheet__grid { grid-auto-rows: max-content; }
  .pj-sheet__media { min-height: 0; height: calc((100vw - 32px) * .72); overflow: hidden; }
  .pj-sheet__copy { overflow: visible; }
  .pj-sheet__specs { grid-template-columns: 1fr 1fr; }
  .pj-sheet__stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-card, .pj-card__img, .pj-card__body, .pj-card__n::after { transition: none; }
  .pj-sheet[open], .pj-sheet[open]::backdrop { animation: none; }
}
