/* =========================================================
   AEDIFICATE CONSTRUCTORA — Premium Construction Studio
   UI/UX inspired by Skanska · Foster + Partners · BIG · Arup
   Palette: Navy + White + Subtle Bottle Green
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Navy */
  --navy-950: #050B1A;
  --navy-900: #0A1628;
  --navy-800: #0F1E3A;
  --navy-700: #142850;
  --navy-600: #1B3260;
  --navy-500: #2A4275;
  --navy-300: #6B7FA8;
  --navy-200: #A3B0CC;
  --navy-100: #D7DDE9;

  /* Green — Verde botella profundo (Bottle Green)
     Identidad de la marca. Escala profundizada para mayor presencia.
     (Los tokens conservan el prefijo --gold-* por compatibilidad interna.) */
  --gold-600: #14422F;   /* forest profundo pero legiblemente verde — eyebrow/números sobre claro */
  --gold-500: #1A5A40;   /* verde profundo primario (acento principal) */
  --gold-400: #2F9465;   /* verde medio vivo — realces sobre oscuro */
  --gold-300: #6FC59C;   /* verde claro — em/acento sobre navy */
  --gold-200: #D8F3DC;   /* tinte muy claro */
  --gold-glow: rgba(47,148,101,.14); /* tinte verde para halos/hovers sutiles */

  /* WhatsApp */
  --wa: #25D366;
  --wa-dark: #128C7E;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #F7F4ED;
  --off: #FAFAF8;
  --line: rgba(255,255,255,.10);
  --line-dark: rgba(10,22,40,.10);

  /* Text */
  --ink: #0A1628;
  --ink-soft: #4B5563;
  --ink-mute: #6B7280;
  --ink-on-dark: rgba(255,255,255,.80);
  --ink-on-dark-mute: rgba(255,255,255,.62);

  /* Type */
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sizes (fluid) */
  --fs-display: clamp(2.6rem, 6.4vw, 6.2rem);
  --fs-h2: clamp(2rem, 4vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.25vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .75rem;

  /* Space scale */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 10rem;

  /* Radius / motion */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --d-1: .25s;
  --d-2: .5s;
  --d-3: .9s;
  --d-4: 1.4s;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --nav-h: 80px;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
.has-js { cursor: none; }
body.is-loading { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold-500); color: var(--white); }

/* Foco visible por teclado (con cursor:none, es el único indicador de navegación) */
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 2px; }

/* Skip link — oculto hasta recibir foco por teclado */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1001;
  background: var(--navy-900); color: var(--white);
  padding: 10px 18px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--gold-500);
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); outline-offset: 4px; }

/* Justificación tipográfica coherente */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 400; text-wrap: balance; }
h1, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; color: var(--gold-500); font-family: var(--serif); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .has-js { cursor: auto; }
  .cursor, .wa-float__pulse { display: none; }
}

/* ---------- 3. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-head { max-width: 780px; margin-bottom: var(--s-8); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); max-width: none; flex-wrap: wrap; }
.section-head p { color: var(--ink-soft); margin-top: var(--s-4); max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold-600);
  font-weight: 500;
  margin-bottom: var(--s-5);
}
.eyebrow--light { color: var(--gold-300); }
.display { font-size: var(--fs-h2); }
.display em { font-style: italic; }

/* ---------- 4. PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy-950);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.preloader__logo {
  height: 100px; width: auto;
  animation: preloaderPulse 1.6s var(--ease-out) infinite alternate;
}
@keyframes preloaderPulse { from { opacity: .85; } to { opacity: 1; } }
.preloader__year { font-family: var(--sans); font-size: .7rem; letter-spacing: .3em; color: var(--gold-400); text-transform: uppercase; }
.preloader__bar {
  width: 220px; height: 1px; background: rgba(255,255,255,.12);
  overflow: hidden;
}
.preloader__bar span {
  display: block; width: 0; height: 100%; background: var(--gold-500);
  animation: preloader 1.6s var(--ease-out) forwards;
}
@keyframes preloader { to { width: 100%; } }

/* ---------- 5. CUSTOM CURSOR (Lucide hammer - posición natural de agarre) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 999;
  pointer-events: none;
  mix-blend-mode: difference;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  will-change: transform;
}
.cursor__hammer {
  width: 100%; height: 100%;
  color: var(--white);
  /* Posición natural de agarre:
     - scaleX(-1) voltea el martillo (cabeza a la izquierda, mango a la derecha)
     - rotate(-15deg) inclina 15° CCW para que el mango quede diagonal (~60° desde la horizontal)
     - Resultado: cabeza arriba-izquierda, mango diagonal hacia abajo-derecha */
  transform: scaleX(-1) rotate(-15deg) scale(1);
  transform-origin: 50% 50%;
  transition: transform .35s var(--ease), color .25s var(--ease), filter .35s var(--ease), opacity .25s var(--ease);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
