/* =========================================================
   Xcale Consulting Group — Estilos del sitio
   Paleta y tipografía tomadas del PDF de credenciales 2026.
   ========================================================= */

/* ---------- Tipografías (equivalentes métricos de Cambria y Calibri) ---------- */
@font-face { font-family: "Caladea"; src: url("../fonts/caladea-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/caladea-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/caladea-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/caladea-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/carlito-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/carlito-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/carlito-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/carlito-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --navy: #051c2c;
  --navy-2: #0a2638;
  --navy-3: #0e3346;
  --navy-deep: #03121d;
  --blue: #2f6db5;
  --blue-dark: #245a99;
  --blue-light: #7fb2de;
  --ink: #051c2c;
  --text: #24323e;
  --muted: #5b6875;
  --soft: #f2f5f8;
  --soft-2: #e9eef3;
  --line: #e2e7ec;
  --white: #ffffff;
  --error: #c2413b;

  --serif: "Caladea", Cambria, Georgia, "Times New Roman", serif;
  --sans: "Carlito", Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(84px, 10vw, 140px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --shadow-sm: 0 1px 2px rgba(5, 28, 44, .05), 0 4px 14px rgba(5, 28, 44, .05);
  --shadow-lg: 0 2px 6px rgba(5, 28, 44, .06), 0 24px 48px -12px rgba(5, 28, 44, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 2px; }
html.menu-is-open { overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* respeta el "notch" del celular cuando se usa en horizontal */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--white); color: var(--navy); font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow--light { color: #a9c3da; }
.eyebrow-dot {
  position: relative; flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
}
.eyebrow--light .eyebrow-dot { background: var(--blue-light); }
.eyebrow-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid currentColor; color: var(--blue);
  opacity: 0; animation: dotPulse 2.8s var(--ease) infinite;
}
.eyebrow--light .eyebrow-dot::after { color: var(--blue-light); }
@keyframes dotPulse {
  0% { transform: scale(.5); opacity: .7; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}
.section-title--light { color: var(--white); }
.section-sub {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}
.section-sub--light { color: #b7c7d5; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--text); max-width: 60ch; }
.lead + .lead { margin-top: 1.25em; }
.footnote { margin-top: 44px; font-size: .9375rem; font-style: italic; color: #8792a0; }
.footnote--light { color: #7f93a6; }

/* ---------- Botones ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid transparent; border-radius: 2px;
  overflow: hidden; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary::before { background: var(--navy-3); }
.section--dark .btn--primary::before, .hero .btn--primary::before { background: var(--white); }
.hero .btn--primary:hover, .section--dark .btn--primary:hover,
.hero .btn--primary:focus-visible, .section--dark .btn--primary:focus-visible { color: var(--navy); }

.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--navy); border-color: var(--white); }

.btn--ghost-dark { color: var(--navy); border-color: var(--line); }
.btn--ghost-dark::before { background: var(--navy); }
.btn--ghost-dark:hover, .btn--ghost-dark:focus-visible { color: var(--white); border-color: var(--navy); }

.btn--header {
  min-height: 42px; padding: 0 20px; font-size: .9375rem;
  color: var(--white); border-color: rgba(255, 255, 255, .4);
}
.btn--header::before { background: var(--white); }
.btn--header:hover, .btn--header:focus-visible { color: var(--navy); }
.btn--block { width: 100%; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--navy);
  transition: transform 1s var(--ease-in-out), visibility 0s linear 1s;
}
.no-js .preloader { display: none; }
.preloader-inner { display: grid; justify-items: center; gap: 26px; }
.preloader-logo {
  width: clamp(170px, 22vw, 240px); height: auto;
  clip-path: inset(0 100% 0 0);
  animation: logoWipe 1s var(--ease-out) .15s forwards;
}
.preloader-line {
  display: block; width: clamp(170px, 22vw, 240px); height: 1px;
  background: rgba(255, 255, 255, .15); position: relative; overflow: hidden;
}
.preloader-line::after {
  content: ""; position: absolute; inset: 0; background: var(--blue-light);
  transform: scaleX(0); transform-origin: left;
  animation: lineGrow 1.1s var(--ease-in-out) .2s forwards;
}
@keyframes logoWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes lineGrow { to { transform: scaleX(1); } }
.is-loaded .preloader { transform: translateY(-100%); visibility: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease), transform .55s var(--ease-out);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { position: relative; display: block; flex: none; width: 152px; height: 44px; transition: width .45s var(--ease), height .45s var(--ease); }
.brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s var(--ease); }
.brand-logo--dark { opacity: 0; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.main-nav a {
  position: relative; display: block; padding: 6px 0;
  font-size: .96rem; letter-spacing: .02em; color: rgba(255, 255, 255, .82);
  transition: color .3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.main-nav + .header-actions { margin-left: 8px; }

.lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  transition: border-color .45s var(--ease);
}
.lang-btn {
  position: relative; z-index: 1;
  min-width: 38px; height: 30px; padding: 0 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(255, 255, 255, .7); border-radius: 999px;
  transition: color .35s var(--ease);
}
.lang-btn.is-active { color: var(--navy); }
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--white);
  transition: transform .45s var(--ease-out), background-color .45s var(--ease);
}
html[lang="en"] .lang-thumb { transform: translateX(100%); }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out), background-color .45s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }

/* Header al hacer scroll */
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(5, 28, 44, .25);
}
.site-header.is-scrolled .brand { width: 132px; height: 38px; }
.site-header.is-scrolled .brand-logo--light { opacity: 0; }
.site-header.is-scrolled .brand-logo--dark { opacity: 1; }
.site-header.is-scrolled .main-nav a { color: var(--muted); }
.site-header.is-scrolled .main-nav a:hover, .site-header.is-scrolled .main-nav a.is-active { color: var(--navy); }
.site-header.is-scrolled .lang-switch { border-color: var(--line); }
.site-header.is-scrolled .lang-btn { color: var(--muted); }
.site-header.is-scrolled .lang-btn.is-active { color: var(--white); }
.site-header.is-scrolled .lang-thumb { background: var(--navy); }
.site-header.is-scrolled .btn--header { color: var(--white); background: var(--navy); border-color: var(--navy); }
.site-header.is-scrolled .btn--header::before { background: var(--blue); }
.site-header.is-scrolled .menu-toggle span { background: var(--navy); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 36px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  background: var(--navy);
  clip-path: circle(0 at calc(100% - var(--gutter) - 22px) 42px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s linear .8s;
  overflow-y: auto;
}
.mobile-menu ol { display: grid; gap: 4px; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px; padding: 8px 0;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.2; color: var(--white);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out), color .3s var(--ease);
}
.mobile-menu a small { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; color: var(--blue-light); }
.mobile-menu a:hover { color: var(--blue-light); }
.mobile-menu-foot { display: grid; gap: 6px; margin-top: 32px; color: #9fb3c5; font-size: 1rem; opacity: 0; transition: opacity .6s var(--ease) .5s; }
.mobile-menu-foot a { all: unset; cursor: pointer; color: var(--white); }

.menu-is-open .mobile-menu { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 42px); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
.menu-is-open .mobile-menu a { opacity: 1; transform: none; }
.menu-is-open .mobile-menu li:nth-child(1) a { transition-delay: .25s; }
.menu-is-open .mobile-menu li:nth-child(2) a { transition-delay: .3s; }
.menu-is-open .mobile-menu li:nth-child(3) a { transition-delay: .35s; }
.menu-is-open .mobile-menu li:nth-child(4) a { transition-delay: .4s; }
.menu-is-open .mobile-menu li:nth-child(5) a { transition-delay: .45s; }
.menu-is-open .mobile-menu li:nth-child(6) a { transition-delay: .5s; }
.menu-is-open .mobile-menu li:nth-child(7) a { transition-delay: .55s; }
.menu-is-open .mobile-menu li:nth-child(8) a { transition-delay: .6s; }
.menu-is-open .mobile-menu-foot { opacity: 1; }
.menu-is-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.menu-is-open .site-header .brand-logo--light { opacity: 1; }
.menu-is-open .site-header .brand-logo--dark { opacity: 0; }
.menu-is-open .site-header .menu-toggle span { background: var(--white); }
.menu-is-open .site-header .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-is-open .site-header .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu-is-open .site-header .lang-switch { border-color: rgba(255, 255, 255, .3); }
.menu-is-open .site-header .lang-btn { color: rgba(255, 255, 255, .7); }
.menu-is-open .site-header .lang-btn.is-active { color: var(--navy); }
.menu-is-open .site-header .lang-thumb { background: var(--white); }
.menu-is-open .site-header .scroll-progress { opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 140px;
  background: var(--navy); color: var(--white);
}
.hero-bg {
  position: absolute; inset: -12% 0 -12% 0; z-index: -3;
  background: url("../images/fondos/hero-oportunidad.jpg") 72% 50% / cover no-repeat;
  opacity: .55;
}
.js .hero-bg { transform: scale(1.12); transition: transform 2.6s var(--ease-out); }
.js .is-ready .hero-bg { transform: none; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(47, 109, 181, .18), transparent 70%),
    linear-gradient(90deg, rgba(5, 28, 44, .97) 0%, rgba(5, 28, 44, .9) 38%, rgba(5, 28, 44, .55) 72%, rgba(5, 28, 44, .45) 100%),
    linear-gradient(0deg, var(--navy) 0%, rgba(5, 28, 44, 0) 30%);
}
.hero-overlay::after {
  /* textura de grano muy sutil */
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Formas inspiradas en el trapecio del logo */
.hero-shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shape {
  position: absolute; display: block;
  clip-path: polygon(0 0, 100% 0, 24.7% 100%, 0 100%);
  opacity: 0;
}
.shape--1 {
  right: 9%; top: 16%; width: clamp(200px, 22vw, 340px); aspect-ratio: 231 / 392;
  background: linear-gradient(170deg, rgba(127, 178, 222, .22), rgba(127, 178, 222, 0) 85%);
}
.shape--2 {
  right: calc(9% + clamp(120px, 13vw, 210px)); top: 30%; width: clamp(110px, 12vw, 180px); aspect-ratio: 231 / 392;
  background: linear-gradient(170deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 80%);
}
.shape--3 {
  right: calc(9% - 34px); top: calc(16% + clamp(120px, 15vw, 230px)); width: 46px; aspect-ratio: 231 / 392;
  background: var(--blue-light); opacity: 0;
}
.is-ready .shape { transition: opacity 1.4s var(--ease) .6s, transform 1.6s var(--ease-out) .6s; }
.is-ready .shape--1 { opacity: 1; animation: floatA 11s ease-in-out 2.2s infinite; }
.is-ready .shape--2 { opacity: 1; transition-delay: .8s; animation: floatB 13s ease-in-out 2.4s infinite; }
.is-ready .shape--3 { opacity: .85; transition-delay: 1s; animation: floatA 9s ease-in-out 2.6s infinite reverse; }
.js .shape { transform: translateY(60px); }
.js .is-ready .shape { transform: none; }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 10px 14px; } }

.hero-content { position: relative; }
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.3rem, 1.15rem + 3.5vw, 4.35rem);
  line-height: 1.08; letter-spacing: -.015em;
  max-width: 21ch; margin-top: 6px;
  text-wrap: balance;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .w > span { display: inline-block; }
.js .hero-title .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out) calc(.3s + var(--i) * 45ms); }
.js .is-ready .hero-title .w > span { transform: none; }
.js .hero-title:not(.is-split) { opacity: 0; }

.hero-sub { margin-top: 30px; max-width: 58ch; font-size: clamp(1.0625rem, 1rem + .45vw, 1.3rem); color: #c3d2df; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.js .hero-anim { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js .is-ready .hero-anim { opacity: 1; transform: none; }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 34px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  font-size: .875rem; letter-spacing: .06em; color: rgba(255, 255, 255, .55);
}
.hero-tag { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px;
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.scroll-cue i { position: relative; display: block; width: 1px; height: 54px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--white);
  animation: scrollLine 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section-y); scroll-margin-top: 60px; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: #c9d6e2; isolation: isolate; overflow: hidden; }
.section-bg {
  position: absolute; inset: -14% 0; z-index: -2;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform;
}
.section-veil { position: absolute; inset: 0; z-index: -1; }
.section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
.section-head--split .eyebrow { grid-column: 1 / -1; justify-self: start; }
.section-head--split .section-sub { margin-top: 0; padding-bottom: .45em; padding-left: 28px; border-left: 1px solid var(--line); }
.section--dark .section-head--split .section-sub { border-left-color: rgba(255, 255, 255, .16); }
p { text-wrap: pretty; }

/* 2 · Quiénes somos */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about-text .section-title { margin-bottom: 34px; }
.stats { display: grid; gap: 20px; }
.stat {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(118px, auto) 1fr; align-items: center; gap: 26px;
  padding: 32px 36px; background: var(--soft);
  transition: background-color .45s var(--ease), transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out);
}
.stat:hover { background: var(--white); box-shadow: var(--shadow-lg); transform: translateX(-6px); }
.stat:hover::before { transform: scaleY(1); transform-origin: top; }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 2.2rem + 2.2vw, 4.25rem); line-height: 1; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-plus { color: var(--blue); font-size: .55em; margin-left: 4px; vertical-align: .2em; }
.stat-label { font-size: 1.0625rem; line-height: 1.45; color: var(--muted); }

