/* ========================================================================
   NAP Ingenieros S.A. — Stylesheet
   ======================================================================== */

/* ---------- Tokens --------------------------------------------------- */
:root {
  --ink:        #081D2D;
  --ink-90:     rgba(8, 29, 45, 0.92);
  --ink-70:     rgba(8, 29, 45, 0.72);
  --ink-50:     rgba(8, 29, 45, 0.52);
  --paper:      #F4EFE6;
  --paper-soft: #EDE6D8;
  --steel:      #2B3D52;
  --brand-blue: #1B4FA0;
  --brand-gold: #C9983C;
  --rule:       rgba(8, 29, 45, 0.12);
  --rule-light: rgba(244, 239, 230, 0.18);
  --shadow-lg:  0 30px 60px -20px rgba(8, 29, 45, 0.35);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  --container: min(1280px, 92vw);
  --radius-sm: 4px;
  --radius-md: 8px;

  --nav-h: 76px;
}

/* ---------- Reset ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }

::selection { background: var(--brand-gold); color: var(--ink); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px; top: 16px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout primitives --------------------------------------- */
.container { width: var(--container); margin-inline: auto; }

.section {
  padding: clamp(96px, 12vw, 180px) 0;
  position: relative;
}

/* Subtle paper-grain on cream sections */
.section--paper {
  background: var(--paper);
  color: var(--ink);
}
.section--paper::before,
.section--soft::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--steel {
  background: var(--steel);
  color: var(--paper);
}

.section__head { max-width: 880px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  max-width: none;
}

/* Grid */
.grid { display: grid; gap: clamp(40px, 6vw, 96px); }
.grid--two { grid-template-columns: 1fr 1fr; }
.grid--two--asym { grid-template-columns: 1.25fr 1fr; }
.grid--two--contact { grid-template-columns: 1fr 1.1fr; }

@media (max-width: 900px) {
  .grid--two,
  .grid--two--asym,
  .grid--two--contact { grid-template-columns: 1fr; }
  .section__head--row { grid-template-columns: 1fr; }
}

/* ---------- Typography ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow--light { color: rgba(244, 239, 230, 0.72); }
.eyebrow__num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--brand-gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
  margin-bottom: 28px;
  text-wrap: balance;
}
.display--light { color: var(--paper); }

.lede {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-90);
  margin-bottom: 20px;
  max-width: 56ch;
}
.lede--light { color: rgba(244, 239, 230, 0.86); }
.lede--right { text-align: left; align-self: end; max-width: 48ch; }

.body {
  color: var(--ink-70);
  max-width: 56ch;
}

/* ---------- Nav ----------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav__inner {
  width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--paper);
  transition: color 0.4s var(--ease);
}
.nav__mark { width: 56px; height: 22px; }
.nav__mark-letters {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  fill: currentColor;
}
.nav__brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: currentColor;
  opacity: 0.78;
  white-space: nowrap;
}

.nav__menu { display: block; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}
.nav__list a {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--brand-gold);
  color: var(--ink) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: #D9B15C; transform: translateY(-1px); }

/* Scrolled state */
.nav.is-scrolled {
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav.is-scrolled .nav__list a { color: var(--ink); }
.nav.is-scrolled .nav__cta { color: var(--ink) !important; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
  align-items: center;
  color: var(--paper);
}
.nav.is-scrolled .nav__toggle { color: var(--ink); }
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}
.nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    pointer-events: none;
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 40px var(--container-pad, 4vw);
    width: var(--container);
    margin-inline: auto;
  }
  .nav__list a {
    color: var(--ink) !important;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 12px 0;
  }
  .nav__cta {
    background: var(--brand-gold);
    color: var(--ink) !important;
    margin-top: 16px;
    padding: 12px 26px !important;
  }
  .nav.is-open .nav__menu {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav.is-open { background: var(--paper); }
  .nav.is-open .nav__brand { color: var(--ink); }
  .nav.is-open .nav__toggle { color: var(--ink); }
}

