/* ══════════════════════════════════════════════════════════════════════
   CE GROUP · Sistema de diseño
   Base oscura premium teñida por el color del vertical activo (--brand).
   Tipos: Sora (display) · Manrope (texto) · Space Mono (etiquetas/números).
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* --brand / --brand2 / --brand-ink los inyecta el layout por vertical */
  --brand:      oklch(62% 0.02 260);
  --brand2:     oklch(70% 0.03 260);
  --brand-ink:  oklch(14% 0.02 260);

  --bg:      oklch(15% 0.018 260);
  --bg-deep: oklch(11% 0.015 260);
  --bg-lift: oklch(19% 0.022 260);
  --panel:   oklch(21% 0.024 260 / .55);
  --panel-2: oklch(24% 0.026 260 / .5);

  --ink:   oklch(97% 0.006 260);
  --ink-2: oklch(80% 0.012 260);
  --ink-3: oklch(64% 0.014 260);
  --line:  oklch(100% 0 0 / .10);
  --line-2:oklch(100% 0 0 / .06);

  --maxw: 1200px;
  --pad: clamp(1.15rem, 5vw, 4rem);
  --r: 18px;
  --r-lg: 26px;

  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
  --dur: .6s;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.62;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* halo ambiental teñido por la marca */
  background-image:
    radial-gradient(120% 80% at 15% -10%, color-mix(in oklab, var(--brand) 14%, transparent), transparent 60%),
    radial-gradient(90% 70% at 100% 0%, color-mix(in oklab, var(--brand2) 9%, transparent), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: color-mix(in oklab, var(--brand) 55%, transparent); color: #fff; }

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

.skip {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ══════════════ NAV ══════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.3);
  background: color-mix(in oklab, var(--bg-deep) 78%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.nav__wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding: .8rem var(--pad);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.brandmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); flex: none; }
/* Emblema Cataleya (SVG blanco): el tinte de marca se aplica con filtro,
   así el mismo archivo sirve para los cuatro verticales. */
.brandmark__logo {
  width: 46px; height: 46px; flex: none;
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--brand2) 45%, transparent));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.brandmark:hover .brandmark__logo { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 0 12px var(--brand2)); }
.brandmark__txt { font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; font-size: 1.12rem; }
.brandmark__txt b { color: var(--brand2); font-weight: 800; }

.nav__links { display: flex; gap: .35rem; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border-radius: 999px;
  font-size: .92rem; color: var(--ink-2);
  border: 1px solid transparent;
  transition: color .2s, background-color .2s, border-color .2s;
}
.nav__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--brand2)); flex: none; box-shadow: 0 0 10px var(--dot, var(--brand2)); }
.nav__link:hover { color: var(--ink); background: oklch(100% 0 0 / .05); }
.nav__link.is-active { color: var(--ink); background: color-mix(in oklab, var(--dot) 16%, transparent); border-color: color-mix(in oklab, var(--dot) 40%, transparent); }
.nav__cta {
  flex: none; padding: .55rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  background: var(--brand); color: #fff;
  border: 1px solid color-mix(in oklab, var(--brand) 60%, #fff 5%);
  transition: transform .2s, box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in oklab, var(--brand) 45%, transparent); }
.nav__cta.is-active { outline: 2px solid color-mix(in oklab, var(--brand) 50%, transparent); outline-offset: 2px; }

.nav__progress { height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand2)); width: 0%; transition: width .1s linear; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  height: 100dvh; width: 100%;
  background: color-mix(in oklab, var(--bg-deep) 98%, transparent);
  backdrop-filter: blur(24px);
  padding: calc(72px + env(safe-area-inset-top)) var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-evenly; gap: .25rem;
  overflow: hidden;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
.drawer__link { display: flex; align-items: center; gap: 1rem; padding: 1rem .4rem; border-bottom: 1px solid var(--line-2); }
.drawer__link:last-child { border-bottom: 0; }
.drawer__link .nav__dot { width: 11px; height: 11px; }
.drawer__link b { display: block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; }
.drawer__link small { color: var(--ink-3); font-size: .9rem; }