/* 3 · El desafío */
.challenge-bg { background-image: url("../images/fondos/desafio-camino.jpg"); opacity: .5; filter: grayscale(.2); }
.challenge .section-veil { background: linear-gradient(100deg, rgba(5, 28, 44, .97) 0%, rgba(5, 28, 44, .86) 48%, rgba(5, 28, 44, .6) 100%); }
.challenge .section-title { max-width: 30ch; }
.challenge-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.challenge-text p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.75; color: #c9d6e2; max-width: 58ch; }
.challenge-text p + p { margin-top: 1.4em; }
.risk-box {
  position: relative; padding: clamp(36px, 4vw, 52px);
  background: rgba(14, 51, 70, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.risk-box::before, .risk-box::after { content: ""; position: absolute; background: var(--blue-light); transition: transform 1.2s var(--ease-out) .5s; }
.risk-box::before { left: 0; top: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; }
.risk-box::after { left: 0; top: 0; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
.risk-box.is-visible::before { transform: scaleX(1); }
.risk-box.is-visible::after { transform: scaleY(1); }
.no-js .risk-box::before { transform: scaleX(1); }
.no-js .risk-box::after { transform: scaleY(1); }
.risk-mark { width: 44px; height: 33px; fill: var(--blue-light); opacity: .35; margin-bottom: 22px; }
.risk-q1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.25; color: var(--white); }
.risk-q2 { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); line-height: 1.35; color: var(--blue-light); }

/* 4 · Qué hacemos */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.service-card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  padding: 42px 36px 46px;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 109, 181, .09), transparent 60%);
  transition: opacity .4s var(--ease);
}
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  transition: background-color .45s var(--ease), transform .6s var(--ease-out);
}
.service-card:hover .service-num { background: var(--blue); transform: rotate(-8deg) scale(1.06); }
.service-card h3 { margin: 28px 0 26px; font-family: var(--sans); font-weight: 700; font-size: 1.375rem; line-height: 1.3; color: var(--ink); }
.ticks li { position: relative; padding-left: 22px; font-size: 1.0rem; line-height: 1.5; color: var(--text); }
.ticks li + li { margin-top: 14px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* 5 · Cómo trabajamos */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); counter-reset: none; }
.steps::before {
  content: ""; position: absolute; left: 46px; right: calc(33.333% - 46px); top: 46px; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-in-out) .2s;
}
.steps.is-visible::before { transform: scaleX(1); }
.no-js .steps::before { transform: scaleX(1); }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--serif); font-weight: 700; font-size: 1.9rem;
  box-shadow: 0 0 0 10px var(--white);
  transition: background-color .45s var(--ease), transform .6s var(--ease-out);
}
.step:not(:first-child) .step-num::before {
  /* punta de flecha que llega a cada paso */
  content: ""; position: absolute; left: -22px; top: 50%; width: 8px; height: 8px;
  border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
}
.step:hover .step-num { background: var(--blue); transform: scale(1.06); }
.step h3 { margin: 30px 0 14px; font-family: var(--sans); font-weight: 700; font-size: 1.375rem; color: var(--ink); }
.step p { color: var(--muted); max-width: 34ch; }