/* ---------- Hero ---------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.hero__video.is-ready { opacity: 1; }

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,27,44,0.35) 0%, transparent 18%, transparent 70%, rgba(14,27,44,0.55) 100%);
  pointer-events: none;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.3s var(--ease);
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, currentColor, transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: -56px 0 auto 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, currentColor);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(0); }
  60%  { transform: translateY(112px); }
  100% { transform: translateY(112px); }
}

/* ---------- Quiénes Somos: stats ------------------------------------ */
.stats {
  border-top: 1px solid var(--rule);
}
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(8, 29, 45, 0.82);
  text-align: right;
  max-width: 18ch;
}

/* ---------- CTA & buttons ------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.cta:hover { gap: 22px; }
.cta--light { color: var(--paper); }
.cta__arrow { font-family: var(--font-body); font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 28px;
  background: var(--brand-gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), gap 0.3s var(--ease);
  cursor: pointer;
}
.btn:hover {
  background: #D9B15C;
  transform: translateY(-2px);
  gap: 22px;
}
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* ---------- Services list ------------------------------------------- */
.services {
  border-top: 1px solid var(--rule-light);
}
.services--paper { border-top-color: var(--rule); }

.services__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-light);
  transition: padding-left 0.4s var(--ease);
}
.services--paper .services__item { border-bottom-color: var(--rule); }

.services__item:hover { padding-left: 8px; }

.services__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-gold);
  letter-spacing: 0;
}
.services__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- Capacidad strip ----------------------------------------- */
.capacidad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.capacidad__item { display: flex; flex-direction: column; gap: 10px; }
.capacidad__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.capacidad__label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  max-width: 22ch;
}
@media (max-width: 720px) { .capacidad { grid-template-columns: 1fr; } }

