/* ==========================================================================
   CUBIC Especialistas SAS · Hoja de estilos principal
   Mobile-first · sin dependencias · colores de marca: rojo #EA1826 / azul #102039
   Índice:
   01 Tokens y reset · 02 Tipografía · 03 Layout y utilidades · 04 Botones
   05 Cabecera y navegación · 06 Menú móvil · 07 Hero · 08 Marquesina
   09 Encabezados de sección · 10 Nosotros · 11 Tarjetas de servicio
   12 Carrusel · 13 Por qué elegirnos · 14 Proyectos · 15 Contadores
   16 Acordeón/FAQ · 17 CTA · 18 Footer · 19 Botones flotantes
   20 Encabezado de páginas internas · 21 Metodología · 22 Valores
   23 Servicios (detalle) · 24 Proyectos (galería) · 25 Equipo · 26 Contacto
   27 Legal y 404 · 28 Animaciones · 29 Preferencias de usuario e impresión
   ========================================================================== */

/* 01 · TOKENS Y RESET ---------------------------------------------------- */
:root {
  --navy: #102039;
  --navy-900: #0a1426;
  --navy-800: #0d1a30;
  --navy-700: #16294a;
  --navy-600: #20386a;
  --red: #ea1826;
  --red-600: #c9111e;
  --red-50: #fdecee;

  --ink: #102039;
  --text: #3e4a5e;
  --muted: #64728a;
  --line: #e2e8f1;
  --bg: #fff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eaf0f8;

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(16, 32, 57, .06);
  --shadow: 0 10px 30px rgba(16, 32, 57, .10);
  --shadow-lg: 0 24px 60px rgba(16, 32, 57, .18);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

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

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r-sm);
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* 02 · TIPOGRAFÍA -------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { text-wrap: pretty; }

.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--muted); }
.text-red { color: var(--red); }

/* 03 · LAYOUT Y UTILIDADES ---------------------------------------------- */
.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #c9d4e6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.has-cubes {
  background-image: url("../img/cubes.svg");
  background-size: 83px 144px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: 1rem;
  font: 700 .78rem/1.2 var(--font-head);
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none; background: var(--red);
}
.eyebrow--light { color: #fff; }

.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--row {
  max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem;
}
.sec-head--row > div:first-child { max-width: 720px; }
.sec-title { margin-bottom: .5em; }
.sec-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--dark .sec-lead { color: #a9b8d0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .9rem var(--font-head); color: var(--red);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* 04 · BOTONES ----------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .85rem 1.7rem;
  border-radius: var(--r-sm);
  font: 700 .95rem/1.2 var(--font-head); letter-spacing: .01em; text-align: center;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn::after { /* destello al pasar el cursor */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -8px rgba(234, 24, 38, .55); }
.btn--primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(234, 24, 38, .6); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn--outline { color: var(--navy); border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--bg-tint); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* 05 · CABECERA Y NAVEGACIÓN -------------------------------------------- */
.topbar { display: none; background: var(--navy-900); color: #c5d0e3; font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__list { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.topbar__list li, .topbar__cta { display: inline-flex; align-items: center; gap: .5rem; }
.topbar .icon { width: 1rem; height: 1rem; color: var(--red); }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s, border-color .35s;
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(16, 32, 57, .10); border-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h); transition: height .3s var(--ease);
}
.site-header.is-stuck .site-header__inner { height: 66px; }
.progress-bar {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), #ff5a64); transform-origin: 0 50%; transform: scaleX(0);
}

