/* ============================================================
   C&T INGENIERÍA — Estilos 2026 (Manrope)
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --navy-950: #051526;
  --navy-900: #08243f;
  --navy-800: #0d3357;
  --blue-600: #174c80;
  --blue-500: #1f6fb2;
  --blue-400: #2e8fd0;
  --blue-300: #5aafe3;
  --green-600: #3f9e3f;
  --green-500: #5cb85c;
  --green-400: #6ed36e;
  --green-glow: #7ee87e;
  --grey-50:  #f7f9fc;
  --grey-100: #eef2f8;
  --grey-200: #dde4ee;
  --grey-300: #c7d2e0;
  --grey-400: #8a9aab;
  --grey-600: #4d5c6e;
  --grey-800: #253243;
  --white: #ffffff;
  --ink:   #06121e;
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(8, 36, 63, 0.06);
  --shadow-md: 0 14px 36px rgba(8, 36, 63, 0.12);
  --shadow-lg: 0 28px 70px rgba(8, 36, 63, 0.18);
  --t-fast: 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-med:  0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  --topbar-h: 42px;
  --nav-h:    78px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green-500); color: var(--navy-950); }

/* ---------- TIPOGRAFÍA ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.01em; color: var(--navy-900); margin: 0 0 0.55em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: 20px;
  padding: 8px 16px; background: rgba(31, 111, 178, 0.08);
  border: 1px solid rgba(31, 111, 178, 0.18); border-radius: 999px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500); box-shadow: 0 0 8px var(--green-glow);
}
.eyebrow--light {
  color: var(--blue-300);
  background: rgba(46, 143, 208, 0.12);
  border-color: rgba(46, 143, 208, 0.28);
}
.text-green { color: var(--green-500); }

/* ---------- BOTONES ---------- */
.btn {
  --btn-bg: var(--navy-800); --btn-fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 26px; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 10px; background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast),
              box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer; white-space: nowrap; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform 0.7s ease; pointer-events: none;
}
.btn:hover::after { transform: translateX(110%); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }
.btn__icon {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--t-fast); position: relative; z-index: 1;
}
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--green-500); --btn-fg: var(--navy-950); }
.btn--primary:hover { --btn-bg: var(--green-400); box-shadow: 0 14px 34px rgba(92, 184, 92, 0.40); }
.btn--ghost { --btn-bg: rgba(255,255,255,0.06); --btn-fg: var(--white); border-color: rgba(255,255,255,0.35); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,0.45); }
.btn--outline-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--whatsapp { --btn-bg: #25d366; --btn-fg: #06301a; }
.btn--whatsapp:hover { --btn-bg: #1eb955; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- HEADER ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: box-shadow var(--t-med); }
.topbar {
  background: var(--navy-950); color: rgba(255,255,255,0.72);
  font-size: 0.78rem; height: var(--topbar-h); display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 14px; height: 14px; stroke: var(--green-500); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__item a { transition: color var(--t-fast); }
.topbar__item a:hover { color: var(--green-400); }
.topbar__item--ruc { color: rgba(255,255,255,0.5); font-weight: 500; letter-spacing: 0.02em; }
.topbar__alcance { color: var(--green-400); font-weight: 600; letter-spacing: 0.04em; position: relative; padding-left: 16px; }
.topbar__alcance::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 8px var(--green-glow); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: rgba(255,255,255,0.55); transition: color var(--t-fast), background var(--t-fast); }
.topbar__social a svg { width: 14px; height: 14px; }
.topbar__social a:hover { color: var(--green-400); background: rgba(92,184,92,0.12); }

.mainnav { background: var(--white); height: var(--nav-h); border-bottom: 1px solid var(--grey-100); transition: box-shadow var(--t-med); }
.site-header.is-scrolled .mainnav { box-shadow: 0 8px 26px rgba(8, 36, 63, 0.10); }
.mainnav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 52px; width: auto; display: block; transition: transform var(--t-fast); }
.brand:hover .brand__logo { transform: scale(1.03); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-block; padding: 10px 16px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--navy-800); border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--green-500); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t-med);
}
.nav__link:hover { color: var(--blue-500); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy-900); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 12px; padding: 12px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--grey-200);
  padding: 0 11px; background: var(--white);
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform var(--t-med), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- NAV — SUBMENÚ DE SERVICIOS ---------- */
.nav__item--has-sub {
  position: relative;
  display: flex;
  align-items: center;
}

/* Píldora que agrupa el link + chevron en desktop */
.nav__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 4px;
  border-radius: 999px;
  transition: background var(--t-fast);
}
.nav__item--has-sub:hover .nav__pill,
.nav__item--has-sub:focus-within .nav__pill {
  background: var(--grey-50);
}