/* Hover: martillo se "eleva" (más rotación, mango más vertical) */
.cursor.is-hover .cursor__hammer {
  transform: scaleX(-1) rotate(-30deg) scale(1.12);
  color: var(--gold-300);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
/* Strike: rotación máxima + glow gold */
.cursor.is-strike .cursor__hammer {
  transform: scaleX(-1) rotate(-50deg) scale(1.25);
  color: var(--gold-500);
  filter: drop-shadow(0 0 10px var(--gold-500));
}
@media (hover: none) { .cursor { display: none; } body.has-js { cursor: auto; } }

/* ---------- 6. SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 200; transition: width .1s linear;
}

/* ---------- 7. NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-4) 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--white);
}
.nav.is-scrolled {
  background: rgba(10,22,40,.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: var(--s-3) 0;
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.nav__brand { display: flex; align-items: center; gap: var(--s-3); font-family: var(--serif); font-size: 1.4rem; letter-spacing: -.01em; }
.nav__logo {
  height: 44px; width: auto;
  transition: transform .3s var(--ease);
}
.nav__logo--full { height: 52px; }
.nav__brand:hover .nav__logo { transform: scale(1.04); }
.nav__logo--footer { height: 52px; }
.nav__wordmark { font-weight: 400; }
.nav__menu ul { display: flex; gap: var(--s-7); }
.nav__menu a {
  position: relative; font-size: .92rem; padding: var(--s-2) 0;
  color: var(--ink-on-dark); transition: color .25s var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__menu a:hover { color: var(--white); }
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); }

.nav__burger { display: none; width: 38px; height: 38px; position: relative; transition: opacity .25s var(--ease); }
.nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 24px; }
/* Con el menú abierto el burger se oculta: la × del menú es el único cierre (evita la doble X) */
.nav__burger.is-open { opacity: 0; pointer-events: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; /* sobre el nav (z-index:100): lo cubre, evita choque logo/“Menú” */
  background: var(--navy-950);
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  color: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-menu.is-open { transform: translateY(0); }

/* Header del menú */
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--gutter);
  border-bottom: 1px solid var(--line);
  min-height: var(--nav-h);
  flex-shrink: 0;
}
.mobile-menu__label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .28em;
  color: var(--gold-300); font-weight: 500;
}
.mobile-menu__close {
  font-size: 2.4rem; line-height: 1; color: var(--white);
  width: 44px; height: 44px; display: grid; place-items: center;
  cursor: pointer; transition: color .25s var(--ease), transform .25s var(--ease);
}
.mobile-menu__close:hover { color: var(--gold-300); transform: rotate(90deg); }

/* Lista de items */
.mobile-menu__list {
  flex: 1;
  display: flex; flex-direction: column;
  padding: var(--s-5) 0;
}
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--gutter);
  font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 1.8rem);
  letter-spacing: -.01em; color: var(--white);
  transition: padding-left .3s var(--ease), color .25s var(--ease);
  position: relative;
}
.mobile-menu__list a:hover,
.mobile-menu__list a:active {
  padding-left: calc(var(--gutter) + var(--s-4));
  color: var(--gold-300);
}
.mm-num {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em;
  color: var(--gold-500); font-weight: 500;
  min-width: 28px;
}
.mm-text { flex: 1; }
.mm-arrow {
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  color: var(--gold-300);
}
.mobile-menu__list a:hover .mm-arrow,
.mobile-menu__list a:active .mm-arrow {
  opacity: 1; transform: translateX(0);
}

/* Footer del menú */
.mobile-menu__foot {
  padding: var(--s-5) var(--gutter) var(--s-6);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-3);
  flex-shrink: 0;
}
.mobile-menu__wa {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  background: var(--wa); color: var(--white);
  padding: var(--s-4) var(--s-4); border-radius: 12px;
  font-size: .95rem; font-weight: 500;
  text-align: center;
  box-shadow: 0 6px 20px -8px rgba(37,211,102,.5);
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.mobile-menu__wa:hover { background: var(--wa-dark); transform: translateY(-1px); }
.mobile-menu__phone {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  color: var(--white); font-size: .9rem; font-weight: 500;
  padding: var(--s-3); border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .25s var(--ease);
  letter-spacing: .02em;
}
.mobile-menu__phone:hover { border-color: var(--gold-500); }
.mobile-menu__phone svg { color: var(--gold-300); }

.mobile-menu__social {
  display: flex; gap: var(--s-3); justify-content: center;
  padding: var(--s-2) 0;
}
.mobile-menu__social a {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink-on-dark); padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: all .25s var(--ease);
}
.mobile-menu__social a:hover {
  color: var(--gold-300); border-color: var(--gold-500);
}

.mobile-menu__domain {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-on-dark-mute); text-align: center; margin-top: var(--s-2);
}

