/* ===========================================================
   TESERACTO INGENIERÍA — Editorial Dark Warm
   Premium structural-engineering landing
   =========================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Surfaces */
  --bg:        #0E0B09;        /* warm near-black */
  --bg-2:      #15110E;
  --bg-3:      #1B1612;        /* card */
  --bg-4:      #221C16;        /* elevated */
  --bg-grad:   linear-gradient(180deg, #0E0B09 0%, #15110E 100%);

  /* Text */
  --cream:     #F2EBDA;        /* primary text on dark */
  --cream-2:   #DDD2BC;
  --cream-3:   #8B7E68;        /* metadata / muted */
  --cream-4:   #5A5145;        /* subtle */

  /* Accents */
  --copper:    #C49A5B;        /* primary structural-metal accent */
  --copper-2:  #D4A574;        /* lighter */
  --copper-3:  #A07B41;        /* darker */
  --steel:     #6F8294;        /* cool secondary */
  --whatsapp:  #25D366;

  /* Lines */
  --line:      rgba(242, 235, 218, 0.10);
  --line-2:    rgba(242, 235, 218, 0.18);
  --line-3:    rgba(242, 235, 218, 0.30);

  /* Typography */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Geometry */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --container: 1240px;
  --nav-h:     76px;
  --ann-h:     38px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--copper); color: var(--bg); }

/* ---------- SPLASH ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  color: var(--copper);
  transition: opacity .6s var(--ease-out), visibility .6s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-mark {
  perspective: 700px;
  filter: drop-shadow(0 10px 40px rgba(243, 154, 30, 0.25));
}
.splash-mark svg { animation: splashSpin 3s var(--ease-in-out) infinite; transform-style: preserve-3d; }
.splash-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--cream-2);
  font-weight: 400;
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes splashSpin {
  0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
  50%      { transform: rotateY(180deg) rotateX(10deg); }
}

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement {
  position: relative;
  z-index: 50;
  height: var(--ann-h);
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2));
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cream-2);
  text-align: center;
  padding: 0 16px;
}
.announcement strong { color: var(--copper-2); font-weight: 500; }
.ann-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(196, 154, 91, 0.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(196, 154, 91, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(196, 154, 91, 0.05); }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14, 11, 9, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}
.nav.is-scrolled {
  background: rgba(14, 11, 9, 0.92);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  transition: color .25s;
}
.brand:hover { color: var(--copper-2); }

/* ---------- Teseracto isometric logo ---------- */
.brand-mark {
  display: inline-flex;
  perspective: 600px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}
.brand-mark svg {
  display: block;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-spring);
}
.logo-anim svg {
  animation: logoFloat 6s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.brand:hover .brand-mark svg,
.brand:focus-visible .brand-mark svg {
  animation: none;
  transform: rotateY(360deg);
}

/* Subtle face highlight on hover */
.brand-mark .logo-face { transition: filter .5s; }
.brand:hover .logo-face--top   { filter: brightness(1.15); }
.brand:hover .logo-face--right { filter: brightness(1.08) saturate(1.1); }
.brand:hover .logo-face--left  { filter: brightness(1.1) saturate(1.15); }

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50%      { transform: translateY(-3px) rotateZ(-2deg); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-top: 4px;
}

.nav-links {
  display: flex; gap: 28px;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--cream-2);
  transition: color .2s;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cream-2);
  transition: color .2s;
}
.nav-phone:hover { color: var(--copper-2); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.nav-burger span {
  width: 18px; height: 1.5px;
  background: var(--cream);
  transition: transform .3s, opacity .3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  top: calc(var(--ann-h) + var(--nav-h));
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--bg);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform .45s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}
.mobile-cta {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: transform .2s var(--ease-out), background .25s, border-color .25s, color .25s, box-shadow .35s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 15px; gap: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--copper);
  color: #1a1209;
  box-shadow: 0 8px 26px -8px rgba(196, 154, 91, 0.55);
}
.btn-primary:hover {
  background: var(--copper-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(196, 154, 91, 0.70);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-2);
  background: rgba(196, 154, 91, 0.04);
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(196, 154, 91, 0.12);
}
.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 22ch;
}
.sec-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--copper-2);
  font-weight: 400;
}
.sec-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream-2);
  max-width: 62ch;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 920px; }

