/* ===== ALCANEL ELECTRIC SAS — Design System ===== */
:root {
  --c-deep: #05070B;
  --c-deep-2: #0A0F1A;
  --c-navy: #0B2F78;
  --c-navy-2: #0E3A95;
  --c-blue: #1F5CC8;
  --c-blue-2: #2A6FDB;
  --c-cyan: #A8D7FF;
  --c-cyan-glow: #5EB4FF;
  --c-steel: #8A8F98;
  --c-steel-2: #B7BDC6;
  --c-line: rgba(255,255,255,0.08);
  --c-line-2: rgba(255,255,255,0.14);
  --c-paper: #F4F6FA;
  --c-paper-2: #E8ECF2;
  --c-white: #FFFFFF;
  --c-yellow: #FFC400;
  --c-red: #E30613;

  --header-h: 92px;

  --shadow-1: 0 1px 2px rgba(5,7,11,0.06), 0 4px 16px rgba(5,7,11,0.08);
  --shadow-2: 0 12px 48px rgba(5,7,11,0.22);
  --shadow-glow: 0 0 0 1px rgba(94,180,255,0.35), 0 12px 40px rgba(31,92,200,0.35);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --ff-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ff-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  color: #0E1320;
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--c-navy); color: white; }

.app { min-height: 100vh; overflow-x: hidden; }
.app > main { padding-top: var(--header-h); }

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #0B1530 0%, #05070B 70%);
  display: grid; place-items: center;
  transition: opacity .55s ease, visibility .55s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__mark {
  width: 120px; height: 120px; margin: 0 auto 24px;
  position: relative;
}
.loader__mark svg { width: 100%; height: 100%; }
.loader__bolt path { stroke: var(--c-cyan-glow); }
.loader__title {
  font-family: var(--ff-display); font-weight: 800;
  font-size: 28px; letter-spacing: 0.32em; color: white;
  margin: 0;
}
.loader__subtitle {
  margin-top: 6px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.42em; color: var(--c-cyan); text-transform: uppercase;
}
.loader__bar {
  margin: 26px auto 0; width: 200px; height: 2px;
  background: rgba(255,255,255,0.1); position: relative; overflow: hidden;
}
.loader__bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--c-cyan-glow), transparent);
  animation: load-sweep 1.1s ease-in-out infinite;
}
@keyframes load-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.loader__pulse {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(94,180,255,0.5);
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== LOGO ===== */
.logo {
  display: inline-flex; align-items: center;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
}
.logo:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 14px rgba(94,180,255,0.45));
}
.logo__img {
  height: 62px; width: auto; display: block;
}
.footer .logo__img { height: 86px; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 0;
  background: rgba(5, 7, 11, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-line);
  transition: padding .35s ease;
}
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(3, 5, 10, 0.96);
}
.header__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__nav-item {
  position: relative;
  padding: 10px 14px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85); background: transparent; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease;
}
.header__nav-item:hover { color: white; }
.header__nav-item.is-active { color: var(--c-cyan-glow); }
.header__nav-item.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--c-cyan-glow);
}
.header__nav-item .chev {
  width: 8px; height: 8px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.6; transition: transform .25s ease;
}
.header__nav-item:hover .chev { transform: rotate(45deg) translate(0, 0); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__quick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--c-line-2); background: transparent;
  border-radius: 50%;
  color: white; transition: all .2s ease;
}
.header__quick:hover {
  background: var(--c-cyan-glow); border-color: var(--c-cyan-glow); color: #05070B;
}
.header .logo__name { color: white; }