/* ---------- Cards (NAP Servicios) ----------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 40px 32px 36px;
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover {
  background: rgba(244, 239, 230, 0.07);
  border-color: rgba(244, 239, 230, 0.32);
  transform: translateY(-4px);
}
.card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-gold);
  margin-bottom: 24px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--paper);
}
.card__body {
  font-size: 15px;
  color: rgba(244, 239, 230, 0.72);
  line-height: 1.6;
}

/* ---------- Projects grid ------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
@media (max-width: 980px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

.project {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, var(--steel), var(--ink));
  transition: transform 0.7s var(--ease);
}
.project::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(201, 152, 60, 0.22), transparent 60%),
    radial-gradient(100% 100% at 80% 90%, rgba(27, 79, 160, 0.45), transparent 65%);
  mix-blend-mode: screen;
}

/* Per-card flavor */
.project--a::before { background: linear-gradient(160deg, #2E4862, #081D2D); }
.project--b::before { background: linear-gradient(160deg, #1B4FA0, #081D2D); }
.project--c::before { background: linear-gradient(160deg, #2B3D52, #1B2D44); }
.project--d::before { background: linear-gradient(160deg, #3F5871, #1A2738); }
.project--e::before { background: linear-gradient(160deg, #1B4FA0, #2B3D52); }
.project--f::before { background: linear-gradient(160deg, #081D2D, #1B4FA0); }

.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project:hover::before { transform: scale(1.05); }

.project__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.78);
}
.project__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 14ch;
}
/* Nombre de la obra en pequeño, bajo el cliente */
.project__name {
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.92);
}
.project__cta {
  position: absolute;
  bottom: 28px; right: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project:hover .project__cta { opacity: 1; transform: translateY(0); }

.projects__footer { display: flex; justify-content: center; }

/* ---------- Form ---------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 44px);
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 22px 16px 12px;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  border: 0;
  border-bottom: 1px solid var(--rule-light);
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; padding-top: 22px; }
.field select {
  padding: 16px 16px 12px 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23F4EFE6' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 7px;
  cursor: pointer;
}
.field select option { background: var(--ink); color: var(--paper); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brand-gold);
}

.field label {
  position: absolute;
  left: 16px;
  top: 22px;
  font-size: 14px;
  color: rgba(244, 239, 230, 0.6);
  pointer-events: none;
  transition: transform 0.3s var(--ease), font-size 0.3s var(--ease), color 0.3s var(--ease);
  transform-origin: left top;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-14px) scale(0.78);
  color: var(--brand-gold);
}

.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }

@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- Contact list -------------------------------------------- */
.contact-list {
  margin-top: 48px;
  border-top: 1px solid var(--rule-light);
}
.contact-list li {
  display: grid;
  grid-template-columns: 20px 104px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
}
.contact-list__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.6);
}
.contact-list__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
a.contact-list__value { transition: color 0.3s var(--ease); }
a.contact-list__value:hover { color: var(--brand-gold); }

/* ---------- Footer -------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 9vw, 120px) 0 32px;
  border-top: 1px solid var(--rule-light);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule-light);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--paper);
  margin-bottom: 18px;
}
.footer__mark { width: 56px; height: 22px; }
.footer__mark-letters {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  fill: currentColor;
  letter-spacing: 0.02em;
}
.footer__brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  opacity: 0.78;
  white-space: nowrap;
}
.footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: rgba(244, 239, 230, 0.7);
  max-width: 22ch;
}

.footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 18px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a,
.footer__list--plain li {
  font-size: 14px;
  color: rgba(244, 239, 230, 0.86);
  transition: color 0.3s var(--ease);
}
.footer__list a:hover { color: var(--brand-gold); }

.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.56);
}
.footer__credit {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0;
}
@media (max-width: 540px) {
  .footer__base { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ---------- Reveal animations --------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Focus visible ------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Subpage hero variant ------------------------------------ */
.hero--page {
  height: 78svh;
  min-height: 540px;
}
.hero--page .hero__veil {
  background:
    linear-gradient(90deg,
      rgba(8, 29, 45, 0.5) 0%,
      rgba(8, 29, 45, 0.16) 45%,
      transparent 70%),
    linear-gradient(180deg,
      rgba(8, 29, 45, 0.45) 0%,
      rgba(8, 29, 45, 0.08) 30%,
      rgba(8, 29, 45, 0.22) 55%,
      rgba(8, 29, 45, 0.88) 100%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(64px, 9vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.hero__overlay > .container { pointer-events: auto; }
.hero__overlay .eyebrow {
  color: rgba(244, 239, 230, 0.78);
  margin-bottom: 24px;
}
.hero__overlay .eyebrow__num { color: var(--brand-gold); }
.hero__overlay .display {
  color: var(--paper);
  margin-bottom: 0;
  max-width: 22ch;
  font-size: clamp(40px, 6vw, 80px);
}

/* Active nav state */
.nav__list a.is-active { color: var(--brand-gold); }
.nav__list a.is-active::after {
  transform: scaleX(1);
  background: var(--brand-gold);
}
.nav.is-scrolled .nav__list a.is-active { color: var(--brand-blue); }
.nav.is-scrolled .nav__list a.is-active::after { background: var(--brand-blue); }
@media (max-width: 980px) {
  .nav__list a.is-active { color: var(--brand-gold) !important; }
}

/* ---------- Subpage shared blocks ----------------------------------- */
/* Process / methodology steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 32px 24px;
  border-top: 1px solid var(--rule);
}
.section--ink .step,
.section--steel .step { border-top-color: var(--rule-light); }
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-gold);
  margin-bottom: 18px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: inherit;
}
.step__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-70);
}
.section--ink .step__body,
.section--steel .step__body { color: rgba(244, 239, 230, 0.74); }

/* People / leadership cards */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .people { grid-template-columns: 1fr; } }

.person {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.person__avatar {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--steel), var(--ink));
  position: relative;
  overflow: hidden;
}
.person__avatar::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 35%, rgba(201, 152, 60, 0.22), transparent 70%),
    radial-gradient(80% 80% at 80% 80%, rgba(27, 79, 160, 0.45), transparent 65%);
  mix-blend-mode: screen;
}
.person__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 22px);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.person__name::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--brand-gold);
  margin-top: 10px;
}
.person__role {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D9B15C;
}

/* Values list */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 64px;
}
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-gold);
  margin-bottom: 14px;
}
.value__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.value__body {
  color: var(--ink-70);
  max-width: 44ch;
}

/* Sectores chips */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sectors { grid-template-columns: 1fr; } }

