:root {
  --ink: #0a0b0d;
  --ink-2: #111317;
  --ink-3: #191c21;
  --steel: #2a2f36;
  --gold: #d1aa36;
  --gold-strong: #e1bb48;
  --gold-deep: #9c7920;
  --gold-pale: #f3e7b7;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --white: #ffffff;
  --text: #1d2228;
  --muted: #666d75;
  --line-dark: rgba(255,255,255,.09);
  --line-gold: rgba(209,170,54,.32);
  --shadow-xl: 0 32px 80px rgba(0,0,0,.24);
  --shadow-lg: 0 20px 50px rgba(8,10,12,.16);
  --shadow-md: 0 12px 28px rgba(8,10,12,.11);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1240px;
  --header-h: 84px;
  --heading: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  transform: translateY(-160%);
  padding: 11px 15px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink-2); color: var(--white); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 900;
  line-height: .98;
  text-wrap: balance;
}
h1 { font-size: clamp(3.35rem, 6.6vw, 6.6rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2.05rem, 3.9vw, 3.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.18rem; line-height: 1.16; }
p { margin-top: 0; }
.lead { color: #3f464e; font-size: 1.04rem; line-height: 1.72; }
.dark-lead { max-width: 650px; color: #d0d4d8; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-strong);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.eyebrow.dark { color: var(--gold-deep); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  height: var(--header-h);
  background: rgba(8,9,11,.84);
  border-bottom: 1px solid rgba(209,170,54,.15);
  backdrop-filter: blur(18px) saturate(120%);
  transition: height .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  height: 72px;
  background: rgba(8,9,11,.96);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 220px; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(13px, 1.6vw, 28px); }
.main-nav a {
  position: relative;
  color: rgba(255,255,255,.84);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -10px;
  height: 2px;
  background: var(--gold);
  transition: right .22s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active { color: var(--gold-strong); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after { right: 0; }
.main-nav a[href="#contacto"] {
  padding: 10px 16px;
  border: 1px solid var(--line-gold);
  border-radius: 7px;
  background: rgba(209,170,54,.08);
  color: var(--gold-strong);
}
.main-nav a[href="#contacto"]::after { display: none; }
.main-nav a[href="#contacto"]:hover { background: var(--gold); color: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 29px; height: 2px; margin: 6px 0; background: var(--gold); transition: .25s ease; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--header-h) + 58px) 0 54px;
  display: grid;
  align-items: center;
  background: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(209,170,54,.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(209,170,54,.04) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.62), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  left: -380px;
  top: 21%;
  border-radius: 50%;
  border: 1px solid rgba(209,170,54,.22);
  box-shadow: 0 0 0 85px rgba(209,170,54,.025), 0 0 0 170px rgba(209,170,54,.018);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 67% 32%, rgba(209,170,54,.13), transparent 27%),
    linear-gradient(112deg, rgba(209,170,54,.08), transparent 39%, rgba(255,255,255,.018) 61%, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(46px, 6vw, 88px);
  align-items: center;
}
.hero-copy { max-width: 650px; position: relative; z-index: 2; }
.hero-copy::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 0;
  bottom: 10%;
  width: 2px;
  background: linear-gradient(var(--gold), transparent);
  opacity: .8;
}
.hero-shield { width: 92px; height: auto; margin: 4px 0 22px; }
.hero h1 { margin-bottom: 22px; color: var(--white); }
.hero h1 span { display: block; color: var(--gold-strong); }
.hero-tagline {
  max-width: 620px;
  margin-bottom: 32px;
  color: #d9dde1;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 12px 30px rgba(209,170,54,.15); }
.btn-primary:hover { background: var(--gold-strong); box-shadow: 0 16px 34px rgba(209,170,54,.22); }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); color: var(--white); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-strong); background: rgba(209,170,54,.05); }
.hero-media {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 610px);
  padding: 14px;
  border: 1px solid rgba(209,170,54,.24);
  border-radius: 30px 8px 30px 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  box-shadow: var(--shadow-xl);
}
.hero-media::before {
  content: "";
  position: absolute;
  width: 36%;
  height: 5px;
  top: -1px;
  left: 14px;
  background: var(--gold);
}
.hero-media::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  right: -18px;
  bottom: -18px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px 4px 20px 4px;
  background: #111;
}
.hero-media figcaption { display: none; }