.brand { display: block; flex: none; }
.brand__logo { width: 150px; height: auto; transition: width .3s var(--ease); }
.site-header.is-stuck .brand__logo { width: 134px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  padding: .7rem .95rem; border-radius: var(--r-sm);
  font: 700 .875rem var(--font-head); color: var(--ink);
  transition: color .25s, background-color .25s;
}
.nav__link .icon { width: .95em; height: .95em; transition: transform .3s var(--ease); }
.nav__link::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.has-sub { position: relative; }
.has-sub:hover > .nav__link .icon, .has-sub:focus-within > .nav__link .icon { transform: rotate(180deg); }
.subnav {
  position: absolute; left: 50%; top: 100%; z-index: 5; width: 380px;
  margin-top: .6rem; padding: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; }
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav__link {
  display: flex; align-items: center; gap: .9rem; padding: .75rem .85rem; border-radius: var(--r-sm);
  transition: background-color .25s;
}
.subnav__link:hover { background: var(--bg-soft); }
.subnav__ico {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--red-50); color: var(--red); transition: background-color .25s, color .25s;
}
.subnav__link:hover .subnav__ico { background: var(--red); color: #fff; }
.subnav__link strong { display: block; font: 700 .875rem/1.25 var(--font-head); color: var(--ink); }
.subnav__link small { display: block; font-size: .78rem; line-height: 1.35; color: var(--muted); }

.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.site-header__cta { display: none; }
.nav-toggle {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; transition: background-color .25s;
}
.nav-toggle:hover { background: var(--red); }
.nav-toggle .icon { width: 24px; height: 24px; }

/* 06 · MENÚ MÓVIL -------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 190; background: rgba(10, 20, 38, .6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.scrim.is-open { opacity: 1; visibility: visible; }
.mnav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; flex-direction: column; width: min(88vw, 400px);
  background: var(--navy); color: #d5deee;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mnav.is-open { transform: none; visibility: visible; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mnav__top img { width: 132px; }
.mnav__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.mnav__close:hover { background: var(--red); }
.mnav__list { padding: .75rem 1rem; }
.mnav__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .95rem .5rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 700 1rem var(--font-head); color: #fff; text-align: left;
}
.mnav__link.is-active { color: #ff7c85; }
.mnav__link .icon { transition: transform .3s var(--ease); }
.mnav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mnav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.mnav__sub.is-open { grid-template-rows: 1fr; }
.mnav__sub > ul { overflow: hidden; }
.mnav__sub a { display: flex; align-items: center; gap: .75rem; padding: .7rem .5rem .7rem 1rem; font-size: .92rem; color: #b9c6dc; }
.mnav__sub a:hover { color: #fff; }
.mnav__sub .icon { width: 1.1rem; height: 1.1rem; color: var(--red); }
.mnav__foot { margin-top: auto; padding: 1.4rem; display: grid; gap: .9rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.mnav__contact { display: grid; gap: .55rem; font-size: .9rem; }
.mnav__contact a { display: flex; align-items: center; gap: .6rem; }
.mnav__contact .icon { color: var(--red); width: 1.1rem; height: 1.1rem; }

@media (min-width: 1024px) {
  .topbar { display: block; }
  .nav { display: block; }
  .nav-toggle { display: none; }
  .site-header__cta { display: inline-flex; }
  .brand__logo { width: 164px; }
}
@media (min-width: 1200px) { .nav__link { padding-inline: 1.1rem; } .nav__link::after { left: 1.1rem; right: 1.1rem; } }

/* 07 · HERO -------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(640px, calc(100svh - 76px), 860px);
  padding-block: clamp(3rem, 7vw, 5rem) 8rem;
  color: #fff; background: var(--navy-900); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -3; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%;
  transform: scale(1.07); transition: transform 9s ease-out;
}
.hero__slide.is-active img { transform: scale(1); }
.hero::before { /* velo azul para legibilidad */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(10, 20, 38, .8), rgba(10, 20, 38, .92));
}
.hero__pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background: url("../img/cubes.svg") 0 0 / 83px 144px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 65%); mask-image: linear-gradient(90deg, #000, transparent 65%);
}
.hero::after { /* acento cuadrado de marca */
  content: ""; position: absolute; left: 0; bottom: 0; width: clamp(60px, 9vw, 140px); height: 8px; background: var(--red);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .7rem; max-width: 100%;
  margin-bottom: 1.4rem; padding: .55rem 1.1rem .55rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 .78rem/1.4 var(--font-head); letter-spacing: .02em;
}
.hero__kicker::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: pulse 2s infinite;
}
.hero__title { color: #fff; margin-bottom: 1.25rem; font-size: clamp(2.1rem, 1.1rem + 4.2vw, 3.9rem); }
.hero__title mark {
  color: #fff; background: linear-gradient(var(--red), var(--red)) 0 94% / 0 .14em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: underline 1.1s .5s var(--ease) forwards;
}
.hero__text { max-width: 60ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #d3ddee; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.25rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font: 600 .85rem var(--font-head); color: #eaf0fa; }
.hero__badges li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__badges .icon { width: 1.15rem; height: 1.15rem; color: #fff; padding: 2px; border-radius: 50%; background: var(--red); stroke-width: 3; }

.hero__aside { display: none; }
.glass {
  padding: 1.25rem 1.4rem; border-radius: var(--r);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5);
}
.hero-stat { display: flex; align-items: center; gap: 1.1rem; }
.hero-stat__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: var(--red); color: #fff; }
.hero-stat__ico .icon { width: 30px; height: 30px; }
.hero-stat strong { display: block; font: 800 2.4rem/1 var(--font-head); color: #fff; }
.hero-stat__label { font-size: .85rem; color: #d3ddee; }
.eq__bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-bottom: .9rem; }
.eq__bars i {
  flex: 1; min-height: 8%; border-radius: 3px; background: linear-gradient(180deg, #ff5a64, var(--red));
  animation: eq 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.14s);
}
.glass p { margin: 0; font: 600 .82rem/1.45 var(--font-head); color: #e6edf8; }
.glass p small { display: block; margin-bottom: .2rem; font: 700 .68rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #ff8790; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.hero__caption {
  display: inline-flex; align-items: center; gap: .6rem; min-width: 0; max-width: 62%; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(10, 20, 38, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 .78rem/1.3 var(--font-head); color: #dbe4f2;
}
.hero__caption span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero__caption .icon { width: 1rem; height: 1rem; color: var(--red); }
.hero__dots { display: flex; gap: .35rem; }
.hero__dots button { position: relative; width: 40px; height: 24px; }
.hero__dots button::before, .hero__dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 6px; border-radius: 3px; }
.hero__dots button::before { background: rgba(255, 255, 255, .3); }
.hero__dots button::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { animation: dotfill var(--slide-time, 6500ms) linear forwards; }

@media (min-width: 900px) {
  .hero::before {
    background: linear-gradient(95deg, rgba(10, 20, 38, .96) 0%, rgba(10, 20, 38, .88) 36%, rgba(10, 20, 38, .48) 66%, rgba(10, 20, 38, .12) 100%);
  }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; }
  .hero__aside { display: grid; gap: 1rem; justify-self: end; width: min(100%, 320px); }
}

/* 08 · MARQUESINA DE NORMATIVA ------------------------------------------- */
.standards { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.15rem; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.standards__label {
  display: none; flex: none; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  font: 700 .7rem/1.35 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); max-width: 240px;
}
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; gap: .75rem; padding-right: .75rem; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
  font: 600 .8rem var(--font-head); color: var(--ink);
}
.marquee__item .icon { width: 1rem; height: 1rem; color: var(--red); }
@media (min-width: 1100px) { .standards__label { display: block; } }

/* 10 · NOSOTROS (home) --------------------------------------------------- */
.about__grid { display: grid; gap: 3rem; align-items: center; }
.about__media { position: relative; isolation: isolate; padding: 1.5rem 1.25rem 1.25rem; }
.about__block { position: absolute; z-index: -1; }
.about__block--navy { left: 0; top: 0; width: 58%; height: 72%; background: var(--navy); border-radius: var(--r-lg); }
.about__block--red { right: 0; bottom: 0; width: 34%; height: 36%; background: var(--red); border-radius: var(--r); }
.about__frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-tint); }
.about__frame img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; }
.about__badge {
  position: absolute; left: 0; bottom: 3rem; display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.3rem 1rem 1rem; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.about__badge-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--red); color: #fff; }