.sector {
  padding: 28px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: rgba(8, 29, 45, 0.02);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.sector:hover { background: rgba(8, 29, 45, 0.04); border-color: rgba(8, 29, 45, 0.24); }
.sector__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.sector__body {
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.55;
}

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq__item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__icon {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  color: var(--brand-gold);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer {
  margin-top: 16px;
  color: var(--ink-70);
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.65;
}

/* Filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}
.filter {
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink-50); }
.filter.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Expanded projects grid (4 cols on wide screens) */
.projects--wide {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) { .projects--wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .projects--wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .projects--wide { grid-template-columns: 1fr; } }

.project.is-hidden { display: none; }

/* CTA banner section */
.cta-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-banner .display { max-width: 22ch; }
.cta-banner .lede { max-width: 52ch; text-align: center; }

/* ========================================================================
   WhatsApp flotante
   ======================================================================== */
.whatsapp {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(8, 29, 45, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: #fff;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(8, 29, 45, 0.36);
}

@media (max-width: 640px) {
  .whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
  }
}

/* ========================================================================
   Estado del formulario
   ======================================================================== */
.form__status {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 1.4em;
}

.form__status--ok { color: #7fd6a4; }

.form__status--error { color: #f0a3a3; }

.form__status--error a {
  color: inherit;
  text-decoration: underline;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ========================================================================
   Divisiones (inicio, bajo el hero)
   ======================================================================== */
.divisions {
  background: var(--ink);
  padding: clamp(20px, 3vw, 40px) 0 clamp(56px, 7vw, 96px);
}

.divisions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.division {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 4px;
  text-decoration: none;
  color: var(--paper);
  background: rgba(244, 239, 230, 0.03);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.division:hover,
.division:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
  background: rgba(244, 239, 230, 0.06);
}

.division__num {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--brand-gold);
  font-size: 15px;
}

.division__title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  margin: 0;
}

.division__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.72);
}

.division__cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.division:hover .division__cta span,
.division:focus-visible .division__cta span {
  display: inline-block;
  transform: translateX(4px);
  transition: transform 0.3s var(--ease);
}

@media (max-width: 860px) {
  .divisions__grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   Hero en móvil: video completo sin recorte (solo portada)
   ======================================================================== */
@media (max-width: 760px) {
  .hero:not(.hero--page) {
    height: auto;
    min-height: 0;
    padding-top: var(--nav-h);
    background: var(--ink);
  }
  .hero:not(.hero--page) .hero__video {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  .hero:not(.hero--page) .hero__veil,
  .hero:not(.hero--page) .hero__scroll {
    display: none;
  }
}

/* ========================================================================
   Mapa de ubicación
   ======================================================================== */
.map {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 480px);
  border: 0;
}

/* Iniciales en avatar de liderazgo */
.person__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: 0.04em;
  color: rgba(201, 152, 60, 0.85);
  z-index: 1;
}

/* ========================================================================
   Menú desplegable "Divisiones"
   ======================================================================== */
.nav__dd { position: relative; }

.nav__dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav.is-scrolled .nav__dd-btn { color: var(--ink); }

.nav__dd-caret {
  font-size: 9px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.nav__dd:hover .nav__dd-caret,
.nav__dd:focus-within .nav__dd-caret { transform: rotate(180deg); }

.nav__dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 236px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

/* Puente invisible para que el hover no se corte entre botón y panel */
.nav__dd-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav__dd:hover .nav__dd-menu,
.nav__dd:focus-within .nav__dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__dd-menu li { display: block; }

.nav__dd-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s var(--ease);
}

.nav__dd-menu a::after { display: none; }

.nav__dd-menu a:hover { background: rgba(8, 29, 45, 0.07); }

/* En el menú móvil: lista fija indentada, sin botón */
@media (max-width: 980px) {
  .nav__dd { position: static; }
  .nav__dd-btn { display: none; }
  .nav__dd-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--brand-gold);
    margin: 6px 0;
  }
  .nav__dd-menu::before { display: none; }
  .nav__dd-menu a {
    font-family: var(--font-display);
    font-size: 22px !important;
    font-weight: 500;
    padding: 8px 0 !important;
    border-radius: 0;
  }
  .nav__dd-menu a:hover { background: transparent; }
}