/* El chevron */
.nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--navy-800);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.nav__sub-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav__item--has-sub:hover .nav__sub-toggle { color: var(--blue-500); }

/* Rotación del chevron cuando está abierto */
.nav__item--has-sub:hover .nav__sub-toggle svg,
.nav__item--has-sub.is-open .nav__sub-toggle svg {
  transform: rotate(180deg);
}

/* Panel desplegable */
.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  padding: 10px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--grey-100);
  box-shadow: 0 20px 48px rgba(8, 36, 63, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
  z-index: 20;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub,
.nav__item--has-sub.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ítems del submenú */
.nav__sub li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__sub li a:hover {
  background: var(--grey-50);
}

/* Ícono cuadrado verde suave */
.nav__sub-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(92, 184, 92, 0.12);
  color: var(--green-600);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__sub-icon svg {
  width: 20px;
  height: 20px;
}
.nav__sub li a:hover .nav__sub-icon {
  background: var(--green-500);
  color: var(--white);
}

/* Texto del submenú */
.nav__sub-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.25;
}
.nav__sub li a:hover .nav__sub-label {
  color: var(--blue-500);
}

/* ---------- HERO ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 90px) 0 0;
  background: var(--navy-950); color: var(--white);
  overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&q=80&auto=format&fit=crop');
  background-size: cover; background-position: center;
  filter: grayscale(0.25) contrast(1.05); opacity: 0.55;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(31,111,178,0.55), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(92,184,92,0.22), transparent 55%),
    linear-gradient(160deg, rgba(5,21,38,0.92) 0%, rgba(8,36,63,0.88) 45%, rgba(13,51,87,0.82) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; padding-bottom: 70px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px;
  background: rgba(92,184,92,0.14); border: 1px solid rgba(92,184,92,0.32);
  border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--green-400); margin-bottom: 26px;
  backdrop-filter: blur(10px);
}
.hero__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500); box-shadow: 0 0 10px var(--green-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }
.hero__title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.96; margin-bottom: 26px; color: var(--white); }
.hero__title em { font-style: normal; color: var(--green-400); }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255,255,255,0.82); max-width: 680px; margin: 0 0 40px; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 0; padding-bottom: 80px;
}
.stat {
  padding: 30px 26px; border-left: 1px solid rgba(255,255,255,0.10);
  display: flex; flex-direction: column; gap: 6px; transition: background var(--t-fast);
}
.stat:first-child { border-left: none; }
.stat:hover { background: rgba(255,255,255,0.03); }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; line-height: 1; color: var(--white); }
.stat__num[data-text] { color: var(--green-400); font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: 0.05em; }
.stat__label { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.45; letter-spacing: 0.01em; }

/* ---------- SECCIONES ---------- */
.section { padding: 110px 0; position: relative; }
.section--light { background: var(--grey-50); }
.section--dark { background: var(--navy-950); color: rgba(255,255,255,0.82); }
.section--dark h2, .section--dark h3, .section--dark .section__title { color: var(--white); }
.section--dark .section__lead { color: rgba(255,255,255,0.68); }
.section__head { max-width: 780px; margin-bottom: 64px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { margin-inline: auto; }
.section__head--left { margin-bottom: 28px; }
.section__title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 20px; }
.section__lead { font-size: 1.05rem; color: var(--grey-600); line-height: 1.7; margin: 0; letter-spacing: -0.003em; }

/* ---------- CATEGORÍAS ---------- */
.categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.category {
  position: relative; background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg); padding: 42px 38px 36px; overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex; flex-direction: column; min-height: 360px; box-shadow: var(--shadow-sm);
}
.category::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med);
}
.category::after {
  content: ""; position: absolute; bottom: -60px; right: -60px;
  width: 240px; height: 240px; background: radial-gradient(circle, rgba(31,111,178,0.12), transparent 70%);
  pointer-events: none; transition: background var(--t-med);
}
.category:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.category:hover::before { transform: scaleX(1); }
.category:hover::after { background: radial-gradient(circle, rgba(92,184,92,0.20), transparent 70%); }
.category__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.category__icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: var(--white);
  box-shadow: 0 10px 24px rgba(31,111,178,0.28);
  transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.category__icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.category:hover .category__icon { background: linear-gradient(135deg, var(--green-600), var(--green-400)); transform: rotate(-5deg) scale(1.06); box-shadow: 0 14px 32px rgba(92,184,92,0.38); }