.section {
  padding: 120px 0;
  position: relative;
}
.section-tight { padding: 80px 0; }
.sec-head { margin-bottom: 64px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  padding: 88px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.5) contrast(1.05);
  transform: scale(1.06);
  animation: heroZoom 20s var(--ease-in-out) infinite alternate;
}
.hero-bg-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,11,9,0.65) 0%, rgba(14,11,9,0.85) 60%, rgba(14,11,9,0.96) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(196,154,91,0.12) 0%, transparent 55%);
}
.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 20% 30%, rgba(196,154,91,0.16) 0%, transparent 60%),
    radial-gradient(45% 35% at 80% 70%, rgba(111,130,148,0.12) 0%, transparent 60%);
  filter: blur(50px);
  animation: meshDrift 22s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence baseFrequency='0.85'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
}
@keyframes heroZoom {
  0%   { transform: scale(1.06) translate3d(0,0,0); }
  100% { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}
@keyframes meshDrift {
  0%   { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(3%, -2%) rotate(8deg); }
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-left .kicker { margin-bottom: 22px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--cream);
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--copper-2);
  font-weight: 400;
  display: inline-block;
}

.hero-sub {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--cream-2);
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-sub strong { color: var(--copper-2); font-weight: 600; }

.hero-trust {
  display: flex; flex-wrap: wrap;
  gap: 12px 28px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cream-3);
  letter-spacing: 0.06em;
}
.hero-trust .item { display: inline-flex; gap: 8px; align-items: baseline; }
.hero-trust .num { color: var(--copper-2); font-weight: 500; letter-spacing: 0.03em; }

.hero-ctas {
  display: flex; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-fineprint {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cream-3);
  margin: 0;
}

/* Hero Form */
.hero-right { position: relative; }
.quote-form {
  background: linear-gradient(180deg, rgba(34,28,22,0.86) 0%, rgba(27,22,18,0.88) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.quote-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 100% 0%, rgba(196,154,91,0.12), transparent 60%);
  pointer-events: none;
}
.qf-head { margin-bottom: 22px; }
.qf-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 8px;
}
.qf-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
}

.field { display: flex; flex-direction: column; margin-bottom: 14px; position: relative; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  background: rgba(14,11,9,0.55);
  border: 1px solid var(--line-2);
  color: var(--cream);
  padding: 12px 14px;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  transition: border-color .25s, background .25s;
  outline: none;
  width: 100%;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%238B7E68' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field option { background: var(--bg-2); color: var(--cream); }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--copper);
  background: rgba(14,11,9,0.78);
}
.field input::placeholder, .field textarea::placeholder { color: var(--cream-4); }

.qf-privacy {
  font-size: 11.5px;
  color: var(--cream-3);
  line-height: 1.5;
  margin: 14px 0 0;
}
.qf-privacy a { color: var(--copper-2); text-decoration: underline; text-underline-offset: 2px; }

.qf-success {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,22,18,0.97) 0%, rgba(14,11,9,0.98) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 18px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  color: var(--cream);
}
.qf-success svg {
  color: var(--copper);
  background: rgba(196,154,91,0.12);
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  padding: 14px;
  width: 64px; height: 64px;
}
.qf-success p { font-size: 17px; max-width: 32ch; line-height: 1.5; margin: 0; }
.qf-success strong { color: var(--copper-2); font-weight: 600; }
.quote-form.is-sent .qf-success { opacity: 1; visibility: visible; }

/* ============================================================
   CLIENTES
   ============================================================ */