/* ===== MEGA MENU ===== */
.mega {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(8, 12, 26, 0.96);
  backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  color: white;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 999;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner {
  max-width: 1440px; margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 48px;
}
.mega__intro h3 {
  font-size: 24px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.mega__intro p {
  font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.6;
  margin: 0 0 20px;
}
.mega__intro .badge {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  background: rgba(94,180,255,0.12);
  color: var(--c-cyan-glow); font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 16px;
}
.mega__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--c-line);
}
.mega__cat {
  background: rgba(8, 12, 26, 0.7);
  padding: 20px;
  transition: background .25s ease;
  cursor: pointer;
}
.mega__cat:hover { background: rgba(31,92,200,0.18); }
.mega__cat-title {
  font-size: 14px; font-weight: 700; margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.mega__cat-title .dot {
  width: 6px; height: 6px; background: var(--c-cyan-glow); border-radius: 50%;
}
.mega__cat-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.mega__cat-list li {
  font-size: 12.5px; color: rgba(255,255,255,0.65);
  padding: 4px 0 4px 14px; position: relative;
}
.mega__cat-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px; background: rgba(255,255,255,0.3);
}
.mega__feature {
  position: relative; padding: 20px;
  background: linear-gradient(135deg, rgba(31,92,200,0.25), rgba(11,47,120,0.4));
  border: 1px solid rgba(94,180,255,0.2);
}
.mega__feature h4 {
  font-size: 13px; font-weight: 700; margin: 0 0 8px;
  font-family: var(--ff-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-cyan-glow);
}
.mega__feature .stat {
  font-size: 48px; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; margin: 12px 0 4px;
}
.mega__feature .label { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.02em;
  border: 0; border-radius: 2px;
  text-decoration: none;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--c-red); color: white;
  box-shadow: 0 4px 16px rgba(227,6,19,0.3);
}
.btn--primary:hover {
  background: #ff1623;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(227,6,19,0.45);
}
.btn--electric {
  background: linear-gradient(135deg, var(--c-blue-2), var(--c-navy));
  color: white;
}
.btn--electric:hover {
  background: linear-gradient(135deg, var(--c-cyan-glow), var(--c-blue-2));
  box-shadow: var(--shadow-glow);
}
.btn--ghost {
  background: transparent; color: white;
  border: 1px solid var(--c-line-2);
}
.btn--ghost:hover {
  border-color: var(--c-cyan-glow); color: var(--c-cyan-glow);
}
.btn--ghost-dark {
  background: transparent; color: #0E1320;
  border: 1px solid rgba(0,0,0,0.14);
}
.btn--ghost-dark:hover {
  border-color: var(--c-navy); color: var(--c-navy);
}
.btn .arrow {
  width: 14px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .25s ease;
}
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ===== UTILITY ===== */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--c-blue); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--c-blue);
}
.eyebrow--light { color: var(--c-cyan-glow); }
.eyebrow--light::before { background: var(--c-cyan-glow); }
.section-title {
  font-family: var(--ff-display);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.05;
  font-size: clamp(36px, 5vw, 64px);
  margin: 0;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c-blue-2), var(--c-cyan-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(0,0,0,0.62); max-width: 720px; line-height: 1.6;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: grid; align-items: end;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.45) contrast(1.05);
  animation: hero-zoom 18s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.18); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,7,11,0.55) 0%, rgba(5,7,11,0.5) 40%, rgba(5,7,11,0.95) 100%),
    linear-gradient(120deg, rgba(11,47,120,0.55), rgba(11,47,120,0));
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background-image:
    linear-gradient(rgba(168,215,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,215,255,0.18) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 32px 80px;
  width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px; align-items: end;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 800; line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.hero__title em {
  font-style: normal;
  color: white;
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,0.78);
  max-width: 580px; margin: 0 0 36px; line-height: 1.55;
}
.hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero__meta {
  display: flex; flex-direction: column; gap: 22px;
  padding-bottom: 8px;
}
.hero__meta-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--c-line-2);
}
.hero__meta-row:last-child { border-bottom: 1px solid var(--c-line-2); }
.hero__meta-num {
  font-family: var(--ff-display); font-weight: 800;
  font-size: 40px; letter-spacing: -0.04em; line-height: 1;
  color: var(--c-cyan-glow);
  min-width: 100px;
}
.hero__meta-text {
  font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.45;
}
.hero__scroll {
  position: absolute; left: 32px; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 10px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 60px; height: 1px; background: rgba(255,255,255,0.3);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--c-cyan-glow);
  animation: scroll-tick 2s ease-in-out infinite;
}
@keyframes scroll-tick {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hero__ticker {
  position: absolute; right: 32px; bottom: 24px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--ff-mono); font-size: 10px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__live-dot {
  width: 6px; height: 6px; background: var(--c-cyan-glow);
  border-radius: 50%; box-shadow: 0 0 12px var(--c-cyan-glow);
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== BLUF CARDS ===== */
.bluf {
  background: var(--c-deep);
  color: white;
  padding: 96px 0 120px;
  position: relative;
}
.bluf::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 100px;
  background: linear-gradient(180deg, transparent, rgba(11,47,120,0.15));
  pointer-events: none;
}
.bluf__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--c-line);
  margin-top: 48px;
}
.bluf__card {
  background: var(--c-deep);
  padding: 40px 32px 36px;
  position: relative;
  transition: background .35s ease, transform .35s ease;
  overflow: hidden;
}
.bluf__card:hover { background: rgba(11,47,120,0.18); }
.bluf__card::before {
  content: attr(data-num); position: absolute; top: 24px; right: 28px;
  font-family: var(--ff-mono); font-size: 11px;
  color: rgba(255,255,255,0.3); letter-spacing: 0.2em;
}
.bluf__card-icon {
  width: 56px; height: 56px;
  margin-bottom: 28px;
  display: grid; place-items: center;
  border: 1px solid rgba(94,180,255,0.4);
  border-radius: 50%;
  position: relative;
}
.bluf__card-icon::after {
  content: ''; position: absolute; inset: -6px;
  border: 1px solid rgba(94,180,255,0.15);
  border-radius: 50%;
}
.bluf__card h3 {
  font-size: 22px; font-weight: 700; margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.bluf__card p {
  font-size: 14.5px; color: rgba(255,255,255,0.65);
  line-height: 1.6; margin: 0;
}
.bluf__card-tag {
  margin-top: 24px;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--c-cyan-glow); letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ===== SERVICES GRID ===== */
.services {
  background: var(--c-paper);
  padding: 120px 0;
  position: relative;
}
.services__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 56px;
}
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.service-card {
  position: relative;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  cursor: pointer;
  display: grid; grid-template-rows: auto 1fr;
}
.service-card:hover {
  border-color: var(--c-blue-2);
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}
.service-card__media {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,7,11,0.7));
}
.service-card__num {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-cyan-glow); letter-spacing: 0.2em;
}
.service-card__cat {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  font-family: var(--ff-mono); font-size: 10px;
  color: white; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(31,92,200,0.85);
}
.service-card__body { padding: 28px; }
.service-card__title {
  font-size: 24px; font-weight: 700; margin: 0 0 12px;
  letter-spacing: -0.01em; line-height: 1.2;
}
.service-card__desc {
  font-size: 14.5px; color: rgba(0,0,0,0.62); margin: 0 0 20px;
  line-height: 1.55;
}
.service-card__subs {
  margin: 0 0 24px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-card__subs li {
  font-size: 11.5px; padding: 4px 10px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  color: rgba(0,0,0,0.7);
  font-weight: 500;
}
.service-card__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--c-navy);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06);
}
.service-card__cta .arrow { background: currentColor; }