.category__num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--grey-200); transition: color var(--t-med); }
.category:hover .category__num { color: var(--grey-300); }
.category__title { font-size: 1.6rem; margin-bottom: 14px; color: var(--navy-900); line-height: 1.08; }
.category__desc { font-size: 0.96rem; color: var(--grey-600); margin: 0 0 26px; line-height: 1.65; flex: 1; }
.category__list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--grey-100); }
.category__list li { font-size: 0.78rem; font-weight: 600; padding: 7px 14px; background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 999px; color: var(--navy-800); letter-spacing: 0.01em; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.category:hover .category__list li { border-color: rgba(92,184,92,0.35); background: rgba(92,184,92,0.06); color: var(--navy-900); }
.categories-cta { margin-top: 50px; text-align: center; }

/* ---------- SERVICIOS ---------- */
.services-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: end; margin-bottom: 60px; }
.services-intro .section__head { margin-bottom: 0; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.services--grid { grid-template-columns: repeat(3, 1fr); }
.services--grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  position: relative; background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-md); padding: 34px 30px 30px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--grey-200); transition: color var(--t-med); }
.service-card:hover .service-card__num { color: var(--grey-300); }
.service-card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: var(--white);
  margin-bottom: 22px; box-shadow: 0 8px 20px rgba(31,111,178,0.25);
  transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.service-card__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-card__icon { background: linear-gradient(135deg, var(--green-600), var(--green-400)); transform: rotate(-4deg) scale(1.05); box-shadow: 0 12px 28px rgba(92,184,92,0.35); }
.service-card__title { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy-900); line-height: 1.18; padding-right: 40px; }
.service-card__desc { font-size: 0.9rem; color: var(--grey-600); margin: 0; line-height: 1.65; flex: 1; }

.services-more {
  margin-top: 48px; padding: 38px 42px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.services-more::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 340px; height: 340px; background: radial-gradient(circle, rgba(92,184,92,0.22), transparent 70%);
  pointer-events: none;
}
.services-more > * { position: relative; z-index: 1; }
.services-more p { margin: 0; color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 520px; line-height: 1.6; }
.services-more .btn { flex-shrink: 0; }

/* ---------- CAPACIDADES ---------- */
.capabilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.capability {
  display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: start;
  padding: 34px 32px; background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.capability:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.capability__num {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1;
  color: transparent; background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  -webkit-background-clip: text; background-clip: text; text-align: center;
  display: grid; place-items: center; min-height: 60px;
}
.capability__content h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--navy-900); }
.capability__content p { font-size: 0.92rem; color: var(--grey-600); margin: 0 0 14px; line-height: 1.6; }
.capability__list { display: flex; flex-wrap: wrap; gap: 8px; }
.capability__list li { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 999px; color: var(--navy-800); letter-spacing: 0.01em; }
.capability:hover .capability__list li { border-color: rgba(92,184,92,0.35); background: rgba(92,184,92,0.06); }

/* ---------- PROCESO ---------- */
.process {
  position: relative; overflow: hidden; background: var(--navy-950);
  padding: 110px 0; isolation: isolate;
}
.process::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(31,111,178,0.22), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(92,184,92,0.14), transparent 55%);
  z-index: 0;
}
.process__inner { position: relative; z-index: 2; }
.process .section__title, .process h2, .process h3 { color: var(--white); }
.process .section__lead { color: rgba(255,255,255,0.72); }
.process .eyebrow { color: var(--blue-300); background: rgba(46,143,208,0.14); border-color: rgba(46,143,208,0.32); }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.timeline__item {
  position: relative; padding: 30px 24px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: transform var(--t-med), background var(--t-fast), border-color var(--t-fast);
}
.timeline__item:hover { transform: translateY(-6px); background: rgba(255,255,255,0.07); border-color: rgba(92,184,92,0.4); }
.timeline__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  color: var(--navy-950); font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(92,184,92,0.30);
}
.timeline__item h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.timeline__item p { font-size: 0.86rem; color: rgba(255,255,255,0.62); margin: 0; line-height: 1.6; }