.approach-notes { margin-top: clamp(56px, 7vw, 90px); padding-top: 36px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.note-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; color: var(--muted); }
.note-row strong { color: var(--ink); }
.note-row--clients { align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .95rem; color: var(--text); background: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out);
}
.chips li:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }

/* 6 · Mandatos representativos */
.cases { background: var(--soft); padding-top: 0; }
.cases-band { position: absolute; left: 0; right: 0; top: 0; height: clamp(520px, 62vh, 620px); overflow: hidden; isolation: isolate; background: var(--navy); }
.cases-bg { background-image: url("../images/fondos/mandatos-consumo.jpg"); opacity: .7; }
.cases .section-veil { background: linear-gradient(100deg, rgba(5, 28, 44, .95) 0%, rgba(5, 28, 44, .8) 50%, rgba(5, 28, 44, .55) 100%), linear-gradient(0deg, rgba(5, 28, 44, .6), rgba(5, 28, 44, 0) 40%); }
.cases .container { position: relative; }
.cases .section-head { padding-top: var(--section-y); margin-bottom: clamp(44px, 5vw, 64px); }
.cases .section-title { max-width: 26ch; }
.case-card {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 36px 38px; background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.case-card:hover { transform: translateY(-8px); box-shadow: 0 2px 6px rgba(5, 28, 44, .06), 0 36px 70px -18px rgba(5, 28, 44, .28); }
.case-head { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.case-head h3 { font-family: var(--sans); font-weight: 700; font-size: 1.375rem; line-height: 1.3; color: var(--ink); }
.case-kind { margin-top: 8px; font-style: italic; color: var(--blue); }
.case-flow { display: grid; gap: 22px; }
.case-flow > div { position: relative; padding-left: 26px; }
.case-flow > div::before {
  content: ""; position: absolute; left: 4px; top: 22px; bottom: -22px; width: 1px; background: var(--line);
}
.case-flow > div:last-child::before { display: none; }
.case-flow > div::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--blue); background: var(--white);
  transition: background-color .4s var(--ease), transform .4s var(--ease-out);
}
.case-flow > div.is-result::after { background: var(--blue); }
.case-card:hover .case-flow > div::after { transform: scale(1.2); }
.case-flow dt { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.case-flow dd { margin-top: 6px; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.case-flow .is-result dt { color: var(--blue); }
.case-flow .is-result dd { color: var(--text); }

/* 7 · Credenciales */
.credentials { background: var(--navy); }
.credentials::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 10%, rgba(47, 109, 181, .16), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(127, 178, 222, .08), transparent 70%);
}
.credentials .section-head { margin-bottom: clamp(36px, 4vw, 52px); }
.marquee {
  position: relative; overflow: hidden; padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: clamp(28px, 3vw, 48px); padding-right: clamp(28px, 3vw, 48px);
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 4rem); line-height: 1.2; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s var(--ease);
}
.marquee-track span:hover { color: var(--white); -webkit-text-stroke-color: var(--white); }
.marquee-track span::after {
  content: ""; flex: none; width: 18px; height: 30px; background: var(--blue-light); opacity: .55;
  clip-path: polygon(0 0, 100% 0, 24.7% 100%, 0 100%);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@supports not (-webkit-text-stroke: 1px #fff) { .marquee-track span { color: rgba(255, 255, 255, .22); } }

.cred-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 72px); }
.cred-col h3 {
  display: flex; align-items: center; gap: 12px; min-height: 2.6em;
  padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--sans); font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--white);
}
.cred-col h3 .eyebrow-dot { background: var(--blue-light); }
.cred-col li {
  position: relative; padding: 11px 0 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 1.0625rem; color: #b9c8d6;
  transition: color .3s var(--ease), padding-left .4s var(--ease-out);
}
.cred-col li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--blue-light);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.cred-col li:hover { color: var(--white); padding-left: 22px; }
.cred-col li:hover::before { transform: scaleX(1); }