.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  padding: 88px 0 96px;
  overflow: hidden;
  position: relative;
}
.clients::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 60%;
  background: radial-gradient(50% 40% at 50% 0%, rgba(196,154,91,0.10) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.clients-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.clients-head {
  text-align: center;
  margin-bottom: 56px;
}
.clients-head .kicker { justify-content: center; }
.clients-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--cream);
  text-wrap: balance;
}
.clients-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--copper-2);
  font-weight: 400;
}
.clients-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-2);
  max-width: 56ch;
  margin: 0 auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.client-logo {
  background: #ffffff;
  border: 1px solid rgba(196, 154, 91, 0.20);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  min-height: 116px;
  transition: background .35s, border-color .35s, transform .35s var(--ease-out), box-shadow .4s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.client-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,154,91,0.0) 0%, rgba(196,154,91,0.12) 100%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.client-logo:hover {
  background: #ffffff;
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -18px rgba(0,0,0,0.65), 0 0 0 2px rgba(196,154,91,0.25);
}
.client-logo:hover::after { opacity: 1; }
.client-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.95);
  transition: transform .4s var(--ease-out), filter .35s;
  position: relative;
  z-index: 1;
}
.client-logo:hover img {
  filter: saturate(1.1);
  transform: scale(1.05);
}
/* Compensación de logos con mucho whitespace en el archivo fuente */
.client-logo img[src*="austral-gold"]   { transform: scale(1.55); }
.client-logo:hover img[src*="austral-gold"] { transform: scale(1.62); }
.client-logo img[src*="minera-aguilar"] { transform: scale(1.18); }
.client-logo:hover img[src*="minera-aguilar"] { transform: scale(1.24); }
.client-logo img[src*="rdi"]            { transform: scale(1.45); }
.client-logo:hover img[src*="rdi"]      { transform: scale(1.52); }
.client-logo img[src*="cerro-negro"]    { transform: scale(1.05); }
.client-logo:hover img[src*="cerro-negro"] { transform: scale(1.10); }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-card {
  border-left: 1px solid var(--line-2);
  padding-left: 24px;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--copper-2);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.stat-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--cream);
}
.stat-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-3);
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: transform .4s var(--ease-out), border-color .35s, background .35s, box-shadow .4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,154,91,0.30);
  background: var(--bg-4);
  box-shadow: 0 30px 60px -30px rgba(196,154,91,0.20);
}
.service-card:hover::before { opacity: 1; }

.svc-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 22px;
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--cream);
}
.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-2);
  margin: 0 0 20px;
}
.svc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.svc-tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--cream-3);
}
.service-card--featured {
  background: linear-gradient(180deg, rgba(196,154,91,0.06) 0%, var(--bg-3) 100%);
  border-color: rgba(196,154,91,0.20);
}
.service-card--featured .svc-num { color: var(--copper-2); }

/* Tarjetas de servicio que enlazan a su landing */
a.service-card--link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--copper-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s, gap .3s;
}
.service-card--link:hover .svc-link { opacity: 1; transform: translateY(0); gap: 10px; }
@media (hover: none) { .svc-link { opacity: 1; transform: none; } }

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(196,154,91,0.10) 0%, rgba(34,28,22,0.4) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
  grid-column: span 2;
  transition: border-color .35s, transform .35s;
}
.service-cta:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.svc-cta-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 8px;
}
.service-cta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--cream);
}
.svc-cta-sub { font-size: 14px; color: var(--cream-3); margin: 0; }
.service-cta .arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--copper);
  color: #1a1209;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .35s var(--ease-spring);
}
.service-cta:hover .arrow { transform: translateX(6px) rotate(-8deg); }

/* ============================================================
   SECTORES
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.sector-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 480px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  transition: transform .4s var(--ease-out), border-color .35s;
}
.sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,154,91,0.30);
}
.sc-img { position: absolute; inset: 0; z-index: -1; }
.sc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,11,9,0) 0%, rgba(14,11,9,0.55) 45%, rgba(14,11,9,0.96) 100%);
}
.sc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform .8s var(--ease-out);
}
.sector-card:hover .sc-img img { transform: scale(1.06); }

.sc-body { padding: 32px 28px; position: relative; z-index: 1; }
.sc-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 10px;
}
.sc-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--cream);
}
.sc-body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cream-2);
  margin: 0;
}
.sc-list {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.sc-list li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cream-3);
  padding-left: 14px;
  position: relative;
}
.sc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 1px;
  background: var(--copper);
}

/* ============================================================
   PROCESO
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-step {
  background: var(--bg-2);
  padding: 40px 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: background .35s;
}
.process-step:hover { background: var(--bg-3); }
.ps-num {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--copper);
  flex-shrink: 0;
}
.ps-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 8px 0 12px;
  color: var(--cream);
}
.ps-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-2);
  margin: 0 0 12px;
}
.ps-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cream-3);
  text-transform: uppercase;
  margin: 0;
}
.ps-meta strong { color: var(--copper-2); font-weight: 500; }

/* ============================================================
   PROYECTOS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 460px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  transition: transform .4s var(--ease-out), border-color .35s, box-shadow .4s;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.project-card--feat {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 520px;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,154,91,0.30);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.pc-img { position: absolute; inset: 0; z-index: -2; }
.pc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out), filter .4s;
  filter: saturate(0.92) brightness(0.85);
}
.project-card:hover .pc-img img { transform: scale(1.08); filter: saturate(1.05) brightness(0.95); }
.pc-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14,11,9,0) 0%, rgba(14,11,9,0.45) 35%, rgba(14,11,9,0.96) 88%);
}
.pc-body {
  padding: 28px;
  position: relative;
}
.pc-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 12px;
}
.pc-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--cream);
}
.project-card--feat .pc-body h3 { font-size: 32px; }
.pc-client {
  font-size: 13px;
  color: var(--copper-2);
  margin: 0 0 12px;
  font-weight: 500;
}
.pc-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-2);
  margin: 0 0 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s var(--ease-out), opacity .35s, margin .4s;
}
.project-card:hover .pc-desc {
  max-height: 200px;
  opacity: 1;
  margin: 0 0 16px;
}
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  background: rgba(14,11,9,0.6);
  border-radius: 999px;
  color: var(--cream-2);
  backdrop-filter: blur(4px);
}
.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--copper-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s, gap .3s;
}
.project-card:hover .pc-cta { opacity: 1; transform: translateY(0); gap: 10px; }

.projects-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   NORMATIVA
   ============================================================ */