/* Shared section language */
.section-heading { max-width: 870px; margin-bottom: 54px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.narrow { max-width: 780px; }
.section-heading p:last-child { color: #c9ced3; font-size: 1rem; }
.section-light .section-heading p:last-child { color: #59616a; }
.section-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.8%, rgba(22,25,29,.025) 50%, transparent 50.2%);
  pointer-events: none;
}

.split-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(54px, 6vw, 86px); align-items: center; }
.image-panel { position: relative; margin: 0; padding: 12px; border: 1px solid rgba(13,15,18,.1); background: #fff; box-shadow: var(--shadow-lg); }
.image-panel::before {
  content: "";
  position: absolute;
  width: 7px;
  top: 26px;
  bottom: 26px;
  left: -1px;
  background: var(--gold);
}
.image-panel img { width: 100%; height: auto; object-fit: contain; }
.image-accent { position: absolute; width: 100px; height: 100px; top: -18px; right: -18px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); pointer-events: none; }
.image-accent.bottom { top: auto; right: auto; bottom: -18px; left: -18px; border: 0; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.content-panel h2 { margin-bottom: 26px; }
.feature-list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid #d6d1c7; }
.feature-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #d6d1c7;
}
.feature-list img { width: 38px; height: 38px; object-fit: contain; }
.feature-list p { margin: 0; font-weight: 650; color: #373e45; }
.mini-shield { width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold-deep); font-size: 1.5rem; }

/* Governance */
.governance {
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 7%, rgba(209,170,54,.12), transparent 24%),
    linear-gradient(145deg, #111318 0%, #090a0c 100%);
}
.governance::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 56px;
  pointer-events: none;
}
.governance-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.statement-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(209,170,54,.18);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.statement-card:first-child { border-radius: 24px 6px 6px 6px; }
.statement-card:nth-child(2) { border-radius: 6px 24px 6px 6px; }
.statement-card h3 { margin-bottom: 18px; color: var(--gold-strong); font-size: 1.78rem; }
.statement-card p { margin-bottom: 0; color: #d1d5d9; }
.statement-mark {
  position: absolute;
  right: 24px;
  top: 6px;
  color: rgba(209,170,54,.08);
  font-family: var(--heading);
  font-size: 4.4rem;
  font-weight: 900;
}
.values-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  border-radius: 6px 6px 24px 24px;
  background: linear-gradient(90deg, rgba(209,170,54,.12), rgba(255,255,255,.028));
}
.values-card h3 { margin-bottom: 0; }
.value-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.value-chips li {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.045);
  color: var(--gold-pale);
  font-weight: 800;
}
.callout { color: var(--white) !important; font-weight: 900; }

/* Services overview */
#servicios { background: linear-gradient(180deg, #f8f6f0, #ece9e0); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 22px;
  overflow: hidden;
  border: 1px solid #d9d4c9;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 24px rgba(9,11,13,.055);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--gold);
  transition: height .25s ease;
}
.service-card::after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: 18px;
  color: #8d9297;
  font-size: 1rem;
  transition: color .2s ease, transform .2s ease;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(209,170,54,.72);
  background: #fff;
  box-shadow: 0 18px 36px rgba(9,11,13,.10);
  outline: none;
}
.service-card:hover::before,
.service-card:focus-visible::before { height: 100%; }
.service-card:hover::after,
.service-card:focus-visible::after { color: var(--gold-deep); transform: translate(2px,-2px); }
.service-card img { width: 56px; height: 56px; object-fit: contain; }
.service-card span { max-width: 190px; font-family: var(--heading); font-size: 1.08rem; font-weight: 900; line-height: 1.12; }