.about__badge strong { display: block; font: 800 1.6rem/1 var(--font-head); color: var(--navy); }
.about__badge-txt { display: block; max-width: 120px; font-size: .78rem; line-height: 1.3; color: var(--muted); }

.mv-cards { display: grid; gap: 1rem; margin-block: 1.5rem; }
.mv {
  position: relative; padding: 1.4rem 1.4rem 1.3rem; border-radius: var(--r);
  background: var(--bg-soft); border: 1px solid var(--line); border-top: 3px solid var(--red);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.mv:nth-child(2) { border-top-color: var(--navy); }
.mv:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: #fff; }
.mv h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: .55rem; }
.mv h3 .icon { color: var(--red); }
.mv:nth-child(2) h3 .icon { color: var(--navy); }
.mv p { margin: 0; font-size: .92rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px;
  background: var(--navy); color: #fff; font: 600 .78rem var(--font-head);
}
.chip .icon { width: 1rem; height: 1rem; color: #ff7c85; stroke-width: 2.5; }
.meter { margin: 1.75rem 0 2rem; }
.meter__head { display: flex; justify-content: space-between; margin-bottom: .55rem; font: 700 .9rem var(--font-head); color: var(--ink); }
.meter__head strong { color: var(--red); }
.meter__bar { height: 10px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--red)); }
.js .meter__bar span { transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease) .25s; }
.js .meter.is-in .meter__bar span { transform: scaleX(1); }

@media (min-width: 640px) { .mv-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .about__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 4.5rem; } }