.norm-feature {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 32px;
  background: linear-gradient(135deg, rgba(196,154,91,0.06) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.nf-item h4 {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--copper-2);
  letter-spacing: -0.005em;
}
.nf-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-2);
}

.norm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.norm-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .3s, transform .3s, background .35s;
}
.norm-card:hover {
  border-color: rgba(196,154,91,0.30);
  transform: translateY(-2px);
  background: var(--bg-4);
}
.nc-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--copper);
  padding: 4px 10px;
  border: 1px solid rgba(196,154,91,0.30);
  border-radius: 4px;
  margin-bottom: 14px;
}
.norm-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--cream);
}
.norm-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream-3);
  margin: 0;
}

/* ============================================================
   TESTIMONIO
   ============================================================ */
.testimonial {
  padding: 120px 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(50% 40% at 50% 40%, rgba(196,154,91,0.10) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}
.testi-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.testi-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 120px;
  line-height: 0.8;
  color: var(--copper);
  opacity: 0.4;
  margin-bottom: 8px;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 40px;
  text-wrap: pretty;
}
.testimonial blockquote em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--copper-2);
}
.testi-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-3) 100%);
  color: #1a1209;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.testi-name { font-weight: 500; margin: 0 0 2px; font-size: 15px; }
.testi-role { font-family: var(--mono); font-size: 12px; color: var(--cream-3); margin: 0; letter-spacing: 0.04em; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 35% at 30% 50%, rgba(196,154,91,0.16) 0%, transparent 60%),
    radial-gradient(45% 35% at 75% 60%, rgba(111,130,148,0.10) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
  animation: meshDrift 28s var(--ease-in-out) infinite alternate;
}
.cta-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.cta-head .sec-title { margin-inline: auto; }
.cta-head .sec-sub { margin: 18px auto 0; }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 48px 0 64px;
  flex-wrap: wrap;
}
.cta-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.ci-item { display: flex; flex-direction: column; }
.ci-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin: 0 0 8px;
}
.ci-value {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--cream);
  margin: 0;
  transition: color .25s;
}
a.ci-value:hover { color: var(--copper-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--cream);
  line-height: 1.3;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--copper-2); }
.faq-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color .25s, background .25s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--copper);
  top: 50%; left: 50%;
  transition: transform .35s var(--ease-spring);
}
.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item[open] .faq-icon { background: rgba(196,154,91,0.10); border-color: var(--copper); }

.faq-body {
  padding: 0 0 24px;
  max-width: 70ch;
}
.faq-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cream-2);
  margin: 0;
}
.faq-body strong { color: var(--copper-2); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 18px; }
.brand--footer .brand-mark { color: var(--copper); }
.footer-blurb {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-3);
  max-width: 40ch;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li {
  font-size: 14px;
  color: var(--cream-2);
  transition: color .25s;
}
.footer-col a:hover { color: var(--copper-2); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--cream-2);
  transition: color .25s, border-color .25s, background .25s, transform .25s;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.social-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(196,154,91,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--copper-2);
  transition: background .25s, color .25s;
}
.social-link:hover {
  color: var(--cream);
  border-color: var(--copper);
  background: rgba(196,154,91,0.06);
  transform: translateY(-2px);
}
.social-link:hover .social-icon {
  background: var(--copper);
  color: #1a1209;
}
.social-handle { line-height: 1; }