/* ---------- 8. BUTTONS ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; gap: var(--s-3);
  height: var(--bh);
  padding: 0 var(--s-5);
  font-size: .9rem; font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --bh: 40px; padding: 0 var(--s-4); font-size: .82rem; }
.btn--lg { --bh: 58px; padding: 0 var(--s-7); font-size: .95rem; }
.btn--gold {
  background: var(--gold-500); color: var(--white);
  border-color: var(--gold-500);
  box-shadow: 0 8px 24px -10px rgba(26,90,64,.55);
}
.btn--gold:hover { background: var(--gold-400); border-color: var(--gold-400); box-shadow: 0 10px 28px -8px rgba(26,90,64,.6); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-dark);
}
.btn--ghost:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.nav .btn--ghost { color: var(--white); border-color: var(--line); }
.nav .btn--ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--link {
  background: transparent; color: var(--ink);
  border: 0; height: auto; padding: var(--s-2) 0;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.hero .btn--link { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--link:hover { color: var(--gold-500); border-color: var(--gold-500); }

.btn--whatsapp {
  background: var(--wa); color: var(--white); border-color: var(--wa);
  box-shadow: 0 6px 20px -8px rgba(37,211,102,.6);
}
.btn--whatsapp:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: var(--white); box-shadow: 0 8px 24px -6px rgba(37,211,102,.7); }
.btn--whatsapp svg { fill: currentColor; }
.btn--whatsapp.btn--lg { font-weight: 500; }

/* Lift sutil en botones sólidos (no aplica a .btn--link) */
.btn--gold:hover, .btn--whatsapp:hover, .btn--ghost:hover,
.nav .btn--ghost:hover { transform: translateY(-2px); }
.btn--gold:active, .btn--whatsapp:active, .btn--ghost:active,
.nav .btn--ghost:active { transform: translateY(0); }

/* ---------- 9. HERO + VIDEO BACKGROUND ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + var(--s-9)) 0 var(--s-7);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--navy-950); }
.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: brightness(0.78) contrast(1.08) saturate(0.9);
}

.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,11,26,.45) 0%, rgba(5,11,26,.15) 40%, rgba(5,11,26,.95) 100%),
    linear-gradient(90deg, rgba(5,11,26,.4) 0%, rgba(5,11,26,.05) 50%, rgba(5,11,26,.4) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}

/* Content (panel) */
.hero__content {
  position: relative; z-index: 5;
  max-width: var(--container);
}
.hero__panel {
  max-width: 980px;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-left: 3px solid var(--gold-500);
  padding-left: var(--s-5);
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--s-4);
  animation: heroPanelIn 1s var(--ease-out) .2s backwards;
}
@keyframes heroPanelIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero__panel.is-in { animation: none; opacity: 1; transform: none; }

/* Eyebrow */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .28em;
  color: var(--gold-300);
  font-weight: 500;
  align-self: flex-start;
}
.hero__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-400);
  position: relative;
  box-shadow: 0 0 0 0 rgba(47,148,101,.7);
  animation: heroPulse 2.4s var(--ease) infinite;
}
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(47,148,101,.7); }
  70% { box-shadow: 0 0 0 10px rgba(47,148,101,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,148,101,0); }
}

/* Title */
.hero__title {
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.hero__title em {
  color: var(--gold-300);
  font-style: italic;
  font-family: var(--serif);
}

/* Divider verde botella */
.hero__divider {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  margin: 0;
}

/* Lead */
.hero__lead {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  color: var(--ink-on-dark);
  max-width: 720px;
  line-height: 1.65;
  margin: 0;
}
.hero__tagline {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-300);
  font-size: 1.15em;
  margin-bottom: var(--s-3);
  font-weight: 400;
}

/* CTA */
.hero__cta {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.hero .btn--link {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  height: 58px;
  padding: 0 var(--s-3);
  display: inline-flex; align-items: center;
}
.hero .btn--link:hover { color: var(--gold-300); border-color: var(--gold-300); }

/* Meta (small trust signals) */
.hero__meta {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: var(--s-3);
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: var(--ink-on-dark);
}
.hero__meta-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero__meta-item svg { color: var(--gold-400); }
.hero__meta-dot { color: var(--gold-500); opacity: .5; }

.reveal-line { display: block; overflow: hidden; }
.reveal-line span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.reveal-line.is-in span { transform: translateY(0); }
.hero__title em { color: var(--gold-300); font-style: italic; font-family: var(--serif); }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: var(--s-7);
  z-index: 4; color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); letter-spacing: .3em; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 60px; background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; right: 0; height: 50%;
  background: var(--gold-500); animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------- 10. REVEAL ----------
   Se activa solo con JS (.has-js): sin JS, el contenido queda visible.
   Markup/JS usan el atributo [data-reveal]; el selector debe coincidir. */
.has-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.has-js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ---------- 11. STATS / MARQUEE ---------- */
.stats { background: var(--navy-900); color: var(--white); padding: var(--s-9) 0 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 20%, rgba(47,148,101,.08), transparent 60%);
  pointer-events: none;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: var(--s-3); }

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
  font-family: var(--serif);
}
.stat__num {
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  line-height: 1; color: var(--white); font-weight: 400;
  letter-spacing: -.02em;
}
.stat__suffix {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1;
  color: var(--gold-500);
  font-weight: 400;
  align-self: flex-start;
  margin-top: .15em;
  letter-spacing: 0;
}
.stat__label {
  font-size: .82rem;
  color: var(--ink-on-dark-mute);
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.55;
  max-width: 28ch;
}

