:root {
  --ink: #1a1f2b;
  --ink-soft: #3a4555;
  --muted: #5f6d80;
  --line: #e6e9ef;
  --paper: #fafbfc;
  --white: #ffffff;
  --charcoal: #0f1622;
  --night: #111a28;
  --flame: #dd3f1e;
  --orange: #f05a00;
  --amber: #f69b11;
  --warm-bg: #fdf8f3;
  --warm-light: #fff7f0;
  --radius: 10px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: min(1200px, calc(100% - 48px));
  --grad-flame: linear-gradient(135deg, #c9301a 0%, #f05a00 55%, #f9a826 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  position: fixed;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgb(8 12 19 / 32%), rgb(8 12 19 / 46%));
  backdrop-filter: blur(3px);
  z-index: 85;
}

section[id] {
  scroll-margin-top: 96px;
}

::selection {
  background: rgb(240 90 0 / 18%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link:focus {
  z-index: 130;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 9px 13px;
  clip: auto;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 6px;
}

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--grad-flame);
  box-shadow: 0 0 10px rgb(240 90 0 / 50%);
  transition: width 80ms linear;
}

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid rgb(23 29 39 / 8%);
  backdrop-filter: blur(16px);
  transition:
    background 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 8px 32px rgb(23 29 39 / 10%);
}

.header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand__logo {
  display: block;
  width: auto;
  height: 46px;
  transition: transform 220ms var(--ease);
}

.brand:hover .brand__logo {
  transform: scale(1.04);
}

.nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav a {
  position: relative;
  padding-block: 10px;
  color: #2d3748;
  transition: color 160ms var(--ease);
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2.5px;
  content: "";
  background: var(--grad-flame);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav a:hover {
  color: var(--orange);
}

.nav a.is-current {
  color: var(--flame);
}

.nav a.is-current::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  cursor: pointer;
  background: #f3f4f6;
  border: 1px solid rgb(23 29 39 / 10%);
  border-radius: 999px;
}

.language-switch button {
  width: 40px;
  min-height: 30px;
  cursor: pointer;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease);
}

.language-switch button.is-active {
  color: var(--white);
  background: var(--flame);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 0 20px;
  color: var(--white);
  background: var(--grad-flame);
  border: 0;
  border-radius: var(--radius);
  box-shadow:
    0 4px 14px rgb(221 63 30 / 25%),
    0 1px 3px rgb(0 0 0 / 10%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    filter 180ms var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgb(221 63 30 / 32%),
    0 2px 6px rgb(0 0 0 / 10%);
}

.button--small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.72rem;
}

.button--ghost {
  color: #f8fafc;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 32%);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.button--ghost:hover {
  background: rgb(255 255 255 / 20%);
  box-shadow: none;
  transform: translateY(-1px);
}

.button svg,
.icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  color: var(--ink);
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
  transition:
    box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}

.menu-button span:not(.sr-only) {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transition:
    transform 190ms var(--ease),
    opacity 130ms var(--ease);
}

.menu-button span:nth-child(1) { transform: translate(-50%, -6px); }
.menu-button span:nth-child(2) { transform: translate(-50%, 0); }
.menu-button span:nth-child(3) { transform: translate(-50%, 6px); }
.menu-button.is-open span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; }
.menu-button.is-open span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

.menu-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../assets/hero-mining.jpg") center/cover no-repeat;
  transform: scale(1.08);
  filter: saturate(0.88) brightness(0.92);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgb(10 14 22 / 90%) 0%, rgb(10 14 22 / 62%) 50%, rgb(10 14 22 / 28%) 100%),
    linear-gradient(0deg, rgb(10 14 22 / 82%), transparent 48%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background:
    radial-gradient(circle at 18% 30%, rgb(240 90 0 / 14%), transparent 38%),
    radial-gradient(circle at 88% 70%, rgb(246 155 17 / 10%), transparent 42%);
}