/* ══════════════ PRIMITIVAS ══════════════ */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--brand2);
}
.grad {
  background: linear-gradient(100deg, var(--brand2), color-mix(in oklab, var(--brand) 60%, #fff 25%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s;
}
.btn--solid { background: var(--brand); color: #fff; box-shadow: 0 10px 30px color-mix(in oklab, var(--brand) 35%, transparent); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 40px color-mix(in oklab, var(--brand) 45%, transparent); }
.btn--ghost { background: oklch(100% 0 0 / .04); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: oklch(100% 0 0 / .09); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* Malla de gradiente animada */
.mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh::before, .mesh::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .7; mix-blend-mode: screen;
  animation: drift 26s var(--ease) infinite alternate;
}
.mesh--brand::before { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: color-mix(in oklab, var(--brand) 60%, transparent); }
.mesh--brand::after  { width: 40vw; height: 40vw; right: -6vw; top: 4vw; background: color-mix(in oklab, var(--brand2) 45%, transparent); animation-delay: -8s; }
.mesh--group::before { width: 44vw; height: 44vw; left: -6vw; top: -12vw; background: oklch(60% 0.14 155 / .35); }
.mesh--group::after  { width: 42vw; height: 42vw; right: -8vw; top: 0; background: oklch(60% 0.15 260 / .32); animation-delay: -10s; }
@keyframes drift {
  from { transform: translate3d(-3%,-2%,0) scale(1); }
  to   { transform: translate3d(4%,3%,0) scale(1.15); }
}

/* ══════════════ HUB (portada) ══════════════ */
.hub-hero { position: relative; padding: clamp(8rem, 18vh, 12rem) var(--pad) clamp(3rem, 8vh, 6rem); overflow: hidden; }
.hub-hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; }
.hub-hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: .98; letter-spacing: -.03em;
  margin: 1.2rem 0 1.3rem;
}
/* "Cuatro caminos" con los cuatro colores del grupo */
.hub-hero__title .grad {
  background: linear-gradient(100deg,
    oklch(72% 0.16 152) 0%,
    oklch(74% 0.16 62) 34%,
    oklch(64% 0.16 258) 66%,
    oklch(78% 0.13 228) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hub-hero__lead { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--ink-2); max-width: 40ch; }
.hub-hero__scroll { margin-top: 3rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: .8rem; }
.hub-hero__scroll span { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: inline-grid; place-items: center; position: relative; }
.hub-hero__scroll span::after { content: "↓"; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(-3px);} 50%{ transform: translateY(3px);} }

.paths { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--pad) 4rem; display: grid; gap: 1rem; }
.path {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--panel), transparent 70%);
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s;
}
.path__glow { position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(60% 120% at 0% 50%, color-mix(in oklab, var(--brand) 30%, transparent), transparent 70%); transition: opacity .4s; }
.path:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--brand) 55%, transparent); }
.path:hover .path__glow { opacity: 1; }
.path__num { font-family: var(--f-mono); font-size: clamp(1.6rem, 4vw, 2.6rem); color: color-mix(in oklab, var(--brand) 75%, var(--ink-3)); }
.path__kicker { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--brand2); }
.path__name { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.05; margin: .3rem 0 .35rem; }
.path__tag { color: var(--ink-2); }
.path__go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--brand2); white-space: nowrap; }
.path__go svg { transition: transform .3s var(--ease); }
.path:hover .path__go svg { transform: translateX(5px); }

.ribbon { border-block: 1px solid var(--line-2); overflow: hidden; background: var(--bg-deep); }
.ribbon__track { display: flex; gap: 1.5rem; align-items: center; white-space: nowrap; padding: 1rem 0; width: max-content; animation: marquee 28s linear infinite; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.8rem); color: var(--ink-3); }
.ribbon__track i { color: var(--brand2); }
@keyframes marquee { to { transform: translateX(-50%); } }

.group-cta, .v-cta { padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.group-cta__inner, .v-cta__inner {
  max-width: 760px; margin-inline: auto; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in oklab, var(--brand) 18%, transparent), var(--panel));
}
.group-cta__inner h2, .v-cta__inner h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.02em; }
.group-cta__inner p, .v-cta__inner p { color: var(--ink-2); margin: 1rem auto 2rem; max-width: 48ch; }
.v-cta__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════ HERO de vertical ══════════════ */
.v-hero { position: relative; padding: clamp(8rem, 16vh, 11rem) var(--pad) clamp(2.5rem, 6vh, 4rem); overflow: hidden; }