/* ===== METRICS BAR ===== */
.metrics {
  background: var(--c-navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.metrics::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(94,180,255,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(31,92,200,0.5), transparent 50%);
}
.metrics__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.metrics__cell {
  padding: 56px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.metrics__cell:last-child { border-right: 0; }
.metrics__num {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(40px, 4.5vw, 60px); line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  background: linear-gradient(95deg, white, var(--c-cyan-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metrics__label {
  font-size: 13px; color: rgba(255,255,255,0.72);
  line-height: 1.4;
}
.metrics__sub {
  margin-top: 12px; font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--c-cyan-glow); text-transform: uppercase;
}

/* ===== CLIENTS ===== */
.clients {
  background: white;
  padding: 96px 0;
}
.clients__head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 36px; gap: 32px; flex-wrap: wrap;
}
.clients__head h2 {
  font-size: clamp(28px, 3vw, 40px); font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
  max-width: 600px;
}
.clients__strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 20px 0;
}
.clients__track {
  display: flex; gap: 56px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.clients__chip {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.5vw, 32px); font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,0.3);
  white-space: nowrap;
  transition: color .25s ease;
  display: flex; align-items: center; gap: 12px;
}
.clients__chip::after {
  content: '•'; color: rgba(0,0,0,0.15); margin-left: 56px;
}
.clients__chip:last-child::after { display: none; }
.clients__chip:hover { color: var(--c-navy); }

/* ===== PROJECTS GALLERY ===== */
.projects {
  background: var(--c-deep);
  color: white;
  padding: 120px 0;
}
.projects__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 56px;
}
.projects__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}
.project-tile {
  position: relative; overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.project-tile:nth-child(1) { grid-row: span 2; }
.project-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.project-tile:hover img { transform: scale(1.08); }
.project-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,11,0) 30%, rgba(5,7,11,0.85));
  z-index: 1;
}
.project-tile__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  z-index: 2;
}
.project-tile__cat {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--c-cyan-glow); letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 8px;
}
.project-tile__title {
  font-size: 18px; font-weight: 700; margin: 0;
  letter-spacing: -0.01em;
}
.project-tile__location {
  margin-top: 4px; font-size: 12.5px;
  color: rgba(255,255,255,0.7);
}
.project-tile:nth-child(1) .project-tile__title { font-size: 28px; }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--c-deep);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  color: white;
  border-top: 1px solid var(--c-line);
}
.cta-strip__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center;
}
.cta-strip h2 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 20px;
}
.cta-strip h2 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--c-cyan-glow), white);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-strip p {
  font-size: 16px; color: rgba(255,255,255,0.7); margin: 0 0 28px;
  max-width: 540px;
}
.cta-strip__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip__visual {
  position: relative; height: 280px;
  border: 1px solid var(--c-line-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.cta-strip__visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at center, rgba(94,180,255,0.25), transparent 60%);
}
.cta-strip__visual-bolt {
  font-family: var(--ff-display);
  font-size: 220px; font-weight: 900;
  color: rgba(94,180,255,0.1);
  line-height: 0.8;
  position: relative;
  letter-spacing: -0.06em;
}