/* ---------- NOSOTROS ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.about__media { position: relative; }
.about__media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.about__media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1); }
.about__media-frame:hover img { transform: scale(1.05); }
.about__media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 40%, rgba(8,36,63,0.55) 100%); pointer-events: none; }
.about__badge {
  position: absolute; bottom: -24px; left: -24px;
  background: linear-gradient(140deg, var(--green-500), var(--green-600));
  color: var(--navy-950); border-radius: var(--radius-md); padding: 26px 30px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 4px; max-width: 220px;
}
.about__badge strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.about__badge span { font-size: 0.82rem; font-weight: 600; line-height: 1.35; }
.about__content > p { color: var(--grey-600); font-size: 1rem; line-height: 1.75; margin-bottom: 18px; }
.about__content > p strong { color: var(--navy-900); }
.about__list { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.about__list li h3 { font-size: 1rem; margin-bottom: 6px; color: var(--navy-900); text-transform: none; letter-spacing: 0; position: relative; padding-left: 22px; }
.about__list li h3::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--green-400), var(--green-600)); box-shadow: 0 0 10px rgba(92,184,92,0.5); }
.about__list li p { font-size: 0.86rem; color: var(--grey-600); margin: 0 0 0 22px; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta {
  position: relative; padding: 100px 0; overflow: hidden;
  isolation: isolate; background: var(--navy-900); color: var(--white);
}
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) contrast(1.1); opacity: 0.30; }
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(5,21,38,0.95) 0%, rgba(13,51,87,0.88) 55%, rgba(31,111,178,0.70) 130%),
    radial-gradient(circle at 20% 80%, rgba(92,184,92,0.28), transparent 60%);
}
.cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 60px; }
.cta__title { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--white); margin-bottom: 14px; line-height: 1.05; }
.cta__lead { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin: 0; max-width: 560px; line-height: 1.7; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- CONTACTO ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.contact__form { background: var(--white); border-radius: var(--radius-md); padding: 42px; box-shadow: var(--shadow-md); border: 1px solid var(--grey-100); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy-900); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-size: 0.92rem;
  background: var(--grey-50); border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm); color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  resize: vertical; font-family: var(--font-body);
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(31,111,178,0.10);
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #e05252; background: #fff5f5; }
.contact__form .field:last-of-type { margin-bottom: 20px; }
.checkbox { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; font-size: 0.85rem; color: var(--grey-600); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-500); flex-shrink: 0; cursor: pointer; }
.checkbox.is-invalid span { color: #e05252; }
.form-msg { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-msg.is-success {
  color: var(--green-600);
  background: rgba(92, 184, 92, 0.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green-500);
  text-align: left;
}
.form-msg.is-error {
  color: #e05252;
  background: rgba(224, 82, 82, 0.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #e05252;
  text-align: left;
}
.contact__aside { display: flex; flex-direction: column; gap: 22px; }

.info-card {
  position: relative;
  background: #051526 !important;
  background: linear-gradient(150deg, #051526 0%, #0d3357 100%) !important;
  color: #ffffff !important;
  border-radius: var(--radius-md);
  padding: 38px 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.info-card::before {
  content: ""; position: absolute; top: -50%; right: -25%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(92,184,92,0.22), transparent 70%);
  pointer-events: none; z-index: 0;
}
.info-card::after {
  content: ""; position: absolute; bottom: -50%; left: -25%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(31,111,178,0.30), transparent 70%);
  pointer-events: none; z-index: 0;
}
.info-card > * { position: relative; z-index: 1; }
.info-card h3 { color: #ffffff !important; font-size: 1.35rem; margin-bottom: 26px; }
.info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(92,184,92,0.16) !important;
  border: 1px solid rgba(92,184,92,0.35) !important;
  color: var(--green-400) !important;
  flex-shrink: 0;
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list strong {
  color: #5aafe3 !important; display: block; font-size: 0.76rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px;
}
.info-list p { color: rgba(255,255,255,0.92) !important; font-size: 0.92rem; margin: 0 0 4px; line-height: 1.5; }
.info-list p a { color: #ffffff !important; transition: color var(--t-fast); }
.info-list p a:hover { color: var(--green-400) !important; }
.info-card .btn--whatsapp { background: #25d366 !important; color: #06301a !important; }
.info-card .btn--whatsapp:hover { background: #1eb955 !important; }

.map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--grey-100); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ---------- FLOW ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow__item {
  position: relative; display: block; padding: 32px 24px 26px;
  background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  overflow: hidden;
}
.flow__item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med);
}
.flow__item:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.flow__item:hover::before { transform: scaleX(1); }
.flow__num {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-500) 100%) !important;
  color: var(--white) !important;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  line-height: 1; margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(31,111,178,0.28);
  transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
  flex-shrink: 0;
}
.flow__item:hover .flow__num {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-400) 100%) !important;
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 12px 28px rgba(92,184,92,0.35);
}
.flow__item h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy-900); }
.flow__item p { font-size: 0.88rem; color: var(--grey-600); margin: 0; line-height: 1.6; }

/* ---------- VALUES / MODES ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  position: relative; background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg); padding: 40px 34px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.value-card::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 130px; height: 130px;
  background: radial-gradient(circle at top right, rgba(31,111,178,0.14), transparent 70%);
  pointer-events: none;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.value-card__num {
  font-family: var(--font-display); font-size: 2.6rem;
  background: linear-gradient(120deg, var(--blue-500), var(--green-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 16px;
}
.value-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--navy-900); }
.value-card p { font-size: 0.94rem; color: var(--grey-600); margin: 0; line-height: 1.65; }

.modes {
  position: relative; border-radius: var(--radius-lg); padding: 52px 46px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-950) 0%, var(--navy-700) 100%);
  color: rgba(255,255,255,0.82); isolation: isolate;
}
.modes::before { content: ""; position: absolute; top: -50%; right: -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(92,184,92,0.28), transparent 70%); pointer-events: none; z-index: 0; }
.modes::after { content: ""; position: absolute; bottom: -50%; left: -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(31,111,178,0.30), transparent 70%); pointer-events: none; z-index: 0; }
.modes > * { position: relative; z-index: 1; }
.modes__title { font-size: 1.55rem; color: var(--white); margin-bottom: 12px; }
.modes__lead { font-size: 0.98rem; color: rgba(255,255,255,0.68); margin: 0 0 28px; max-width: 720px; line-height: 1.65; }
.modes__list { display: flex; flex-wrap: wrap; gap: 12px; }
.modes__list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; font-size: 0.92rem; color: var(--white); font-weight: 500;
  backdrop-filter: blur(10px);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.modes__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 10px var(--green-glow); }
.modes__list li:hover { background: rgba(92,184,92,0.16); border-color: rgba(92,184,92,0.5); transform: translateY(-2px); }

/* ---------- PROYECTOS ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project {
  position: relative; background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1); }
.project:hover .project__media img { transform: scale(1.07); }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,21,38,0.00) 40%, rgba(5,21,38,0.55) 100%); pointer-events: none; }
.project__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  padding: 7px 14px; background: rgba(92,184,92,0.95); color: var(--navy-950);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px; backdrop-filter: blur(10px); box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}
.project__year {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  padding: 7px 14px; background: rgba(5,21,38,0.75); color: var(--white);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; border-radius: 999px; backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
}
.project__body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.project__title { font-size: 1.35rem; margin-bottom: 6px; color: var(--navy-900); line-height: 1.15; }
.project__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; font-size: 0.8rem; color: var(--grey-400); letter-spacing: 0.04em; text-transform: uppercase; }
.project__meta span { display: inline-flex; align-items: center; gap: 6px; }
.project__meta svg { width: 14px; height: 14px; stroke: var(--green-500); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.project__desc { font-size: 0.92rem; color: var(--grey-600); line-height: 1.65; margin: 0 0 20px; flex: 1; }
.project__scope { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--grey-100); }
.project__scope li { font-size: 0.76rem; font-weight: 600; padding: 6px 12px; background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 999px; color: var(--navy-800); letter-spacing: 0.01em; transition: border-color var(--t-fast), background var(--t-fast); }
.project:hover .project__scope li { border-color: rgba(92,184,92,0.35); background: rgba(92,184,92,0.06); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-950); color: rgba(255,255,255,0.62);
  padding: 80px 0 0; font-size: 0.9rem; position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92,184,92,0.5), transparent);
}
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer__brand-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 18px;
}
.footer__brand p { margin: 0 0 24px; max-width: 380px; line-height: 1.7; color: rgba(255,255,255,0.62); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer__title { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 20px; letter-spacing: 0.08em; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul li a { transition: color var(--t-fast), padding-left var(--t-fast); display: inline-block; color: rgba(255,255,255,0.68); }
.footer__col ul li a:hover { color: var(--green-400); padding-left: 5px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; color: rgba(255,255,255,0.68); }
.footer__contact svg { width: 18px; height: 18px; stroke: var(--green-400); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }
.footer__contact a:hover { color: var(--green-400); }
.social { display: flex; gap: 8px; margin-top: 4px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.72);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.social a svg { width: 18px; height: 18px; }
.social a:hover { background: var(--green-500); border-color: var(--green-500); color: var(--navy-950); transform: translateY(-3px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; font-size: 0.82rem; color: rgba(255,255,255,0.42); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--green-400); }

/* ---------- FABs ---------- */
.whatsapp-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  display: grid; place-items: center; width: 60px; height: 60px;
  border-radius: 50%; background: linear-gradient(140deg, #25d366, #1eb955);
  color: #06301a; box-shadow: 0 14px 34px rgba(37,211,102,0.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #25d366; animation: ringPulse 2.2s infinite; pointer-events: none;
}
@keyframes ringPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.45); opacity: 0; } }
.whatsapp-fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 42px rgba(37,211,102,0.60); }