/* Fondo fotográfico por vertical: apenas perceptible, teñido por la marca y
   desvanecido hacia abajo para que el contenido nunca pierda contraste.
   `will-change` deja el parallax en el compositor: no reflow, no jank. */
.v-hero__bg {
  position: absolute; inset: -12% 0 -12% 0;   /* margen extra: el parallax no descubre bordes */
  z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: .105;
  filter: saturate(.4) contrast(.95) brightness(.88);
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.75) 40%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.75) 40%, transparent 85%);
}
/* Tinte de marca sobre la foto: la integra en la paleta del vertical */
.v-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--brand) 30%, transparent) 0%,
    color-mix(in oklab, var(--bg) 55%, transparent) 100%);
  mix-blend-mode: color;
}
.v-hero--slim { padding-bottom: clamp(2rem, 5vh, 3rem); }
.v-hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; }
.v-hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.03em; margin: 1.1rem 0 1.2rem; max-width: 18ch; }
.v-hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--ink-2); max-width: 52ch; }
.v-hero__actions { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.v-hero__stats {
  position: relative; z-index: 1; max-width: var(--maxw); margin: clamp(2.5rem, 6vh, 4rem) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.stat { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.stat__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat__n .count { color: var(--brand2); }
.stat__l { margin-top: .6rem; color: var(--ink-3); font-size: .92rem; }

/* Índice lateral */
.secnav { position: fixed; top: 50%; right: 22px; transform: translateY(-50%); z-index: 40; display: grid; gap: .55rem; }
.secnav a { display: inline-flex; align-items: center; gap: .6rem; justify-content: flex-end; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); opacity: 0; transform: translateX(8px); pointer-events: none; transition: .3s var(--ease); }
.secnav a span { width: 22px; height: 2px; border-radius: 2px; background: var(--line); transition: .3s var(--ease); }
.secnav:hover a { opacity: 1; transform: none; pointer-events: auto; }
.secnav a.is-active { color: var(--ink); opacity: 1; transform: none; pointer-events: auto; }
.secnav a.is-active span { width: 34px; background: var(--brand2); box-shadow: 0 0 10px var(--brand2); }

/* ══════════════ SECCIONES ══════════════ */
.sec { max-width: var(--maxw); margin-inline: auto; padding: clamp(3.5rem, 8vh, 6rem) var(--pad); }
.sec__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vh, 3rem); }
.sec__label { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--brand2); margin-bottom: .8rem; }
.sec__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.9rem); letter-spacing: -.02em; line-height: 1.08; }
.sec__lead { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; }

.grid { display: grid; gap: 1rem; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--values { grid-template-columns: repeat(3, 1fr); }
.grid--svc { grid-template-columns: repeat(2, 1fr); }

/* Misión / Visión */
.mv { display: grid; gap: 2rem; }
.mv__body { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--ink); max-width: 62ch; }
.mv__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mv__card { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(140deg, var(--panel), transparent); position: relative; }
.mv__card::before { content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--brand), var(--brand2)); }
.mv__tag { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--brand2); display: block; margin-bottom: .8rem; padding-left: 1rem; }
.mv__card p { padding-left: 1rem; color: var(--ink-2); }

/* Tarjetas genéricas */
.card { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: transform .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand) 45%, transparent); }
.card__h { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; margin-bottom: .5rem; }
.card__h::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand2); margin-right: .6rem; box-shadow: 0 0 10px var(--brand2); }
.card__p { color: var(--ink-2); }

/* Valores */
.value { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.value:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand) 50%, transparent); background: var(--panel-2); }
.value__i { font-family: var(--f-mono); color: var(--brand2); font-size: .85rem; }
.value h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; margin: .5rem 0 .4rem; }
.value p { color: var(--ink-3); font-size: .95rem; }

/* Pilares */
.pillar { padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--panel), transparent); position: relative; overflow: hidden; transition: transform .3s var(--ease); }
.pillar:hover { transform: translateY(-4px); }
.pillar__i { font-family: var(--f-mono); font-size: 2.2rem; color: color-mix(in oklab, var(--brand) 70%, var(--ink-3)); }
.pillar h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; margin: .6rem 0 .5rem; }
.pillar p { color: var(--ink-2); }