/* 11 · TARJETAS DE SERVICIO ---------------------------------------------- */
.card-glow { position: relative; isolation: isolate; }
.card-glow::before { /* foco de luz que sigue al cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 24, 38, .09), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.card-glow:hover::before { opacity: 1; }

.svc {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc__img { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-tint); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.08); }
.svc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 20, 38, .5)); }
.svc__body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 2.1rem 1.5rem 1.5rem; }
.svc__ico {
  position: absolute; top: -28px; left: 1.5rem; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px; background: var(--red); color: #fff;
  box-shadow: 0 12px 24px -8px rgba(234, 24, 38, .6);
  transition: transform .45s var(--ease), background-color .3s;
}
.svc__ico .icon { width: 28px; height: 28px; }
.svc:hover .svc__ico { transform: rotate(-8deg) scale(1.06); background: var(--navy); }
.svc__title { margin: .3rem 0 .65rem; font-size: 1.15rem; }
.svc__title a:hover { color: var(--red); }
.svc__body p { font-size: .92rem; color: var(--muted); }
.svc__body .link-arrow { margin-top: auto; padding-top: .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.tags li { padding: .28rem .65rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font: 600 .72rem var(--font-head); color: var(--navy); }

/* 12 · CARRUSEL (scroll-snap, sin librerías) ----------------------------- */
.carousel__track {
  --gap: 1.25rem; --cols: 1.12;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  gap: var(--gap);
  padding-block: 1rem; margin-block: -1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__item { scroll-snap-align: start; min-width: 0; }
.carousel__bar { position: relative; height: 3px; margin-top: 1.6rem; border-radius: 2px; background: var(--line); overflow: hidden; }
.carousel__bar span { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 30%); border-radius: 2px; background: var(--red); transform: translateX(var(--x, 0)); }
.section--dark .carousel__bar { background: rgba(255, 255, 255, .15); }
.carousel[data-static] .carousel__bar { display: none; }
.carousel-nav { display: flex; gap: .6rem; }
.carousel-nav[hidden] { display: none; }
.cbtn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; color: var(--navy);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.cbtn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); }
.cbtn[disabled] { opacity: .35; pointer-events: none; }
.section--dark .cbtn { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.section--dark .cbtn:hover { background: var(--red); border-color: var(--red); }

@media (min-width: 640px) { .carousel__track { --cols: 2.1; } }
@media (min-width: 960px) { .carousel__track { --cols: 3; } }
@media (min-width: 1200px) { .carousel--4 .carousel__track { --cols: 4; } }

/* 13 · POR QUÉ ELEGIRNOS ------------------------------------------------- */
.why__grid { display: grid; gap: 3rem; align-items: center; }
.why__media { position: relative; padding-bottom: 3.5rem; }
.why__main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-right: 2.5rem; }
.why__main img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.why__small {
  position: absolute; right: 0; bottom: 0; width: 46%; overflow: hidden;
  border: 6px solid #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.why__small img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.why__tag {
  position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px; background: var(--red); color: #fff; font: 700 .78rem var(--font-head);
  box-shadow: 0 10px 22px -8px rgba(234, 24, 38, .6);
}
.features { display: grid; gap: 1rem; margin-top: 1.75rem; }
.feature {
  padding: 1.4rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature__ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff;
  transition: background-color .3s, transform .4s var(--ease);
}
.feature:hover .feature__ico { background: var(--red); transform: rotate(-6deg); }
.feature h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
.feature p { margin: 0; font-size: .88rem; color: var(--muted); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; } }