/* ===== FOOTER ===== */
.footer {
  background: #03050A;
  color: white;
  padding: 80px 0 32px;
  border-top: 1px solid var(--c-line);
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}
.footer__brand .logo__name { color: white; font-size: 24px; }
.footer__desc {
  font-size: 13.5px; color: rgba(255,255,255,0.6);
  margin: 24px 0; line-height: 1.6;
}
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a {
  font-size: 13px; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 10px;
  transition: color .2s ease;
}
.footer__contact a:hover { color: var(--c-cyan-glow); }
.footer__col h4 {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--c-cyan-glow); text-transform: uppercase;
  margin: 0 0 18px;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 13.5px; color: rgba(255,255,255,0.7);
  transition: color .2s ease;
}
.footer__links a:hover { color: white; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 16px;
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a:hover { color: white; }

/* ===== FLOATING ACTIONS ===== */
.floating {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 900;
  display: flex; flex-direction: column; gap: 10px;
}
.floating__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-navy);
  color: white;
  border: 0;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(11,47,120,0.45);
  transition: all .25s ease;
  position: relative;
}
.floating__btn--wa {
  background: #25D366;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}
.floating__btn:hover {
  transform: scale(1.08);
}
.floating__btn::after {
  content: attr(data-tip);
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%);
  background: #0E1320; color: white;
  padding: 6px 12px; border-radius: 4px;
  font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.floating__btn:hover::after { opacity: 1; }

/* ===== PAGE GENERIC ===== */
.page {
  /* No top padding — .page__hero is dark and already accounts for fixed header height via its own padding */
}
.page__hero {
  position: relative;
  background: var(--c-deep);
  color: white;
  padding: 120px 0 80px;
  overflow: hidden;
}
.page__hero-bg {
  position: absolute; inset: 0; opacity: 0.25; z-index: 0;
}
.page__hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) contrast(1.1); }
.page__hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(5,7,11,0.4), rgba(5,7,11,0.95)),
    linear-gradient(95deg, rgba(11,47,120,0.6), transparent);
}
.page__hero-inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
}
.page__breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 20px;
}
.page__breadcrumbs span:last-child { color: var(--c-cyan-glow); }
.page__hero-title {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(40px, 5.5vw, 76px); line-height: 1.0;
  letter-spacing: -0.035em; margin: 0 0 20px;
}
.page__hero-title em {
  font-style: normal;
  color: white;
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
}
.page__hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,0.72); max-width: 580px;
  margin: 0;
}
.page__hero-side {
  font-family: var(--ff-mono); font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page__hero-side .stat-row {
  display: flex; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1);
}
.page__hero-side .stat-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.page__hero-side .stat-row strong {
  color: var(--c-cyan-glow); font-weight: 700;
  font-family: var(--ff-display); letter-spacing: 0;
  font-size: 16px;
}