.footer-bottom {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 28px 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cream-3);
  letter-spacing: 0.04em;
}
.footer-fineprint { color: var(--cream-4); margin: 0; }
.footer-bottom p { margin: 0; }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wsp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  padding: 13px 18px 13px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: transform .25s var(--ease-out), box-shadow .25s;
  animation: fabPulse 2.6s ease-out infinite;
}
.wsp-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 36px -10px rgba(37, 211, 102, 0.65), 0 0 0 6px rgba(37, 211, 102, 0.10);
  animation: none;
}
.wsp-label { line-height: 1; }
@keyframes fabPulse {
  0%   { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Defensive: any reveal that also has data-split shouldn't be hidden */
.reveal[data-split] { opacity: 1; transform: none; }

/* ============================================================
   PROYECTOS — PÁGINA DE DETALLE
   ============================================================ */
.page-hero {
  position: relative;
  padding: 140px 0 96px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.ph-bg { position: absolute; inset: 0; z-index: -2; }
.ph-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) brightness(0.4);
}
.ph-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,11,9,0.7) 0%, rgba(14,11,9,0.92) 80%, var(--bg) 100%),
    radial-gradient(60% 50% at 20% 20%, rgba(196,154,91,0.14) 0%, transparent 65%);
}
.ph-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.ph-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 18px 0 22px;
  max-width: 22ch;
  text-wrap: balance;
}
.ph-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--copper-2);
}
.ph-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream-2);
  max-width: 64ch;
  margin: 0 0 40px;
}
.ph-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.ph-toc a {
  background: rgba(14,11,9,0.65);
  backdrop-filter: blur(8px);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream-2);
  transition: background .3s, color .3s;
}
.ph-toc a:hover {
  background: rgba(196,154,91,0.12);
  color: var(--copper-2);
}

.proj-detail {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}
.proj-detail--alt { background: var(--bg-2); }
.proj-detail .container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.pd-grid--reverse > .pd-figure { order: 2; }

.pd-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.pd-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform .8s var(--ease-out);
}
.pd-figure:hover img { transform: scale(1.04); }
.pd-figure figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(14,11,9,0.78);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 2px solid var(--copper);
}

.pd-body { max-width: 56ch; }
.pd-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin: 0 0 12px;
}
.pd-cat {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin: 0 0 18px;
}
.pd-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0 0 16px;
  text-wrap: balance;
}
.pd-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--copper-2);
}
.pd-client {
  font-size: 14px;
  color: var(--cream-2);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pd-client strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  font-weight: 500;
  margin-right: 10px;
}

.pd-section {
  margin: 0 0 24px;
}
.pd-section h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 10px;
}
.pd-section p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cream-2);
  margin: 0;
}

.pd-meta {
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.pd-meta li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pd-meta span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  padding-top: 2px;
}
.pd-meta strong {
  color: var(--cream);
  font-weight: 500;
}

/* ============================================================
   LANDING PAGES (Google Ads) — layout enfocado a conversión
   ============================================================ */
.lp-nav .nav-links { display: none; }       /* sin menú: menos salidas */
.lp-hero { padding-top: 56px; }

.lp-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.lp-benefit {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .35s, transform .35s var(--ease-out), background .35s;
}
.lp-benefit:hover {
  border-color: rgba(196,154,91,0.30);
  transform: translateY(-3px);
  background: var(--bg-4);
}
.lp-benefit-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(196,154,91,0.12);
  border: 1px solid rgba(196,154,91,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-2);
  margin-bottom: 18px;
}
.lp-benefit h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--cream);
  line-height: 1.2;
}
.lp-benefit p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-2);
  margin: 0;
}

/* Caso de estudio destacado en landing */
.lp-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.lp-case-img { position: relative; min-height: 420px; }
.lp-case-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-case-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.lp-case-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 14px;
}
.lp-case-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--cream);
}
.lp-case-body p { font-size: 15px; line-height: 1.6; color: var(--cream-2); margin: 0 0 14px; }
.lp-case-stats { display: flex; gap: 32px; margin-top: 14px; }
.lp-case-stat .n {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  font-size: 32px;
  color: var(--copper-2);
  display: block;
  line-height: 1;
}
.lp-case-stat .l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-top: 6px;
  display: block;
}