/* ========================================================================
   Ubicación en tarjetas de proyecto
   ======================================================================== */
.project__loc {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 8px;
}

/* ========================================================================
   Hero: pregunta + CTA
   ======================================================================== */
.hero__hook {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding-bottom: clamp(110px, 16vh, 150px);
  pointer-events: none;
}

.hero__hook-inner {
  width: var(--container);
  margin-inline: auto;
  pointer-events: auto;
}

.hero__hook-q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 64px);
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 22px;
  text-shadow: 0 2px 28px rgba(8, 29, 45, 0.5);
}

@media (max-width: 760px) {
  .hero__hook {
    position: static;
    padding: 26px 0 36px;
  }
  .hero__hook-q {
    font-size: 30px;
    text-shadow: none;
  }
}

/* ========================================================================
   Compromisos (Quiénes Somos)
   ======================================================================== */
.commitments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.commitment {
  border: 1px solid var(--rule-light);
  border-radius: 8px;
  padding: clamp(22px, 2.4vw, 32px);
  background: rgba(244, 239, 230, 0.04);
}

.commitment__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--brand-gold);
  margin-bottom: 14px;
}

.commitment__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 1.7vw, 21px);
  color: var(--paper);
  margin-bottom: 10px;
}

.commitment__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.75);
}

@media (max-width: 1024px) {
  .commitments { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .commitments { grid-template-columns: 1fr; }
}

/* ========================================================================
   Aliados y talento (Contacto)
   ======================================================================== */
.allies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}

.ally {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--rule-light);
  border-radius: 8px;
  padding: clamp(26px, 3vw, 40px);
  background: rgba(244, 239, 230, 0.04);
}

.ally__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--paper);
}

.ally__body {
  color: rgba(244, 239, 230, 0.78);
  max-width: 46ch;
}

.ally .cta { margin-top: 10px; }

@media (max-width: 860px) {
  .allies { grid-template-columns: 1fr; }
}

/* ========================================================================
   Logo de marca (monograma N)
   ======================================================================== */
.brand-logo { flex-shrink: 0; }
.brand-logo .lg-a { fill: currentColor; }
.brand-logo .lg-b { fill: #6B7177; }
.brand-logo .lg-c { fill: var(--brand-gold); }

.nav__logo { width: 31px; height: 38px; }

.nav__brand { align-items: center; gap: 12px; }

.nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.nav__brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.16em;
}

.footer__logo { width: 35px; height: 43px; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.footer__brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.16em;
}


/* ========================================================================
   Movimiento premium
   ======================================================================== */

/* Apariciones escalonadas dentro de bloques data-reveal */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* Tarjetas de divisiones: entrada en secuencia */
.division:nth-child(2) { transition-delay: 0.12s; }
.division:nth-child(3) { transition-delay: 0.24s; }
.division:nth-child(4) { transition-delay: 0.36s; }

/* Entrada del hero */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__hook-inner { animation: heroRise 0.9s var(--ease) 0.35s both; }
.hero__scroll     { animation: heroRise 0.9s var(--ease) 0.75s both; }

.divisions { position: relative; }

.section--ink > .container,
.section--steel > .container,
.divisions > .container {
  position: relative;
  z-index: 1;
}

/* Refinamiento hover de proyectos */
.project__title { transition: color 0.35s var(--ease); }
.project:hover .project__title { color: #D9B15C; }

/* Fundido entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .stagger > * { opacity: 1; transform: none; transition: none; }
  @view-transition { navigation: none; }
}

/* ========================================================================
   Franja de confianza (inicio)
   ======================================================================== */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  padding-top: clamp(18px, 2.6vw, 30px);
  margin-bottom: clamp(30px, 4vw, 52px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(244, 239, 230, 0.68);
}

.trust__dot { color: var(--brand-gold); }

/* ========================================================================
   Hero interno: indicador de scroll + entrada
   ======================================================================== */
.hero__scroll--page {
  bottom: 24px;
  animation: heroRise 0.9s var(--ease) 0.6s both;
}

.hero--page .hero__overlay .container {
  animation: heroRise 0.9s var(--ease) 0.25s both;
}

@media (max-width: 760px) {
  .hero__scroll--page { display: none; }
}

/* Variante crema-suave para separar secciones claras contiguas */
.section--soft {
  background: var(--paper-soft);
  color: var(--ink);
}

/* Legibilidad del gancho del hero sobre frames claros del video */
.hero__hook::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 360px;
  background: linear-gradient(to top, rgba(8, 29, 45, 0.6), rgba(8, 29, 45, 0.28) 55%, transparent);
  pointer-events: none;
}