/* ===== SERVICES PAGE ===== */
.svc-detail {
  background: var(--c-paper);
  padding: 100px 0;
}
.svc-detail__tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 56px;
}
.svc-detail__tab {
  padding: 16px 24px;
  font-size: 14px; font-weight: 600;
  color: rgba(0,0,0,0.5);
  background: transparent; border: 0;
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.svc-detail__tab:hover { color: var(--c-navy); }
.svc-detail__tab.is-active {
  color: var(--c-navy);
  border-bottom-color: var(--c-navy);
}
.svc-detail__tab-num {
  font-family: var(--ff-mono); font-size: 10px;
  color: rgba(0,0,0,0.4); letter-spacing: 0.2em;
}
.svc-detail__tab.is-active .svc-detail__tab-num { color: var(--c-blue); }

.svc-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.svc-block__visual {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-deep);
}
.svc-block__visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.svc-block__visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,47,120,0.4));
}
.svc-block__tag {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--ff-mono); font-size: 11px;
  color: white; letter-spacing: 0.2em;
  padding: 6px 12px;
  background: rgba(5,7,11,0.7);
  text-transform: uppercase;
  z-index: 1;
}
.svc-block__title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 20px;
}
.svc-block__desc {
  font-size: 16px; color: rgba(0,0,0,0.65);
  line-height: 1.6; margin: 0 0 36px;
}
.svc-block__subs {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column;
}
.svc-block__subs li {
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: grid; grid-template-columns: auto 1fr;
  gap: 20px; align-items: start;
}
.svc-block__subs li:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.svc-block__subs .sub-num {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-blue); letter-spacing: 0.2em;
  padding-top: 2px;
}
.svc-block__subs .sub-name { font-weight: 700; font-size: 15.5px; margin: 0 0 4px; }
.svc-block__subs .sub-desc { font-size: 14px; color: rgba(0,0,0,0.6); line-height: 1.5; margin: 0; }
.svc-block__std {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px;
}
.svc-block__std .std-chip {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  background: white; border: 1px solid rgba(0,0,0,0.1);
  color: var(--c-navy);
}
.svc-block__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== CASOS PAGE ===== */
.casos {
  background: white;
  padding: 80px 0 100px;
}
.casos__filters {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding: 24px 0; margin-bottom: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.casos__filter-group {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.casos__filter-label {
  font-family: var(--ff-mono); font-size: 10px;
  color: rgba(0,0,0,0.5); letter-spacing: 0.2em;
  text-transform: uppercase; margin-right: 6px;
}
.casos__filter-pill {
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 500;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  color: rgba(0,0,0,0.7);
  transition: all .2s ease;
}
.casos__filter-pill:hover { border-color: var(--c-navy); }
.casos__filter-pill.is-active {
  background: var(--c-navy); border-color: var(--c-navy); color: white;
}
.casos__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.case-card {
  position: relative;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  transition: all .3s ease;
}
.case-card:hover {
  border-color: var(--c-navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.case-card__media {
  aspect-ratio: 4/3; overflow: hidden;
  position: relative;
}
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-card:hover .case-card__media img { transform: scale(1.06); }
.case-card__sector {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--ff-mono); font-size: 10px;
  padding: 4px 10px;
  background: var(--c-navy); color: white;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.case-card__body { padding: 24px; }
.case-card__client {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-blue); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 8px;
}
.case-card__title {
  font-size: 18px; font-weight: 700; margin: 0 0 14px;
  letter-spacing: -0.01em; line-height: 1.25;
}
.case-card__meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(0,0,0,0.55);
  padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 14px;
}
.case-card__pdf {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--c-navy); text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== SOBRE NOSOTROS ===== */
.about-timeline {
  background: var(--c-paper);
  padding: 100px 0;
}
.about-timeline__inner {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px;
  align-items: start;
}
.about-timeline__head {
  position: sticky; top: 110px;
}
.timeline {
  position: relative; padding-left: 32px;
}
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px;
  width: 1px; background: rgba(0,0,0,0.12);
}
.timeline__item {
  position: relative; padding-bottom: 40px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -32px; top: 8px;
  width: 17px; height: 17px;
  border: 2px solid white;
  background: var(--c-navy);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-navy);
}
.timeline__year {
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--c-blue); letter-spacing: 0.2em;
  font-weight: 600;
}
.timeline__title {
  font-size: 22px; font-weight: 700; margin: 6px 0 8px;
  letter-spacing: -0.01em;
}
.timeline__desc {
  font-size: 14.5px; color: rgba(0,0,0,0.62); line-height: 1.6;
  margin: 0;
}

.mv-grid {
  background: var(--c-deep); color: white;
  padding: 100px 0;
}
.mv-grid__cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--c-line);
  margin-top: 48px;
}
.mv-card {
  background: var(--c-deep);
  padding: 40px;
  position: relative;
}
.mv-card__label {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-cyan-glow); letter-spacing: 0.24em;
  text-transform: uppercase; margin-bottom: 18px;
}
.mv-card h3 {
  font-size: 26px; font-weight: 700; margin: 0 0 16px;
  letter-spacing: -0.015em; line-height: 1.2;
}
.mv-card p {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.6; margin: 0;
}

.values {
  background: white; padding: 100px 0;
}
.values__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 56px;
}
.value-card {
  padding: 32px 28px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--c-paper);
  transition: all .3s ease;
}
.value-card:hover {
  background: var(--c-navy); color: white;
  border-color: var(--c-navy);
  transform: translateY(-4px);
}
.value-card__num {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.22em; color: var(--c-blue);
  margin-bottom: 18px;
}
.value-card:hover .value-card__num { color: var(--c-cyan-glow); }
.value-card h4 {
  font-size: 20px; font-weight: 700; margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.value-card p {
  font-size: 13.5px; line-height: 1.55; margin: 0;
  color: rgba(0,0,0,0.6);
}
.value-card:hover p { color: rgba(255,255,255,0.7); }

.awards {
  background: var(--c-navy); color: white; padding: 100px 0;
  position: relative; overflow: hidden;
}
.awards::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(94,180,255,0.2), transparent 60%);
}
.awards__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.award-card {
  padding: 32px;
  border: 1px solid var(--c-line-2);
  background: rgba(255,255,255,0.03);
}
.award-card__year {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-cyan-glow); letter-spacing: 0.22em;
  margin-bottom: 16px;
}
.award-card h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.005em; }
.award-card p { font-size: 13.5px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.5; }

