/* Sico-Enginy · sistema visual v2
   Colores del vectorizado de Jocelyn: azul #15304D (logo), azul fondo #19314B, verde #2E8540.
   Reglas: verde como texto solo sobre blanco; sobre azul, verde suave #8FD19E. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #15304D;
  --navy-deep: #19314B;
  --navy-ink: #0E2136;
  --green: #2E8540;
  --green-soft: #8FD19E;
  --ink: #15304D;
  --ink-2: #4A5A6C;
  --on-dark-2: #B9C6D3;
  --line: #DCE2E8;
  --line-dark: rgba(255, 255, 255, 0.18);
  --mist: #F2F5F7;
  --white: #FFFFFF;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.3rem + 3vw, 4rem);
  --step-4: clamp(2.9rem, 1.3rem + 5.4vw, 6.4rem);

  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5.5rem, 3rem + 9vw, 11rem);
  --radius: 22px;
  --header: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .site-header.over :focus-visible { outline-color: var(--green-soft); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 0.75rem; z-index: 30; background: var(--white); color: var(--navy); padding: 0.6rem 1rem; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Cabecera ── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease); background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.4) blur(16px); } }
.site-header.over:not(.is-scrolled) { background: transparent; box-shadow: none; backdrop-filter: none; color: var(--white); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header); }
.brand { flex: none; display: block; width: 176px; position: relative; }
.brand img { width: 100%; }
.brand .logo-light { position: absolute; inset: 0; opacity: 0; }
.site-header.over:not(.is-scrolled) .brand .logo-light { opacity: 1; }
.site-header.over:not(.is-scrolled) .brand .logo-dark { opacity: 0; }
.nav { display: flex; align-items: center; gap: 2.25rem; margin-left: auto; }
.nav-links { display: flex; gap: 2rem; font-size: var(--step--1); font-weight: 500; }
.nav-links a { text-decoration: none; padding: 0.5rem 0; }
.nav-links a:hover { text-decoration: underline; }
/* Selector de idioma desplegable */
.lang-menu { position: relative; font-size: 0.875rem; font-weight: 600; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.85rem; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1px currentColor; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu .chev { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 200px; padding: 0.4rem; background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: 0 18px 50px rgba(14, 33, 54, 0.18), 0 0 0 1px var(--line); z-index: 5; }
.lang-menu li a { display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 10px; text-decoration: none; font-weight: 500; }
.lang-menu li a:hover { background: var(--mist); }
.lang-menu li a[aria-current="true"] { background: var(--mist); font-weight: 600; }
.lang-menu .code { width: 1.9rem; font-size: 0.75rem; font-weight: 700; color: var(--green); }
.menu-toggle { display: none; }

.btn { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: var(--step--1); text-decoration: none; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--green); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--green-soft); }
.btn-outline-light { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-ghost { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost:hover { background: var(--mist); }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.nav .btn { min-height: 44px; padding: 0.55rem 1.15rem; }
.site-header.over:not(.is-scrolled) .nav .btn { background: var(--white); color: var(--navy); }

/* ── Hero a sangre ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy-ink); }
.hero-media, .hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.video-toggle { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(2rem, 1.5rem + 2vw, 3rem); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.14); color: var(--white); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.video-toggle:hover { background: rgba(255, 255, 255, 0.24); }
.video-toggle .i-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.video-toggle .i-play { display: none; width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-media img { object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(14, 33, 54, 0.6) 0, rgba(14, 33, 54, 0) 22%),
    linear-gradient(90deg, rgba(14, 33, 54, 0.92) 0%, rgba(14, 33, 54, 0.7) 38%, rgba(14, 33, 54, 0.2) 75%, rgba(14, 33, 54, 0.1) 100%),
    linear-gradient(0deg, rgba(14, 33, 54, 0.85) 0%, rgba(14, 33, 54, 0) 45%); }
.hero-content { position: relative; z-index: 1; padding: calc(var(--header) + 3rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
.hero h1 { font-size: var(--step-4); font-weight: 650; letter-spacing: -0.045em; line-height: 0.98; max-width: 13ch; }
.hero-lead { margin-top: 1.75rem; max-width: 40ch; font-size: var(--step-1); line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.hero-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-top: 1px solid var(--line-dark); }
.hero-index a { display: block; padding: 1rem 1rem 0.25rem 0; font-size: var(--step--1); font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, 0.86); }
.hero-index a:hover { color: var(--white); text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { transform: scale(1.08); animation: settle 2.6s var(--ease) forwards; }
  .hero h1, .hero-lead, .hero-actions, .hero-index { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
  .hero h1 { animation-delay: 0.25s; }
  .hero-lead { animation-delay: 0.4s; }
  .hero-actions { animation-delay: 0.52s; }
  .hero-index { animation-delay: 0.7s; }
}
@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Secciones ── */
.section { padding: var(--section) 0; }
.section-title { font-size: var(--step-3); max-width: 16ch; }

/* Dos mercados */
.markets-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem var(--gutter); align-items: start; }
.markets-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.market h3 { font-size: var(--step-2); letter-spacing: -0.02em; padding-bottom: 1.25rem; border-bottom: 2px solid var(--navy); }
.market li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* Pilares */
.pillars { padding-top: 0; }
.pillars-head { display: flex; justify-content: space-between; align-items: end; gap: var(--gutter); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.pillars-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); }
.pillar { position: relative; overflow: hidden; border-radius: var(--radius); min-height: clamp(460px, 42vw, 640px); color: var(--white); background: var(--navy-deep); display: flex; align-items: flex-end; isolation: isolate; }
.pillar picture, .pillar img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pillar img { object-fit: cover; z-index: -2; }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 33, 54, 0.96) 0%, rgba(14, 33, 54, 0.82) 34%, rgba(14, 33, 54, 0.1) 72%); }
.pillar-body { padding: clamp(1.75rem, 1rem + 2.5vw, 3rem); width: 100%; }
.pillar h3 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 14ch; }
.pillar-brand h3 { max-width: 12ch; }
.pillar ul { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 1px solid var(--line-dark); }
.pillar li { padding: 0.8rem 0; border-bottom: 1px solid var(--line-dark); font-size: var(--step--1); color: rgba(255, 255, 255, 0.9); }
.pillar-mark { position: absolute; z-index: -2; top: -8%; right: -10%; width: 72%; opacity: 0.9; }
.pillar-mark svg { width: 100%; }
.pillar-brand { background: linear-gradient(118deg, #15304D 0%, #19314B 34%, #2E8540 100%); }
.pillar-brand::before { background: linear-gradient(0deg, rgba(14, 33, 54, 0.72) 0%, rgba(14, 33, 54, 0.35) 40%, rgba(14, 33, 54, 0) 70%); }
.pillar-brand::before { z-index: -2; }
.pillar-brand .pillar-mark { z-index: -1; top: clamp(1.75rem, 1rem + 2.5vw, 3rem); right: clamp(1.75rem, 1rem + 2.5vw, 3rem); width: min(27%, 190px); opacity: 1; transition: transform 1.6s cubic-bezier(0.32, 0.72, 0, 1); }
.pillar-brand:hover .pillar-mark { transform: rotate(-6deg) scale(1.03); }

/* Cifras */
.facts { background: var(--navy-deep); color: var(--white); padding: var(--section) 0 calc(var(--section) * 0.75); }
.facts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.facts-list li { border-top: 1px solid var(--line-dark); padding-top: 1.75rem; }
.fact-n { display: block; font-size: clamp(3.2rem, 1.8rem + 5vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.fact-t { display: block; margin-top: 1.25rem; color: var(--on-dark-2); max-width: 24ch; }
.facts-note { margin-top: 3rem; font-size: 0.875rem; color: var(--on-dark-2); }

/* Clientes y colaboraciones · carrusel continuo */
.clients { overflow: hidden; }
.clients-head { display: flex; justify-content: space-between; align-items: end; gap: var(--gutter); }
.client-row { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.client-row + .client-row { margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }
.client-label { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--green); margin-bottom: 1rem; }
.marquee { --gap: clamp(0.75rem, 0.5rem + 0.6vw, 1.25rem); display: flex; gap: var(--gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; flex: none; gap: var(--gap); min-width: 100%; justify-content: space-around; padding: 0.5rem 0; }
.marquee-track[aria-hidden="true"] { display: none; }
.logo-tile { flex: none; width: clamp(200px, 15vw + 90px, 280px); height: clamp(104px, 5vw + 76px, 136px); display: grid; place-content: center; text-align: center; gap: 0.2rem;
  padding: 1rem 1.25rem; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--line);
  color: var(--ink-2); transition: transform 0.7s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.7s cubic-bezier(0.32, 0.72, 0, 1), color 0.5s cubic-bezier(0.32, 0.72, 0, 1); }
.logo-tile .n { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.logo-tile.inst .k { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.logo-tile.inst .n { font-size: clamp(1rem, 0.9rem + 0.35vw, 1.2rem); color: var(--navy); }
.logo-tile img { max-width: 100%; max-height: 56px; width: auto; height: auto; filter: grayscale(1); opacity: 0.82; transition: filter 0.6s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1); }
.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 22px 44px -18px rgba(14, 33, 54, 0.28); color: var(--navy); }
.logo-tile:hover img { filter: none; opacity: 1; }
.clients-note { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-2); }
.marquee-toggle { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--mist); color: var(--navy); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.marquee-toggle:hover { background: var(--line); }
.marquee-toggle .i-pause, .marquee-toggle .i-play { display: block; }
.marquee-toggle .i-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.marquee-toggle .i-play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.marquee-toggle[aria-pressed="false"] .i-play, .marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
/* Sin movimiento (preferencia del sistema o sin JS): rejilla estática */
.marquee { flex-wrap: wrap; }
.marquee-track { flex-wrap: wrap; justify-content: center; }
.motion .marquee { flex-wrap: nowrap; }
.motion .marquee-track { flex-wrap: nowrap; justify-content: space-around; animation: marquee var(--dur, 60s) linear infinite; will-change: transform; }
.motion .marquee-track[aria-hidden="true"] { display: flex; }
.motion .client-row.reverse .marquee-track { animation-direction: reverse; --dur: 80s; }
.motion .marquee:hover .marquee-track, .motion .marquee:focus-within .marquee-track, .clients.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(calc(-100% - var(--gap)), 0, 0); } }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.member { border-top: 2px solid var(--navy); padding-top: 1.75rem; }
.member h3 { font-size: var(--step-2); letter-spacing: -0.025em; }
.member .area { margin-top: 0.5rem; color: var(--green); font-weight: 600; }
.member .links { margin-top: 1.25rem; display: grid; gap: 0.3rem; font-size: var(--step--1); color: var(--ink-2); }
.member .links a { overflow-wrap: anywhere; }

/* Contacto */
.contact { background: var(--navy-deep); color: var(--white); padding: var(--section) 0; overflow: hidden; position: relative; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; position: relative; z-index: 1; }
.contact h2 { font-size: clamp(4rem, 2rem + 10vw, 12rem); letter-spacing: -0.06em; line-height: 0.9; }
.contact-lead { margin-top: 1.75rem; color: var(--on-dark-2); font-size: var(--step-1); }
.contact .btn { margin-top: 2.25rem; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 0.15rem; }
.contact-list .who { font-weight: 600; }
.contact-list a { color: var(--on-dark-2); font-size: var(--step--1); }
.contact-list a:hover { color: var(--white); }
.contact-address { margin-top: 1.5rem; color: var(--on-dark-2); font-size: var(--step--1); }

/* Pie */
.site-footer { background: var(--navy-ink); color: var(--on-dark-2); padding: 3.5rem 0 2.5rem; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.footer-brand img { width: 196px; }
.footer-brand p { margin-top: 1.25rem; max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--white); padding: 0.4rem 0; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.footer-bottom a { color: var(--white); }

/* Página interior */
.page { padding: calc(var(--header) + clamp(3rem, 2rem + 5vw, 6rem)) 0 var(--section); }
.page h1 { font-size: var(--step-3); max-width: 20ch; }
.prose { margin-top: 3rem; max-width: 70ch; }
.prose h2 { font-size: var(--step-1); margin-top: 2.5rem; letter-spacing: -0.01em; }
.prose p { margin-top: 0.75rem; color: var(--ink-2); }
.page .btn { margin-top: 3rem; }

/* Responsive */
@media (max-width: 1080px) {
  .markets-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  :root { --header: 72px; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - var(--header)); overflow: auto; }
  .nav.is-open { display: flex; }
  .site-header.over:not(.is-scrolled):has(.nav.is-open) { background: var(--white); color: var(--ink); }
  .site-header.over:not(.is-scrolled):has(.nav.is-open) .brand .logo-light { opacity: 0; }
  .site-header.over:not(.is-scrolled):has(.nav.is-open) .brand .logo-dark { opacity: 1; }
  .nav-links { flex-direction: column; gap: 0; font-size: var(--step-1); }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .lang-menu { margin-top: 1.25rem; }
  .lang-menu ul { position: static; box-shadow: none; padding: 0.5rem 0 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header.over:not(.is-scrolled) .nav .btn, .nav .btn { margin-top: 1.25rem; justify-content: center; background: var(--navy); color: var(--white); }
  .menu-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0.5rem 1.1rem; border: 0; border-radius: 999px; background: var(--mist); color: var(--navy); font: inherit; font-weight: 600; font-size: var(--step--1); cursor: pointer; }
  .hero-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .markets-cols, .pillars-grid, .contact-grid, .footer-grid, .team-grid, .facts-list { grid-template-columns: minmax(0, 1fr); }
  .pillar ul { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .pillars-head { flex-direction: column; align-items: start; }
  .pillar-brand .pillar-mark { width: 62%; top: 5%; right: -6%; opacity: 0.22; }
  .hero-index { display: none; }
  .video-toggle { bottom: auto; top: calc(var(--header) + 0.75rem); }
}
@media (max-width: 560px) {
  .brand { width: 148px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .hero-media, .menu-toggle { display: none; }
  .hero, .facts, .contact, .pillar { background: none; color: #000; min-height: 0; }
}

/* Enlaces legales del pie */
.legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.legal-links a, .linklike { color: var(--white); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; cursor: pointer; }
.page .updated { margin-top: 1rem; color: var(--ink-2); font-size: var(--step--1); }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.cookie-table th { text-align: left; font-weight: 600; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--navy); }
.cookie-table td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }

/* Panel de privacidad (solo si hay analítica) */
.consent { position: fixed; z-index: 40; left: var(--gutter); bottom: var(--gutter); width: min(440px, calc(100% - 2 * var(--gutter))); padding: 1.6rem; border-radius: var(--radius); background: var(--navy-deep); color: var(--white); box-shadow: 0 24px 60px rgba(14, 33, 54, 0.35); }
.consent[hidden] { display: none; }
.consent h2 { font-size: var(--step-1); letter-spacing: -0.015em; }
.consent p { margin-top: 0.6rem; color: var(--on-dark-2); font-size: var(--step--1); line-height: 1.5; }
.consent a { color: var(--white); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-top: 1.25rem; }
.consent-actions .btn { min-height: 46px; padding: 0.65rem 1.3rem; flex: 1 1 8rem; justify-content: center; }
.consent-actions .linklike { flex-basis: 100%; text-align: left; font-size: var(--step--1); color: var(--on-dark-2); }
.consent-panel { margin-top: 1.1rem; border-top: 1px solid var(--line-dark); }
.consent-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); }
.consent-row p { margin-top: 0.2rem; }
.consent-row .on { font-size: 0.8125rem; color: var(--green-soft); white-space: nowrap; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); position: relative; cursor: pointer; transition: background-color 0.25s var(--ease); margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform 0.25s var(--ease); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: rise 0.6s var(--ease) both; }
}
button.btn { font: inherit; font-size: var(--step--1); font-weight: 600; border: 0; cursor: pointer; }
.btn-outline-light { background: transparent; }
.consent [hidden] { display: none !important; }