.hero__hook-inner { position: relative; }

@media (max-width: 760px) {
  .hero__hook::before { display: none; }
}

/* Fotos del equipo dentro del avatar (tono cálido unificado) */
.person__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) sepia(0.18) contrast(1.06) brightness(1.02);
}

/* Iconos de la lista de contacto */
.contact-list__icon {
  display: inline-flex;
  align-self: center;
  color: var(--brand-gold);
}

.contact-list__icon svg {
  width: 17px;
  height: 17px;
}

/* Marca de agua: la N en secciones de cierre */
.watermark { overflow: hidden; }

.watermark::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: min(430px, 58vw);
  height: min(520px, 70vw);
  background: var(--paper);
  -webkit-mask: url("marca-n.png") no-repeat center / contain;
  mask: url("marca-n.png") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}

/* Fix: el backdrop-filter de la barra rompe el posicionamiento fijo del
   panel móvil (se vuelve su containing block). Al abrir el menú se apaga. */
.nav.is-open,
.nav.is-closing {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Lockup fiel al logo: INGENIEROS se justifica al ancho exacto de NAP
   (letras distribuidas), en cualquier fuente y tamaño. */
.nav__brand-name,
.footer__brand-name {
  margin-right: -0.16em; /* anula el tracking sobrante tras la P */
}

.nav__brand-sub,
.footer__brand-sub {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0;
  white-space: normal;
}

.nav__brand-sub b,
.footer__brand-sub b {
  font-weight: 600;
  font-style: normal;
}

.nav__brand-name { font-size: 20px; }
.nav__brand-sub { font-size: 7.5px; }
.footer__brand-name { font-size: 22px; }
.footer__brand-sub { font-size: 8px; }

/* Rótulo protagonista en las páginas de división */
.eyebrow--division {
  font-size: 15px;
  letter-spacing: 0.24em;
  gap: 14px;
  padding-bottom: 16px;
  position: relative;
  color: rgba(244, 239, 230, 0.82);
}

.eyebrow--division strong {
  color: var(--brand-gold);
  font-weight: 700;
}

.eyebrow--division::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 2px;
  background: var(--brand-gold);
}

/* Redes sociales en el pie de página */
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule-light);
  border-radius: 50%;
  color: rgba(244, 239, 230, 0.72);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer__social a:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ========================================================================
   Clientes: franja marquee (inicio)
   ======================================================================== */
.clients {
  background: var(--ink);
  padding: 17px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201, 152, 60, 0.65);
  border-bottom: 1px solid rgba(201, 152, 60, 0.65);
}

.clients__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding-left: clamp(20px, 4vw, 48px);
}

.clients__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}

.clients__marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.clients__track {
  display: flex;
  width: max-content;
  animation: clientsScroll 55s linear infinite;
}

.clients__seq {
  display: flex;
  align-items: center;
}

.clients__seq li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: rgba(244, 239, 230, 0.65);
  white-space: nowrap;
  margin-right: 48px;
}

.clients__seq li::after {
  content: "•";
  color: var(--brand-gold);
  font-size: 0.5em;
  vertical-align: middle;
  margin-left: 48px;
}

@keyframes clientsScroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
}

@media (max-width: 700px) {
  .clients__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ========================================================================
   Clientes: sección completa (Quiénes Somos)
   ======================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.clients-group__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--brand-gold);
}