/* 14 · PROYECTOS (home, sección oscura) ---------------------------------- */
.projects { padding-bottom: clamp(9rem, 15vw, 12rem); overflow: hidden; }
.proj { position: relative; height: 100%; overflow: hidden; border-radius: var(--r); background: var(--navy-800); }
.proj__link { position: relative; display: block; aspect-ratio: 4 / 5; }
.proj__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj__link:hover img { transform: scale(1.08); }
.proj__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 38, 0) 35%, rgba(10, 20, 38, .93)); }
.proj__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; }
.proj__cat {
  display: inline-block; margin-bottom: .65rem; padding: .3rem .75rem; border-radius: 999px;
  background: var(--red); color: #fff; font: 700 .66rem var(--font-head); letter-spacing: .07em; text-transform: uppercase;
}
.proj__title { margin: 0; font-size: 1.15rem; color: #fff; }
.proj__go {
  position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; color: var(--navy);
  opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .4s, transform .4s var(--ease);
}
.proj__link:hover .proj__go, .proj__link:focus-visible .proj__go { opacity: 1; transform: none; }
@media (hover: none) { .proj__go { opacity: 1; transform: none; } }

/* 15 · CONTADORES -------------------------------------------------------- */
.stats { position: relative; z-index: 2; }
.stats--overlap { margin-top: calc(-1 * clamp(4.5rem, 9vw, 7rem)); }
.stats__grid {
  display: grid; gap: 1px; overflow: hidden; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.stat-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.75rem 1.5rem; background: #fff; }
.stat-card__ico { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 14px; background: var(--red-50); color: var(--red); }
.stat-card__ico .icon { width: 28px; height: 28px; }
.stat-card__num { display: block; font: 800 clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem)/1 var(--font-head); color: var(--navy); }
.stat-card__label { display: block; margin-top: .4rem; font-size: .85rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 560px) { .stats__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* 16 · ACORDEÓN / FAQ ---------------------------------------------------- */
.faq__grid { display: grid; gap: 2.5rem; align-items: start; }
.acc { display: grid; gap: .75rem; }
.acc__item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .3s, box-shadow .3s; }
.acc__item.is-open { border-color: var(--red); box-shadow: var(--shadow); }
.acc__q { margin: 0; font-size: 1rem; }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1.15rem 1.35rem; text-align: left; font: 700 .97rem/1.4 var(--font-head); color: var(--ink); text-wrap: pretty;
}
.acc__ico {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-soft); color: var(--red);
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.acc__ico .icon { width: 1.1rem; height: 1.1rem; }
.acc__item.is-open .acc__ico { transform: rotate(135deg); background: var(--red); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s .4s; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease), visibility 0s; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0; padding: 0 1.35rem 1.3rem; font-size: .95rem; color: var(--muted); }
.faq__media { position: relative; }
.faq__card { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.faq__card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.faq__help {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1.3rem; border-radius: var(--r);
  background: rgba(16, 32, 57, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #d3ddee;
}
.faq__help h3 { margin-bottom: .35rem; font-size: 1.05rem; color: #fff; }
.faq__help p { margin-bottom: 1rem; font-size: .88rem; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; }
  .faq__media { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* 17 · CTA --------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--navy); color: #fff; }
.cta__bg { position: absolute; inset: 0; z-index: -3; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(10, 20, 38, .96), rgba(16, 32, 57, .9) 55%, rgba(16, 32, 57, .78)); }
.cta::after {
  content: ""; position: absolute; z-index: -1; right: -70px; bottom: -70px; width: 190px; height: 190px;
  background: var(--red); transform: rotate(45deg);
}
.cta__inner { display: grid; gap: 2rem; align-items: center; }
.cta h2 { margin-bottom: .6rem; color: #fff; }
.cta p { max-width: 62ch; margin: 0; color: #cfd9ea; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1.5fr) auto; } .cta::after { width: 260px; height: 260px; right: -90px; bottom: -90px; } }

/* 18 · FOOTER ------------------------------------------------------------ */
.site-footer { position: relative; overflow: hidden; background: var(--navy-900); color: #a9b8d0; font-size: .93rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/cubes.svg") 0 0 / 83px 144px; opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.footer__top { position: relative; display: grid; gap: 2.75rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__logo { width: 172px; margin-bottom: 1.25rem; }
.footer__about { max-width: 34ch; }
.footer__title { position: relative; margin-bottom: 1.4rem; padding-bottom: .85rem; font: 800 1rem var(--font-head); color: #fff; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--red); }
.footer__list { display: grid; gap: .65rem; }
.footer__list a { display: inline-flex; align-items: center; gap: .5rem; transition: color .25s, transform .25s var(--ease); }
.footer__list a:hover { color: #fff; transform: translateX(4px); }
.footer__contact li { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1rem; }
.footer__contact .icon { margin-top: .2rem; color: var(--red); }
.footer__contact small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #7688a5; }
.footer__contact a:hover { color: #fff; }
.footer__pdf { margin-top: 1.25rem; }
.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem;
  padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer__bottom a:hover { color: #fff; }
@media (min-width: 640px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.3fr .8fr 1fr 1.2fr; gap: 3rem; } }

/* 19 · BOTONES FLOTANTES ------------------------------------------------- */
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: grid; justify-items: end; gap: .75rem; }
.fab__wa {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .65);
  transition: transform .3s var(--ease);
}
.fab__wa .icon { width: 30px; height: 30px; }
.fab__wa::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: inherit; animation: ring 2.6s ease-out infinite; }
.fab__wa:hover { transform: scale(1.08); }
.to-top {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--navy); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s, visibility .35s, transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--red); }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top .ring__bg { stroke: var(--line); }
.to-top .ring__fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 138.23; stroke-dashoffset: calc(138.23 * (1 - var(--p, 0))); }
.to-top .icon { width: 20px; height: 20px; }

/* 20 · ENCABEZADO DE PÁGINAS INTERNAS ----------------------------------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6rem); color: #fff; background: var(--navy-900); }
.page-hero__bg { position: absolute; inset: 0; z-index: -3; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(10, 20, 38, .96) 0%, rgba(16, 32, 57, .88) 55%, rgba(16, 32, 57, .72) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: clamp(60px, 9vw, 140px); height: 8px; background: var(--red); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin-bottom: 1.25rem; font: 600 .8rem var(--font-head); color: #b8c6dd; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.crumbs a:hover { color: #fff; }
.page-hero__title { max-width: 22ch; margin-bottom: .8rem; color: #fff; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); }
.page-hero__lead { max-width: 62ch; margin: 0; font-size: 1.08rem; color: #cfd9ea; }

/* Bloques de dos columnas reutilizables */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 4.5rem; }
  .split--reverse .about__media { order: 2; }
}
.callouts { display: grid; gap: 1rem; margin: 1.75rem 0; }
.callout { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--r); background: var(--bg-soft); border-left: 4px solid var(--red); }
.callout__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--red); color: #fff; }
.callout h3 { margin: 0 0 .25rem; font-size: 1rem; }
.callout p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 640px) { .callouts--2 { grid-template-columns: 1fr 1fr; } }