.hero__content {
  width: var(--shell);
  min-height: clamp(540px, 74vh, 700px);
  margin-inline: auto;
  padding: clamp(80px, 8vw, 110px) 0 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgb(246 155 17 / 22%);
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgb(246 155 17 / 22%); }
  50% { box-shadow: 0 0 0 7px rgb(246 155 17 / 8%); }
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 16px 0 0;
  color: var(--amber);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: -58px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow:
    0 24px 60px rgb(0 0 0 / 14%),
    0 1px 3px rgb(0 0 0 / 6%);
}

.stat {
  min-height: 116px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat--wide {
  grid-column: span 2;
  background: linear-gradient(135deg, rgb(240 90 0 / 5%), rgb(246 155 17 / 5%));
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--flame);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── SECTIONS COMMON ─── */
.section {
  padding-block: clamp(84px, 9vw, 128px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-flame);
  border-radius: 2px;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.7;
}

.mini-title {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-title,
.section-head--center .section-intro {
  margin-inline: auto;
}

/* ─── ABOUT ─── */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.about__highlight {
  padding: 18px;
  background: var(--warm-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about__highlight strong {
  display: block;
  color: var(--flame);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}

.about__highlight span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.about__media {
  position: relative;
  margin: 0;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgb(246 155 17 / 10%), transparent 55%),
    linear-gradient(150deg, #fdf8f3, #fff7f0);
  border: 1px solid rgb(240 90 0 / 14%);
  box-shadow: 0 24px 56px rgb(0 0 0 / 10%);
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgb(240 90 0 / 6%));
  pointer-events: none;
}

.about__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  mix-blend-mode: multiply;
}

.about__media-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  margin: 0;
  padding: 8px 16px;
  color: var(--white);
  background: var(--grad-flame);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgb(221 63 30 / 35%);
}

/* ─── VALUE / PROPUESTA 360° ─── */
.value {
  background: var(--warm-bg);
}

.value__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.value__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid rgb(240 90 0 / 22%);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.value__pill .icon {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.value__cycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.cycle-step {
  position: relative;
  padding: 30px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 5%);
  overflow: hidden;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.cycle-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
}

.cycle-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgb(0 0 0 / 11%);
  border-color: rgb(240 90 0 / 28%);
}

.cycle-step:hover::before {
  transform: scaleX(1);
}

.cycle-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--grad-flame);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgb(240 90 0 / 28%);
}

.cycle-step h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.cycle-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.value__sectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.sector-card {
  padding: 28px;
  background: linear-gradient(150deg, #18212f 0%, #243245 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: 0 14px 38px rgb(15 22 34 / 22%);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgb(15 22 34 / 30%);
}

.sector-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--amber);
  background: rgb(246 155 17 / 12%);
  border: 1px solid rgb(246 155 17 / 26%);
  border-radius: 12px;
}

.sector-card h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.sector-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sector-card li {
  position: relative;
  padding-left: 18px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.9rem;
}

.sector-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ─── SERVICES ─── */
.services {
  position: relative;
  background: var(--white);
}

.services::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgb(0 0 0 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 0 0 / 2%) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

.services .shell {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 48px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgb(0 0 0 / 5%);
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgb(240 90 0 / 28%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 11%);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--flame);
  background: var(--warm-light);
  border: 1px solid rgb(240 90 0 / 14%);
  border-radius: 13px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.service-card__icon .icon {
  width: 24px;
  height: 24px;
}

.service-card:hover .service-card__icon {
  background: var(--grad-flame);
  color: var(--white);
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ─── PROJECTS GALLERY ─── */
.projects {
  background: var(--warm-bg);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 205px;
  gap: 18px;
  margin-top: 48px;
}

.project-card {
  position: relative;
  margin: 0;
  grid-column: span 1;
  grid-row: span 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  cursor: pointer;
}

/* Featured photo spans 2x2 on the left, the other 4 form a clean 2x2 block */
.project-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgb(10 14 22 / 90%));
  transition: opacity 300ms var(--ease);
}