.capabilities {
  background: white; padding: 100px 0;
}
.capabilities__grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px;
}
.capability {
  padding: 10px 18px;
  background: var(--c-paper);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .25s ease;
}
.capability:hover { background: var(--c-navy); color: white; border-color: var(--c-navy); }
.capability__dot { width: 6px; height: 6px; background: var(--c-blue); border-radius: 50%; }

/* ===== RECURSOS ===== */
.resources {
  background: white; padding: 80px 0 100px;
}
.resources__tabs {
  display: flex; gap: 4px; border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 56px;
}
.resources__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.resource-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: all .3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.resource-card:hover {
  border-color: var(--c-navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.resource-card__type {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--c-blue); letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 16px;
}
.resource-card h3 {
  font-size: 19px; font-weight: 700; margin: 0 0 12px;
  letter-spacing: -0.01em; line-height: 1.25;
  flex-grow: 1;
}
.resource-card p {
  font-size: 13.5px; color: rgba(0,0,0,0.6);
  line-height: 1.55; margin: 0 0 20px;
}
.resource-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 12px; color: rgba(0,0,0,0.5);
}
.resource-card__cta {
  font-weight: 600; color: var(--c-navy);
  text-transform: uppercase; letter-spacing: 0.12em;
}

.calc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.calc-card {
  background: var(--c-deep); color: white;
  padding: 36px; position: relative; overflow: hidden;
  border: 1px solid var(--c-line);
  transition: all .3s ease;
}
.calc-card:hover {
  border-color: var(--c-cyan-glow);
  box-shadow: var(--shadow-glow);
}
.calc-card__label {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-cyan-glow); letter-spacing: 0.22em;
  margin-bottom: 16px;
}
.calc-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.015em; line-height: 1.2; }
.calc-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.55; margin: 0 0 24px; }
.calc-card__inputs {
  display: grid; gap: 12px; margin-bottom: 20px;
}
.calc-input {
  display: flex; flex-direction: column; gap: 6px;
}
.calc-input label {
  font-family: var(--ff-mono); font-size: 10px;
  color: rgba(255,255,255,0.55); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.calc-input input, .calc-input select {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-line-2);
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.calc-input input:focus, .calc-input select:focus {
  border-color: var(--c-cyan-glow);
  background: rgba(94,180,255,0.06);
}
.calc-card__result {
  background: rgba(94,180,255,0.08);
  border: 1px solid rgba(94,180,255,0.25);
  padding: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.calc-card__result-label {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--c-cyan-glow); letter-spacing: 0.2em;
  text-transform: uppercase;
}
.calc-card__result-val {
  font-family: var(--ff-display); font-size: 28px;
  font-weight: 800; letter-spacing: -0.02em;
  color: white;
}

/* ===== CONTACTO PAGE ===== */
.contact {
  background: white; padding: 80px 0 100px;
}
.contact__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
}
.stepper {
  background: var(--c-paper);
  padding: 40px;
  position: relative;
}
.stepper__progress {
  display: flex; gap: 4px; margin-bottom: 40px;
}
.stepper__step {
  flex: 1; height: 4px;
  background: rgba(0,0,0,0.08);
  position: relative;
}
.stepper__step.is-done { background: var(--c-blue); }
.stepper__step.is-active { background: var(--c-navy); }
.stepper__head {
  display: flex; align-items: baseline;
  gap: 16px; margin-bottom: 32px;
}
.stepper__step-num {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-blue); letter-spacing: 0.22em;
}
.stepper__title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.015em;
  margin: 0;
}
.stepper__sub {
  font-size: 14.5px; color: rgba(0,0,0,0.6);
  margin: 4px 0 32px;
}
.form-row {
  display: grid; gap: 6px; margin-bottom: 18px;
}
.form-row label {
  font-size: 12px; font-weight: 600;
  color: rgba(0,0,0,0.7);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.form-row input, .form-row textarea, .form-row select {
  padding: 14px 16px;
  background: white;
  border: 1px solid rgba(0,0,0,0.12);
  font-family: inherit; font-size: 14.5px;
  outline: none;
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--c-navy);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.form-option {
  padding: 18px;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  transition: all .2s ease;
}
.form-option:hover { border-color: var(--c-navy); }
.form-option.is-selected {
  border-color: var(--c-navy); background: rgba(11,47,120,0.05);
}
.form-option__check {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.form-option.is-selected .form-option__check {
  background: var(--c-navy); border-color: var(--c-navy);
}
.form-option.is-selected .form-option__check::after {
  content: ''; width: 5px; height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px, -1px);
}
.form-actions {
  display: flex; justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08);
}
.contact__side .info-block {
  padding: 28px;
  background: var(--c-deep); color: white;
  margin-bottom: 16px;
}
.contact__side .info-block:last-child { margin-bottom: 0; }
.info-block h4 {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-cyan-glow); letter-spacing: 0.22em;
  margin: 0 0 16px; text-transform: uppercase;
}
.info-block p {
  font-size: 15px; margin: 0 0 6px; line-height: 1.5;
}
.info-block a {
  display: block; font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  transition: color .2s ease;
}
.info-block a:hover { color: var(--c-cyan-glow); }
.info-block__map {
  height: 220px;
  background:
    linear-gradient(135deg, rgba(11,47,120,0.4), transparent),
    radial-gradient(circle at 50% 50%, var(--c-blue-2) 0%, transparent 8%),
    radial-gradient(circle at 50% 50%, transparent 10%, rgba(94,180,255,0.15) 12%, transparent 14%),
    repeating-linear-gradient(0deg, var(--c-deep-2) 0px, var(--c-deep-2) 30px, rgba(94,180,255,0.06) 30px, rgba(94,180,255,0.06) 31px),
    repeating-linear-gradient(90deg, var(--c-deep-2) 0px, var(--c-deep-2) 30px, rgba(94,180,255,0.06) 30px, rgba(94,180,255,0.06) 31px);
  margin-top: 20px;
  position: relative;
  border: 1px solid var(--c-line);
}
.info-block__map::after {
  content: 'CALLE 74A # 64-55 · BOGOTÁ';
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--c-cyan-glow); letter-spacing: 0.2em;
}
.info-block__pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--c-red);
  rotate: -45deg;
  box-shadow: 0 0 0 4px rgba(227,6,19,0.25);
}

