/* ============================================================
   ÍNDICE CONSTRUCTORA — Sistema de estilos
   Paleta navy + acero, tipografía editorial arquitectónica
   ============================================================ */

:root {
  /* Colores institucionales (tweakables) */
  --navy-900: #0A1628;
  --navy-800: #10233F;
  --navy-700: #17335C;
  --navy-600: #1E4B84;
  --navy-500: #2D6BB5;
  --navy-400: #4A8AD1;

  --steel-700: #4A5568;
  --steel-500: #718096;
  --steel-300: #A0AEC0;
  --steel-200: #CBD5E0;
  --steel-100: #E2E8F0;
  --steel-50:  #F7FAFC;

  --white: #FFFFFF;
  --ink: #0E1A2B;
  --ink-soft: #354861;
  --line: rgba(14, 26, 43, 0.08);
  --line-strong: rgba(14, 26, 43, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Tipografía */
  --font-sans: 'Space Grotesk', 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Escala tipográfica */
  --fs-hero: clamp(2.75rem, 6.2vw, 5.75rem);
  --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 1.8vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;
  --fs-eyebrow: 0.72rem;

  /* Espaciado / densidad (tweakable) */
  --density: 1;
  --section-pad: calc(140px * var(--density));
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-w: 1440px;

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--navy-700); color: white; }

/* ===== Utilidades ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-600);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--steel-200); }
.section-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--steel-500);
  font-variant-numeric: tabular-nums;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--navy-600);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn .arrow {
  width: 16px;
  height: 10px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--navy-800);
  color: white;
}
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 12px 30px -12px rgba(23, 51, 92, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-800); }

.btn-ghost.on-dark {
  color: white;
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost.on-dark:hover { border-color: white; background: rgba(255,255,255,0.06); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy-700);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--navy-700);
  transition: all 0.3s var(--ease);
}
.btn-link:hover { color: var(--navy-500); border-color: var(--navy-500); }
.btn-link .arrow { transition: transform 0.35s var(--ease); }
.btn-link:hover .arrow { transform: translateX(3px); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(0);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-sans);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: color 0.4s var(--ease);
  line-height: 1;
}
.logo-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}
.logo-mark .logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s var(--ease);
}
/* Estado por defecto (hero, fondo oscuro): mostrar variante blanca */
.logo-mark .logo-img--light { opacity: 1; }
.logo-mark .logo-img--dark  { opacity: 0; }
/* Al hacer scroll (fondo blanco): cambiar a variante oscura */
.site-header.scrolled .logo-mark .logo-img--light { opacity: 0; }
.site-header.scrolled .logo-mark .logo-img--dark  { opacity: 1; }
.site-header.scrolled .logo-mark { transform: scale(0.92); }
.site-header.scrolled .logo { color: var(--navy-900); }

/* Footer: siempre variante blanca sobre fondo oscuro */
.logo--footer .logo-mark { width: 56px; height: 56px; }