.to-top {
  position: fixed; bottom: 100px; right: 26px; z-index: 900;
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--navy-800); color: var(--white);
  border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-med), visibility var(--t-med), transform var(--t-med), background var(--t-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-500); color: var(--navy-950); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .whatsapp-fab::after { display: none; }
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 100px) 0 100px;
  color: var(--white); overflow: hidden; isolation: isolate; background: var(--navy-950);
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.05); opacity: 0.5; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(31,111,178,0.5), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(92,184,92,0.20), transparent 55%),
    linear-gradient(160deg, rgba(5,21,38,0.94) 0%, rgba(8,36,63,0.88) 50%, rgba(13,51,87,0.85) 100%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 880px; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--white); margin-bottom: 22px; line-height: 1; }
.page-hero__lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: rgba(255,255,255,0.82); line-height: 1.7; margin: 0; max-width: 680px; }

.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--green-400); }
.breadcrumb span[aria-current] { color: var(--green-400); }
.breadcrumb__sep { opacity: 0.4; }

/* ---------- NOTICE ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px 28px;
  background: linear-gradient(120deg, rgba(92,184,92,0.08), rgba(31,111,178,0.06));
  border-left: 4px solid var(--green-500); border-radius: 14px;
  color: var(--grey-800); font-size: 0.95rem; line-height: 1.6;
}
.notice strong { color: var(--navy-900); }
.notice__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--green-600); }

/* ---------- LEGAL ---------- */
.legal { max-width: 880px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; color: var(--navy-900); }
.legal h3 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 12px; color: var(--navy-800); text-transform: none; letter-spacing: 0; }
.legal p, .legal li { font-size: 0.98rem; color: var(--grey-800); line-height: 1.75; letter-spacing: -0.003em; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 20px; padding-left: 22px; list-style: disc; }
.legal ul li { margin-bottom: 8px; }
.legal ul li::marker { color: var(--green-500); }
.legal a { color: var(--blue-500); text-decoration: underline; }
.legal a:hover { color: var(--green-600); }
.legal__meta {
  display: flex; flex-wrap: wrap; gap: 20px; padding: 18px 22px;
  background: var(--grey-50); border-left: 4px solid var(--blue-500);
  border-radius: 10px; margin-bottom: 32px; font-size: 0.88rem; color: var(--grey-600);
}
.legal__meta strong { color: var(--navy-900); }
.legal__notice {
  padding: 20px 24px; background: rgba(92,184,92,0.08);
  border-left: 4px solid var(--green-500); border-radius: 10px;
  margin: 24px 0; font-size: 0.95rem; color: var(--grey-800); line-height: 1.65;
}