/* 8 · Equipo */
.team-grid { align-items: stretch; }
.person {
  position: relative; display: flex; flex-direction: column;
  padding: 46px 36px 42px; background: var(--soft); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), background-color .5s var(--ease);
}
.person:hover { transform: translateY(-8px); background: var(--white); box-shadow: var(--shadow-lg); }
.person-photo { position: relative; width: 152px; height: 152px; margin: 0 auto 28px; }
.person-photo::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid var(--blue-light); opacity: .55;
  transition: transform .7s var(--ease-out), opacity .5s var(--ease);
}
.person-photo::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--blue); border-right-color: var(--blue);
  transform: rotate(-45deg); opacity: 0; transition: transform 1s var(--ease-out), opacity .5s var(--ease);
}
.person:hover .person-photo::before { transform: scale(1.04); opacity: .3; }
.person:hover .person-photo::after { transform: rotate(135deg); opacity: 1; }
.person-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  background: var(--navy);
  transition: transform .8s var(--ease-out), filter .5s var(--ease);
}
.person:hover .person-photo img { transform: scale(1.04); filter: brightness(1.06); }
.person-name { text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.35rem + .7vw, 1.9rem); line-height: 1.2; color: var(--ink); }
.person-role { margin-top: 10px; text-align: center; font-weight: 700; font-size: 1rem; color: var(--blue); }
.person-edu { margin-top: 6px; text-align: center; font-style: italic; font-size: .95rem; color: #8792a0; }
.person-bio { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text); }
.person-list { margin-top: 18px; }
.person-list li { position: relative; padding-left: 20px; font-size: .97rem; line-height: 1.5; color: var(--muted); }
.person-list li + li { margin-top: 10px; }
.person-list li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* 9 · Contacto */
.contact { padding-block: clamp(96px, 11vw, 160px); }
.contact-bg { background-image: url("../images/fondos/contacto-proxima-etapa.jpg"); opacity: .6; }
.contact .section-veil { background: linear-gradient(105deg, rgba(5, 28, 44, .97) 0%, rgba(5, 28, 44, .85) 50%, rgba(5, 28, 44, .7) 100%); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.contact-title { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.75rem); max-width: 16ch; }
.contact-people { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(40px, 5vw, 60px); }
.contact-name { margin-bottom: 14px; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.contact-name span { font-weight: 400; font-size: 1rem; color: var(--blue-light); }
.contact-link {
  display: flex; align-items: center; gap: 10px; width: fit-content; padding: 4px 0;
  color: #c9d6e2; transition: color .3s var(--ease), transform .4s var(--ease-out);
}
.contact-link small { color: #8ea4b8; }
.contact-link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-link:hover { color: var(--white); transform: translateX(4px); }
.contact-cities { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 8px 18px; color: #8ea4b8; }
.contact-cities strong { color: var(--white); }

.form-card { position: relative; background: var(--white); color: var(--text); padding: clamp(32px, 4vw, 48px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.form-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.form-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.35rem + .8vw, 2rem); line-height: 1.2; color: var(--ink); }
.form-text { margin-top: 8px; color: var(--muted); }
.contact-form { margin-top: 28px; display: grid; gap: 8px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; padding-top: 18px; }
.field input, .field textarea {
  width: 100%; padding: 12px 0 10px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #cfd7df; border-radius: 0;
  outline: none; resize: vertical; min-height: 48px;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat left bottom / 0% 2px;
  transition: border-color .3s var(--ease), background-size .5s var(--ease-out);
}
.field input:focus, .field textarea:focus { background-size: 100% 2px; }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { background-image: linear-gradient(var(--error), var(--error)); }
.field textarea { min-height: 110px; }
.field label {
  position: absolute; left: 0; top: 30px; pointer-events: none;
  font-size: 1.0625rem; color: #7c8794;
  transform-origin: left top; transition: transform .35s var(--ease-out), color .3s var(--ease);
}
.field textarea ~ label { top: 30px; }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-26px) scale(.8); color: var(--blue);
}
.field-error { display: block; max-height: 0; overflow: hidden; font-size: .875rem; color: var(--error); opacity: 0; transition: max-height .3s var(--ease), opacity .3s var(--ease), margin .3s var(--ease); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--error); }
.field.is-invalid label { color: var(--error); }
.field.is-invalid .field-error { max-height: 40px; opacity: 1; margin-top: 6px; }
.field.is-invalid { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.btn--submit { margin-top: 22px; }
.btn--submit .btn-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white);
  animation: spin .8s linear infinite;
}
.btn--submit.is-loading { pointer-events: none; }
.btn--submit.is-loading .btn-spinner { display: block; }
.btn--submit.is-loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-privacy { margin-top: 10px; font-size: .875rem; color: #8792a0; }
.form-error { margin-top: 12px; padding: 12px 14px; font-size: .95rem; color: var(--error); background: #fbeeed; border-left: 3px solid var(--error); }

.form-success { display: grid; justify-items: start; gap: 14px; padding: 20px 0; outline: none; }
.form-success[hidden] { display: none; }
.form-success h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.35rem + .8vw, 2rem); line-height: 1.2; color: var(--ink); }
.form-success p { color: var(--muted); margin-bottom: 10px; }
.success-check { width: 64px; height: 64px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease-out) .1s forwards; }
.success-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s var(--ease-out) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-view, .form-success { animation: fadeUp .6s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #8ea4b8; padding-top: clamp(64px, 8vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 36ch; }
.footer-cities { margin-top: 10px; color: var(--white); }
.site-footer h4 { margin-bottom: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--white); }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a, .footer-contact a { color: #b9c8d6; transition: color .3s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact p { display: grid; gap: 2px; }
.footer-contact p + p { margin-top: 16px; }
.footer-contact span { font-size: .9rem; color: #7f93a6; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 26px; font-size: .875rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .08); }

.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 80;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); color: var(--navy); border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgba(5, 28, 44, .45);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), background-color .3s var(--ease);
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---------- Animaciones de entrada y salida al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
.js .reveal[data-reveal="up"] { transform: translateY(44px); }
.js .reveal[data-reveal="right"] { transform: translateX(56px); }
.js .reveal[data-reveal="left"] { transform: translateX(-56px); }
.js .reveal[data-reveal="fade"] { transform: none; }
.js .reveal.is-above[data-reveal] { transform: translateY(-36px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* la salida es más rápida y sin demora para que no se sienta pesada */
.js .reveal.was-visible:not(.is-visible) { transition-duration: .55s, .6s; transition-delay: 0s, 0s; }

/* Cambio de idioma */
main, .site-footer, .main-nav, .btn--header, .mobile-menu nav { transition: opacity .28s var(--ease), filter .28s var(--ease); }
html.is-switching main, html.is-switching .site-footer, html.is-switching .main-nav, html.is-switching .btn--header, html.is-switching .mobile-menu nav { opacity: 0; filter: blur(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  /* con ".main-nav +" para ganarle a la regla de escritorio y que quede a la derecha */
  .header-actions, .main-nav + .header-actions { margin-left: auto; }
}
@media (max-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .section-sub { margin-top: 22px; padding: 0; border: 0; }
  .about-grid, .challenge-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stat { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; }
  .stat:hover { transform: translateY(-6px); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .team-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .person { padding: 36px 24px; }
  .cred-cols { grid-template-columns: 1fr 1fr; }
  .shape--1 { right: -4%; opacity: .7; }
  .shape--2 { right: 18%; }
}
@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 46px; right: auto; top: 46px; bottom: 46px; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--blue), var(--blue-light)); }
  .steps.is-visible::before, .no-js .steps::before { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 92px 1fr; column-gap: 28px; align-items: start; }
  .step-num { grid-row: span 2; }
  .step h3 { margin: 14px 0 8px; }
  .step:not(:first-child) .step-num::before { left: 50%; top: -20px; transform: translateX(-50%) rotate(135deg); }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .btn--header { display: none; }
  .brand { width: 132px; height: 38px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .site-header.is-scrolled .brand { width: 118px; height: 34px; }
  .stats { grid-template-columns: 1fr; }
  .stat { grid-template-columns: minmax(104px, auto) 1fr; gap: 20px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .cred-cols { grid-template-columns: 1fr; }
  .contact-people { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-bottom: 150px; }
  .hero-foot .hero-foot-item { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .shape--1 { width: 200px; right: -60px; top: 12%; opacity: .5; }
  .shape--2 { display: none; }
  .shape--3 { right: 24px; top: calc(12% + 150px); width: 30px; }
  .service-card, .case-card { padding: 34px 26px; }
  .marquee-track { animation-duration: 24s; }
  .js .reveal[data-reveal="right"], .js .reveal[data-reveal="left"] { transform: translateY(44px); }
  .js .reveal.is-visible[data-reveal] { transform: none; }
}
@media (max-width: 420px) {
  .stat { grid-template-columns: 1fr; gap: 8px; }
  .lang-btn { min-width: 34px; }
}

/* =========================================================
   Componentes visuales: fotos, íconos, mapa y logos
   ========================================================= */

/* Fotos que se "descubren" al entrar en pantalla */
.img-reveal { position: relative; overflow: hidden; margin: 0; background: var(--navy); }
.img-reveal img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.js .reveal .img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-in-out) calc(var(--d, 0s) + .15s); }
.js .reveal .img-reveal img { transform: scale(1.18); }
.js .reveal.is-visible .img-reveal { clip-path: inset(0 0 0 0); }
.js .reveal.is-visible .img-reveal img { transform: none; }

/* Íconos de las estadísticas */
.stat-icon { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; opacity: .85; transition: transform .6s var(--ease-out), opacity .4s var(--ease); }
.stat:hover .stat-icon { transform: scale(1.12) rotate(-6deg); opacity: 1; }

/* Franja "Trayectoria ejecutiva del equipo en" */
.exp-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px clamp(28px, 5vw, 72px);
  padding: 30px clamp(20px, 4vw, 48px); margin-bottom: clamp(64px, 8vw, 110px);
  background: var(--white); border: 1px solid var(--line);
}
.exp-label { font-size: .8125rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.exp-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px clamp(32px, 5vw, 64px); }
.exp-logos img { height: 30px; width: auto; filter: grayscale(1) brightness(0); opacity: .6; transition: opacity .4s var(--ease), filter .4s var(--ease), transform .4s var(--ease-out); }
.exp-logos li:first-child img { height: 36px; }
.exp-logos img:hover { filter: none; opacity: 1; transform: translateY(-2px); }