/* Wordmark del header — nombre de la empresa junto al isotipo */
.logo-wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  padding-left: 1rem;
  margin-left: 0.4rem;
  border-left: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.4s var(--ease);
  line-height: 1;
}
.site-header.scrolled .logo-wordmark {
  border-left-color: rgba(10,22,40,0.15);
}
.logo-wordmark-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: currentColor;
  line-height: 1;
}
.logo-wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.62;
  line-height: 1;
}
.logo-wordmark--footer { padding-left: 1.25rem; margin-left: 0.5rem; gap: 0.4rem; border-left-color: rgba(255,255,255,0.2); }
.logo-wordmark--footer .logo-wordmark-name { font-size: 1.3rem; letter-spacing: 0.26em; }
.logo-wordmark--footer .logo-wordmark-sub { font-size: 0.7rem; letter-spacing: 0.34em; opacity: 0.72; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-primary a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-primary a:hover { color: white; }
.nav-primary a:hover::after { width: 100%; }
.site-header.scrolled .nav-primary a { color: var(--ink-soft); }
.site-header.scrolled .nav-primary a:hover { color: var(--navy-800); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-cta .btn-primary {
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.header-cta .btn-primary:hover {
  background: white;
  color: var(--navy-900);
  border-color: white;
}
.site-header.scrolled .header-cta .btn-primary {
  background: var(--navy-800);
  color: white;
  border-color: var(--navy-800);
}
.site-header.scrolled .header-cta .btn-primary:hover {
  background: var(--navy-700);
}

/* Menú móvil */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: white;
  transition: color 0.4s var(--ease);
}
.site-header.scrolled .menu-toggle { color: var(--navy-900); }
.menu-toggle .bars {
  width: 22px;
  height: 12px;
  position: relative;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 10px; }
.menu-open .menu-toggle .bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 90;
  padding: 8rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.menu-open .mobile-nav { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  color: white;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel-300);
  letter-spacing: 0.15em;
}
.mobile-nav .btn { margin-top: 2rem; align-self: flex-start; }
.mobile-nav-footer {
  margin-top: auto;
  padding-top: 3rem;
  color: var(--steel-300);
  font-size: 0.8rem;
}

/* ============================================================
   HERO — Split
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy-900);
  color: white;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero::before {
  /* Grid arquitectónico sutil */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  z-index: 2;
}
.hero-text {
  padding: 9rem var(--gutter) 4rem calc(var(--gutter) + 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  margin-left: auto;
  width: 100%;
  gap: 0;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-meta .divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 1.5rem;
}
/* ===== HERO BRAND — nombre de la empresa como protagonista ===== */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  max-width: 100%;
}
.hero-brand-mark {
  width: clamp(56px, 5.5vw, 76px);
  height: clamp(56px, 5.5vw, 76px);
  flex-shrink: 0;
  flex-grow: 0;
  align-self: center;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.35));
}
.hero-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  color: white;
  text-transform: uppercase;
  display: block;
  /* Compensa el letter-spacing final para alinear a la izquierda */
  margin-right: -0.28em;
}
.hero-brand-sub {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--steel-300);
  line-height: 1;
}
.hero-brand-sub .line {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  display: inline-block;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: white;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--steel-300);
}
.hero-sub {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.75);
  max-width: 48ch;
  line-height: 1.55;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}
.hero-actions .btn-primary {
  background: white;
  color: var(--navy-900);
}
.hero-actions .btn-primary:hover {
  background: var(--steel-100);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.trust-item .k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--steel-300);
  display: block;
  margin-bottom: 0.4rem;
}
.trust-item .v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
  line-height: 1;
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 8s var(--ease);
}
.hero.loaded .hero-image img {
  transform: scale(1);
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,22,40,0.45) 0%, rgba(10,22,40,0) 30%, rgba(10,22,40,0) 70%, rgba(10,22,40,0.35) 100%);
  pointer-events: none;
}
.hero-image-caption {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}
.hero-image-caption .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7DD3FC;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.7;
}
.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: '';
  position: absolute;
  top: -30px; left: 0;
  width: 100%;
  height: 30px;
  background: white;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -30px; }
  100% { top: 40px; }
}

/* ============================================================
   SECCIONES BASE
   ============================================================ */
section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}
.section-head .col-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.section-head .col-title h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
.section-head .col-title h2 em {
  font-style: italic;
  color: var(--navy-600);
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros {
  background: var(--white);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
.nosotros-text .lead {
  margin-bottom: 2rem;
}
.nosotros-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.value-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.value-item .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel-500);
  letter-spacing: 0.15em;
}
.value-item .lbl {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
.value-item .desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.nosotros-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.nosotros-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.nosotros-image::before {
  /* Plano arquitectónico decorativo */
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 100px; height: 100px;
  border-top: 1px solid var(--navy-600);
  border-left: 1px solid var(--navy-600);
  z-index: 2;
}
.nosotros-image::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  border-bottom: 1px solid var(--navy-600);
  border-right: 1px solid var(--navy-600);
  z-index: 2;
}
.nosotros-image .tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--navy-800);
  text-transform: uppercase;
  z-index: 3;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  background: var(--steel-50);
  border-top: 1px solid var(--line);
}
.servicios-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.servicio-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line-strong);
  align-items: center;
  transition: all 0.4s var(--ease);
  position: relative;
}
.servicio-row::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--navy-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.servicio-row:hover::before { transform: scaleX(1); }
.servicio-row:hover { background: white; padding-left: 1rem; padding-right: 1rem; }