/* Spontaneous entrance: fade-up + scale cuando empieza el count-up */
.stat__value {
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.stat__value.is-counted {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.marquee {
  padding: var(--s-5) 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: var(--s-6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex; gap: var(--s-7); align-items: center;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  font-family: var(--serif); font-size: 1.4rem;
  color: var(--ink-on-dark);
}
.marquee__dot { color: var(--gold-500); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 12. ABOUT ---------- */
.about { padding: var(--s-10) 0; background: var(--off); }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-9); align-items: center; }
.about__media { position: relative; aspect-ratio: 4/5; }
.about__img { position: absolute; background-size: cover; background-position: center; }
.about__img--main { inset: 0; }
.about__img--sub {
  width: 55%; aspect-ratio: 3/4; right: -8%; bottom: -8%;
  border: 8px solid var(--off);
  box-shadow: 0 30px 80px -30px rgba(10,22,40,.3);
}
/* Video reemplazando la sub-imagen (equipo de trabajo) */
.about__video {
  object-fit: cover;
  object-position: center;
  background: var(--off);
  filter: brightness(0.95) contrast(1.05);
}
.about__badge {
  position: absolute; top: -30px; right: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); padding: var(--s-3);
  border: 1px solid var(--gold-500);
}
.about__badge-num { font-size: 2.6rem; color: var(--gold-300); line-height: 1; }
.about__badge-text { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-on-dark); margin-top: var(--s-2); font-family: var(--sans); }

.about__copy p { color: var(--ink-soft); margin: var(--s-5) 0 var(--s-6); max-width: 560px; }
.about__list { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.about__list li {
  display: grid; grid-template-columns: 60px 1fr; gap: var(--s-4); align-items: baseline;
  padding: var(--s-3) 0; border-top: 1px solid var(--line-dark);
  font-size: .98rem; color: var(--ink-soft);
}
.about__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.about__list span { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-600); }
.about__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- 13. SERVICES ---------- */
.services { padding: var(--s-10) 0; background: var(--navy-950); color: var(--white); position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 1200px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .3;
}
.services .eyebrow { color: var(--gold-300); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  position: relative;
  padding: var(--s-7) var(--s-5) var(--s-6);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease);
  overflow: hidden;
  display: flex; flex-direction: column; gap: var(--s-3);
  min-width: 0;
}
.service::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service:hover { background: rgba(255,255,255,.025); }
.service__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  margin-bottom: var(--s-3);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.service:hover .service__icon { background: var(--gold-500); color: var(--white); }
.service__num { font-family: var(--serif); font-size: .8rem; color: var(--gold-500); letter-spacing: .3em; }
.service__title { font-family: var(--serif); font-size: 1.25rem; color: var(--white); line-height: 1.2; }
.service ul { display: grid; gap: var(--s-1); margin-top: var(--s-3); }
.service li { font-size: .85rem; color: var(--ink-on-dark-mute); padding: var(--s-2) 0; border-top: 1px solid var(--line); line-height: 1.5; }
.service li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 13A. WHY AEDIFICATE (VALORES + REASONS) ---------- */
.why { padding: var(--s-10) 0; background: var(--navy-950); color: var(--white); position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 1200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .3;
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why__col {
  padding: var(--s-8) var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-5);
  border-right: 1px solid var(--line);
}
.why__col:last-child { border-right: 0; }
.why__col .display { color: var(--white); }
.why__col .eyebrow { color: var(--gold-300); }

/* Values list */
.values__list { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.values__list li {
  display: grid; grid-template-columns: 32px 1fr; gap: var(--s-4); align-items: start;
  padding: var(--s-3) 0; border-top: 1px solid var(--line);
}
.values__list li:last-child { border-bottom: 1px solid var(--line); }
.values__list strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--white); margin-bottom: 2px; }
.values__list span:not(.values__check) { font-size: .9rem; color: var(--ink-on-dark-mute); line-height: 1.5; }
.values__check {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  background: var(--gold-glow);
  border-radius: 50%;
  margin-top: 2px;
}

/* Reasons list (Por qué elegirnos) */
.reasons__list { counter-reset: reason; display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.reasons__list li {
  display: grid; grid-template-columns: 60px 1fr; gap: var(--s-4); align-items: start;
  padding: var(--s-3) 0; border-top: 1px solid var(--line);
}
.reasons__list li:last-child { border-bottom: 1px solid var(--line); }
.reasons__num { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-500); line-height: 1; }
.reasons__list strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--white); margin-bottom: 2px; font-weight: 500; }
.reasons__list span { font-size: .9rem; color: var(--ink-on-dark-mute); line-height: 1.5; }
.mvv { padding: var(--s-10) 0; background: var(--cream); position: relative; overflow: hidden; }
.mvv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.mvv__card {
  padding: var(--s-9) var(--s-7);
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: background .35s var(--ease);
}
.mvv__card--mission { border-right: 1px solid var(--line-dark); background: var(--white); }
.mvv__card--vision { background: var(--navy-900); color: var(--white); }
.mvv__card--vision .mvv__text { color: var(--ink-on-dark); }
.mvv__card--vision .mvv__title { color: var(--white); }
.mvv__card--vision .mvv__label { color: var(--gold-300); }
.mvv__card:hover { background: var(--off); }
.mvv__card--vision:hover { background: var(--navy-800); }
.mvv__label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .26em;
  color: var(--gold-600); font-weight: 500;
}
.mvv__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.mvv__text {
  color: var(--ink-soft);
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- 14. PROJECTS ---------- */
.projects { padding: var(--s-10) 0; background: var(--off); }
.projects__filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  padding: var(--s-2) var(--s-4); font-size: .82rem;
  border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--navy-900); border-color: var(--navy-900); transform: translateY(-1px); }