/* Sección Presencia: ciudades + mapa */
.presence { padding-top: clamp(56px, 6vw, 80px); }
.presence-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.presence .section-title { max-width: 16ch; }
.city-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 4vw, 52px); }
.city-card { background: var(--white); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease); }
.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.city-photo { aspect-ratio: 3 / 2; }
.city-card:hover .city-photo img { transform: scale(1.06); }
.city-body { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 20px; }
.city-icon { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.city-body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.city-body p { margin-top: 4px; font-size: .9375rem; color: var(--muted); }

.presence-map { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.map-dots { width: 100%; height: auto; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-arc { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-in-out) .5s; }
.map-pin { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease-out); }
.map-pin--1 { transition-delay: .3s; }
.map-pin--2 { transition-delay: 2.2s; }
.pin-dot { fill: var(--blue); stroke: var(--white); stroke-width: 3; }
.pin-pulse { fill: var(--blue); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pinPulse 2.4s var(--ease) infinite; }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(3); opacity: 0; } }
.presence-map.is-visible .map-arc, .no-js .map-arc { stroke-dashoffset: 0; }
.presence-map.is-visible .map-pin, .no-js .map-pin { transform: scale(1); }
.map-label {
  position: absolute; left: var(--x); top: var(--y); transform: translate(18px, -50%);
  display: grid; padding: 8px 14px; background: var(--white); box-shadow: var(--shadow-lg);
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.15; color: var(--ink); white-space: nowrap;
  opacity: 0; transition: opacity .6s var(--ease), transform .7s var(--ease-out);
}
.map-label small { font-family: var(--sans); font-weight: 400; font-size: .78rem; letter-spacing: .06em; color: var(--blue); }
.map-label--1 { transition-delay: .7s; }
.map-label--2 { transition-delay: 2.5s; }
.js .map-label { transform: translate(28px, -50%); }
.presence-map.is-visible .map-label, .no-js .map-label { opacity: 1; transform: translate(18px, -50%); }

/* Tarjetas con foto (servicios y casos) */
.card-media { aspect-ratio: 16 / 10; }
.service-card { padding: 0; display: flex; flex-direction: column; }
.service-card .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 28, 44, 0) 45%, rgba(5, 28, 44, .55) 100%); pointer-events: none; }
.card-media-num {
  position: absolute; left: 22px; top: 18px; z-index: 1;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; color: var(--white);
  padding: 4px 10px; background: rgba(5, 28, 44, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.card-body { position: relative; padding: 0 36px 44px; }
.service-icon {
  position: relative; z-index: 2; display: grid; place-items: center;
  width: 64px; height: 64px; margin-top: -32px; border-radius: 50%;
  background: var(--white); box-shadow: 0 10px 24px -10px rgba(5, 28, 44, .35);
  transition: transform .6s var(--ease-out), background-color .4s var(--ease);
}
.service-icon img { width: 30px; height: 30px; transition: filter .4s var(--ease); }
.service-card:hover .service-icon { transform: translateY(-4px) rotate(-6deg); background: var(--blue); }
.service-card:hover .service-icon img { filter: brightness(0) invert(1); }
.service-card:hover .card-media img { transform: scale(1.06); }
.service-card h3 { margin-top: 22px; }

.case-card .card-media { margin: -40px -36px 28px; }
.case-card:hover .card-media img { transform: scale(1.06); }

/* Pasos con íconos */
.step-num img { width: 36px; height: 36px; filter: brightness(0) invert(1); transition: transform .6s var(--ease-out); }
.step:hover .step-num img { transform: scale(1.1); }
.step-label { display: block; margin-top: 26px; font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: .14em; color: var(--blue); }
.step h3 { margin-top: 6px; }

/* Banda de imagen a todo el ancho */
.band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(380px, 62vh, 620px); display: flex; align-items: center; background: var(--navy); color: var(--white); }
.band-bg { position: absolute; inset: -16% 0; z-index: -2; background: url("../images/fotos/banda-estrategia.jpg") 50% 50% / cover no-repeat; will-change: transform; }
.band-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 28, 44, .92) 0%, rgba(5, 28, 44, .62) 55%, rgba(5, 28, 44, .35) 100%); }
.band-content { padding-block: clamp(72px, 9vw, 120px); }
.band-text { max-width: 22ch; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }

/* Muro de logos de clientes */
.logo-wall-label { margin-top: clamp(48px, 6vw, 72px); margin-bottom: 22px; font-size: .8125rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #a9c3da; }
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255, 255, 255, .1); border-left: 1px solid rgba(255, 255, 255, .1); }
.logo-wall li {
  display: grid; place-items: center; aspect-ratio: 5 / 3; padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .4s var(--ease);
}
.logo-wall img { max-width: 72%; max-height: 46px; width: auto; height: auto; filter: brightness(0) invert(1); opacity: .62; transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.logo-wall li.is-tall img { max-height: 64px; }
.logo-wall li:hover { background: rgba(255, 255, 255, .05); }
.logo-wall li:hover img { opacity: 1; transform: scale(1.06); }

/* Responsive de los nuevos componentes */
@media (max-width: 1024px) {
  .presence-grid { grid-template-columns: 1fr; }
  .presence-map { max-width: 440px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .card-body { padding: 0 26px 34px; }
}
@media (max-width: 860px) {
  .step { grid-template-columns: 92px 1fr; }
  .step-num { grid-row: span 3; }
  .step-label { margin-top: 10px; }
  /* línea entre pasos: de cada círculo al siguiente */
  .steps::before { display: none; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 46px; top: 92px; bottom: -36px; width: 1px;
    background: linear-gradient(180deg, var(--blue), var(--blue-light));
    transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-in-out) .4s;
  }
  .step.is-visible::after, .no-js .step::after { transform: scaleY(1); }
}
@media (max-width: 760px) {
  .case-card .card-media { margin: -34px -26px 24px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .exp-strip { flex-direction: column; text-align: center; }
  .exp-logos img { height: 24px; }
  .exp-logos li:first-child img { height: 28px; }
  .map-label { font-size: .9rem; padding: 6px 10px; }
  .map-label--2, .js .presence-map.is-visible .map-label--2 { transform: translate(calc(-100% - 16px), -50%); }
  .js .map-label--2 { transform: translate(calc(-100% - 26px), -50%); }
}
@media (max-width: 460px) {
  .city-cards { grid-template-columns: 1fr; }
  .city-photo { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal .img-reveal { clip-path: none; }
  .js .reveal .img-reveal img { transform: none; }
  .map-arc { stroke-dashoffset: 0; }
  .map-pin { transform: scale(1); }
  .map-label { opacity: 1; }
}

/* =========================================================
   DISEÑO MÓVIL (celulares, hasta 760px de ancho)
   El celular tiene su propia composición, no es el escritorio
   apilado: barra de navegación abajo, carruseles que se deslizan
   con el dedo, fotos del equipo como pestañas, credenciales en
   acordeón y contactos que se llaman o escriben con un toque.
   ========================================================= */

/* Piezas que solo existen en celular */
.dock, .rail-nav, .team-tabs { display: none; }

@media (max-width: 760px) {
  :root { --section-y: 68px; --rail-gap: 14px; --dock-h: 66px; }

  /* --- Tipografía y ritmo --- */
  .eyebrow { margin-bottom: 16px; font-size: .75rem; letter-spacing: .26em; }
  .section-title { font-size: clamp(1.75rem, 8.2vw, 2.25rem); }
  .section-sub, .section-head--split .section-sub { margin-top: 16px; font-size: 1.0625rem; }
  .section-head { margin-bottom: 30px; }
  .lead { font-size: 1.0625rem; }
  .footnote { margin-top: 26px; font-size: .875rem; }

  /* --- Header: se esconde al bajar y vuelve al subir --- */
  html:not(.menu-is-open) .site-header.is-hidden:not(:focus-within) { transform: translateY(-102%); }
  .header-inner { gap: 14px; }
  .menu-toggle { margin-right: -11px; } /* las rayas quedan alineadas con el margen de la página */
  .mobile-menu { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); clip-path: circle(0 at calc(100% - var(--gutter) - 11px) 36px); }
  .menu-is-open .mobile-menu { clip-path: circle(150% at calc(100% - var(--gutter) - 11px) 36px); }

  /* --- Barra de navegación inferior --- */
  .dock {
    position: fixed; z-index: 85;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: 460px; margin-inline: auto;
    display: flex; gap: 2px; padding: 6px;
    background: rgba(5, 28, 44, .92);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px;
    box-shadow: 0 18px 40px -14px rgba(3, 18, 29, .75);
    transform: translateY(calc(100% + 30px + env(safe-area-inset-bottom, 0px)));
    visibility: hidden;
    transition: transform .6s var(--ease-out), visibility 0s linear .6s;
  }
  .dock.is-visible { transform: none; visibility: visible; transition: transform .6s var(--ease-out), visibility 0s; }
  .menu-is-open .dock, .is-typing .dock {
    transform: translateY(calc(100% + 30px + env(safe-area-inset-bottom, 0px)));
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .dock a {
    flex: 1 1 auto; min-width: 0;
    display: grid; justify-items: center; align-content: center; gap: 3px;
    min-height: 52px; padding: 6px 6px 5px; border-radius: 14px;
    font-size: .6875rem; font-weight: 700; letter-spacing: .02em; line-height: 1.15; white-space: nowrap;
    color: rgba(255, 255, 255, .64);
    -webkit-tap-highlight-color: transparent;
    transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
  }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dock a.is-active { color: var(--white); background: rgba(255, 255, 255, .1); }
  .dock a.dock-cta { color: var(--white); background: var(--blue); }
  .dock a.dock-cta.is-active { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
  .to-top { display: none; }

  /* --- Hero: composición vertical, con el texto en la zona del pulgar --- */
  .hero { justify-content: flex-end; padding: calc(var(--header-h) + 28px) 0 calc(104px + env(safe-area-inset-bottom, 0px)); }
  .hero-bg { inset: 0 0 auto 0; height: 68%; background-position: 73% 50%; opacity: .85; }
  .hero-overlay {
    background:
      radial-gradient(70% 30% at 58% 27%, rgba(47, 109, 181, .26), transparent 72%),
      linear-gradient(180deg, rgba(5, 28, 44, .74) 0%, rgba(5, 28, 44, .14) 17%, rgba(5, 28, 44, .2) 33%, rgba(5, 28, 44, .88) 54%, var(--navy) 68%);
  }
  /* velo que acompaña al texto: en pantallas bajas la imagen nunca le quita lectura */
  .hero-content::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -120px; bottom: -240px; pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 28, 44, 0) 0, rgba(5, 28, 44, .8) 120px, var(--navy) 300px);
  }
  .hero-title { font-size: clamp(2rem, 9vw, 2.5rem); max-width: none; margin-top: 2px; }
  .hero-sub { margin-top: 18px; max-width: none; font-size: 1.0625rem; line-height: 1.55; }
  .hero-ctas { gap: 10px; margin-top: 26px; }
  .hero-ctas .btn { min-height: 52px; padding: 0 20px; }
  .hero-ctas .btn--primary { flex: 1 1 172px; }
  .hero-ctas .btn--ghost { flex: 1 1 auto; }
  .hero-foot { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .scroll-cue { gap: 8px; font-size: .6875rem; }
  .scroll-cue i { height: 32px; }
  .shape--1 { width: 88px; right: 20px; top: calc(var(--header-h) + 30px); }
  .is-ready .shape--1 { opacity: .8; }
  .shape--3 { display: none; }

  /* --- Quiénes somos: las cifras en un panel oscuro --- */
  .about-grid { gap: 34px; }
  .about-text .section-title { margin-bottom: 22px; }
  .stats { position: relative; gap: 0; padding: 8px 22px 6px; background: var(--navy); }
  .stats::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
  .stat, .stat:hover { background: transparent; box-shadow: none; transform: none; }
  .stat { grid-template-columns: 92px 1fr; gap: 16px; padding: 20px 0; overflow: visible; }
  .stat + .stat { border-top: 1px solid rgba(255, 255, 255, .12); }
  .stat::before, .stat-icon { display: none; }
  .stat-num { font-size: 2.75rem; color: var(--white); }
  .stat-plus { color: var(--blue-light); }
  .stat-label { font-size: .9375rem; line-height: 1.4; color: #b7c7d5; }

  /* --- Presencia: mapa protagonista y las dos ciudades lado a lado --- */
  .presence { padding-top: 40px; }
  .exp-strip { gap: 14px; padding: 22px 16px; margin-bottom: 54px; }
  .exp-label { font-size: .75rem; }
  .exp-logos { gap: 14px clamp(16px, 5.5vw, 26px); }
  .exp-logos li:nth-child(1) img { height: 22px; }
  .exp-logos li:nth-child(2) img { height: 17px; }
  .exp-logos li:nth-child(3) img { height: 16px; }
  .presence-grid { gap: 0; }
  .presence-text { display: contents; }
  .presence-map { order: 2; max-width: 330px; margin-top: 26px; }
  .city-cards { order: 3; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .city-card { position: relative; overflow: hidden; background: var(--navy); box-shadow: none; }
  .city-card:hover { transform: none; box-shadow: none; }
  .city-card:hover .city-photo img { transform: none; }
  .city-photo { aspect-ratio: 4 / 5; }
  @media (min-width: 560px) { .city-photo { aspect-ratio: 4 / 3; } }
  .city-body { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 48px 14px 14px; background: linear-gradient(180deg, rgba(5, 28, 44, 0), rgba(5, 28, 44, .94) 66%); }
  .city-icon, .city-sep { display: none; }
  .city-body h3 { font-size: 1.1875rem; color: var(--white); }
  .city-body p { margin-top: 4px; font-size: .8125rem; line-height: 1.35; color: #c9d6e2; }
  .city-who, .city-where { display: block; }
  .city-where { margin-top: 3px; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }

  /* --- El desafío: la cita cierra la sección a todo el ancho --- */
  .challenge { padding-bottom: 0; }
  .challenge-grid { gap: 38px; margin-top: 28px; }
  .challenge-text p { padding-left: 16px; border-left: 1px solid rgba(127, 178, 222, .4); font-size: 1.0625rem; line-height: 1.65; }
  .challenge-text p + p { margin-top: 20px; }
  .risk-box { margin-inline: calc(var(--gutter) * -1); padding: 36px var(--gutter) 42px; }
  .risk-mark { width: 36px; height: 27px; margin-bottom: 18px; }

  /* --- Carruseles: se deslizan con el dedo y asoma la tarjeta siguiente --- */
  [data-swipe] {
    margin-inline: calc(var(--gutter) * -1); padding-left: var(--gutter);
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  /* el carrusel entra completo; sus tarjetas no se animan por separado */
  .js [data-swipe] { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
  .js [data-swipe].is-visible { opacity: 1; transform: none; }
  .js [data-swipe] > .reveal, .js [data-swipe] > .reveal.is-above[data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-swipe] .img-reveal { clip-path: none; transition: none; }
  .js [data-swipe] .img-reveal img { transform: none; }

  [data-rail] {
    display: flex; gap: var(--rail-gap); max-width: none;
    padding-top: 4px; padding-bottom: 32px; margin-bottom: -32px;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  }
  [data-rail]::after { content: ""; flex: 0 0 calc(var(--gutter) - var(--rail-gap)); }
  [data-rail] > * { flex: 0 0 min(calc(100% - 42px), 340px); scroll-snap-align: start; }

  .rail-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; pointer-events: none; }
  .rail-bars { display: flex; gap: 6px; }
  .rail-bars i { display: block; width: 18px; height: 3px; background: rgba(5, 28, 44, .16); transition: width .5s var(--ease-out), background-color .4s var(--ease); }
  .rail-bars i.is-active { width: 44px; background: var(--blue); }
  .rail-count { font-family: var(--serif); font-weight: 700; font-size: .9375rem; letter-spacing: .12em; color: #8792a0; }
  .rail-count b { color: var(--ink); }

  /* --- Qué hacemos --- */
  .service-card:hover { box-shadow: none; border-color: var(--line); }
  .service-card:hover::before { opacity: 0; }
  .service-card:hover::after { transform: scaleX(0); }
  .service-card:hover .service-icon { transform: none; background: var(--white); }
  .service-card:hover .service-icon img { filter: none; }
  .service-card .card-media { aspect-ratio: 16 / 9; }
  .card-media-num { left: 16px; top: 14px; }
  .card-body { padding: 0 22px 28px; }
  .service-icon { width: 56px; height: 56px; margin-top: -28px; }
  .service-icon img { width: 26px; height: 26px; }
  .service-card h3 { margin: 16px 0 16px; font-size: 1.25rem; }
  .ticks li { font-size: .9688rem; line-height: 1.45; }
  .ticks li + li { margin-top: 10px; }

  /* --- Banda de imagen --- */
  .band { min-height: 0; }
  .band-content { padding-block: 86px; }
  .band-text { font-size: clamp(1.75rem, 8.2vw, 2.25rem); }

  /* --- Cómo trabajamos: línea de tiempo compacta --- */
  .steps { gap: 0; }
  .step { grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 30px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { width: 56px; height: 56px; box-shadow: none; }
  .step-num img { width: 26px; height: 26px; }
  .step:hover .step-num { background: var(--navy); transform: none; }
  .step:not(:first-child) .step-num::before { top: -13px; }
  .step:not(:last-child)::after { left: 28px; top: 56px; bottom: 0; }
  .step-label { margin-top: 1px; font-size: .875rem; }
  .step h3 { margin: 3px 0 6px; font-size: 1.25rem; }
  .step p { max-width: none; font-size: 1rem; line-height: 1.55; }
  .approach-notes { gap: 24px; margin-top: 42px; padding-top: 0; border-top: 0; }
  .note-row { display: block; }
  .note-row strong { display: block; }
  .note-row:first-child { padding: 20px 20px 22px; background: var(--soft); border-left: 3px solid var(--blue); }
  .note-row:first-child strong { margin-bottom: 6px; }
  .note-row--clients strong { margin-bottom: 12px; }
  .chips { gap: 8px; }
  .chips li, .chips li:hover { background: var(--white); border-color: var(--line); color: var(--text); transform: none; }
  .chips li { padding: 8px 14px; font-size: .9375rem; }

  /* --- Mandatos: título y tipo de caso sobre la foto --- */
  .cases-band { height: 372px; }
  .cases .section-head { margin-bottom: 30px; }
  .case-card, .case-card:hover { box-shadow: 0 2px 6px rgba(5, 28, 44, .06), 0 18px 30px -16px rgba(5, 28, 44, .28); }
  .case-card { padding: 0; }
  .case-card .card-media { margin: 0; aspect-ratio: 2 / 1; }
  .case-head {
    position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 2 / 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 22px 16px; margin: 0; border: 0;
    background: linear-gradient(180deg, rgba(5, 28, 44, .18) 0%, rgba(5, 28, 44, .62) 48%, rgba(5, 28, 44, .95) 100%);
    pointer-events: none;
  }
  .case-head h3 { font-size: 1.3125rem; color: var(--white); }
  .case-kind { margin-top: 3px; font-size: .9375rem; color: var(--blue-light); }
  .case-flow { gap: 16px; padding: 24px 22px 28px; }
  .case-flow > div::before { bottom: -16px; }
  .case-card:hover .case-flow > div::after { transform: none; }
  .case-flow dd { margin-top: 4px; font-size: .9688rem; line-height: 1.5; }

  /* --- Credenciales: logos en dos filas deslizables y listas en acordeón --- */
  .credentials .section-head { margin-bottom: 28px; }
  .marquee { padding: 12px 0; }
  .marquee-track span { font-size: 2rem; }
  .logo-wall-label { margin-top: 38px; margin-bottom: 16px; font-size: .75rem; line-height: 1.6; }
  .logo-wall { display: flex; flex-flow: column wrap; align-content: flex-start; height: 168px; border: 0; }
  .logo-wall::after { content: ""; flex: none; width: var(--gutter); height: 100%; }
  .logo-wall li {
    flex: none; width: calc((100% - var(--gutter)) / 2.35); height: 84px; aspect-ratio: auto; padding: 14px;
    margin: 0 -1px -1px 0; border: 1px solid rgba(255, 255, 255, .1);
  }
  .logo-wall img { max-width: 76%; max-height: 34px; }
  .logo-wall li.is-tall img { max-height: 48px; }

  .cred-cols { gap: 0; margin-top: 36px; }
  .cred-col li, .cred-col li:hover { padding: 10px 0; color: #b9c8d6; }
  .cred-col li { font-size: 1rem; line-height: 1.35; }
  .cred-col li:hover::before { transform: scaleX(0); }
  .cred-col + .cred-col { margin-top: 30px; }
  .is-accordion { border-top: 1px solid rgba(255, 255, 255, .16); }
  .is-accordion .cred-col { display: grid; grid-template-rows: auto 0fr; border-bottom: 1px solid rgba(255, 255, 255, .16); transition: grid-template-rows .5s var(--ease-out); }
  .is-accordion .cred-col + .cred-col { margin-top: 0; }
  .is-accordion .cred-col.is-open { grid-template-rows: auto 1fr; }
  .is-accordion .cred-col h3 { display: block; min-height: 0; padding: 0; margin: 0; border: 0; }
  .acc-toggle {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 14px 0;
    text-align: left; font-weight: 700; line-height: 1.3; color: var(--white);
    -webkit-tap-highlight-color: transparent;
  }
  .acc-toggle::after {
    content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 2px;
    border-right: 1.5px solid var(--blue-light); border-bottom: 1.5px solid var(--blue-light);
    transform: rotate(45deg); transition: transform .45s var(--ease-out), margin .45s var(--ease-out);
  }
  .is-open .acc-toggle::after { margin-top: 5px; transform: rotate(-135deg); }
  .acc-count {
    flex: none; display: grid; place-items: center; min-width: 26px; height: 26px; margin-left: auto; padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
    font-size: .8125rem; font-weight: 700; color: var(--blue-light);
  }
  .is-accordion .cred-col ul {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-content: start;
    min-height: 0; overflow: hidden; visibility: hidden;
    transition: visibility 0s linear .5s;
  }
  .is-accordion .cred-col ul::after { content: ""; grid-column: 1 / -1; height: 18px; }
  .is-accordion .cred-col.is-open ul { visibility: visible; transition-delay: 0s; }

  /* --- Equipo: las fotos son pestañas; el perfil se desliza --- */
  .team-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
  .team-tab {
    display: grid; justify-items: center; gap: 12px; padding: 10px 0 2px;
    font-size: .9375rem; font-weight: 700; color: #8792a0;
    -webkit-tap-highlight-color: transparent; transition: color .35s var(--ease);
  }
  .team-tab img {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--navy);
    opacity: .5; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--line);
    transition: opacity .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease-out);
  }
  .team-tab.is-active { color: var(--ink); }
  .team-tab.is-active img { opacity: 1; transform: scale(1.07); box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue); }
  [data-rail="tabs"] { --rail-gap: var(--gutter); }
  [data-rail="tabs"] > * { flex-basis: calc(100% - var(--gutter)); scroll-snap-stop: always; }
  .person, .person:hover { background: var(--soft); box-shadow: none; }
  .person { padding: 26px 22px 28px; }
  .person-photo { width: 120px; height: 120px; margin-bottom: 22px; }
  .person-name { font-size: 1.625rem; }
  .person-role { margin-top: 6px; }
  .person-bio { margin-top: 18px; padding-top: 18px; }
  .has-tabs .person { border-top: 3px solid var(--blue); }
  .has-tabs .person-photo { display: none; }
  .has-tabs .person-name, .has-tabs .person-role, .has-tabs .person-edu { text-align: left; }

  /* --- Contacto: cada dato es un botón de un toque --- */
  .contact { padding-block: 68px 72px; }
  .contact-grid { gap: 34px; }
  .contact-title { font-size: clamp(2rem, 9.2vw, 2.5rem); max-width: none; }
  .contact-people { gap: 14px; margin-top: 30px; }
  .contact-person { padding: 18px 18px 4px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
  .contact-name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 12px; font-size: 1.1875rem; }
  .contact-name span { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .contact-sep { display: none; }
  .contact-link, .contact-link:hover { transform: none; }
  .contact-link { width: 100%; min-height: 52px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); -webkit-tap-highlight-color: transparent; }
  .contact-link::after {
    content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 auto;
    border-top: 1.5px solid var(--blue-light); border-right: 1.5px solid var(--blue-light);
    transform: rotate(45deg); opacity: .7;
  }
  .contact-cities { margin-top: 26px; }
  .form-card { padding: 30px 22px 26px; }

  /* --- Footer: deja lugar para la barra inferior --- */
  .site-footer { padding-top: 52px; padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { gap: 30px; padding-bottom: 36px; }
  .footer-brand img { width: 150px; margin-bottom: 16px; }
  .footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .footer-nav li + li { margin-top: 0; }
  .footer-nav a { display: block; padding: 8px 0; }
  .footer-bottom { flex-direction: column; gap: 4px; padding-block: 20px; }
}

/* Pantallas táctiles: el "hover" queda pegado después de tocar un botón,
   así que no se usa; la respuesta al toque es una leve presión. */
@media (hover: none) {
  .btn:hover::before { transform: scaleX(0); transform-origin: right center; }
  .btn:hover .btn-arrow { transform: none; }
  .hero .btn--primary:hover, .section--dark .btn--primary:hover, .btn--header:hover { color: var(--white); }
  .btn--ghost:hover { color: var(--white); border-color: rgba(255, 255, 255, .35); }
  .btn--ghost-dark:hover { color: var(--navy); border-color: var(--line); }
  .btn:active { transform: scale(.98); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-anim, .js .hero-title .w > span, .js .shape { opacity: 1; transform: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .preloader, .mobile-menu, .to-top, .dock, .hero-shapes, .marquee, .form-card { display: none !important; }
  .js .reveal, .js .hero-anim { opacity: 1 !important; transform: none !important; }
  .section--dark, .hero { background: #fff !important; color: #000 !important; }
  .section-title--light, .hero-title { color: #000 !important; }
}