.servicio-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy-600);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.servicio-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.servicio-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.servicio-desc ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
}
.servicio-desc ul li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.servicio-desc ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 1px;
  background: var(--navy-600);
}
.servicio-cta {
  display: flex;
  justify-content: flex-end;
}
.servicio-visual {
  display: none;
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  width: 240px;
  height: 160px;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s var(--ease);
  pointer-events: none;
  z-index: 4;
}
.servicio-row:hover .servicio-visual {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.servicio-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   MAQUINARIA
   ============================================================ */
.maquinaria {
  background: var(--navy-900);
  color: white;
  overflow: hidden;
}
.maquinaria .section-head .col-title h2 { color: white; }
.maquinaria .eyebrow { color: var(--steel-300); }
.maquinaria .lead { color: rgba(255,255,255,0.7); }

.maq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.maq-item {
  background: var(--navy-900);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s var(--ease);
  position: relative;
  min-height: 220px;
}
.maq-item:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}
.maq-item .icon {
  width: 48px;
  height: 48px;
  color: var(--steel-200);
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease);
}
.maq-item:hover .icon { color: white; }
.maq-item .num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--steel-500);
  letter-spacing: 0.15em;
}
.maq-item .name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  line-height: 1.1;
  margin-top: auto;
}
.maq-item .type {
  font-size: 0.78rem;
  color: var(--steel-300);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.maq-cta-row {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.maq-cta-row .note {
  font-size: 0.85rem;
  color: var(--steel-300);
  max-width: 45ch;
}
.maquinaria .btn-primary {
  background: white;
  color: var(--navy-900);
}
.maquinaria .btn-primary:hover { background: var(--steel-100); }

/* ============================================================
   PROYECTOS
   ============================================================ */
.proyectos {
  background: white;
}
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.proyecto {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--steel-100);
}
.proyecto.wide { grid-column: span 4; aspect-ratio: 4 / 3; }
.proyecto.narrow { grid-column: span 2; aspect-ratio: 3 / 4; }
.proyecto.medium { grid-column: span 3; aspect-ratio: 4 / 3; }

.proyecto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.proyecto:hover img { transform: scale(1.04); }

.proyecto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0) 40%, rgba(10,22,40,0.85) 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  transform: translateY(0);
  transition: all 0.5s var(--ease);
}
.proyecto-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-200);
  margin-bottom: 0.6rem;
  opacity: 0.9;
}
.proyecto-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.proyecto-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.1;
  color: white;
  margin-bottom: 0.5rem;
}
.proyecto-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), margin-top 0.5s var(--ease);
  text-wrap: pretty;
}
.proyecto:hover .proyecto-desc {
  max-height: 100px;
  margin-top: 0.3rem;
}
.proyecto-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.95);
  color: var(--navy-800);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   DIFERENCIALES
   ============================================================ */
.diferenciales {
  background: var(--steel-50);
  border-top: 1px solid var(--line);
}
.dif-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.dif-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 260px;
  transition: background 0.3s var(--ease);
}
.dif-item:hover {
  background: var(--navy-900);
  color: white;
}
.dif-item:hover .dif-num,
.dif-item:hover .dif-title,
.dif-item:hover .dif-desc { color: white; }
.dif-item:hover .dif-icon { color: var(--steel-200); }

.dif-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel-500);
  letter-spacing: 0.15em;
  transition: color 0.3s var(--ease);
}
.dif-icon {
  width: 32px;
  height: 32px;
  color: var(--navy-700);
  transition: color 0.3s var(--ease);
}
.dif-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
  margin-top: auto;
  transition: color 0.3s var(--ease);
}
.dif-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  transition: color 0.3s var(--ease);
  text-wrap: pretty;
}

/* ============================================================
   ALIADOS
   ============================================================ */
.aliados {
  background: white;
  border-top: 1px solid var(--line);
  padding-top: calc(var(--section-pad) * 0.7);
  padding-bottom: calc(var(--section-pad) * 0.7);
}
.aliados-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}
.aliados-intro .section-number { margin-bottom: 1rem; display: block; }
.aliados-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}
.aliados-intro h3 em { font-style: italic; color: var(--navy-600); }
.aliados-intro p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 40ch;
  line-height: 1.55;
}
.aliados-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.aliado-card {
  background: white;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
  transition: background 0.3s var(--ease);
  position: relative;
}
.aliado-card:hover { background: var(--steel-50); }
.aliado-card .num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--steel-500);
  letter-spacing: 0.15em;
}
.aliado-card .mark {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-800);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.aliado-card .name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.05;
  margin-top: auto;
}
.aliado-card .role {
  font-size: 0.78rem;
  color: var(--steel-500);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .aliados-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .aliados-list { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESO
   ============================================================ */
.proceso {
  background: white;
}
.proceso-timeline {
  position: relative;
  padding: 3rem 0;
}
.proceso-line {
  position: absolute;
  top: 3rem;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.proceso-line::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 3px;
  background: var(--navy-700);
  width: 0;
  transition: width 2s var(--ease);
}
.proceso.in-view .proceso-line::before { width: 100%; }
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}
.proceso-step {
  padding-top: 3rem;
  position: relative;
}
.proceso-step::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 13px;
  height: 13px;
  background: white;
  border: 1px solid var(--navy-700);
  border-radius: 50%;
  transition: background 0.4s var(--ease);
}
.proceso.in-view .proceso-step::before {
  background: var(--navy-700);
}
.proceso-step .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--navy-600);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}
.proceso-step .title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.proceso-step .desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   CTA final
   ============================================================ */