.chip.is-active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); box-shadow: 0 6px 16px -8px rgba(10,22,40,.5); }

.section-head__lead { color: var(--ink-soft); margin-top: var(--s-4); max-width: 580px; }

.projects__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px; gap: var(--s-4);
  margin-bottom: var(--s-9);
}
.project {
  position: relative; overflow: hidden;
  grid-column: span 2; grid-row: span 2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease-out);
}
.project:hover { box-shadow: inset 0 0 0 1px rgba(111,197,156,.35), 0 30px 70px -32px rgba(5,11,26,.7); }
.project--lg { grid-column: span 3; grid-row: span 2; }
.project--wide { grid-column: span 3; grid-row: span 2; }
.project__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease-out), filter .6s var(--ease);
  transform: scale(1.02);
  filter: saturate(.92) contrast(1.04);
}
.project:hover .project__img { transform: scale(1.09); filter: saturate(1) contrast(1.06); }
/* Grade unificado: leve viñeta superior + base verde-navy para cohesión entre fotos */
.project::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,11,26,.18) 0%, rgba(5,11,26,0) 32%, rgba(5,11,26,.5) 68%, rgba(8,32,24,.92) 100%);
  transition: opacity .4s var(--ease);
}
.project__meta {
  position: absolute; left: var(--s-5); right: var(--s-5); bottom: var(--s-5);
  z-index: 2; color: var(--white);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .45s var(--ease-out);
}
.project:hover .project__meta { transform: translateY(-4px); }
.project__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .24em; color: var(--gold-300); margin-bottom: 2px; }
.project__title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.project--lg .project__title, .project--wide .project__title { font-size: 2rem; }
.project__loc { font-size: .82rem; color: var(--ink-on-dark); margin-top: 4px; }
.project__data { font-size: .78rem; color: var(--gold-300); letter-spacing: .04em; margin-top: 2px; }
.project.is-hidden { display: none; }
.projects__empty { color: var(--ink-mute); font-size: .95rem; padding: var(--s-6) 0; text-align: center; border: 1px dashed var(--line-dark); }
.projects__empty[hidden] { display: none; }
.projects__cta { margin-top: var(--s-7); display: flex; justify-content: center; }

/* Gallery (mini carrusel por card) */
.project--gallery .project__img:not(.is-active) { opacity: 0; }
.project__gallery { position: absolute; inset: 0; }
.project__gallery .project__img {
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out);
  transform: scale(1.05);
}
.project__gallery .project__img.is-active { transform: scale(1.0); }

.project__indicator {
  position: absolute; top: var(--s-4); right: var(--s-4); z-index: 3;
  display: flex; gap: 6px;
  background: rgba(5,11,26,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
}
.project__indicator span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.project__indicator span.is-active { background: var(--gold-400); width: 16px; border-radius: 999px; }

/* ---------- 14B. PORTFOLIO COMPLETO (LISTA) ---------- */
.portfolio { margin-top: var(--s-7); border-top: 1px solid var(--line-dark); }
.portfolio__head { margin-bottom: var(--s-6); }
.portfolio__title {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--ink); margin-bottom: var(--s-3);
}
.portfolio__sub { color: var(--ink-soft); max-width: 640px; }

.portfolio__group {
  border-bottom: 1px solid var(--line-dark);
  transition: background .25s var(--ease);
}
.portfolio__group[open] { background: var(--white); }
.portfolio__group > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 60px 1fr auto 32px;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) 0;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: color .25s var(--ease);
}
.portfolio__group > summary::-webkit-details-marker { display: none; }
.portfolio__group > summary:hover { color: var(--gold-600); }
.portfolio__group > summary:hover .portfolio__chev { color: var(--gold-500); border-color: var(--gold-500); }
.portfolio__num {
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold-600); line-height: 1;
  letter-spacing: .04em;
}
.portfolio__name {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink);
  font-weight: 400;
}
.portfolio__count {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink-mute);
}
.portfolio__chev {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--ink); font-size: 1.2rem; font-weight: 300;
  transition: transform .35s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.portfolio__group[open] .portfolio__chev { transform: rotate(45deg); color: var(--gold-500); border-color: var(--gold-500); }

.portfolio__items {
  display: grid;
  padding: 0 0 var(--s-5) 60px;
}
.portfolio__item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px dashed var(--line-dark);
  transition: background .25s var(--ease);
}
.portfolio__item:first-child { border-top: 1px solid var(--line-dark); }
.portfolio__item:hover { background: rgba(47,148,101,.05); padding-inline: var(--s-3); }
.pi__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pi__main strong {
  font-family: var(--serif); font-size: 1.02rem; color: var(--ink); font-weight: 500;
  line-height: 1.3;
}
.pi__loc { font-size: .82rem; color: var(--ink-mute); }
.pi__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.pi__tags li {
  font-size: .72rem; padding: 4px 10px;
  background: var(--off);
  border: 1px solid var(--line-dark);
  color: var(--ink-soft);
  letter-spacing: .02em;
  white-space: nowrap;
}
.portfolio__group[open] .portfolio__item.is-hidden { display: none; }