.clients-group__list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-70);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* Móvil: datos de contacto apilados (evita cortes del correo/dirección) */
.contact-list__value { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .contact-list li {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    row-gap: 3px;
    align-items: start;
  }

  .contact-list__icon {
    grid-row: 1 / span 2;
    margin-top: 3px;
  }

  .contact-list__label { grid-column: 2; }

  .contact-list__value {
    grid-column: 2;
    font-size: 17px;
  }
}

/* ========================================================================
   Detalles de marca: N de sección, fichas de obra, selección dorada
   y marca de agua N en secciones claras
   ======================================================================== */

/* Monograma N al inicio de cada eyebrow de sección (a color en claro) */
.eyebrow::before {
  content: "";
  width: 15px;
  height: 14px;
  flex-shrink: 0;
  background: url("marca-n.png") no-repeat center / contain;
}

/* Versión dorada del monograma para eyebrows sobre fondo oscuro */
.eyebrow--light::before {
  background: var(--brand-gold);
  -webkit-mask: url("marca-n.png") no-repeat center / contain;
  mask: url("marca-n.png") no-repeat center / contain;
}

/* Marca de agua N para secciones claras (versión tinta) */
.watermark--ink::after {
  background: var(--ink);
  opacity: 0.04;
}
.watermark--ink > .container {
  position: relative;
  z-index: 1;
}

/* Teléfono en el nav (visible en escritorio ancho y en menú móvil) */
.nav__tel a {
  font-variant-numeric: tabular-nums;
  opacity: 0.88;
  white-space: nowrap;
}
@media (min-width: 981px) and (max-width: 1120px) {
  .nav__tel { display: none; }
}

/* Selector de idioma en el nav */
.nav__lang a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.8;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px !important;
}
.nav__lang a::after { display: none; }
.nav__lang a:hover { opacity: 1; }

/* ========================================================================
   Tarjetas de proyecto con fotografía real
   ======================================================================== */
.project--photo .project__img {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project--photo::before {
  background: linear-gradient(180deg, rgba(8, 29, 45, 0.38) 0%, rgba(8, 29, 45, 0.05) 38%, rgba(8, 29, 45, 0.16) 60%, rgba(8, 29, 45, 0.88) 100%);
  z-index: -1;
}
.project--photo::after { content: none; }
.project--photo:hover .project__img { transform: scale(1.05); }
.project--photo:hover::before { transform: none; }
.project--photo .project__title { text-shadow: 0 2px 18px rgba(8, 29, 45, 0.55); }
.project--photo .project__name { text-shadow: 0 1px 10px rgba(8, 29, 45, 0.75); }
.project--photo .project__meta { text-shadow: 0 1px 10px rgba(8, 29, 45, 0.65); }
.project__badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(8, 29, 45, 0.55);
  border: 1px solid rgba(244, 239, 230, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}

/* ========================================================================
   Lightbox de proyectos
   ======================================================================== */
.lb {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 16, 26, 0.92);
  backdrop-filter: blur(6px);
}
.lb.is-open { display: flex; }
.lb__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 0;
  width: min(1120px, 100%);
  max-height: min(86vh, 800px);
  background: var(--ink, #081D2D);
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lb__stage {
  position: relative;
  background: #04101A;
  min-height: 320px;
}
.lb__img {
  width: 100%; height: 100%;
  max-height: min(86vh, 800px);
  object-fit: contain;
  display: block;
}
.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(244, 239, 230, 0.3);
  border-radius: 50%;
  background: rgba(8, 29, 45, 0.65);
  color: var(--paper, #F4EFE6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb__nav:hover { background: rgba(27, 79, 160, 0.8); }
.lb__prev { left: 14px; }
.lb__next { right: 14px; }
.lb__count {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 230, 0.85);
  background: rgba(8, 29, 45, 0.65);
  border-radius: 999px;
  padding: 4px 12px;
}
.lb__info {
  padding: 28px 26px;
  overflow-y: auto;
  color: var(--paper, #F4EFE6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lb__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold, #C9983C);
}
.lb__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.12;
  margin: 0;
}
.lb__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.78);
}
.lb__data {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}
.lb__row { display: flex; flex-direction: column; gap: 2px; }
.lb__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}
.lb__value { font-size: 14px; font-weight: 500; }
.lb__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(244, 239, 230, 0.3);
  border-radius: 50%;
  background: rgba(8, 29, 45, 0.65);
  color: var(--paper, #F4EFE6);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.lb__close:hover { background: rgba(27, 79, 160, 0.8); }
@media (max-width: 860px) {
  .lb { padding: 12px; }
  .lb__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: 92vh;
  }
  .lb__img { max-height: 52vh; }
  .lb__info { padding: 20px 18px; max-height: 36vh; }
}