/* ---------- LIBRO RECLAMACIONES ---------- */
.reclamaciones { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-md); padding: 40px; box-shadow: var(--shadow-sm); }
.reclamaciones__header { text-align: center; padding-bottom: 24px; margin-bottom: 30px; border-bottom: 2px solid var(--navy-900); }
.reclamaciones__header h2 { font-size: 1.4rem; margin-bottom: 6px; color: var(--navy-900); text-transform: uppercase; }
.reclamaciones__header p { margin: 0; font-size: 0.85rem; color: var(--grey-600); }
.reclamaciones__ficha { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; padding: 18px 22px; background: var(--grey-50); border-radius: 10px; margin-bottom: 30px; font-size: 0.85rem; }
.reclamaciones__ficha div { color: var(--grey-600); }
.reclamaciones__ficha strong { color: var(--navy-900); }

/* ---------- AJUSTES FINOS DE MANROPE ---------- */
.section__lead,
.hero__lead,
.legal p,
.legal li {
  letter-spacing: -0.003em;
}

.btn,
.nav__link,
.eyebrow,
.category__list li,
.project__scope li,
.capability__list li {
  letter-spacing: 0.01em;
}

.eyebrow,
.stat__label,
.info-list strong,
.project__meta,
.footer__title {
  letter-spacing: 0.08em;
}

h1, h2, h3, h4,
.hero__title,
.section__title,
.category__title,
.service-card__title,
.project__title {
  letter-spacing: -0.01em;
}

/* ============================================
   Misión y Visión
   ============================================ */
.mv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.mv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.75rem 2.75rem 2.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--green-500) 100%);
}

.mv-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 211, 110, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.mv-card__num {
  position: absolute;
  top: 2.25rem;
  right: 2.25rem;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--grey-200);
  pointer-events: none;
}