.project-card:hover img {
  transform: scale(1.07);
}

.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px;
  color: var(--white);
}

.project-card--featured figcaption {
  padding: 28px;
}

.project-card__tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 9px;
  padding: 5px 13px;
  background: var(--grad-flame);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgb(221 63 30 / 35%);
}

.project-card figcaption strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgb(0 0 0 / 40%);
}

.project-card--featured figcaption strong {
  font-size: 1.3rem;
}

/* ─── APPROACH / PILARES ─── */
.approach {
  background: var(--white);
}

.approach__pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.pillar-card {
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / 4%);
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgb(240 90 0 / 26%);
  box-shadow: 0 16px 40px rgb(0 0 0 / 10%);
}

.pillar-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--white);
  background: var(--grad-flame);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgb(240 90 0 / 26%);
}

.pillar-card__icon .icon {
  width: 24px;
  height: 24px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.approach__model {
  margin-top: 28px;
  padding: 40px;
  background: linear-gradient(150deg, #18212f, #233144);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgb(15 22 34 / 22%);
}

.approach__model .mini-title {
  color: var(--white);
  text-align: center;
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.approach-step {
  padding: 22px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}

.approach-step:hover {
  transform: translateY(-3px);
  background: rgb(255 255 255 / 10%);
}

.approach-step__number {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.approach-step h4 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
}

.approach-step p {
  margin: 0;
  color: rgb(255 255 255 / 70%);
  font-size: 0.87rem;
  line-height: 1.55;
}

/* ─── TRUST / RESPALDO ─── */
.trust {
  position: relative;
  background:
    linear-gradient(125deg, rgb(12 18 30 / 96%), rgb(18 28 44 / 94%)),
    url("../assets/hero-industrial.jpg") center/cover fixed;
  color: #f0f4fa;
}

.trust .section-title {
  color: var(--white);
}

.trust .section-intro {
  color: rgb(220 230 244 / 82%);
}

.trust .eyebrow {
  color: var(--amber);
}

.trust__affiliations-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.affiliation-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(246 155 17 / 28%);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.affiliation-badge .icon {
  width: 26px;
  height: 26px;
  color: var(--amber);
}

.affiliation-badge strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.affiliation-badge span {
  display: block;
  margin-top: 2px;
  color: rgb(220 230 244 / 72%);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ─── LOGO BANNER (double marquee) ─── */
.banner {
  position: relative;
  display: grid;
  gap: 16px;
  padding-block: 26px;
  background: var(--charcoal);
  border-top: 1px solid rgb(255 255 255 / 8%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  overflow: hidden;
}

.banner::before,
.banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}

.banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--charcoal), transparent);
}

.banner::after {
  right: 0;
  background: linear-gradient(270deg, var(--charcoal), transparent);
}

.banner__track {
  display: flex;
  width: max-content;
}

.banner__group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex: 0 0 auto;
}

.banner__track--left .banner__group {
  animation: bannerScrollLeft 48s linear infinite;
}

.banner__track--right .banner__group {
  animation: bannerScrollRight 56s linear infinite;
}

.banner:hover .banner__group {
  animation-play-state: paused;
}

.banner__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 190px;
  padding: 0 24px;
  white-space: nowrap;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgb(0 0 0 / 22%);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.banner__logo--img img {
  max-width: 138px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* fallback wordmark, styled in brand navy on the same white chip */
.banner__logo--text {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.banner__logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 32%);
}

@keyframes bannerScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes bannerScrollRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* ─── CONTACT ─── */
.contact {
  position: relative;
  background: var(--white);
}

.contact::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgb(253 248 243 / 70%), transparent 50%, rgb(255 247 240 / 50%));
  pointer-events: none;
}

.contact .shell {
  position: relative;
  z-index: 1;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.contact__quick {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgb(0 0 0 / 4%);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.contact__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgb(0 0 0 / 8%);
}

.contact__card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--flame);
  background: var(--warm-light);
  border: 1px solid rgb(240 90 0 / 15%);
  border-radius: 11px;
}