/* ========================================================================
   Referencias adicionales (proyectos sin galería)
   ======================================================================== */
.refs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 900px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }
.ref {
  padding: 20px 22px;
  border: 1px solid rgba(8, 29, 45, 0.14);
  border-radius: var(--radius-md);
  background: rgba(8, 29, 45, 0.03);
}
.ref__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink, #081D2D);
  margin-bottom: 4px;
}
.ref__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold, #C9983C);
  margin-bottom: 8px;
}
.ref__desc { font-size: 13.5px; line-height: 1.55; color: rgba(8, 29, 45, 0.72); }

/* En tarjetas con foto, la ubicación acompaña al título en la base */
.project--photo .project__loc { margin-top: auto; margin-bottom: 6px; text-shadow: 0 1px 10px rgba(8, 29, 45, 0.75); }
.project--photo .project__title { max-width: 100%; }

/* En tarjetas con foto el CTA fluye bajo el título (evita solaparse) */
.project--photo .project__cta {
  position: static;
  margin-top: 10px;
  align-self: flex-start;
}

/* ========================================================================
   Catálogo histórico por décadas (proyectos)
   ======================================================================== */
.decades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 1000px) { .decades { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .decades { grid-template-columns: 1fr; } }
.decade {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--ink, #081D2D);
  color: var(--paper, #F4EFE6);
}
.decade__era {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--brand-gold, #C9983C);
  margin-bottom: 12px;
}
.decade__list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.decade__list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244, 239, 230, 0.82);
  padding-left: 16px;
  position: relative;
}
.decade__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-gold, #C9983C);
}

/* ========================================================================
   NAP Renta de Equipos: catálogo
   ======================================================================== */
.equipos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .equipos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .equipos { grid-template-columns: 1fr; } }

.equipo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.equipo:hover {
  background: rgba(244, 239, 230, 0.07);
  border-color: var(--brand-gold);
  transform: translateY(-3px);
}

.equipo__title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  color: var(--paper);
  margin: 0;
}

.equipo__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.72);
}

.equipo__cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  text-decoration: none;
}
.equipo__cta:hover span,
.equipo__cta:focus-visible span {
  display: inline-block;
  transform: translateX(4px);
  transition: transform 0.3s var(--ease);
}

.equipos__nota {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.55);
}

.equipo { overflow: hidden; }

.equipo__img {
  display: block;
  width: calc(100% + 44px);
  margin: -26px -22px 8px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.equipo:hover .equipo__img { transform: scale(1.04); }

.equipo[data-photos] { cursor: pointer; }

/* ---------- Movimiento v41: progreso, timeline, flechas, tilt -------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), #D9B15C);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 150;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
body.is-locked .progress { opacity: 0; }

.btn .btn__arrow,
.cta .cta__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow,
.cta:hover .cta__arrow { transform: translateX(5px); }

/* Linea dorada que se dibuja sobre los pasos (timeline) */
.steps > .step::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gold);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 160ms + 150ms);
}
.steps.stagger.in-view > .step::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  .btn .btn__arrow,
  .cta .cta__arrow { transition: none; }
  .btn:hover .btn__arrow,
  .cta:hover .cta__arrow { transform: none; }
  .steps > .step::after { transform: scaleX(1); transition: none; }
}

/* ---------- Logo 3D v42: cubo NAP en nav y footer -------------------- */
.nav__logo3d {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(8, 29, 45, 0.35));
}
.footer__logo3d {
  height: 68px;
  width: auto;
  display: block;
}
@media (max-width: 760px) {
  .nav__logo3d { height: 40px; }
  .footer__logo3d { height: 56px; }
}