.mv-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-400) 100%);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(92, 184, 92, 0.32);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.mv-card__icon svg {
  width: 28px;
  height: 28px;
}

.mv-card__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin: 0 0 0.85rem;
  position: relative;
  z-index: 1;
}

.mv-card__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--grey-600);
  margin: 0 0 1.75rem;
  position: relative;
  z-index: 1;
}

.mv-card__text strong {
  color: var(--navy-900);
  font-weight: 600;
}

.mv-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--grey-200);
  position: relative;
  z-index: 1;
}

.mv-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-600);
  background: var(--white);
  border: 1px solid rgba(92, 184, 92, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================
   Banner de cookies
   ============================================ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1100; padding: 0 20px 20px;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.cookie-banner.is-visible { transform: translateY(0); pointer-events: auto; }

.cookie-banner__inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  padding: 22px 26px;
  background: var(--navy-950);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 60px rgba(5, 21, 38, 0.35);
  overflow: hidden;
}
.cookie-banner__inner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--green-500) 100%);
}
.cookie-banner__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  color: var(--white); flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(92,184,92,0.32);
}
.cookie-banner__icon svg { width: 28px; height: 28px; }
.cookie-banner__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
  margin: 0 0 4px;
}
.cookie-banner__text {
  font-size: 0.86rem; line-height: 1.55;
  color: rgba(255,255,255,0.72); margin: 0;
}
.cookie-banner__text a { color: var(--green-400); text-decoration: underline; }
.cookie-banner__text a:hover { color: var(--green-glow); }
.cookie-banner__actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.cookie-btn--primary { background: var(--green-500); color: var(--navy-950); }
.cookie-btn--primary:hover { background: var(--green-400); transform: translateY(-1px); }
.cookie-btn--outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.cookie-btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.cookie-btn--ghost { background: transparent; color: rgba(255,255,255,0.75); padding-inline: 12px; }
.cookie-btn--ghost:hover { color: var(--white); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.cookie-modal.is-visible { opacity: 1; visibility: visible; }
.cookie-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,21,38,0.75); backdrop-filter: blur(6px); cursor: pointer;
}
.cookie-modal__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(5,21,38,0.40);
  display: flex; flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--t-med);
}
.cookie-modal.is-visible .cookie-modal__dialog { transform: translateY(0); }
.cookie-modal__head {
  position: relative; padding: 24px 26px 16px;
  border-bottom: 1px solid var(--grey-100);
}
.cookie-modal__head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.cookie-modal__head h3 { font-size: 1.35rem; margin: 0; color: var(--navy-900); }
.cookie-modal__close {
  position: absolute; top: 18px; right: 18px;
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; color: var(--grey-600);
  transition: background var(--t-fast), color var(--t-fast);
}
.cookie-modal__close:hover { background: var(--grey-100); color: var(--navy-900); }
.cookie-modal__close svg { width: 18px; height: 18px; }
.cookie-modal__body { padding: 20px 26px; }
.cookie-modal__intro { font-size: 0.9rem; color: var(--grey-600); margin: 0 0 20px; line-height: 1.6; }

.cookie-pref {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--grey-100); cursor: pointer;
}
.cookie-pref:last-child { border-bottom: none; }
.cookie-pref__info { flex: 1; }
.cookie-pref__info strong { display: block; font-size: 0.95rem; color: var(--navy-900); margin-bottom: 4px; }
.cookie-pref__info span { font-size: 0.84rem; color: var(--grey-600); line-height: 1.55; display: block; }