/* Enfoques (acordeón) */
.focus { display: grid; gap: .7rem; }
.focus__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.focus__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.4rem; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.focus__item summary::-webkit-details-marker { display: none; }
.focus__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand2); box-shadow: 0 0 10px var(--brand2); flex: none; }
.focus__chev { margin-left: auto; font-family: var(--f-mono); font-size: 1.5rem; color: var(--brand2); transition: transform .3s var(--ease); }
.focus__item[open] .focus__chev { transform: rotate(45deg); }
.focus__item ul { padding: 0 1.4rem 1.3rem 3.2rem; display: grid; gap: .55rem; color: var(--ink-2); }
.focus__item li { position: relative; }
.focus__item li::before { content: ""; position: absolute; left: -1.2rem; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklab, var(--brand) 60%, var(--ink-3)); }

/* Servicios */
.svc-group { margin-top: 2.5rem; }
.svc-group:first-child { margin-top: 0; }
.svc-group__h { display: flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 1.1rem; }
.svc { display: flex; gap: .9rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: transform .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand) 45%, transparent); }
.svc__mark { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--brand2); background: color-mix(in oklab, var(--brand) 16%, transparent); border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent); }
.svc p { color: var(--ink-2); font-size: .98rem; }

/* Clientes / bigstat */
.clients { text-align: center; }
.bigstat { padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(130% 130% at 50% 0%, color-mix(in oklab, var(--brand) 16%, transparent), var(--panel)); }
.bigstat__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.02em; line-height: 1; }
.bigstat__n .count { color: var(--brand2); }
.bigstat h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; margin: .6rem 0 .4rem; }
.bigstat p { color: var(--ink-3); font-size: .95rem; }

/* Nuestra alianza: solo los logos, sin cajas ni conectores. */
.trust { display: grid; justify-items: center; gap: clamp(2.5rem, 6vh, 4.5rem); }
.trust__root { display: flex; align-items: center; justify-content: center; }

/* Logos: blanco monocromo para que las marcas convivan sobre fondo oscuro;
   recuperan su color propio al pasar el cursor. */
/* Los logos son de proporciones muy distintas: se limitan por ancho Y alto a la
   vez, así los formatos anchos aprovechan la caja sin desbordar en altura. */
/* Altura explícita (no `auto`): dentro de un flex sin caja, `height:auto`
   colapsa el SVG a 0. El ancho se deduce del viewBox. */
.trust__logo {
  width: auto; object-fit: contain; display: block;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.trust__root .trust__logo   { height: clamp(3.4rem, 7vw, 4.8rem); max-width: min(88vw, 320px); }
.trust__branch .trust__logo { height: clamp(2.2rem, 4.6vw, 3.2rem); max-width: min(70vw, 220px); }
.trust__root:hover .trust__logo,
.trust__branch:hover .trust__logo { filter: none; opacity: 1; transform: scale(1.04); }

/* Respaldo tipográfico cuando aún no hay archivo de logo */
.trust__wordmark {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -.01em; color: var(--ink);
}
.trust__root .trust__wordmark { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }

.trust__branches {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 5rem); width: 100%;
}
.trust__branch { display: flex; align-items: center; justify-content: center; min-height: clamp(2.4rem, 5vw, 3.4rem); }

/* Capital humano */
.team .grid { gap: .8rem; }
.chip { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-weight: 500; transition: transform .3s var(--ease), border-color .3s; }
.chip:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--brand) 50%, transparent); }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(var(--brand), var(--brand2)); flex: none; box-shadow: 0 0 10px var(--brand2); }

/* Valor agregado */
.valueadd { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.valueadd li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink-2); }
.valueadd li span { flex: none; color: var(--brand2); margin-top: 2px; }