/* Checklist editorial (entregables, "qué incluye") */
.checklist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.checklist li {
  position: relative;
  padding: 18px 0 18px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-2);
  list-style: none;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 24px;
  width: 16px; height: 8px;
  border-left: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--cream); font-weight: 600; }

/* ============================================================
   BLOG — índice editorial
   ============================================================ */
.blog-hero {
  padding: 130px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 70%;
  background: radial-gradient(50% 50% at 30% 0%, rgba(196,154,91,0.10) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}
.blog-hero-inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.blog-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 18px 0 20px;
  max-width: 20ch;
  text-wrap: balance;
}
.blog-hero h1 em { font-style: italic; font-variation-settings: "SOFT" 100; color: var(--copper-2); }
.blog-hero p { font-size: 18px; line-height: 1.6; color: var(--cream-2); max-width: 60ch; margin: 0; }

/* Featured article */
.blog-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  margin: 64px 0 56px;
  transition: border-color .35s, transform .4s var(--ease-out);
  color: inherit;
}
.blog-featured:hover { border-color: rgba(196,154,91,0.30); transform: translateY(-3px); }
.blog-featured-img { position: relative; min-height: 420px; overflow: hidden; }
.blog-featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.blog-featured:hover .blog-featured-img img { transform: scale(1.05); }
.blog-featured-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body .blog-cat { margin-bottom: 18px; }
.blog-featured-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0 0 16px;
  text-wrap: balance;
}
.blog-featured-body p { font-size: 16px; line-height: 1.6; color: var(--cream-2); margin: 0 0 24px; }

.blog-cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.blog-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cream-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--cream-4); }

/* Article grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  transition: border-color .35s, transform .4s var(--ease-out), box-shadow .4s;
  color: inherit;
}
.blog-card:hover {
  border-color: rgba(196,154,91,0.30);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card .blog-cat { margin-bottom: 14px; font-size: 10.5px; }
.blog-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  color: var(--cream);
  margin: 0 0 12px;
  text-wrap: balance;
}
.blog-card p { font-size: 14px; line-height: 1.55; color: var(--cream-2); margin: 0 0 18px; flex: 1; }
.blog-card .blog-meta { margin-top: auto; font-size: 11px; }

/* ============================================================
   BLOG — artículo
   ============================================================ */
.article-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.article-hero-bg { position: absolute; inset: 0; z-index: -2; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(0.9); }
.article-hero-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,11,9,0.4) 0%, rgba(14,11,9,0.7) 55%, rgba(14,11,9,0.97) 100%);
}
.article-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 64px;
}
.article-hero .blog-cat { margin-bottom: 22px; }
.article-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 24px;
  text-wrap: balance;
}
.article-hero h1 em { font-style: italic; font-variation-settings: "SOFT" 100; color: var(--copper-2); }
.article-hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--cream-2);
  letter-spacing: 0.04em;
}
.article-hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--copper); }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 40px;
}
.article-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.45;
  color: var(--cream);
  margin: 0 0 40px;
  text-wrap: pretty;
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream-2);
  margin: 0 0 26px;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 56px 0 20px;
  text-wrap: balance;
}
.article-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  color: var(--cream);
  margin: 40px 0 14px;
}
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body a { color: var(--copper-2); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 0; }
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-2);
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  list-style: none;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 9px; height: 1px;
  background: var(--copper);
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
}

/* Drop cap on first paragraph */
.article-body .has-dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.78;
  float: left;
  margin: 6px 14px 0 0;
  color: var(--copper-2);
  font-weight: 500;
}

/* Figures */
.article-figure {
  margin: 44px 0;
}
.article-figure.full {
  /* desbordar el ancho del cuerpo para impacto */
  width: calc(100% + 220px);
  margin-left: -110px;
}
.article-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  display: block;
}
.article-figure figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cream-3);
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--copper);
}

/* Pull quote */
.article-pullquote {
  margin: 48px 0;
  padding: 8px 0 8px 32px;
  border-left: 2px solid var(--copper);
}
.article-pullquote p {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  font-size: 26px;
  line-height: 1.35;
  color: var(--cream);
  margin: 0;
}