.cta-band {
  padding: 0;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, rgba(10, 22, 40, 0.85) 60%, rgba(23, 51, 92, 0.7) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  padding: 7rem 0;
  width: 100%;
}
.cta-band-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: end;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: white;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta-band h2 em { font-style: italic; color: var(--steel-300); }
.cta-band p {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.8);
  max-width: 45ch;
  margin-top: 1.5rem;
}
.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.cta-band .btn-primary {
  background: white;
  color: var(--navy-900);
}
.cta-band .btn-primary:hover { background: var(--steel-100); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  background: white;
  border-top: 1px solid var(--line);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contacto-info h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.contacto-info h2 em { font-style: italic; color: var(--navy-600); }
.contacto-info .lead { margin-bottom: 3rem; }

.contacto-block {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.contacto-block .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.contacto-block .v {
  font-size: 0.95rem;
  color: var(--ink);
}
.contacto-block .v .placeholder {
  color: var(--steel-500);
  font-style: italic;
  font-size: 0.85rem;
}

.form-card {
  background: var(--steel-50);
  padding: 3rem;
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  font-family: inherit;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2317335C' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
  border: 1px solid var(--line-strong);
  padding: 0.85rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-700);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--steel-300); }

.form-submit {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  padding: 1.15rem;
  font-size: 0.9rem;
}
.form-consent {
  font-size: 0.75rem;
  color: var(--steel-500);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 2; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-brand .logo { color: white; margin-bottom: 0; }
.footer-brand .tagline {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: white;
  line-height: 1.2;
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: white; }
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover { background: white; color: var(--navy-900); border-color: white; }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .legal { display: flex; gap: 2rem; }
.footer-bottom .legal a { color: inherit; transition: color 0.3s var(--ease); }
.footer-bottom .legal a:hover { color: white; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px -8px rgba(37, 211, 102, 0.6);
  z-index: 60;
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-900);
  color: white;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ============================================================
   Animaciones scroll (fade + slide)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { min-height: 45vh; order: -1; }
  .hero-text { padding: 8rem var(--gutter) 4rem; max-width: none; margin: 0; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .servicio-row { grid-template-columns: 60px 1fr; gap: 1rem; padding: 2.5rem 0; }
  .servicio-title { grid-column: 2; }
  .servicio-desc { grid-column: 2; }
  .servicio-cta { grid-column: 2; justify-content: flex-start; }
  .maq-grid { grid-template-columns: repeat(2, 1fr); }
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
  .proyecto.wide, .proyecto.narrow, .proyecto.medium { grid-column: span 1; aspect-ratio: 4/3; }
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps { grid-template-columns: 1fr; gap: 2rem; }
  .proceso-line { display: none; }
  .proceso-step { padding-top: 0; padding-left: 2rem; border-left: 1px solid var(--line-strong); }
  .proceso-step::before { top: 4px; left: -7px; }
  .cta-band-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-primary, .header-cta .btn-primary { display: none; }
  .menu-toggle { display: flex; }
  .hero-title { font-size: clamp(2.75rem, 12vw, 4rem); }
  /* En móvil, el header muestra solo el isotipo para no saturar */
  .logo-wordmark { display: none; }
  .hero-brand { gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 2rem; }
  .hero-brand-mark { width: 48px; height: 48px; }
  .hero-brand-name { font-size: 1.4rem; letter-spacing: 0.28em; }
  .hero-brand-sub { font-size: 0.68rem; letter-spacing: 0.28em; }
  .hero-brand-sub .line { width: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 2rem 1.5rem; }
  .maq-grid { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  :root { --section-pad: calc(90px * var(--density)); }
  .contacto-block { grid-template-columns: 1fr; gap: 0.25rem; }
}