/* Misión y visión (fondo oscuro) */
.mv-split { display: grid; gap: 2.5rem; align-items: center; }
.mv-split__img { overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.mv-split__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mv-big { padding: 1.9rem; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background-color .3s, transform .4s var(--ease); }
.mv-big + .mv-big { margin-top: 1rem; }
.mv-big:hover { background: rgba(255, 255, 255, .1); transform: translateX(6px); }
.mv-big h3 { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; color: #fff; }
.mv-big h3 .icon { width: 1.5rem; height: 1.5rem; padding: 4px; box-sizing: content-box; border-radius: 10px; background: var(--red); color: #fff; }
.mv-big p { margin: 0; color: #c5d1e6; }
@media (min-width: 960px) { .mv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }

/* 21 · METODOLOGÍA ------------------------------------------------------- */
.steps-wrap { position: relative; }
.steps__line { position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.steps { display: grid; gap: 1.75rem; }
.step { position: relative; padding-left: 4.5rem; }
.step__num {
  position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy); color: #fff; font: 800 1.05rem var(--font-head); transition: background-color .3s, transform .4s var(--ease);
}
.step.is-on .step__num { background: var(--red); }
.step:hover .step__num { transform: rotate(-6deg) scale(1.06); }
.step h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .step { padding: 4.5rem 0 0; }
  .steps__line { left: 26px; right: 26px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .steps__line i { transform-origin: left; transform: scaleX(var(--fill, 0)); }
}

/* 22 · VALORES ----------------------------------------------------------- */
.values { display: grid; gap: 1.25rem; }
.value {
  position: relative; overflow: hidden; padding: 2rem 1.6rem 1.7rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.value__n { position: absolute; right: 1rem; top: .3rem; font: 800 3.6rem/1 var(--font-head); color: var(--bg-tint); pointer-events: none; }
.value__ico { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--red-50); color: var(--red); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.value__ico .icon { width: 28px; height: 28px; }
.value:hover .value__ico { background: var(--red); color: #fff; transform: rotate(-6deg); }
.value h3 { margin: 1.2rem 0 .5rem; font-size: 1.1rem; }
.value p { position: relative; margin: 0; font-size: .92rem; color: var(--muted); }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .values { grid-template-columns: repeat(6, 1fr); }
  .value { grid-column: span 2; }
  .value:nth-child(4) { grid-column: 2 / span 2; }
  .value:nth-child(5) { grid-column: 4 / span 2; }
}

/* 23 · SERVICIOS (detalle) ---------------------------------------------- */
.tabs-bar { position: sticky; top: 66px; z-index: 50; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: .5rem; padding-block: .75rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; flex: none; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: 700 .82rem var(--font-head); color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.tabs a:hover { border-color: var(--navy); }
.tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs .icon { width: 1.05rem; height: 1.05rem; color: var(--red); }
.tabs a.is-active .icon { color: #ff7c85; }
.sdetail { display: grid; gap: 2.5rem; align-items: start; }
.sdetail__img { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.sdetail__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.sdetail__badge { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--red); color: #fff; font: 700 .8rem var(--font-head); box-shadow: 0 10px 22px -8px rgba(234, 24, 38, .6); }
.sub-grid { display: grid; gap: 1rem; margin-top: 1.75rem; }
.sub { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.sub:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.sub__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--red-50); color: var(--red); transition: background-color .3s, color .3s; }
.sub:hover .sub__ico { background: var(--red); color: #fff; }
.sub h3, .sub h4 { margin: 0 0 .25rem; font-size: .98rem; }
.sub p { margin: 0; font-size: .88rem; color: var(--muted); }
.ref { display: inline-block; margin-top: .55rem; padding: .15rem .6rem; border-radius: 6px; background: var(--bg-tint); font: 700 .7rem var(--font-head); color: var(--navy); }
.note { display: flex; gap: 1rem; margin-top: 1.75rem; padding: 1.25rem 1.4rem; border-radius: var(--r); background: var(--navy); color: #d3ddee; font-size: .92rem; }
.note .icon { flex: none; width: 1.6rem; height: 1.6rem; color: #ff7c85; }
.note p { margin: 0; }
.note strong { color: #fff; }
@media (min-width: 640px) { .sub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .sdetail { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
  .sdetail--reverse .sdetail__media { order: 2; }
  .sdetail__media { position: sticky; top: 150px; }
}

/* 24 · PROYECTOS (galería) ---------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter { padding: .65rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 700 .82rem var(--font-head); color: var(--ink); transition: background-color .25s, color .25s, border-color .25s; }
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pgrid { display: grid; gap: 1.5rem; }
.pcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pcard[hidden] { display: none; }
.pcard.is-showing { animation: pop .55s var(--ease) both; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard__zoom { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow); transition: background-color .3s, color .3s; }
.pcard__img:hover .pcard__zoom { background: var(--red); color: #fff; }
.pcard__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.5rem 1.6rem; }
.pcard__cat { margin-bottom: .5rem; font: 700 .7rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pcard h3 { font-size: 1.1rem; }
.pcard p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }

.lightbox { width: min(1000px, 94vw); max-height: 90vh; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-lg); background: var(--navy-900); color: #fff; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lightbox::backdrop { background: rgba(10, 20, 38, .85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop .4s var(--ease); }
.lightbox__img { width: 100%; max-height: 68vh; object-fit: contain; background: #000; }
.lightbox__cap { padding: 1.1rem 1.5rem 1.4rem; }
.lightbox__cap strong { display: block; font: 800 1.1rem var(--font-head); }
.lightbox__cap span { font-size: .88rem; color: #b8c6dd; }
.lightbox__close { position: absolute; right: .9rem; top: .9rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(10, 20, 38, .75); color: #fff; }
.lightbox__close:hover { background: var(--red); }

.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.sector { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.4rem .9rem .9rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font: 700 .95rem var(--font-head); color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.sector__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; transition: background-color .3s; }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.sector:hover .sector__ico { background: var(--red); }

/* 25 · EQUIPO ------------------------------------------------------------ */
.lead-card { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1.75rem; align-items: center; margin-bottom: 2.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--navy); color: #cfd9ea; }
.lead-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6; background: url("../img/cubes.svg") 0 0 / 83px 144px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.lead-card__avatar { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .22); background: linear-gradient(140deg, var(--red), #b80f1b); font: 800 2.2rem var(--font-head); color: #fff; box-shadow: 0 16px 34px -10px rgba(234, 24, 38, .6); }
.lead-card h2 { margin-bottom: .2rem; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.lead-card__role { margin-bottom: .8rem; font: 700 .85rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #ff8790; }
.lead-card p { margin: 0; max-width: 56ch; }
.lead-card__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .lead-card { grid-template-columns: auto 1fr auto; gap: 2.5rem; } }
.team { display: grid; gap: 1.5rem; }
.member { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); background: var(--navy); color: #fff; }
.member__img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 1s var(--ease); }
.member:hover .member__img img { transform: scale(1.07); }
.member::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(10, 20, 38, .95)); }
.member__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.5rem; }
.member__bar { display: block; width: 36px; height: 3px; margin-bottom: .9rem; background: var(--red); transition: width .4s var(--ease); }
.member:hover .member__bar { width: 68px; }
.member h3 { margin: 0 0 .35rem; font-size: 1.08rem; line-height: 1.25; color: #fff; }
.member p { margin: 0; font-size: .85rem; color: #c5d1e6; }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, 1fr); } }

/* 26 · CONTACTO ---------------------------------------------------------- */
.contact__grid { display: grid; gap: 2.5rem; align-items: start; }
.cinfo { display: grid; gap: 1rem; }
.cinfo__item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.cinfo__item:hover { border-color: var(--red); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.cinfo__ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; transition: background-color .3s; }
.cinfo__item:hover .cinfo__ico { background: var(--red); }
.cinfo h3 { margin: 0 0 .2rem; font-size: .95rem; }
.cinfo p, .cinfo a { margin: 0; font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.cinfo a:hover { color: var(--red); }
.cover { position: relative; isolation: isolate; overflow: hidden; margin-top: 1rem; padding: 1.5rem; border-radius: var(--r); background: var(--navy); color: #cfd9ea; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6; background: url("../img/cubes.svg") 0 0 / 83px 144px; }
.cover h3 { margin-bottom: .4rem; color: #fff; font-size: 1.05rem; }
.cover p { margin: 0 0 1rem; font-size: .9rem; }

.form-card { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--red), var(--navy)); }
.form-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field label { display: block; margin-bottom: .4rem; font: 700 .82rem var(--font-head); color: var(--ink); }
.field label .req { color: var(--red); }
.field label.check { margin: 0; font: 400 .85rem/1.55 var(--font-body); color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-soft); font: inherit; color: var(--ink); transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.input::placeholder { color: #8b97ab; }
.input:focus { outline: 0; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(16, 32, 57, .1); }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102039' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.field.has-error .input { border-color: var(--red); background: var(--red-50); }
.field__err { display: none; margin-top: .35rem; font-size: .8rem; color: var(--red-600); }
.field.has-error .field__err { display: block; }
.check { display: flex; align-items: flex-start; gap: .75rem; font-size: .85rem; color: var(--muted); }
.check input { flex: none; width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--red); }
.check a { color: var(--red); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; align-items: flex-start; gap: .75rem; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-sm); font-size: .92rem; font-weight: 600; }
.form-status.is-ok { display: flex; background: #e8f7ee; color: #0d6b34; border: 1px solid #bfe6cf; }
.form-status.is-err { display: flex; background: var(--red-50); color: var(--red-600); border: 1px solid #f6c3c8; }
.form-note { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .icon { animation: spin .9s linear infinite; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; } }

/* 27 · LEGAL Y 404 ------------------------------------------------------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin: 2.4rem 0 .8rem; font-size: 1.45rem; }
.prose h3 { margin: 1.6rem 0 .5rem; font-size: 1.1rem; }
.prose ul { margin-bottom: 1rem; padding-left: 1.4rem; list-style: disc; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--red); text-decoration: underline; }
.prose .meta { display: inline-block; margin-bottom: 1.5rem; padding: .35rem .9rem; border-radius: 999px; background: var(--bg-soft); font-size: .82rem; color: var(--muted); }

.nf { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: calc(100svh - 76px); padding-block: 4rem; text-align: center; background: var(--navy); color: #cfd9ea; }
.nf::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; background: url("../img/cubes.svg") 0 0 / 83px 144px; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%); }
.nf__code { margin: 0 0 .5rem; font: 800 clamp(6rem, 3rem + 18vw, 13rem)/1 var(--font-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .4); }
.nf__code span { color: var(--red); -webkit-text-stroke: 0; }
.nf h1 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.nf p { max-width: 50ch; margin-inline: auto; }
.nf__wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; margin: 1.25rem auto 1.75rem; }
.nf__wave i { width: 5px; height: 100%; border-radius: 3px; background: var(--red); transform-origin: center; animation: eqc 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -.12s); }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* 28 · ANIMACIONES ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal--left { transform: translateX(-34px); }
.js .reveal--right { transform: translateX(34px); }
.js .reveal--zoom { transform: scale(.94); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(234, 24, 38, .7); } 70% { box-shadow: 0 0 0 10px rgba(234, 24, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 24, 38, 0); } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes eq { 0%, 100% { height: 14%; } 50% { height: 100%; } }
@keyframes eqc { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dotfill { to { transform: scaleX(1); } }
@keyframes underline { to { background-size: 100% .14em; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* 29 · PREFERENCIAS DE USUARIO E IMPRESIÓN ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__dots button.is-active::after { transform: scaleX(1); }
  .marquee__track { width: auto; flex-wrap: wrap; }
  .marquee__list[aria-hidden="true"] { display: none; }
}
@media print {
  .topbar, .site-header, .mnav, .scrim, .fab, .hero__foot, .cta, .marquee, .tabs-bar { display: none !important; }
  body { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tarjeta de contacto dentro de la grilla del equipo */
.member--cta { display: grid; align-items: center; padding: clamp(1.75rem, 3vw, 2.5rem); background: linear-gradient(140deg, var(--red), #b80f1b); }
.member--cta::after { display: none; }
.member--cta h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.member--cta p { margin-bottom: 1.25rem; font-size: .95rem; color: #ffe3e5; }

@media (max-width: 420px) { .cinfo p, .cinfo a { font-size: .86rem; } }