/* Cobertura: mapa + lista */
.cobertura { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cobertura__mapa { position: relative; margin: 0; }
.co-map { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 20px 40px oklch(0% 0 0 / .35)); }
.co-map path { fill: var(--bg-lift); stroke: color-mix(in oklab, var(--bg) 60%, #000); stroke-width: 1; transition: fill .25s var(--ease), filter .25s; cursor: default; outline: none; }
.co-map path[data-active="1"] { fill: color-mix(in oklab, var(--brand) 82%, #000 4%); cursor: pointer; }
.co-map path[data-active="1"]:hover,
.co-map path[data-active="1"].is-hi { fill: var(--brand2); filter: drop-shadow(0 0 10px color-mix(in oklab, var(--brand2) 70%, transparent)); }
.co-map path[data-active="0"]:hover { fill: color-mix(in oklab, var(--bg-lift) 70%, var(--brand) 12%); }

.mapa-tip { position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; padding: .4rem .75rem; border-radius: 8px; background: var(--brand); color: #fff; font-family: var(--f-mono); font-size: .8rem; font-weight: 700; white-space: nowrap; opacity: 0; transform: translate(-50%, -130%); transition: opacity .15s; box-shadow: 0 6px 18px oklch(0% 0 0 / .4); }
.mapa-tip.show { opacity: 1; }

.cobertura__count { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.cobertura__count span { font-size: 2rem; font-weight: 800; color: var(--brand2); margin-right: .3rem; }
.depts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dept { padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-mono); font-size: .82rem; color: var(--ink-2); background: var(--panel); transition: transform .25s var(--ease), color .25s, border-color .25s, background-color .25s; cursor: default; }
.dept:hover, .dept.is-hi { transform: translateY(-2px); color: var(--ink); border-color: color-mix(in oklab, var(--brand) 60%, transparent); background: color-mix(in oklab, var(--brand) 16%, var(--panel)); }

/* ══════════════ CONTACTO ══════════════ */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
.contact__info h2, .contact__form h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.4rem; }
.cline { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line-2); }
.cline__i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--brand2); background: color-mix(in oklab, var(--brand) 15%, transparent); border: 1px solid color-mix(in oklab, var(--brand) 32%, transparent); }
.cline small { display: block; color: var(--ink-3); font-size: .82rem; }
.cline b { font-size: 1.02rem; }
.contact__form { padding: clamp(1.6rem, 3.5vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; color: var(--ink-2); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 22%, transparent); }
.field__err { display: block; color: oklch(72% 0.17 25); font-size: .82rem; margin-top: .35rem; min-height: 1em; }
.field.is-invalid input, .field.is-invalid textarea { border-color: oklch(60% 0.19 25); }
.contact__note { margin-top: 1rem; text-align: center; font-weight: 600; min-height: 1.4em; }
.contact__note.ok { color: var(--brand2); }
.contact__note.bad { color: oklch(72% 0.17 25); }

/* ══════════════ PIE ══════════════ */
.foot { border-top: 1px solid var(--line); background: var(--bg-deep); margin-top: 3rem; }
.foot__grid { max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 6vh, 4.5rem) var(--pad) 2rem; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; }
.foot__brand p { color: var(--ink-3); margin-top: 1rem; max-width: 40ch; font-size: .95rem; }
.brandmark--foot .brandmark__txt { font-size: 1.3rem; }
.brandmark--foot .brandmark__logo { width: 58px; height: 58px; }
.foot__social { font-family: var(--f-mono); color: var(--brand2) !important; }
.foot__col h4 { font-family: var(--f-display); font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 1rem; }
.foot__col a, .foot__addr { display: flex; align-items: center; gap: .55rem; color: var(--ink-2); padding: .35rem 0; font-size: .95rem; transition: color .2s; }
.foot__col a:hover { color: var(--ink); }
.foot__addr { color: var(--ink-3); }
.foot__bottom { max-width: var(--maxw); margin-inline: auto; padding: 1.4rem var(--pad); border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; color: var(--ink-3); font-size: .85rem; }
.foot__dev { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink-3); transition: color .25s var(--ease); }
.foot__dev span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.foot__dev-logo { height: 40px; width: auto; color: var(--ink); transition: color .25s var(--ease); }
.foot__dev:hover { color: var(--ink-2); }
.foot__dev:hover .foot__dev-logo { color: var(--brand2); }

.totop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in oklab, var(--bg-lift) 90%, transparent); backdrop-filter: blur(10px); color: var(--ink); cursor: pointer; font-size: 1.2rem; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s var(--ease); }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { border-color: var(--brand2); color: var(--brand2); }

/* ══════════════ REVEAL ══════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 960px) {
  .grid--3, .grid--values, .grid--svc { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .secnav { display: none; }
  .cobertura { grid-template-columns: 1fr; }
  .cobertura__mapa { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .mv__cards { grid-template-columns: 1fr; }
  .valueadd { grid-template-columns: 1fr; }
  .path { grid-template-columns: auto 1fr; }
  .path__go { grid-column: 1 / -1; justify-content: flex-start; }
  .v-hero__stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--3, .grid--values, .grid--svc { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