/* ---------- 15. PROCESS ---------- */
.process { padding: var(--s-10) 0; background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.process::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(47,148,101,.10), transparent 60%);
  pointer-events: none;
}
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  position: relative;
}
.process__head { position: sticky; top: calc(var(--nav-h) + var(--s-5)); }
.process__head p { color: var(--ink-on-dark); margin-top: var(--s-5); max-width: 460px; }
.process__list { display: grid; gap: 0; min-width: 0; }
.process__item {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process__item:last-child { border-bottom: 1px solid var(--line); }
.process__num-wrap { padding-top: .25rem; }
.process__num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  color: var(--gold-500);
  line-height: 1;
  display: block;
  font-weight: 400;
}
.process__content { min-width: 0; }
.process__content h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: var(--white);
  margin-bottom: var(--s-3);
  font-weight: 400;
  line-height: 1.2;
}
.process__content p {
  color: var(--ink-on-dark);
  max-width: none;
  width: 100%;
}

/* ---------- 16. COVERAGE (SEDES) ---------- */
.coverage { padding: var(--s-10) 0; background: var(--cream); }
.coverage__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
}
.city {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: var(--s-5);
  background: var(--white);
  transition: background .35s var(--ease);
}
.city:hover { background: var(--navy-900); color: var(--white); }
.city:hover h3 { color: var(--white); }
.city:hover .city__num { color: var(--gold-300); }
.city:hover .city__role { color: var(--ink-on-dark-mute); }
.city:hover li { color: var(--ink-on-dark); border-color: var(--line); }
.city__head { display: flex; flex-direction: column; gap: var(--s-1); }
.city__num {
  font-family: var(--serif); font-size: .85rem; color: var(--gold-600);
  letter-spacing: .3em; text-transform: uppercase;
  transition: color .35s var(--ease);
}
.city h3 { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); transition: color .35s var(--ease); }
.city__role { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-mute); }
.city ul { display: grid; gap: var(--s-2); }
.city li { font-size: .88rem; color: var(--ink-soft); padding: var(--s-2) 0; border-top: 1px solid var(--line-dark); transition: color .35s var(--ease), border-color .35s var(--ease); }
.city li:last-child { border-bottom: 1px solid var(--line-dark); }

/* ---------- 17. TESTIMONIALS ---------- */
.testimonials { padding: var(--s-10) 0; background: var(--cream); }
.t-slider { position: relative; overflow: hidden; }
.t-track { display: flex; gap: 0; }
.t-card {
  flex: 0 0 100%;
  min-width: 0;
  background: var(--white);
  padding: var(--s-8) var(--s-7);
  border: 1px solid var(--line-dark);
  position: relative;
}
.t-card + .t-card { margin-left: var(--s-5); }
.t-card::before {
  content: "“"; position: absolute; top: var(--s-5); left: var(--s-6);
  font-family: var(--serif); font-size: 6rem; color: var(--gold-500); line-height: 1; opacity: .3;
}
.t-card blockquote {
  font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.4;
  color: var(--ink); margin: 0 0 var(--s-6); font-weight: 400;
  font-style: italic; text-wrap: balance;
}
.t-card figcaption { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); }
.t-card strong { font-family: var(--serif); font-size: 1.1rem; }
.t-card figcaption span { font-size: .85rem; color: var(--ink-mute); }
.t-nav { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-6); justify-content: center; }
.t-arrow {
  width: 44px; height: 44px; border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.t-arrow:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.t-dots { display: flex; gap: var(--s-2); }
.t-dot { width: 24px; height: 1px; background: var(--line-dark); transition: background .3s var(--ease), width .3s var(--ease); }
.t-dot.is-active { background: var(--gold-500); width: 40px; }

/* ---------- 17C. BRAND MARK (FIRMA OFICIAL) ---------- */
.brand-mark {
  padding: var(--s-10) 0;
  background: var(--navy-900);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, var(--gold-500));
  opacity: .5;
}
.brand-mark::before { top: 0; }
.brand-mark::after { bottom: 0; transform: translateX(-50%) rotate(180deg); }
.brand-mark__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-5);
  position: relative;
}
.brand-mark__logo {
  display: block;
  max-width: 540px; width: 100%; height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
  transition: transform .6s var(--ease-out);
}
.brand-mark__logo:hover { transform: scale(1.02); }
.brand-mark__tagline {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--gold-300);
  font-style: italic;
  font-weight: 400;
  max-width: 640px;
  line-height: 1.4;
}
.brand-mark__tagline em { color: var(--gold-300); font-style: italic; }
.brand-mark__divider {
  width: 80px; height: 1px;
  background: var(--gold-500);
  opacity: .6;
}
.brand-mark__since {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--ink-on-dark-mute);
}
.cta-banner { background: var(--navy-950); padding: var(--s-9) 0; color: var(--white); position: relative; overflow: hidden; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 30% 50%, rgba(47,148,101,.10), transparent 60%);
}
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); flex-wrap: wrap; position: relative; }
.cta-banner .display { max-width: 720px; }
.cta-banner__lead { color: var(--ink-on-dark-mute); margin-top: var(--s-4); max-width: 580px; }

