/* ==========================================================================
   TEMPUS GROUP · V2 — sobre el esqueleto de EMECUBO V3 («Ficha técnica»)
   Copia de Emecubo V3 adaptada a Tempus (la carpeta de Emecubo no se toca):
   misma tipografía (Host Grotesk ligera), mismos tamaños, mismo papel, misma
   retícula de 12 columnas en una caja de 1600 px y el mismo ritmo de espacios
   (cada paño solo lleva aire arriba). Colores: los de Tempus Clima — tinta
   #091521 y azul #0F5DC6 — con el logotipo de Tempus Group.
   Diferencias con Emecubo por las reglas de David: sin etiquetas de sección,
   sin monoespaciada y sin cuadraditos; los titulares quedan en la columna 4.

   Piezas que se quedan de la versión anterior (David, 23-10):
     · Soluciones: fichas escalonadas de Heliox «versión 1», en banda marina.
     · Sedes: sección clavada con relevo al scroll (Heliox «versión 1»).
     · Estándar: tarjetas en «D» de Heliox v5, ahora a sangre.

   1. Tokens        5. Hero             9. Clientes y sectores   13. Pie
   2. Base          6. Texto en grande 10. Sedes                14. Responsive
   3. Tipografía    7. Soluciones      11. Estándar «D»         15. Movimiento
   4. Cabecera      8. Proyectos       12. Contacto
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #F5F5F3;
  --paper-2: #EBECEC;
  --ink: #091521;              /* tinta de Tempus Clima · 17,6:1 sobre papel */
  --grey: #3D4853;             /* cuerpo · 8,9:1 */
  --mute: #5F6973;             /* secundario · 5,2:1 */
  --soft: #868F98;             /* solo texto grande (≥ 24 px) · 3,0:1 */
  --line: rgba(9, 21, 33, .14);
  --line-strong: rgba(9, 21, 33, .32);
  --blue: #0F5DC6;             /* azul de Tempus Clima · 5,5:1 sobre papel */
  --blue-ink: #0B4A9F;
  --dark-line: rgba(255, 255, 255, .14);
  --dark-mute: #A9B3BD;        /* secundario sobre tinta · 8,7:1 */

  --box: 1600px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --gap: clamp(16px, 1.75vw, 28px);
  --hd: 76px;
  --sec: clamp(112px, 12.5vw, 216px);

  --f-sans: 'Host Grotesk', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 24px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(var(--box), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sec { padding-top: var(--sec); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.pendiente { color: var(--mute); }

/* ---------- 3. Tipografía (escala de Emecubo V3) ---------- */
.t-display { font-size: clamp(48px, 7vw, 132px); line-height: .94; letter-spacing: -.05em; font-weight: 330; }
.t-h2 { font-size: clamp(34px, 4.1vw, 76px); line-height: 1.02; letter-spacing: -.042em; font-weight: 330; text-wrap: balance; }
.t-h3 { font-size: clamp(24px, 2vw, 36px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.t-lead { font-size: clamp(27px, 2.95vw, 54px); line-height: 1.14; letter-spacing: -.034em; font-weight: 300; }
.t-body { font-size: clamp(16px, 1.06vw, 18px); line-height: 1.6; color: var(--grey); }
.meta { font-size: 13px; line-height: 1.45; color: var(--mute); letter-spacing: 0; }

/* Enlace con flecha (Emecubo) */
.arrow-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 17px; transition: color .3s var(--ease); }
.arrow-link svg { width: 24px; height: 10px; flex: none; transition: transform .45s var(--ease); }
.arrow-link:hover { color: var(--blue); }
.arrow-link:hover svg { transform: translateX(6px); }
.arrow-link--claro { color: #fff; }
.arrow-link--claro:hover { color: #fff; opacity: .75; }

/* Cabecera de sección: titular en la columna 4 (Emecubo), entradilla debajo */
.sec__head { row-gap: 24px; margin-bottom: clamp(56px, 6.4vw, 120px); align-items: end; }
.sec__head > h2 { grid-column: 1 / span 8; }
.sec__lead { grid-column: 1 / span 6; font-size: clamp(18px, 1.35vw, 23px); line-height: 1.38; letter-spacing: -.015em; color: var(--grey); }

/* Titular centrado con su descriptor (Soluciones) */
.sec__head--centro > h2, .sec__head--centro > .sec__lead { grid-column: 1 / -1; justify-self: center; text-align: center; }
.sec__head--centro > h2 { max-width: 16ch; }
.sec__head--centro > .sec__lead { max-width: 32em; }

/* ---------- 4. Cabecera ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd); background: var(--paper); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.hd__in { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.hd__logo { grid-column: 1 / span 3; width: 150px; }
.hd__logo img { width: 100%; height: auto; }
.hd__nav { grid-column: 6 / span 7; display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.2vw, 38px); font-size: 15px; }
.hd__nav > a { position: relative; padding-block: 6px; }
.hd__nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hd__nav > a:hover::after, .hd__nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hd__nav > .hd__cta { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.hd__cta svg { width: 22px; height: 10px; transition: transform .45s var(--ease); }
.hd__cta:hover svg { transform: translateX(5px); }
.hd__nav > .hd__cta::after { display: none; }
.hd__toggle { display: none; }

/* ---------- 5. Hero · la «T» que enmascara el vídeo ----------
   La «T» del logotipo es una máscara (assets/img/tempus-t-mascara.svg) sobre un
   vídeo a pantalla completa. El JS fija mask-size y mask-position en cada
   fotograma: arranca pequeña bajo el titular centrado y crece desde un punto del
   asta hasta que el vídeo cubre la pantalla. --k (0→1) pasa la tinta a blanco. */
.tz { position: relative; height: 340vh; background: var(--paper); }
.tz__fijo { --k: 0; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tz__media { position: absolute; inset: 0; z-index: 0; background: var(--ink);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 106 88%22%3E%3Cpath fill=%22%23000%22 d=%22M47.33.94C44.98.33,42.5,0,39.96,0H0v15.01h34.64c2.79-5.82,7.22-10.71,12.69-14.07Z%22/%3E%3Cpath fill=%22%23000%22 d=%22M54.38,29.42v57.55h14.99V29.42c0-3.66-.68-7.17-1.91-10.41h-2.68c-5.74,0-10.41,4.67-10.41,10.41Z%22/%3E%3Cpath fill=%22%23000%22 d=%22M64.79,0c-4.44,0-8.64.99-12.42,2.76-5.58,2.61-10.2,6.91-13.22,12.25-2.41,4.26-3.79,9.18-3.79,14.41v57.55h15.01V29.42c0-2.66.73-5.14,1.99-7.28,2.51-4.26,7.13-7.13,12.42-7.13h39.96V0h-39.96Z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 106 88%22%3E%3Cpath fill=%22%23000%22 d=%22M47.33.94C44.98.33,42.5,0,39.96,0H0v15.01h34.64c2.79-5.82,7.22-10.71,12.69-14.07Z%22/%3E%3Cpath fill=%22%23000%22 d=%22M54.38,29.42v57.55h14.99V29.42c0-3.66-.68-7.17-1.91-10.41h-2.68c-5.74,0-10.41,4.67-10.41,10.41Z%22/%3E%3Cpath fill=%22%23000%22 d=%22M64.79,0c-4.44,0-8.64.99-12.42,2.76-5.58,2.61-10.2,6.91-13.22,12.25-2.41,4.26-3.79,9.18-3.79,14.41v57.55h15.01V29.42c0-2.66.73-5.14,1.99-7.28,2.51-4.26,7.13-7.13,12.42-7.13h39.96V0h-39.96Z%22/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: auto 34%; mask-size: auto 34%;
  -webkit-mask-position: 50% 84%; mask-position: 50% 84%;
  opacity: 0; transition: opacity 1.2s var(--ease); }
.tz__media.is-listo, html:not(.js) .tz__media { opacity: 1; }
.tz__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tz__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 21, 33, .42), rgba(9, 21, 33, .58)); opacity: var(--k); }
.tz__texto { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(var(--box), calc(100% - 2 * var(--gutter))); text-align: center;
  transform: translate(-50%, calc(-50% + var(--ty, -22svh))); color: color-mix(in srgb, #fff calc(var(--k) * 100%), var(--ink)); will-change: transform; }
.tz__titulo { font-size: clamp(42px, 6.2vw, 120px); line-height: .98; letter-spacing: -.05em; font-weight: 330; }
.tz__titulo .ln { display: block; }
.tz__titulo .ln > span { display: inline-block; }
.tz .hero__morph { color: color-mix(in srgb, #9CC0F5 calc(var(--k) * 100%), var(--blue)); text-align: left; }
.tz__sub { margin: clamp(18px, 2vw, 28px) auto 0; max-width: 30em; font-size: clamp(17px, 1.3vw, 22px); line-height: 1.4; letter-spacing: -.01em;
  color: color-mix(in srgb, rgba(255, 255, 255, .88) calc(var(--k) * 100%), var(--grey)); }
.tz__pie { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vh, 36px); z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.tz__desliza { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.tz__desliza::after { content: ''; width: 1px; height: 36px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: desliza 2.2s var(--ease) infinite; }
@keyframes desliza { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
/* Reducir movimiento / ?static: la «T» ya abierta, el vídeo a pantalla completa */
.tz--fin { height: 100svh; }
.tz--fin .tz__fijo { --k: 1; --ty: 0px; }
.tz--fin .tz__media { -webkit-mask-image: none; mask-image: none; opacity: 1; }
.tz--fin .tz__pie { display: none; }

/* Palabra que cambia: tercera línea del titular, en el azul de Tempus */
.hero__morph { position: relative; display: inline-block; color: var(--blue); vertical-align: top; }
.hero__morph.is-listo { transition: width .62s var(--expo); }
.hero__morph-w { font: inherit; color: inherit; white-space: nowrap; }
.hero__morph.is-listo .hero__morph-w { position: absolute; left: 0; top: 0; width: max-content; }
.hero__morph-w i { font-style: normal; display: inline-block; white-space: pre; }
.hero__morph.is-listo .hero__morph-w i { opacity: 0; transform: translateY(.28em); transition: opacity .4s var(--expo), transform .52s var(--expo); }
.hero__morph.is-listo .hero__morph-w.is-activa i { opacity: 1; transform: none; }
.hero__morph.is-listo .hero__morph-w.is-sale i { opacity: 0; transform: translateY(-.3em); transition: opacity .26s var(--expo), transform .32s var(--expo); }

/* ---------- 6. Texto en grande · la «trayectoria» de Emecubo V3 ---------- */
.facts__t { grid-column: 1 / span 3; align-self: start; width: clamp(30px, 2.6vw, 46px); height: auto; margin-top: .32em; }
.facts__text { grid-column: 4 / span 9; color: var(--soft); text-wrap: pretty; }
.facts__text p + p { margin-top: .6em; }
.facts__text b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- 7. Soluciones · sección clavada a pantalla completa ----------
   Tiempo 1: las palabras del claim llegan dispersas (desplazadas, giradas y
   desenfocadas) y encajan. Tiempo 2: las cuatro soluciones pasan en horizontal,
   cada una a sangre con su foto; la barra de abajo avanza y lleva a cada una.
   En móvil, con «reducir movimiento» o con ?static: todo apilado (.sol--plano). */
.sol { position: relative; margin-top: var(--sec); background: var(--ink); color: #fff; }
.sol__pista { height: 620vh; }
.sol__fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sol__claim { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; padding: var(--hd) var(--gutter) 0;
  opacity: var(--claim-o, 1); transform: scale(var(--claim-s, 1)); }
.sol__h { font-size: clamp(44px, 7vw, 140px); line-height: 1; letter-spacing: -.05em; font-weight: 330; }
.sol__w { display: inline-block; will-change: transform, filter, opacity; }
.sol__w--ac { color: #7FAAF0; }
.sol__sub { margin-top: clamp(20px, 2.4vw, 36px); font-size: clamp(18px, 1.4vw, 24px); letter-spacing: -.015em; color: var(--dark-mute); opacity: var(--sub-o, 1); }
.sol__track { position: absolute; inset: 0; z-index: 2; display: flex; width: 400vw; transform: translate3d(var(--tx, 100vw), 0, 0); will-change: transform; }
.sol__panel { position: relative; flex: 0 0 100vw; height: 100%; overflow: hidden; isolation: isolate; background: var(--ink); }
.sol__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--par, 0), 0, 0) scale(1.12); will-change: transform; }
.sol__panel::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 21, 33, .82) 0%, rgba(9, 21, 33, .4) 55%, rgba(9, 21, 33, .55) 100%), linear-gradient(0deg, rgba(9, 21, 33, .85) 0%, rgba(9, 21, 33, 0) 60%); }
.sol__in { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-content: end; align-items: end;
  padding-bottom: clamp(112px, 15vh, 168px); }
.sol__t { grid-column: 1 / span 8; font-size: clamp(48px, 7.4vw, 150px); line-height: .9; letter-spacing: -.055em; font-weight: 330; }
.sol__col { grid-column: 9 / span 4; display: grid; gap: 18px; justify-items: start; }
.sol__p { font-size: clamp(17px, 1.25vw, 21px); line-height: 1.45; letter-spacing: -.01em; }
.sol__esp { font-size: 14px; line-height: 1.6; color: var(--dark-mute); }
.sol__nav { position: absolute; left: 50%; bottom: clamp(22px, 4vh, 44px); transform: translateX(-50%); z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); opacity: var(--nav-o, 0); }
.sol__nav button { position: relative; min-height: 44px; padding-top: 14px; text-align: left; font-size: 15px; color: rgba(255, 255, 255, .5); transition: color .35s var(--ease); }
.sol__nav button.is-on, .sol__nav button:hover { color: #fff; }
.sol__barra { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .22); }
.sol__barra i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--b, 0)); }
/* Apilado */
.sol--plano .sol__pista { height: auto; }
.sol--plano .sol__fijo { position: static; height: auto; overflow: visible; }
.sol--plano .sol__claim { position: relative; inset: auto; padding: clamp(96px, 12vw, 180px) var(--gutter); opacity: 1; transform: none; }
.sol--plano .sol__w { transform: none !important; filter: none !important; opacity: 1 !important; }
.sol--plano .sol__sub { opacity: 1; }
.sol--plano .sol__track { position: static; display: block; width: auto; transform: none; }
.sol--plano .sol__panel { height: auto; min-height: 92svh; display: flex; }
.sol--plano .sol__img { transform: none; }
.sol--plano .sol__in { height: auto; width: min(var(--box), calc(100% - 2 * var(--gutter))); padding-block: clamp(96px, 30vh, 260px) clamp(56px, 8vw, 96px); }
.sol--plano .sol__nav { display: none; }

/* ---------- 8. Proyectos · fichas apiladas (Emecubo V3) ---------- */
.work__head > h2 { grid-column: 1 / span 7; }
.filters { grid-column: 8 / span 5; justify-self: end; align-self: end; display: flex; flex-wrap: nowrap; gap: 8px; justify-content: flex-end; }
.chip { white-space: nowrap; }
.chip { font-size: 14px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.chip sup { font-size: 10px; color: var(--blue); top: -.5em; position: relative; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] sup { color: inherit; }
.stack { --tab: 72px; --n: 4; position: relative; }
.ficha { position: sticky; top: calc(var(--hd) + var(--i, 0) * var(--tab)); height: clamp(560px, calc(100svh - var(--hd) - (var(--n) - 1) * var(--tab) - 28px), 860px); display: flex; flex-direction: column; background: var(--paper); border-top: 1px solid var(--line-strong); }
.ficha__tab { flex: none; height: var(--tab); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.ficha__title { grid-column: 1 / span 7; font-size: clamp(22px, 1.75vw, 30px); letter-spacing: -.03em; line-height: 1; transition: color .3s; }
.ficha__place { grid-column: 8 / span 2; font-size: 14px; color: var(--mute); }
.ficha__sector { grid-column: 10 / span 2; font-size: 14px; color: var(--mute); }
.ficha__go { grid-column: 12; justify-self: end; width: 24px; height: 10px; transition: transform .45s var(--ease); }
.ficha__tab:hover .ficha__go { transform: translateX(6px); }
.ficha__tab:hover .ficha__title { color: var(--blue); }
.ficha__body { flex: 1; min-height: 0; padding-bottom: 28px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.ficha__media { grid-column: 1 / span 8; position: relative; overflow: hidden; background: var(--paper-2); }
.ficha__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ficha__media:hover img { transform: scale(1.03); }
.ficha__info { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 32px; min-height: 0; }
.ficha__scope { font-size: clamp(18px, 1.35vw, 23px); line-height: 1.38; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.ficha__info .spec { margin-top: auto; }
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--mute); padding-top: 2px; }
.spec dd { font-size: 15px; line-height: 1.4; }
.empty { padding: 48px 0; color: var(--mute); border-top: 1px solid var(--line); }
.work__more { padding-top: 40px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* ---------- 9. Clientes y sectores ---------- */
/* Logotipos en una tabla de filetes, cada uno con la obra que hicimos para él */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.logos__c { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: clamp(200px, 15vw, 260px); padding: clamp(24px, 2.4vw, 40px) clamp(20px, 2vw, 36px) clamp(20px, 2vw, 32px); border-bottom: 1px solid var(--line); }
.logos__c:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.logos__img { display: flex; align-items: center; height: 64px; }
.logos__img img { width: auto; height: auto; max-width: min(100%, 200px); max-height: 36px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .45s var(--ease), opacity .45s var(--ease); }
.logos__img--alto img { max-height: 56px; }
.logos__c:hover .logos__img img { filter: none; opacity: 1; }
.logos__tx { font-size: 15px; line-height: 1.45; color: var(--mute); max-width: 26em; transition: color .3s; }
.logos__c:hover .logos__tx { color: var(--ink); }
/* Sectores: lista grande + visor cuadrado fijo que cambia de foto */
.sectores { margin-top: clamp(96px, 10vw, 176px); align-items: start; }
.sectores__h { grid-column: 1 / -1; margin-bottom: clamp(24px, 2.4vw, 40px); }
.sectores__l { grid-column: 1 / span 7; border-top: 1px solid var(--line-strong); }
.sector { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: clamp(14px, 1.3vw, 22px) 0; border-bottom: 1px solid var(--line); cursor: default; }
.sector:focus-visible { outline-offset: -2px; }
.sector__n { font-size: clamp(30px, 3.2vw, 58px); line-height: 1.05; letter-spacing: -.04em; font-weight: 300; color: var(--soft); transition: color .45s var(--ease), transform .6s var(--expo); }
.sector.is-on .sector__n { color: var(--ink); transform: translateX(14px); }
.sector__m { font-size: 14px; color: var(--mute); text-align: right; transition: color .45s var(--ease); }
.sector.is-on .sector__m { color: var(--blue); }
.sector__thumb { display: none; }
.sectores__visor { grid-column: 9 / span 4; position: sticky; top: calc(var(--hd) + 40px); }
.visor { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.visor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; clip-path: inset(18% 18% 18% 18%); transform: scale(1.12); transition: clip-path .9s var(--expo), opacity .5s var(--ease), transform 1.2s var(--expo); }
.visor img.is-on { opacity: 1; clip-path: inset(0); transform: none; z-index: 1; }
.visor__pie { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 15px; }
.visor__pie span + span { color: var(--mute); font-variant-numeric: tabular-nums; }
/* Clientes: banda tinta a sangre con los ocho perfiles en tabla de filetes */
.clientes-banda { margin-top: clamp(96px, 10vw, 176px); width: 100vw; margin-left: calc(50% - 50vw); background: var(--ink); color: #fff; padding-block: clamp(72px, 7vw, 128px); }
.clientes-banda__in { width: min(var(--box), calc(100% - 2 * var(--gutter))); margin-inline: auto; row-gap: 32px; align-items: start; }
.clientes-banda__h { grid-column: 1 / span 3; color: #fff; }
.perfiles { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); }
.perfiles li { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(120px, 9vw, 160px); padding: clamp(18px, 1.8vw, 30px); border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); font-size: clamp(19px, 1.5vw, 26px); line-height: 1.15; letter-spacing: -.02em; font-weight: 300; }
.perfiles li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: translateY(101%); transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.perfiles li:hover::before { transform: none; }

/* ---------- 10. Sedes · relevo al hacer scroll (Heliox «versión 1») ---------- */
.sedes-sec { position: relative; }
.sedes-fijo { padding-top: var(--sec); }
.sedes-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.sedes-txt { grid-column: 1 / span 5; }
.sedes-des { margin-top: 24px; max-width: 26em; font-size: clamp(18px, 1.35vw, 23px); line-height: 1.38; letter-spacing: -.015em; color: var(--grey); }
.sedes-idx { display: flex; gap: 20px; margin-top: clamp(32px, 3.5vw, 48px); }
.sedes-idx li { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--mute); opacity: .6; transition: opacity .5s var(--ease), color .5s var(--ease); }
.sedes-idx li::after { content: ''; display: block; height: 1px; margin-top: 2px; background: currentColor; transform: scaleX(.34); transform-origin: left; transition: transform .6s var(--ease); }
.sedes-idx li.is-activo { opacity: 1; color: var(--ink); }
.sedes-idx li.is-activo::after { transform: scaleX(1); background: var(--blue); }
.sedes-idx li:hover { opacity: .9; }
.sedes-idx button { display: flex; align-items: center; min-height: 44px; letter-spacing: inherit; }
.sedes-lista { grid-column: 7 / span 6; position: relative; }
.sede + .sede { margin-top: clamp(48px, 6vw, 80px); }
.sede__fig { margin: 0; width: 100%; overflow: hidden; background: var(--paper-2); }
.sede__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sede__n { margin-top: 22px; font-size: clamp(24px, 2vw, 36px); line-height: 1.05; letter-spacing: -.03em; font-weight: 400; }
.sede__c { margin-top: 8px; font-size: 15px; color: var(--blue); }
.sede__d { margin-top: 6px; font-size: 15px; color: var(--grey); }
.sedes-sec.is-fijo .sedes-pista { height: var(--pista, 310svh); }
.sedes-sec.is-fijo .sedes-fijo { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-block: var(--hd) 0; }
.sedes-sec.is-fijo .sedes-grid { width: min(var(--box), calc(100% - 2 * var(--gutter))); }
.sedes-sec.is-fijo .sede { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility .55s; }
.sedes-sec.is-fijo .sede.is-activo { opacity: 1; visibility: visible; transform: none; }
.sedes-sec.is-fijo .sedes-lista { min-height: min(82svh, 820px); }
.sedes-sec.is-fijo .sede__fig { width: min(100%, 40svh); }

/* ---------- 11. Estándar · tarjetas en «D» (Heliox v5), a sangre ---------- */
.acp { margin-top: var(--sec); }
.acp__card-sec { --x: max(var(--gutter), calc((100% - var(--box)) / 2)); position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background: var(--paper-2); transition: color .5s var(--expo); }
.acp.is-viva .acp__card-sec { color: #fff; }
.acp__fondos { position: absolute; inset: 0; z-index: -1; background: var(--ink); opacity: 0; transition: opacity .6s var(--expo); }
.acp.is-viva .acp__fondos { opacity: 1; }
.acp__fondo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .8s var(--expo); }
.acp__fondo.is-activo { opacity: 1; }
.acp__in { padding: clamp(80px, 8vw, 144px) 0 clamp(64px, 6vw, 112px); }
.acp__cab { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 34fr); gap: 4vw; align-items: end; margin: 0 var(--x) clamp(40px, 4.2vw, 72px); padding-bottom: clamp(20px, 2vw, 32px); border-bottom: 1px solid currentColor; }
.acp__h { font-size: clamp(34px, 4.1vw, 76px); line-height: 1.02; letter-spacing: -.042em; font-weight: 330; max-width: 14ch; }
.acp__lead { font-size: clamp(18px, 1.35vw, 23px); line-height: 1.38; letter-spacing: -.015em; opacity: .8; max-width: 26em; }
.acp__l { display: flex; margin: 0; padding: 0 var(--x); }
.acp__it { flex: 1 1 0; min-width: 0; display: flex; }
.acp__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; aspect-ratio: 26.6 / 32; padding: 4vw; border: 1px solid currentColor; border-radius: 0 9999px 9999px 0; color: inherit; cursor: pointer; transition: background-color .4s var(--expo), color .4s var(--expo), border-color .4s var(--expo), transform .25s cubic-bezier(.2, .8, .2, 1); }
.acp__card:hover { background: rgba(255, 255, 255, .08); }
.acp__card:active { transform: scale(.985); transition-duration: .1s; }
.acp__card.is-activa { background: #fff; color: var(--ink); border-color: var(--ink); }
.acp__card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.acp__t { max-width: 15vw; font-size: clamp(26px, 2.4vw, 44px); line-height: 1; letter-spacing: -.035em; font-weight: 400; }
.acp__t span { display: block; margin-top: .5em; font-size: clamp(16px, 1.25vw, 21px); font-weight: 300; letter-spacing: -.01em; line-height: 1.2; opacity: .85; }
.acp__pie { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.5vw, 24px); }
.acp__d { max-width: 15vw; font-size: max(15px, 1.05vw); line-height: 1.45; }
.acp__cert { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 1px currentColor; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .4s var(--expo), color .4s var(--expo), box-shadow .4s var(--expo); }
.acp__card.is-activa .acp__cert { background: var(--blue); color: #fff; box-shadow: none; }

/* ---------- 12. Contacto (Emecubo V3) ---------- */
.cta { padding-bottom: var(--sec); }
.cta__title { max-width: 15ch; font-size: clamp(44px, 5.8vw, 112px); }
.cta__grid { margin-top: clamp(56px, 6vw, 104px); row-gap: 48px; align-items: start; }
.form { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.form__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
.campo { display: grid; gap: 6px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: 13px; color: var(--mute); }
.campo__opcional { color: var(--soft); }
.campo input:not([type="checkbox"]), .campo textarea { width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 19px; letter-spacing: -.01em; transition: border-color .25s; }
.campo textarea { resize: vertical; min-height: 92px; line-height: 1.4; }
.campo input:hover, .campo textarea:hover { border-bottom-color: var(--ink); }
.campo input:focus-visible, .campo textarea:focus-visible { outline: none; border-bottom: 2px solid var(--blue); padding-bottom: 9px; }
.campo.is-error input, .campo.is-error textarea { border-bottom-color: #B42318; }
.campo__error { font-size: 13px; color: #B42318; }
.campo__error:empty { display: none; }
.campo--check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.campo--check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.campo--check label { font-size: 14px; color: var(--grey); }
.campo--check label a { text-decoration: underline; text-underline-offset: 3px; }
.campo--check .campo__error { grid-column: 2; }
.form__pie { margin-top: 36px; display: grid; gap: 16px; justify-items: start; }
.arrow-link--btn { font-size: clamp(19px, 1.5vw, 26px); letter-spacing: -.02em; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.form__aviso { font-size: 15px; color: var(--blue); }
.contact { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.contact:nth-of-type(odd) { grid-column: 7 / span 3; }
.contact:nth-of-type(even) { grid-column: 10 / span 3; }
.contact__area { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.contact__name { font-size: clamp(19px, 1.5vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.contact__dato { font-size: 15px; color: var(--grey); }

/* ---------- 13. Pie (Emecubo V3 + Tempus en grande) ---------- */
.ft { padding-bottom: 0; overflow: hidden; }
.ft__top { row-gap: 32px; align-items: start; padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--line-strong); }
.ft__logo { grid-column: 1 / span 2; width: 150px; }
.ft__logo img { width: 100%; height: auto; }
.ft__claim { grid-column: 4 / span 3; font-size: 15px; line-height: 1.5; color: var(--mute); }
.ft__nav { grid-column: 7 / span 3; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ft__legal { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--mute); }
.ft__nav a:hover, .ft__legal a:hover { color: var(--blue); }
.ft__bar { margin-top: clamp(56px, 6vw, 96px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--mute); }
.ft__marca { margin-top: clamp(40px, 5vw, 80px); padding-inline: var(--gutter); line-height: 0; }
.ft__marca img { width: 100%; height: auto; opacity: .07; margin-bottom: -1.2%; }

/* ---------- 14. Responsive (cortes de Emecubo V3) ---------- */
@media (max-width: 1100px) {
  .hd__nav { grid-column: 4 / span 9; gap: 20px; }
  .work__head > h2 { grid-column: 1 / -1; }
  .filters { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; flex-wrap: wrap; }
  .sectores__l { grid-column: 1 / span 7; }
  .sectores__visor { grid-column: 8 / span 5; }
  .clientes-banda__h { grid-column: 1 / -1; }
  .perfiles { grid-column: 1 / -1; }
  .ficha__title { grid-column: 1 / span 6; }
  .ficha__place { grid-column: 7 / span 3; }
  .ficha__media { grid-column: 1 / span 7; }
  .ficha__info { grid-column: 8 / span 5; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos__c:not(:nth-child(3n + 1)) { border-left: 0; }
  .logos__c:nth-child(even) { border-left: 1px solid var(--line); }
  .sedes-sec.is-fijo .sedes-pista { height: auto; }
  .sedes-sec.is-fijo .sedes-fijo { position: static; height: auto; display: block; padding-top: var(--sec); }
  .sedes-sec.is-fijo .sede { position: static; opacity: 1; visibility: visible; transform: none; }
  .sedes-sec.is-fijo .sedes-lista { min-height: 0; }
  .sedes-sec.is-fijo .sede__fig { width: 100%; }
  .sedes-txt { grid-column: 1 / -1; margin-bottom: 48px; }
  .sedes-lista { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--gap); }
  .sede + .sede { margin-top: 0; }
  .sedes-idx { display: none; }
  .acp__in { padding: 64px 0 56px; }
  .acp__cab { grid-template-columns: 1fr; gap: 20px; margin: 0 var(--gutter) 40px; }
  .acp__l { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .acp__l::-webkit-scrollbar { display: none; }
  .acp__it { flex: 0 0 auto; scroll-snap-align: start; }
  .acp__card { width: 44vw; height: 56vw; aspect-ratio: auto; padding: 5vw; }
  .acp__t { font-size: 3.4vw; max-width: 26vw; }
  .acp__d { max-width: 26vw; }
  .form { grid-column: 1 / -1; grid-row: auto; }
  .contact:nth-of-type(odd) { grid-column: 1 / span 6; }
  .contact:nth-of-type(even) { grid-column: 7 / span 6; }
}

@media (max-width: 860px) {
  .tz { height: 260vh; }
  .tz__pie { justify-content: center; }
  .tz__pie .arrow-link { display: none; }
  :root { --hd: 64px; }
  .hd__logo { grid-column: 1 / span 6; width: 128px; }
  .hd__toggle { display: grid; grid-column: 12; justify-self: end; width: 40px; height: 40px; place-content: center; gap: 7px; margin-right: -8px; }
  .hd__toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
  .hd.is-open .hd__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .hd.is-open .hd__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .hd__nav { position: fixed; inset: var(--hd) 0 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 40px var(--gutter); background: var(--paper); font-size: 40px; letter-spacing: -.04em; font-weight: 330; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .hd.is-open .hd__nav { opacity: 1; visibility: visible; }
  .hd__nav > a::after { display: none; }
  .hd__cta svg { width: 32px; height: 14px; }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sec__head > h2, .work__head > h2, .sec__lead, .filters, .facts__text { grid-column: 1 / -1; }
  .facts__t { grid-column: 1 / -1; margin: 0 0 20px; width: 32px; }
  .sectores__l { grid-column: 1 / -1; }
  .sectores__visor { display: none; }
  .sector { grid-template-columns: minmax(0, 1fr) 64px; grid-template-rows: auto auto; row-gap: 4px; align-items: center; }
  .sector__n { grid-column: 1; grid-row: 1; color: var(--ink); }
  .sector.is-on .sector__n { transform: none; }
  .sector__m { grid-column: 1; grid-row: 2; text-align: left; }
  .sector__thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; }
  .perfiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }



  .ficha { position: relative; top: auto; height: auto; padding-bottom: 56px; }
  .ficha__tab { height: auto; padding: 18px 0; grid-template-columns: 1fr auto; column-gap: 16px; }
  .ficha__title { grid-column: auto; }
  .ficha__place, .ficha__sector { display: none; }
  .ficha__go { grid-column: auto; }
  .ficha__body { display: flex; flex-direction: column; gap: 24px; padding: 0; }
  .ficha__media { aspect-ratio: 4 / 3; }
  .ficha__info { gap: 24px; }

  .logos { grid-template-columns: 1fr; }
  .logos__c:nth-child(even) { border-left: 0; }
  .logos__c { min-height: 0; }
  .sedes-lista { grid-template-columns: 1fr; }
  .sede__fig { max-width: 520px; }

  .acp__card { width: 80vw; height: 104vw; padding: 30px; }
  .acp__t { font-size: 28px; max-width: 52vw; }
  .acp__d { max-width: 52vw; }

  .form__campos { grid-template-columns: 1fr; }
  .contact:nth-of-type(odd), .contact:nth-of-type(even) { grid-column: 1 / -1; }
  .ft__logo, .ft__claim { grid-column: 1 / -1; }
  .ft__nav { grid-column: 1 / span 3; }
  .ft__legal { grid-column: 4 / span 3; }
}

@media (max-width: 560px) {
  .t-display { font-size: clamp(40px, 12vw, 60px); }
  .cta__title { font-size: clamp(36px, 10.5vw, 52px); }
  .spec > div { grid-template-columns: 7.5em 1fr; }
  .ft__nav, .ft__legal { grid-column: 1 / -1; }
}

/* ---------- 15. Movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.v3-static *, .v3-static *::before, .v3-static *::after { transition: none !important; animation: none !important; }