.contact__card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.4;
}

.contact__card a,
.contact__plain {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  word-break: break-word;
}

.contact__card a:hover {
  color: var(--orange);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 3.2vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgb(0 0 0 / 9%);
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(240 90 0 / 12%);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .button {
  margin-top: 4px;
}

.form-feedback {
  min-height: 1.25em;
  margin: 0;
  color: #1d6f37;
  font-size: 0.88rem;
}

.form-feedback.is-error {
  color: #c53030;
}

/* ─── FLOATING WHATSAPP ─── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgb(37 211 102 / 42%);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(37 211 102 / 50%);
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgb(37 211 102 / 52%);
}

/* ─── FOOTER ─── */
.footer {
  padding-block: 58px 22px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 32px;
}

.footer__logo {
  display: block;
  width: auto;
  height: 50px;
  margin-bottom: 14px;
}

.footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.footer h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--orange);
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer__contacts .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--orange);
  flex: 0 0 auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1360px) {
  .header-actions .button {
    display: none;
  }

  .nav {
    gap: clamp(9px, 1.1vw, 16px);
    font-size: 0.84rem;
  }
}

@media (max-width: 1120px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects__grid {
    grid-auto-rows: 175px;
  }

  .approach__pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .approach__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust {
    background-attachment: scroll;
  }
}

@media (max-width: 980px) {
  .header__inner {
    min-height: 68px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand__logo {
    height: 42px;
  }

  .menu-button {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-actions .button {
    display: none;
  }

  .nav {
    grid-column: 1;
    grid-row: 1;
    position: fixed;
    top: 76px;
    right: 12px;
    left: auto;
    width: min(360px, calc(100% - 18px));
    max-height: calc(100dvh - 88px);
    overflow: auto;
    display: grid;
    gap: 4px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(16px, -8px) scale(0.98);
    transform-origin: top right;
    background: linear-gradient(165deg, #141e30, #1a2840);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 40%);
    transition:
      opacity 180ms var(--ease),
      transform 200ms var(--ease),
      visibility 180ms var(--ease);
    z-index: 120;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0) scale(1);
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px;
    color: rgb(230 238 248 / 88%);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition:
      color 160ms var(--ease),
      background-color 160ms var(--ease);
  }

  .nav a.is-current {
    color: var(--white);
    background: rgb(240 90 0 / 22%);
    border-color: rgb(246 155 17 / 30%);
  }

  .nav a:hover {
    color: var(--white);
    background: rgb(255 255 255 / 8%);
  }

  .nav a::after {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    order: -1;
  }

  .value__cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value__sectors,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .approach__pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .project-card {
    grid-column: span 1;
    grid-row: span 1;
  }

  .project-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 28px);
  }

  section[id] {
    scroll-margin-top: 78px;
  }

  .brand__logo {
    height: 38px;
  }

  .hero__content {
    min-height: auto;
    padding: 48px 0 124px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.06;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    padding-inline: 16px;
    font-size: 0.72rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -50px;
  }

  .stat {
    min-height: auto;
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat--wide {
    grid-column: span 2;
  }

  .stat:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 62px;
  }

  .section-title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .about__highlights {
    grid-template-columns: 1fr;
  }

  .value__cycle,
  .approach__steps,
  .value__sectors,
  .service-grid,
  .approach__pillars,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .project-card,
  .project-card--featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .approach__model {
    padding: 24px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer {
    padding-top: 38px;
  }

  .footer__grid > div {
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .footer__grid > div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .footer__bottom {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .wa-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 460px) {
  .nav {
    top: 74px;
    right: 8px;
    width: calc(100% - 12px);
  }

  .hero__stats {
    margin-top: -44px;
  }

  .hero__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .banner__group {
    flex-wrap: wrap;
  }
}