/* ───────── Movimiento v7 · solo si el visitante no pide menos movimiento (la clase .motion la pone el JS) ───────── */
:root { --spring: cubic-bezier(0.32, 0.72, 0, 1); --expo: cubic-bezier(0.16, 1, 0.3, 1); }
.motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.14em; margin: 0 -0.04em -0.14em; }
.motion [data-split] .wi { display: inline-block; transform: translate3d(0, 108%, 0) rotate(4deg); transform-origin: 0 100%; opacity: 0; filter: blur(8px);
  transition: transform 1.25s var(--expo), opacity 0.9s var(--expo), filter 1.1s var(--expo); }
.motion [data-split].in .wi { transform: none; opacity: 1; filter: none; }
.motion .hero h1 { opacity: 1; transform: none; animation: none; }
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--expo), transform 1.2s var(--expo); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .client-row[data-reveal] { transform: translate3d(6%, 0, 0); }
.motion .client-row.reverse[data-reveal] { transform: translate3d(-6%, 0, 0); }
.motion .client-row[data-reveal].in { transform: none; }
.motion .pillar { opacity: 0; transform: translate3d(0, 48px, 0) scale(0.96); transition: opacity 1.2s var(--expo), transform 1.4s var(--expo); }
.motion .pillar.in { opacity: 1; transform: none; }
.motion .pillar img { transform: scale(1.14); transition: transform 2.2s var(--expo); }
.motion .pillar.in img { transform: scale(1); }
.motion .pillar-brand .pillar-mark { opacity: 0; transform: rotate(-14deg) scale(0.86); transition: opacity 1.6s var(--expo) 0.25s, transform 2s var(--expo) 0.25s; }
.motion .pillar-brand.in .pillar-mark { opacity: 1; transform: none; }
.motion .pillar-brand.in:hover .pillar-mark { transform: rotate(-6deg) scale(1.03); }
.pillar img { transition: transform 1.6s var(--spring); }
.pillar:hover img { transform: scale(1.04); }
@supports (animation-timeline: view()) {
  .motion .pillar.in img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes drift { from { translate: 0 -3%; } to { translate: 0 3%; } }
}
.motion .fact-n { overflow: hidden; }
@media (max-width: 720px) {
  .motion .pillar-brand.in .pillar-mark { opacity: 0.22; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
.motion .pillar.in:hover img { transform: scale(1.04); }

/* Clientes v8: logotipos oficiales (carrusel) y muro tipográfico de empresas */
.clients > .client-label { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); margin-bottom: 0.25rem; }
.clients > .client-label + .client-row { margin-top: 0.75rem; }
.logo-tile.has-logo { padding: 1.1rem 1.6rem; }
.logo-tile.has-logo img { max-height: 58px; max-width: 100%; }
.namewalls { margin-top: clamp(4rem, 3rem + 4vw, 7rem); display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.namewall-group .client-label { margin-bottom: 1.25rem; }
.namewall { display: flex; flex-wrap: wrap; column-gap: 0.45em; row-gap: 0.08em; font-size: clamp(1.9rem, 1.1rem + 3vw, 4.25rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.12; color: var(--navy); }
.namewall li { display: inline-flex; align-items: center; gap: 0.45em; }
.namewall li:not(:last-child)::after { content: ""; flex: none; width: 0.14em; height: 0.14em; border-radius: 50%; background: var(--green); transform: translateY(0.1em); }
.namewall li span { transition: color 0.9s var(--expo, cubic-bezier(0.16, 1, 0.3, 1)); }
.namewall li:hover span { color: var(--green); }
.motion .namewall li span { color: #7F8FA0; }
.motion .namewall li.lit span { color: var(--navy); }
.motion .namewall li.lit:hover span { color: var(--green); }