.confirm {
  text-align: center; padding: 40px 20px;
}
.confirm__icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--c-navy);
  display: grid; place-items: center;
  color: white;
}
.confirm h3 { font-size: 32px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
.confirm p { font-size: 16px; color: rgba(0,0,0,0.6); margin: 0 0 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__nav.is-mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(8, 12, 26, 0.98);
    padding: 32px;
    align-items: stretch;
  }
  .header__nav.is-mobile-open .header__nav-item { padding: 18px 0; font-size: 20px; border-bottom: 1px solid var(--c-line); }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .services__head, .projects__head { grid-template-columns: 1fr; gap: 24px; }
  .services__grid { grid-template-columns: 1fr; }
  .bluf__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 280px 280px; }
  .projects__grid .project-tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .metrics__cell:nth-child(2n) { border-right: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cta-strip__inner { grid-template-columns: 1fr; }
  .svc-block { grid-template-columns: 1fr; }
  .casos__grid { grid-template-columns: 1fr 1fr; }
  .resources__grid { grid-template-columns: 1fr 1fr; }
  .about-timeline__inner { grid-template-columns: 1fr; }
  .about-timeline__head { position: static; }
  .mv-grid__cards { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .awards__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .page__hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container, .header__inner, .hero__inner, .page__hero-inner { padding-left: 20px; padding-right: 20px; }
  .casos__grid, .resources__grid { grid-template-columns: 1fr; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .form-grid-2, .form-options { grid-template-columns: 1fr; }
  .stepper { padding: 24px; }
  .projects__grid { grid-template-columns: 1fr; grid-template-rows: repeat(7, 240px); }
  .projects__grid .project-tile:nth-child(1) { grid-column: span 1; }
  .floating { right: 16px; bottom: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Mobile menu button */
.mobile-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--c-line-2);
  color: white;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.12em;
  align-items: center; justify-content: center;
}
@media (max-width: 1024px) {
  .mobile-toggle { display: inline-flex; }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ===== EXTRA ANIMATIONS ===== */

/* Hero title — word-by-word reveal */
.hero__title .word,
.page__hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
}
.hero__title .word > span,
.page__hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  filter: blur(8px);
  animation: word-up 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__title em .word > span,
.page__hero-title em .word > span {
  animation-name: word-up-em;
}
@keyframes word-up {
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes word-up-em {
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}

/* BLUF cards — 3D rotate-in on reveal */
.bluf__card.reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(-22deg) translateY(40px) scale(.96);
  transform-origin: center bottom;
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.bluf__card.reveal.is-visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
}

/* SERVICE CARD — Image zoom-in on hover (matches project gallery style) */
.service-card__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .service-card__media img {
  transform: scale(1.12);
}
.service-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,7,11,0.55) 100%);
  pointer-events: none;
  z-index: 1;
  transition: background .4s ease;
}
.service-card:hover .service-card__media::after {
  background: linear-gradient(180deg, transparent 20%, rgba(11,47,120,0.75) 100%);
}