/* Technical data box */
.article-databox {
  background: linear-gradient(135deg, rgba(196,154,91,0.07) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 32px 32px 28px;
  margin: 44px 0;
}
.article-databox h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 20px;
}
.article-databox dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.article-databox .row { display: flex; flex-direction: column; gap: 4px; }
.article-databox dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.article-databox dd { margin: 0; font-size: 16px; color: var(--cream); font-weight: 500; }

/* Author / share footer */
.article-foot {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
}
.article-foot .testi-avatar { flex-shrink: 0; }
.article-foot-txt p { margin: 0; }
.article-foot-txt .n { font-weight: 600; color: var(--cream); font-size: 15px; }
.article-foot-txt .r { font-family: var(--mono); font-size: 12px; color: var(--cream-3); margin-top: 3px; }

/* Related / next articles */
.article-related {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--line);
}
.article-related h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--cream);
  margin: 0 0 36px;
}
.article-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { max-width: 540px; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--feat { grid-column: span 2; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .sector-card--main { grid-column: span 2; min-height: 380px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; margin-bottom: 16px; }
  .norm-feature { grid-template-columns: repeat(2, 1fr); }
  .norm-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-info { grid-template-columns: repeat(2, 1fr); }
  .service-cta { grid-column: span 2; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .pd-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-grid--reverse > .pd-figure { order: 0; }
  .pd-figure img { aspect-ratio: 16 / 10; }
  .ph-toc { grid-template-columns: repeat(2, 1fr); }
  .lp-benefits { grid-template-columns: repeat(2, 1fr); }
  .lp-case { grid-template-columns: 1fr; }
  .lp-case-img { min-height: 280px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 280px; }
  .blog-grid, .article-related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-figure.full { width: 100%; margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 0 22px; }
  .section { padding: 80px 0; }
  .section-tight { padding: 60px 0; }
  .sec-head { margin-bottom: 44px; }
  .container, .hero-inner, .stats-inner, .ts-inner, .footer-inner, .footer-bottom, .testi-inner, .cta-inner { padding-left: 22px; padding-right: 22px; }
  .hero { padding: 56px 0 60px; min-height: auto; }
  .services-grid, .projects-grid, .sectors-grid {
    grid-template-columns: 1fr;
  }
  .project-card--feat, .sector-card--main { grid-column: span 1; }
  .service-cta { grid-column: span 1; }
  .process { grid-template-columns: 1fr; }
  .process-step { padding: 32px 24px; gap: 20px; }
  .ps-num { font-size: 44px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .stat-card { padding-left: 18px; }
  .stat-num { font-size: 2.6rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .norm-feature, .norm-grid, .cta-info { grid-template-columns: 1fr; }
  .quote-form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .testimonial { padding: 80px 0; }
  .testimonial blockquote { font-size: 1.3rem; }
  .cta-section { padding: 80px 0; }
  .wsp-fab .wsp-label { display: none; }
  .wsp-fab { padding: 14px; }
  .hero-trust { gap: 8px 18px; }
  .clients { padding: 60px 0 64px; }
  .clients-head { margin-bottom: 36px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo { min-height: 100px; padding: 18px 14px; }
  .client-logo img { max-height: 56px; }
  .page-hero { padding: 100px 0 64px; }
  .ph-toc { grid-template-columns: 1fr; }
  .proj-detail { padding: 64px 0; }
  .pd-meta li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .pd-client { padding-bottom: 18px; margin-bottom: 24px; }
  .lp-benefits { grid-template-columns: 1fr; }
  .lp-case-body { padding: 32px 24px; }
  .lp-case-stats { gap: 24px; }
  .blog-hero { padding: 96px 0 48px; }
  .blog-featured-body { padding: 32px 24px; }
  .blog-grid, .article-related-grid { grid-template-columns: 1fr; }
  .article-body { padding: 48px 22px 32px; }
  .article-lead { font-size: 20px; }
  .article-body p, .article-body li { font-size: 16px; }
  .article-databox dl { grid-template-columns: 1fr; }
  .article-hero { min-height: 56vh; }
  .article-pullquote p { font-size: 21px; }
  .faq-item summary { font-size: 18px; padding: 20px 0; gap: 16px; }
  .service-cta { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: scale(1.04); }
  .hero-mesh, .cta-mesh { animation: none; }
  .ann-dot, .wsp-fab { animation: none; }
  html { scroll-behavior: auto; }
}