.cookie-switch {
  position: relative; display: inline-block;
  width: 46px; height: 26px; flex-shrink: 0; margin-top: 2px;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch__slider {
  position: absolute; inset: 0; background: var(--grey-300);
  border-radius: 999px; transition: background var(--t-fast);
}
.cookie-switch__slider::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; background: var(--white); border-radius: 50%;
  transition: transform var(--t-fast);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.cookie-switch input:checked + .cookie-switch__slider { background: var(--green-500); }
.cookie-switch input:checked + .cookie-switch__slider::before { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-switch__slider { opacity: 0.6; }

.cookie-modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 26px 22px; border-top: 1px solid var(--grey-100); flex-wrap: wrap;
}
.cookie-modal__foot .cookie-btn--ghost { color: var(--grey-600); }
.cookie-modal__foot .cookie-btn--ghost:hover { color: var(--navy-900); background: var(--grey-100); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .services--grid { grid-template-columns: repeat(2, 1fr); }
  .services--grid-2 { grid-template-columns: 1fr; }
  .services-intro { grid-template-columns: 1fr; gap: 30px; }
  .capabilities { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 80px; }
  .about__media { max-width: 460px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  .topbar__left .topbar__item--ruc, .topbar__alcance { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 22px 24px 30px; border-top: 1px solid var(--grey-100);
    box-shadow: 0 22px 44px rgba(8,36,63,0.18);
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 20px; }
  .nav__link { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--grey-100); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--green-600); border-bottom-color: var(--green-500); }
  .nav__cta { width: 100%; margin-left: 0; }
  .brand__logo { height: 44px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.10); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.10); }
  .cta__inner { grid-template-columns: 1fr; gap: 36px; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Submenú en móvil */
  .nav__item--has-sub { display: block; position: relative; }
  .nav__pill { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border-radius: 0; }
  .nav__pill .nav__link { flex: 1; padding-right: 48px; }
  .nav__sub-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .nav__sub-toggle:hover { background: var(--grey-100); }
  .nav__item--has-sub:hover .nav__sub-toggle svg { transform: none; }
  .nav__item--has-sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }

  .nav__sub {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 6px 0 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav__item--has-sub.is-open .nav__sub { max-height: 420px; }

  .nav__sub li a {
    padding: 10px 12px 10px 8px;
    border-bottom: none;
  }
  .nav__sub-icon {
    width: 36px;
    height: 36px;
  }
  .nav__sub-icon svg { width: 18px; height: 18px; }
  .nav__sub-label { font-size: 0.95rem; }
}

@media (max-width: 860px) {
  .mv {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.25rem;
  }
  .mv-card {
    padding: 2.25rem 1.75rem 1.85rem;
  }
  .mv-card__num {
    top: 1.75rem;
    right: 1.75rem;
    font-size: 3rem;
  }
  .mv-card__title {
    font-size: 1.65rem;
  }
  .cookie-banner__inner { grid-template-columns: auto 1fr; gap: 16px; padding: 20px; }
  .cookie-banner__actions { grid-column: 1 / -1; width: 100%; }
  .cookie-banner__actions .cookie-btn { flex: 1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .section { padding: 80px 0; }
  .topbar { font-size: 0.72rem; }
  .topbar__inner { gap: 12px; }
  .topbar__left, .topbar__right { gap: 12px; }
  .topbar__social { display: none; }
  .hero { padding-top: calc(var(--header-h) + 50px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr; padding-bottom: 60px; }
  .stat { border-right: none !important; }
  .services--grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .capability { grid-template-columns: 1fr; text-align: left; }
  .capability__num { text-align: left; }
  .category { padding: 34px 26px 28px; min-height: auto; }
  .category__title { font-size: 1.35rem; }
  .category__num { font-size: 2.6rem; }
  .about__list { grid-template-columns: 1fr; }
  .about__badge { position: static; margin-top: 22px; margin-inline: auto; max-width: 100%; }
  .contact__form { padding: 30px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-fab { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .to-top { width: 44px; height: 44px; bottom: 86px; right: 20px; }
  .values { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--header-h) + 60px); padding-bottom: 70px; }
  .services-more { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .services-more .btn { width: 100%; }
  .flow { grid-template-columns: 1fr; }
  .reclamaciones { padding: 24px 20px; }
  .reclamaciones__ficha { grid-template-columns: 1fr; }
  .legal h2 { font-size: 1.25rem; margin-top: 36px; }
  .project__body { padding: 24px 22px 26px; }
  .project__title { font-size: 1.2rem; }
  .cookie-banner { padding: 0 12px 12px; }
  .cookie-banner__inner { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .cookie-banner__icon { width: 44px; height: 44px; }
  .cookie-banner__icon svg { width: 22px; height: 22px; }
  .cookie-banner__title { font-size: 1rem; }
  .cookie-banner__text { font-size: 0.82rem; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__actions .cookie-btn { width: 100%; }
  .cookie-modal__head, .cookie-modal__body, .cookie-modal__foot { padding-inline: 20px; }
  .cookie-modal__foot { flex-direction: column-reverse; }
  .cookie-modal__foot .cookie-btn { width: 100%; }
  .footer__brand-title { font-size: 1.6rem; }
}


.capabilities > .capability:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Ajuste de proporción para la tarjeta ancha */
.capabilities > .capability--wide {
  grid-column: 1 / -1;
}
.capabilities > .capability--wide .capability__content {
  max-width: 720px;
}

@media (max-width: 1080px) {
  .capabilities > .capability:last-child:nth-child(odd),
  .capabilities > .capability--wide {
    grid-column: auto;
  }
}