/* ---------- 19. CONTACT ---------- */
.contact { padding: var(--s-10) 0; background: var(--off); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-9); align-items: start; }
.contact__copy p { color: var(--ink-soft); margin: var(--s-5) 0 var(--s-7); max-width: 440px; }
.contact__list { display: grid; gap: var(--s-5); }
.contact__list li { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) 0; border-top: 1px solid var(--line-dark); }
.contact__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .26em; color: var(--gold-600); }
.contact__list a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); width: max-content; }
.contact__list a:hover { border-color: var(--gold-500); }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .26em; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  padding: var(--s-3) 0; font-size: 1rem; color: var(--ink);
  transition: border-color .3s var(--ease);
  border-radius: 0;
  font-family: var(--sans);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field select { cursor: pointer; 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'><path fill='none' stroke='%231A5A40' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; }

.contact__submit { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.form-status { font-size: .85rem; color: var(--gold-600); }

/* ---------- 20. FOOTER — SIGNATURE PREMIUM ---------- */
.footer {
  background: var(--navy-950);
  color: var(--ink-on-dark);
  border-top: 1px solid var(--line);
}

/* Bloque 1: Brand statement (foco premium) */
.footer__brand-block {
  padding: var(--s-10) 0 var(--s-9);
  background:
    radial-gradient(800px 400px at 50% 50%, rgba(47,148,101,.05) 0%, transparent 70%);
  text-align: center;
}
.footer__brand-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-4);
}
.footer__brand-logo {
  display: block;
  margin-bottom: var(--s-2);
  transition: opacity .3s var(--ease);
}
.footer__brand-logo img {
  height: 64px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: transform .4s var(--ease);
}
.footer__brand-logo:hover img { transform: scale(1.03); }

.footer__claim {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--white);
  line-height: 1.35;
  max-width: 640px;
  font-weight: 400;
}
.footer__claim em {
  color: var(--gold-300);
  font-style: italic;
}

.footer__sub {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--ink-on-dark-mute);
  font-weight: 400;
}

.footer__divider {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, transparent, var(--gold-500), transparent);
  margin: var(--s-2) 0;
  opacity: .7;
}

.footer__cities {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--gold-300);
  font-weight: 500;
}

/* Bloque 2: Info (3 columnas) */
.footer__info-block {
  padding: var(--s-8) 0;
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer__info-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.2fr;
  gap: var(--s-9);
  align-items: start;
}
.footer__col h5 {
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--gold-300);
  margin-bottom: var(--s-5);
  font-weight: 500;
  position: relative;
  padding-bottom: var(--s-3);
}
.footer__col h5::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 30px; height: 1px;
  background: var(--gold-500);
}
.footer__col ul { display: grid; gap: var(--s-3); }
.footer__col li { font-size: .92rem; color: var(--ink-on-dark-mute); line-height: 1.5; }
.footer__col a { color: var(--ink-on-dark-mute); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--gold-300); }

/* Sedes */
.footer__sedes { display: grid; gap: var(--s-4); }
.footer__sedes li { display: flex; flex-direction: column; gap: 4px; }
.footer__city {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 500;
}
.footer__city em {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--gold-500);
  font-style: normal;
  text-transform: uppercase;
  border: 1px solid var(--gold-500);
  padding: 2px 6px;
  line-height: 1;
}
.footer__addr {
  font-size: .85rem;
  color: var(--ink-on-dark-mute);
  line-height: 1.55;
}

/* Contacto */
.footer__col--contact .footer__cta {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  background: var(--wa); color: var(--white);
  padding: var(--s-4); border-radius: 12px;
  font-size: .95rem; font-weight: 500;
  margin-bottom: var(--s-5);
  box-shadow: 0 6px 20px -8px rgba(37,211,102,.5);
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.footer__col--contact .footer__cta:hover { background: var(--wa-dark); transform: translateY(-1px); }
.footer__col--contact .footer__cta svg { flex-shrink: 0; }

.footer__contact-list { display: grid; gap: var(--s-3); }
.footer__contact-list li {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: .9rem;
}
.footer__contact-list svg {
  color: var(--gold-300);
  flex-shrink: 0;
  width: 16px; height: 16px;
}
.footer__contact-list a {
  color: var(--ink-on-dark);
  font-size: .88rem;
  transition: color .25s var(--ease);
  word-break: break-word;
}
.footer__contact-list a:hover { color: var(--gold-300); }

/* Bloque 3: Legal + Social */
.footer__legal-block {
  padding: var(--s-5) 0;
  background: var(--navy-950);
}
.footer__legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: .78rem;
  color: var(--ink-on-dark-mute);
  letter-spacing: .02em;
}
.footer__copy a, .footer__copy span { color: inherit; }