/* Service detail sections */
.service-detail { position: relative; overflow: hidden; padding: 118px 0; }
.service-detail.section-dark {
  background:
    linear-gradient(115deg, rgba(209,170,54,.055), transparent 32%),
    var(--ink-2);
}
.service-detail.section-light { background: #f5f3ed; }
.detail-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(54px, 6vw, 88px); align-items: center; }
.detail-grid.reverse .detail-media { order: 2; }
.detail-grid.reverse .detail-content { order: 1; }
.detail-media {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(209,170,54,.24);
  background: #0e1013;
  box-shadow: var(--shadow-xl);
}
.section-light .detail-media { background: #fff; border-color: #d9d4c8; box-shadow: var(--shadow-lg); }
.detail-media::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 3px;
  left: 10px;
  top: -1px;
  background: var(--gold);
}
.detail-media img { width: 100%; height: auto; object-fit: contain; }
.detail-media.tall img { aspect-ratio: auto; object-fit: contain; }
.detail-content h2 { margin-bottom: 22px; }
.detail-items { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.detail-items article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 17px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.detail-items img { width: 45px; height: 45px; object-fit: contain; }
.detail-items h3 { margin-bottom: 7px; color: var(--gold-strong); }
.detail-items p { margin-bottom: 0; color: #cbd0d5; }
.light-items { border-color: #d6d1c7; }
.light-items article { border-color: #d6d1c7; }
.light-items h3 { color: #22272d; }
.light-items p { color: #59616a; }

/* Investigation */
.investigation {
  background:
    radial-gradient(circle at 14% 18%, rgba(209,170,54,.10), transparent 30%),
    linear-gradient(150deg, #08090b, #15181c);
  color: var(--white);
  overflow: hidden;
}
.investigation::after {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  right: -260px;
  bottom: -270px;
  border: 1px solid rgba(209,170,54,.13);
  transform: rotate(45deg);
}
.investigation-top { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.investigation-top > div { max-width: 780px; }
.investigation-top > img { width: 108px; opacity: .9; }
.investigation-top p:last-child { color: #cbd0d5; font-size: 1rem; }
.investigation-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.investigation-grid article {
  padding: 30px;
  border: 1px solid rgba(209,170,54,.18);
  background: rgba(255,255,255,.028);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.investigation-grid article:hover { transform: translateY(-4px); border-color: rgba(209,170,54,.48); background: rgba(209,170,54,.045); }
.investigation-grid img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 28px; }
.investigation-grid h3 { margin-bottom: 10px; color: var(--gold-strong); }
.investigation-grid p { margin-bottom: 0; color: #c7ccd1; }

/* Training */
.training-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.training-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d9d4c9;
  background: rgba(255,255,255,.72);
  transition: border-color .2s ease, background .2s ease;
}
.training-grid article:hover { border-color: rgba(209,170,54,.62); background: #fff; }
.training-grid img { width: 38px; height: 38px; object-fit: contain; }
.training-grid h3 { margin-bottom: 6px; font-size: 1.04rem; line-height: 1.18; }
.training-grid p { margin: 0; color: #59616a; font-size: .94rem; }

/* Process */
#modelo {
  background:
    linear-gradient(90deg, rgba(209,170,54,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(209,170,54,.025) 1px, transparent 1px),
    #0d0f12;
  background-size: 64px 64px;
}
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.process-card {
  position: relative;
  min-height: 270px;
  padding: 30px 24px 26px;
  border-top: 3px solid var(--gold-deep);
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-left: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}
.process-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--gold);
  opacity: .55;
}
.process-card:last-child::after { display: none; }
.process-card .step {
  position: absolute;
  right: 18px;
  top: 10px;
  color: rgba(209,170,54,.13);
  font-family: var(--heading);
  font-size: 2.75rem;
  font-weight: 900;
}
.process-card img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 34px; }
.process-card h3 { margin-bottom: 10px; color: var(--gold-strong); }
.process-card p { margin-bottom: 0; color: #c5cad0; }

/* Talent */
#talento { background: linear-gradient(180deg, #f7f5ef, #efede6); }
.talent-grid { grid-template-columns: .94fr 1.06fr; align-items: center; }
.talent-grid .image-panel { background: #0f1114; border-color: rgba(209,170,54,.26); }
.talent-grid .image-panel img { width: 100%; height: auto; min-height: 0; object-fit: contain; }
.talent-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.talent-items article {
  min-height: 172px;
  padding: 20px;
  border: 1px solid #d9d4c9;
  border-top: 3px solid #c7a132;
  background: rgba(255,255,255,.76);
}
.talent-items img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; }
.talent-items h3 { margin-bottom: 7px; font-size: 1.03rem; }
.talent-items p { margin: 0; color: #5c646c; font-size: .94rem; }

/* Why TERIUS */
.why-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(209,170,54,.13), transparent 24%),
    linear-gradient(145deg, #14171b, #090a0c);
  color: var(--white);
}
.why-section::before {
  content: "TERIUS";
  position: absolute;
  right: -30px;
  top: 40px;
  color: rgba(255,255,255,.025);
  font-family: var(--heading);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 900;
  letter-spacing: -.08em;
  pointer-events: none;
}
.why-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why-card {
  position: relative;
  min-height: 218px;
  padding: 30px;
  border: 1px solid rgba(209,170,54,.17);
  background: rgba(255,255,255,.028);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.why-card::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .25s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(209,170,54,.48); background: rgba(209,170,54,.045); }
.why-card:hover::after { transform: scaleX(1); }
.why-card img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 26px; }
.why-card h3 { margin-bottom: 10px; color: var(--gold-strong); }
.why-card p { margin-bottom: 0; color: #c9ced3; }

/* Clients */
.clients { background: #f6f4ee; }
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.client-card {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid #dcd7cc;
  background: #fff;
  box-shadow: 0 8px 20px rgba(8,10,12,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.client-card:hover { transform: translateY(-3px); border-color: rgba(209,170,54,.5); box-shadow: 0 14px 28px rgba(8,10,12,.07); }
.client-card img { max-height: 92px; width: auto; max-width: 100%; height: auto; object-fit: contain; }

/* Gallery */
.gallery-section {
  overflow: hidden;
  background: linear-gradient(160deg, #090a0c, #181b20);
}
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery-item {
  position: relative;
  margin: 0;
  grid-column: span 4;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(209,170,54,.15);
  background: #0c0e11;
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}
.gallery-item.wide { grid-column: span 6; }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .2s ease;
}
.gallery-item:hover::after { border-color: rgba(209,170,54,.55); }
.gallery-item img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.012); }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
  border-top: 1px solid rgba(209,170,54,.25);
  background:
    radial-gradient(circle at 6% 10%, rgba(209,170,54,.11), transparent 28%),
    linear-gradient(155deg, #101216 0%, #07080a 100%);
  color: var(--white);
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -290px;
  top: 15%;
  border: 1px solid rgba(209,170,54,.10);
  transform: rotate(45deg);
  pointer-events: none;
}
.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  gap: clamp(56px, 7vw, 94px);
  align-items: start;
  padding-bottom: 72px;
}
.footer-intro { padding-top: 8px; }
.footer-logo { width: min(100%, 450px); height: auto; }
.footer-tagline { margin: 26px 0 14px; color: var(--gold-pale); font-family: var(--heading); font-size: clamp(1.08rem, 1.6vw, 1.38rem); font-weight: 800; }
.footer-description { max-width: 520px; color: #c1c6cb; font-size: 1rem; }
.whatsapp-btn {
  min-height: 52px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  border: 1px solid rgba(209,170,54,.55);
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.whatsapp-btn:hover, .whatsapp-btn:focus-visible { transform: translateY(-2px); background: var(--gold-strong); box-shadow: 0 14px 28px rgba(0,0,0,.24); }
.whatsapp-btn img { width: 24px; height: 24px; }
.footer-socials { margin-top: 34px; }
.footer-socials > span { display: block; margin-bottom: 12px; color: #959ba2; font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.social-links { display: flex; gap: 9px; }
.social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.social-links a:hover, .social-links a:focus-visible { transform: translateY(-3px); border-color: var(--gold); background: rgba(209,170,54,.09); }
.social-links img { width: 20px; height: 20px; }
.footer-form-wrap {
  padding: 38px;
  border: 1px solid rgba(209,170,54,.20);
  border-radius: 12px;
  background: rgba(255,255,255,.032);
  box-shadow: 0 24px 56px rgba(0,0,0,.24);
}
.footer-form-wrap h2 { margin-bottom: 14px; color: var(--white); font-size: clamp(2rem, 3.4vw, 3.35rem); }
.footer-form-copy { max-width: 640px; margin-bottom: 28px; color: #b8bec4; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { color: #e5e8eb; font-size: .9rem; font-weight: 800; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  outline: none;
  background: #121418;
  color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #777e85; opacity: 1; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(209,170,54,.10); background: #171a1f; }
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: #b96a60; }
.form-submit {
  min-height: 52px;
  margin-top: 20px;
  padding: 12px 20px;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.form-submit:hover, .form-submit:focus-visible { transform: translateY(-2px); background: var(--gold-strong); }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--gold-pale); font-size: .9rem; }
.footer-bottom {
  position: relative;
  z-index: 1;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #8f969d;
  font-size: .88rem;
}
.footer-bottom > span { text-align: center; }
.footer-bottom > a { justify-self: end; color: var(--gold-strong); text-decoration: none; font-weight: 800; }
.footer-location { display: inline-flex; align-items: center; gap: 9px; }
.footer-location img { width: 22px; height: 22px; object-fit: contain; }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 1180px) and (min-width: 861px) {
  .brand { width: 186px; }
  .nav-wrap { gap: 16px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: .79rem; }
  .main-nav a[href="#contacto"] { padding: 9px 12px; }
}

@media (max-width: 1060px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-card:nth-child(3)::after { display: none; }
  .investigation-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section, .service-detail { padding: 86px 0; }
  .brand { width: 176px; }
  .site-header.is-scrolled { height: 66px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(88vw, 380px);
    height: calc(100svh - var(--header-h));
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(9,10,12,.98);
    border-left: 1px solid rgba(209,170,54,.18);
    transform: translateX(105%);
    transition: transform .25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 14px 6px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a::after { display: none; }
  .main-nav a[href="#contacto"] { margin-top: 10px; text-align: center; border: 1px solid rgba(209,170,54,.35); }
  body.menu-open { overflow: hidden; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 54px); padding-bottom: 72px; }
  .hero-grid, .split-grid, .detail-grid, .footer-main { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 760px; text-align: center; margin-inline: auto; }
  .hero-copy::before { display: none; }
  .hero-shield { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { justify-self: center; width: min(100%, 600px); }
  .detail-grid.reverse .detail-media, .detail-grid.reverse .detail-content { order: initial; }
  .detail-media { width: min(100%, 700px); margin-inline: auto; }
  .governance-grid { grid-template-columns: 1fr; }
  .values-card { grid-column: auto; grid-template-columns: 1fr; gap: 22px; }
  .value-chips { grid-template-columns: repeat(2, 1fr); }
  .talent-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item, .gallery-item.wide { grid-column: span 6; min-height: 300px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section, .service-detail { padding: 70px 0; }
  h2 { font-size: clamp(1.9rem, 8.8vw, 2.85rem); }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.4rem); }
  .hero-tagline { font-size: 1rem; }
  .hero-media { padding: 8px; border-radius: 20px 6px 20px 6px; }
  .hero-media::after { width: 52px; height: 52px; right: -8px; bottom: -8px; }
  .hero-media img { border-radius: 14px 3px 14px 3px; }
  .btn { width: 100%; }
  .image-panel { padding: 8px; }
  .image-accent { width: 68px; height: 68px; top: -9px; right: -9px; }
  .governance-grid, .service-grid, .why-grid, .client-grid, .training-grid, .talent-items, .investigation-grid, .process-grid { grid-template-columns: 1fr; }
  .value-chips { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 126px; flex-direction: row; align-items: center; justify-content: flex-start; padding: 20px; }
  .service-card img { flex: 0 0 auto; }
  .service-card span { max-width: none; }
  .service-card::after { top: auto; bottom: 18px; }
  .process-card { min-height: 200px; }
  .process-card::after { display: none; }
  .investigation-top { align-items: flex-start; }
  .investigation-top > img { width: 78px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.wide { grid-column: 1; min-height: 250px; }
  .footer-main { gap: 42px; padding-bottom: 54px; }
  .footer-form-wrap { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .form-submit { width: 100%; }
  .footer-bottom { grid-template-columns: 1fr; align-items: flex-start; padding: 22px 0; }
  .footer-bottom > span { text-align: left; }
  .footer-bottom > a { justify-self: start; }
}

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