/* PROJECT TILE — 3D tilt */
.project-tile {
  transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) scale(var(--scale, 1));
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.project-tile img {
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  transform: translateZ(var(--imgZ, 0px));
}
.project-tile:hover img { transform: translateZ(40px) scale(1.06); }
.project-tile__body {
  transform: translateZ(var(--bodyZ, 0px));
  transition: transform .4s ease;
}
.project-tile:hover .project-tile__body { transform: translateZ(60px); }

/* TAB CONTENT slide-in */
@keyframes tab-slide {
  0% { opacity: 0; transform: translateX(40px); filter: blur(6px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
.svc-block.tab-anim {
  animation: tab-slide .55s cubic-bezier(.2,.7,.2,1) both;
}

/* Counter pulse */
@keyframes counter-pulse {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.metrics__num.is-animated {
  animation: counter-pulse .8s cubic-bezier(.2,.7,.2,1) both;
}

/* CASE / RESOURCE cards — entrance from below + slight rotate */
.case-card.reveal, .resource-card.reveal, .value-card.reveal, .calc-card.reveal {
  opacity: 0;
  transform: perspective(900px) rotateX(8deg) translateY(40px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.case-card.reveal.is-visible, .resource-card.reveal.is-visible,
.value-card.reveal.is-visible, .calc-card.reveal.is-visible {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) translateY(0);
}

/* MEGA MENU — stagger fade for categories */
.mega.is-open .mega__cat {
  animation: mega-cat .45s cubic-bezier(.2,.7,.2,1) both;
}
.mega.is-open .mega__cat:nth-child(1) { animation-delay: .05s; }
.mega.is-open .mega__cat:nth-child(2) { animation-delay: .1s; }
.mega.is-open .mega__cat:nth-child(3) { animation-delay: .15s; }
.mega.is-open .mega__cat:nth-child(4) { animation-delay: .2s; }
.mega.is-open .mega__feature {
  animation: mega-feature .55s cubic-bezier(.2,.7,.2,1) .15s both;
}
@keyframes mega-cat {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes mega-feature {
  0% { opacity: 0; transform: translateX(20px) scale(.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Hero meta — slide in from right */
.hero__meta-row {
  animation: meta-slide .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero__meta-row:nth-child(1) { animation-delay: .9s; }
.hero__meta-row:nth-child(2) { animation-delay: 1.05s; }
.hero__meta-row:nth-child(3) { animation-delay: 1.2s; }
@keyframes meta-slide {
  0% { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* CTAs in hero appear after title */
.hero__ctas {
  animation: ctas-up .8s cubic-bezier(.2,.7,.2,1) 1s both;
}
@keyframes ctas-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Capability chips — pop on hover */
.capability {
  transition: transform .25s cubic-bezier(.34,1.5,.64,1), background .25s ease, color .25s ease;
}
.capability:hover { transform: translateY(-3px) scale(1.05); }

/* Floating btns — gentle pulse */
.floating__btn--wa {
  animation: wa-bob 3.4s ease-in-out infinite;
}
@keyframes wa-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Service tab active indicator slide */
.svc-detail__tab {
  position: relative;
}
.svc-detail__tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--c-navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.svc-detail__tab.is-active::after { transform: scaleX(1); }
.svc-detail__tab.is-active { border-bottom-color: transparent; }

/* Buttons — arrow magnetic */
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }

/* Stepper steps animate when activated */
.stepper__step {
  transition: background .5s cubic-bezier(.2,.7,.2,1);
}

/* Form option check — bounce */
.form-option.is-selected .form-option__check {
  animation: check-pop .35s cubic-bezier(.34,1.7,.64,1) both;
}
@keyframes check-pop {
  0% { transform: scale(0.3); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Logo entrance */
.logo {
  animation: logo-enter .8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes logo-enter {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ===== ELECTRIC TRAIL CURSOR ===== */
.cursor-canvas {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
}
@media (hover: none), (pointer: coarse) {
  .cursor-canvas { display: none; }
}