.footer__social {
  display: flex;
  gap: var(--s-2);
}
.footer__social a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-on-dark);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: all .25s var(--ease);
}
.footer__social a:hover {
  color: var(--gold-300);
  border-color: var(--gold-500);
  background: var(--gold-glow);
}
.footer__social svg { color: var(--gold-300); flex-shrink: 0; }

/* ---------- 21. FLOATING WHATSAPP ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 32px -8px rgba(37,211,102,.55), 0 4px 12px -2px rgba(0,0,0,.15);
  transition: transform .35s var(--ease), background .3s var(--ease);
  animation: waFloatIn .8s var(--ease-out) 1.2s backwards;
}
.wa-float:hover { background: var(--wa-dark); transform: scale(1.08); }
.wa-float svg { fill: currentColor; }
.wa-float__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waPulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
.wa-float__tooltip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--navy-900); color: var(--white);
  padding: 8px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  border: 1px solid var(--line);
}
.wa-float:hover .wa-float__tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes waFloatIn { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- 22. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .nav__actions .btn--ghost { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-7); }
  .about__grid, .process__grid, .contact__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .services__grid, .coverage__grid { grid-template-columns: repeat(2, 1fr); }
  .coverage__grid { border-left: 0; }
  .service, .city { border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child, .city:last-child { border-bottom: 1px solid var(--line-dark); }
  .mvv__grid { grid-template-columns: 1fr; }
  .mvv__card--mission { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .projects__grid { grid-template-columns: repeat(4, 1fr); }
  .project, .project--lg, .project--wide { grid-column: span 2; }
  .project__indicator { top: var(--s-3); right: var(--s-3); padding: 4px 7px; }
  .project__indicator span { width: 5px; height: 5px; }
  .project__indicator span.is-active { width: 14px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .about__media { max-width: 520px; margin: 0 auto; width: 100%; }
  .about__img--sub { right: -4%; bottom: -4%; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .hero { padding-block: calc(var(--nav-h) + var(--s-6)) var(--s-6); min-height: 100svh; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__lead { font-size: .92rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn--whatsapp, .hero__cta .btn--link { width: 100%; justify-content: space-between; }
  .hero__panel { padding: 0; padding-left: var(--s-3); border-left-width: 2px; }
  .hero__divider { width: 60px; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .hero__meta-dot { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .services__grid, .coverage__grid { grid-template-columns: 1fr; }
  .mvv__card { padding: var(--s-7) var(--s-5); }
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project, .project--lg, .project--wide { grid-column: span 1; grid-row: span 1; }
  .process__item { grid-template-columns: 60px 1fr; gap: var(--s-4); }
  .process__num { font-size: 2.2rem; }
  .process__head { position: static; }
  .why__grid { grid-template-columns: 1fr; }
  .why__col { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s-6) var(--s-4); }
  .why__col:last-child { border-bottom: 0; }
  .portfolio__group > summary { grid-template-columns: 40px 1fr auto 28px; gap: var(--s-3); padding: var(--s-4) 0; }
  .portfolio__num { font-size: 1.2rem; }
  .portfolio__items { padding-left: 0; }
  .portfolio__item { grid-template-columns: 1fr; gap: var(--s-3); }
  .pi__tags { gap: 6px; }
  .pi__tags li { font-size: .68rem; padding: 3px 8px; }
  .contact__form { grid-template-columns: 1fr; }
  .footer__info-inner { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__col { text-align: center; }
  .footer__col h5 { text-align: center; }
  .footer__col h5::after { left: 50%; transform: translateX(-50%); }
  .footer__sedes { gap: var(--s-3); }
  .footer__sedes li { align-items: center; }
  .footer__contact-list li { justify-content: center; }
  .footer__legal-inner { flex-direction: column; text-align: center; gap: var(--s-3); }
  .about__badge { width: 100px; height: 100px; top: -20px; right: -10px; }
  .about__badge-num { font-size: 2rem; }
  .about__badge-text { font-size: .6rem; }
  .t-card { padding: var(--s-6) var(--s-5); }
  .nav__logo--full { height: 40px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float__tooltip { display: none; }
  .footer__addr { font-size: .82rem; }
}
@media (max-width: 480px) {
  .hero { min-height: 100svh; }
  .hero__eyebrow { font-size: .62rem; }
  .hero__panel { gap: var(--s-3); }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero__meta-item { font-size: .72rem; }
  .marquee__track { font-size: 1.1rem; }
  .stat__num { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .footer__brand-block { padding: var(--s-8) 0 var(--s-7); }
  .footer__brand-logo img { height: 52px; }
  .footer__claim { font-size: 1.15rem; }
  .footer__divider { height: 36px; }
  .footer__info-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .footer__col--contact { grid-column: auto; }
  .footer__col h5 { font-size: .68rem; }
  .footer__col li, .footer__col a { font-size: .85rem; }
  .footer__city { font-size: 1rem; }
  .footer__legal-block { padding: var(--s-4) 0; }
  .footer__social a { padding: 6px 10px; font-size: .7rem; }
}
