/* =============================================================
   EQUIPO CONSTRUCTOR PERÚ — styles.css
   Syne (display) · Outfit (body) · JetBrains Mono (labels)
   #2C3641 charcoal · #B8834D copper · #D85A30 coral
   ============================================================= */

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

/* ── ACCESIBILIDAD: FOCUS VISIBLE ──
   El sitio usa cursor personalizado (cursor: none), así que la navegación
   por teclado necesita un indicador de foco propio y muy visible. */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── CUSTOM CURSOR ── */
@media (pointer: fine) {
  * { cursor: none !important; }

  #cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--copper);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: opacity 0.2s;
  }

  #cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border: 1.5px solid var(--b-copper-70);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, opacity 0.2s;
  }

  #cursor-ring.hovered {
    width: 50px;
    height: 50px;
    border-color: var(--b-copper-50);
  }

  #cursor-ring.clicked {
    width: 20px;
    height: 20px;
    border-color: var(--b-copper-90);
  }

  /* Hide cursors when mouse leaves window */
  body.cursor-out #cursor-dot,
  body.cursor-out #cursor-ring { opacity: 0; }
}

:root {
  /* Brand — acento general */
  --copper:       #B8834D;
  --copper-lt:    #d1a06f;
  --copper-glow:  rgba(184,131,77,0.16);
  --copper-glow2: rgba(184,131,77,0.07);
  --b-copper:     rgba(184,131,77,0.3);
  --b-copper-50:  rgba(184,131,77,0.5);
  --b-copper-70:  rgba(184,131,77,0.7);
  --b-copper-90:  rgba(184,131,77,0.9);

  /* Brand — acento de alta prioridad (CTAs puntuales) */
  --coral:       #D85A30;
  --coral-lt:    #e8805c;
  --coral-glow:  rgba(216,90,48,0.16);
  --coral-glow2: rgba(216,90,48,0.07);
  --b-coral:     rgba(216,90,48,0.3);
  --b-coral-40:  rgba(216,90,48,0.4);

  /* Tinte cálido para acabados decorativos sobre fondos oscuros */
  --copper-deep: #241a10;

  /* Dark palette — escala tonal derivada de charcoal */
  --charcoal:          #2C3641;
  --charcoal-deep:      #1E2731;
  --charcoal-deepest:   #141B22;
  --charcoal-lt:        #3A4552;
  --dk:    var(--charcoal-deepest);
  --dk2:   var(--charcoal-deep);
  --dk3:   var(--charcoal);
  --border: rgba(255,255,255,0.07);
  --txt:   #b8b8b8;
  --muted: #96a0ae;
  --white: #ffffff;
  --success: #3ecf6a;

  /* Overlays translúcidos (header/nav) tintados en charcoal */
  --overlay-92: rgba(20,27,34,0.92);
  --overlay-97: rgba(20,27,34,0.97);
  --overlay-98: rgba(20,27,34,0.98);

  /* Typography */
  --ff-d: 'Syne', sans-serif;
  --ff-b: 'Outfit', sans-serif;
  --ff-m: 'JetBrains Mono', monospace;

  /* Motion */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --spring:   cubic-bezier(0.16, 1, 0.3, 1);
  --t:    0.3s;
  --t-md: 0.5s;
  --t-sl: 0.85s;

  /* Layout */
  --gap-sec: clamp(5rem, 9vw, 8.5rem);
  --max-w:   1300px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dk);
  color: var(--txt);
  font-family: var(--ff-b);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
em    { font-style: italic; color: var(--copper); }
strong { font-weight: 600; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── SCROLL REVEAL ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-sl) var(--ease), transform var(--t-sl) var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.42s; }

.top-accent-line { display: none; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(to right, var(--coral-lt) 50%, var(--coral) 50%);
  background-size: 200% 100%;
  background-position: right;
  color: var(--white);
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border-radius: 2px;
  transition: background-position 0.4s var(--ease-out), transform var(--t), box-shadow var(--t);
}
.btn-primary:hover {
  background-position: left;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--b-coral-40);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: border-color var(--t), background var(--t), color var(--t), transform var(--t);
}
.btn-ghost svg { transition: transform var(--t) var(--ease); }
.btn-ghost:hover {
  border-color: var(--copper);
  background: var(--copper-glow2);
  color: var(--copper);
  transform: translateY(-2px);
}
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── SECTION LABELS ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--copper); }
.section-head { margin-bottom: 3.5rem; }
.clients-section .section-head { margin-bottom: 1.75rem; }

/* =============================================================
   HEADER
   ============================================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 1.2rem 0;
  background: var(--overlay-92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--border);
  transition: padding var(--t-md), background var(--t-md);
}
#header.scrolled {
  background: var(--overlay-98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0.75rem 0;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-link { flex-shrink: 0; }
.logo {
  height: auto;
  max-width: 160px;
  width: auto;
  display: block;
  background: none;
  border: none;
  box-shadow: none;
  object-fit: contain;
  transition: max-width var(--t), opacity var(--t);
}
#header.scrolled .logo { max-width: 140px; }

.main-nav { display: flex; align-items: center; margin-left: auto; }
.main-nav a {
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(184,184,184,0.5);
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color var(--t);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a.current::after {
  transform: scaleX(1);
  transform-origin: left;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.current { color: var(--copper); }

.btn-brochure {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--copper);
  margin-left: 0.5rem;
  position: relative;
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.15rem;
  border-radius: 2px;
  border: 1px solid rgba(184,131,77,0.35);
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.btn-brochure::before {
  content: '';
  position: absolute;
  left: calc(-1rem - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}
.btn-brochure:hover {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,131,77,0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--txt); transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================================
   HERO — 50% content / 50% full-height slider
   ============================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 55fr 45fr;
  grid-template-rows: 1fr;
}

/* Background layers */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* Particles canvas — confined to hero, non-blocking */
/* Textura de partículas — CSS puro, dos capas a distinta velocidad/tamaño */
.particles-css {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particles-css::before,
.particles-css::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--b-copper-70) 1px, transparent 1.6px);
  background-size: 70px 70px;
  opacity: 0.4;
  animation: particles-drift-a 60s linear infinite;
}
.particles-css::after {
  background-size: 120px 120px;
  opacity: 0.22;
  animation: particles-drift-b 80s linear infinite reverse;
}
@keyframes particles-drift-a { from { transform: translate(0, 0); } to { transform: translate(-70px, -70px); } }
@keyframes particles-drift-b { from { transform: translate(0, 0); } to { transform: translate(90px, -60px); } }
@media (prefers-reduced-motion: reduce) {
  .particles-css::before, .particles-css::after { animation: none; }
}

.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 25% 50%, rgba(184,131,77,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 5% 90%, rgba(184,131,77,0.05) 0%, transparent 50%),
    linear-gradient(160deg, var(--charcoal-deepest) 0%, var(--charcoal-deep) 50%, var(--charcoal-deepest) 100%);
}

.hero-mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 90% at 25% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 25% 50%, black 20%, transparent 80%);
}

/* Ghost watermark */
.hero-watermark {
  position: absolute;
  left: -3rem;
  bottom: -2rem;
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(6rem, 14vw, 18rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184,131,77,0.055);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.03em;
  z-index: 1;
}

/* Left — text content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 9rem top = ~144px; header ~80px → 64px buffer garantizado */
  padding: 9rem max(2rem, 4vw) 5rem max(2.5rem, calc((100vw - 1300px) / 2 + 2.5rem));
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.75rem;
}
.eyebrow-dash { display: block; width: 26px; height: 1px; background: var(--copper); flex-shrink: 0; }

/* Max 60px as specified */
.hero-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title span { display: block; }
.hero-title .orange { color: var(--copper); }

.hero-body {
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  font-weight: 400;
  color: rgba(184,184,184,0.52);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Scroll hint — left side only */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 25%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.25;
}
.hero-scroll span { font-family: var(--ff-m); font-size: 0.56rem; letter-spacing: 0.28em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(184,131,77,0.9), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(1); } 55% { opacity: 0.9; transform: scaleY(1.3); } }

/* Right — slider como ventana elegante contenida */
.hero-slider-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 6rem 30px 4rem 2rem;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 10rem);
  max-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dk2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Ocultar slide saliente al instante; solo el entrante hace fade */
.slide { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.slide.active { opacity: 1; z-index: 1; transition: opacity 0.85s ease; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}

/* Dots — debajo del slider en el flujo flex */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.dot {
  height: 3px; width: 16px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, width 0.35s var(--spring);
  flex-shrink: 0;
}
.dot.active { background: var(--copper); width: 32px; }
.dot:hover:not(.active) { background: rgba(255,255,255,0.55); }

/* =============================================================
   STATS / NOSOTROS
   ============================================================= */
.stats-section {
  padding: 3rem 0 var(--gap-sec);
  background: var(--dk3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stats-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.stats-headline {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1.5rem;
}
.stats-headline .highlight { color: var(--copper); font-style: italic; }
.stats-text p { font-size: 1rem; color: rgba(184,184,184,0.48); line-height: 1.85; max-width: 400px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.stat-card {
  background: var(--dk2);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--t);
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.stat-card:hover { background: rgba(184,131,77,0.03); }
.stat-card:hover::after { transform: scaleX(1); }

.stat-val {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 4.5rem);
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.nfpa-val { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: 0.05em; }

.stat-label {
  font-family: var(--ff-m);
  font-weight: 400;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.stat-bar { width: 18px; height: 1px; background: var(--copper); margin: 1rem auto 0; opacity: 0.35; }

/* =============================================================
   PRESENCIA NACIONAL
   ============================================================= */
.presence-section {
  padding: var(--gap-sec) 0;
  background: var(--charcoal-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.presence-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 60%, rgba(184,131,77,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 30% 40% at 20% 30%, rgba(184,131,77,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.presence-subtitle {
  font-size: 1rem;
  color: rgba(184,184,184,0.45);
  margin-top: 0.6rem;
  max-width: 480px;
  line-height: 1.7;
}

.presence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ── Map column ── */
.presence-map-col { display: flex; justify-content: center; }

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(184,131,77,0.22);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 20px 60px rgba(0,0,0,0.55);
  width: 100%;
  max-width: 520px;
  position: relative;
}

.peru-iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  /* Tema oscuro: invierte colores y rota el matiz para combinar con el diseño */
  filter: invert(90%) hue-rotate(180deg);
}

/* ── Right text column ── */
.presence-text-col {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  justify-content: center;
}

.presence-quote {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 1.75rem;
}
.presence-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 2px;
  background: linear-gradient(to bottom, var(--copper), rgba(184,131,77,0.15));
  border-radius: 2px;
}

.presence-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.presence-big-stat {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  line-height: 1;
}

.presence-num {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(4rem, 7vw, 6.5rem);
  color: var(--copper);
  letter-spacing: -0.04em;
  line-height: 1;
}

.presence-unit {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: rgba(184,131,77,0.65);
  letter-spacing: -0.01em;
}

.presence-stat-desc {
  font-family: var(--ff-b);
  font-weight: 400;
  font-size: 0.95rem;
  color: rgba(184,184,184,0.5);
  line-height: 1.7;
  max-width: 300px;
}

/* =============================================================
   SERVICES
   ============================================================= */
.services-section {
  padding: var(--gap-sec) 0;
  background: var(--dk);
  position: relative;
  overflow: hidden;
}

.services-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 65% at 10% 50%, rgba(184,131,77,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 90% 30%, rgba(184,131,77,0.03) 0%, transparent 50%);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.svc-card {
  background: rgba(255,255,255,0.018);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  transition: background var(--t-md);
  border-top: 1px solid rgba(255,255,255,0.055);
}
.svc-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--copper), rgba(184,131,77,0.25));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s var(--spring);
}
.svc-card:hover { background: rgba(255,255,255,0.028); }
.svc-card:hover::before { transform: scaleY(1); }

.svc-num { display: none; }

.svc-icon {
  width: 48px; height: 48px;
  color: var(--copper);
  margin-bottom: 1.75rem;
  opacity: 0.85;
}

.svc-card h3 {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.svc-card h3 em { color: var(--copper); font-style: italic; }

.svc-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.svc-list li { display: flex; gap: 1rem; align-items: flex-start; }

.svc-dot {
  flex-shrink: 0;
  width: 4px; height: 4px;
  background: var(--copper);
  border-radius: 50%;
  margin-top: 0.6rem;
  opacity: 0.65;
}
.svc-list strong {
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 0.2rem;
}
.svc-list p { font-size: 0.9rem; color: rgba(184,184,184,0.44); line-height: 1.65; }

/* Foto de servicio dentro de la tarjeta (index.html y servicios.html) */
.svc-photo {
  position: relative;
  margin-top: 2rem;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
}
.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.92);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.svc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,14,0.5));
  pointer-events: none;
}
.svc-card:hover .svc-photo img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(1);
}
@media (prefers-reduced-motion: reduce) {
  .svc-photo img { transition: none; }
}

/* =============================================================
   CLIENTS — TEXT MARQUEE
   ============================================================= */
.clients-section {
  padding: 60px 0;
  background: var(--dk2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients-sub {
  font-size: 0.95rem;
  color: rgba(184,184,184,0.35);
  margin-top: 0.6rem;
  max-width: 480px;
}

.clients-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.clients-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 44s linear infinite;
  will-change: transform;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.name-set { display: flex; align-items: center; }

.client-name {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  padding: 0.75rem 2.75rem;
  cursor: default;
  user-select: none;
  letter-spacing: -0.015em;
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease);
}
.client-name:hover {
  color: var(--copper);
  text-shadow: 0 0 30px rgba(184,131,77,0.45), 0 0 70px rgba(184,131,77,0.18);
}

.client-sep {
  font-family: var(--ff-m);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.1);
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

/* =============================================================
   PROJECTS — GRID
   ============================================================= */
.projects-section {
  padding: var(--gap-sec) 0;
  background: var(--dk);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}
.ftab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.ftab:hover, .ftab.active {
  color: var(--white);
  border-color: var(--b-copper);
  background: var(--copper-glow2);
}
.ftab.active { color: var(--copper); }

.fbadge {
  background: rgba(184,131,77,0.12);
  color: var(--copper);
  font-size: 0.58rem;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  line-height: 1.6;
}

.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.pcard {
  flex: 0 0 calc(25% - 2.25px); /* 4 por fila, ajustando el gap de 3px */
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--dk3);
  cursor: pointer;
}
.pcard.hidden { display: none; }

.pcard-img { position: absolute; inset: 0; overflow: hidden; }
.pcard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: brightness(0.72) saturate(0.85);
}
.pcard:hover .pcard-img img {
  transform: scale(1.05);
  filter: brightness(0.38) saturate(0.9);
}

.pcard-over {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 45%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1.1rem;
  opacity: 1;
  transition: background 0.45s var(--ease);
}
.pcard:hover .pcard-over {
  background: linear-gradient(to top, rgba(184,131,77,0.94) 0%, rgba(184,131,77,0.6) 55%, rgba(0,0,0,0.08) 100%);
}

.pcat-tag {
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.35rem;
  transition: color var(--t);
}
.pcard:hover .pcat-tag { color: rgba(255,255,255,0.8); }

.pcard-over h4 {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.3;
}

.pcard::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width 0.5s var(--ease);
  z-index: 3;
}
.pcard:hover::after { width: 100%; }

.pcard.img-fail {
  background: linear-gradient(135deg, var(--charcoal-deep) 0%, var(--copper-deep) 50%, var(--charcoal-deep) 100%);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--charcoal-deepest);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding: 4.5rem 0 3.5rem;
  align-items: start;
}

.footer-logo { max-width: 120px; width: auto; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 0 12px rgba(184,131,77,0.14)); }

.footer-tagline {
  font-family: var(--ff-b);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-tagline em { font-style: italic; color: var(--white); }

.footer-social-wrap {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  transition: all 0.25s;
}
.footer-social-link:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.footer-col-title {
  font-family: var(--ff-m);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col-title::before { content: ''; display: block; width: 14px; height: 1px; background: var(--copper); flex-shrink: 0; }

/* Nav links en footer */
.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav-links a {
  font-family: var(--ff-m);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184,184,184,0.45);
  transition: color var(--t);
}
.footer-nav-links a:hover { color: var(--copper); }

/* Navegación del footer agrupada en dos columnas con etiqueta */
.footer-nav-groups {
  display: flex;
  gap: 2.4rem;
}
.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-nav-label {
  font-family: var(--ff-m);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8611A;
}
.footer-nav-group .footer-nav-links {
  columns: initial;
  column-rule: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 480px) {
  .footer-nav-groups { flex-direction: column; gap: 1.6rem; }
}

.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.65rem; }
.footer-contact svg { color: var(--copper); opacity: 0.6; flex-shrink: 0; }
.footer-contact a { font-size: 0.85rem; color: rgba(184,184,184,0.48); transition: color var(--t); }
.footer-contact a:hover { color: var(--copper); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom span {
  font-family: var(--ff-m);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.16);
  text-transform: uppercase;
}

/* =============================================================
   CONTACT SECTION
   ============================================================= */
.contact-section {
  padding: var(--gap-sec) 5%;
  background: var(--dk2);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.contact-tag-line { width: 40px; height: 1px; background: var(--copper); flex-shrink: 0; }
.contact-tag-label {
  font-family: var(--ff-m);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--copper);
  font-weight: 600;
}

.contact-lead {
  color: rgba(184,184,184,0.55);
  font-size: 1.05rem;
  margin: 0 0 3rem;
}

.contact-submit-wrap { text-align: center; margin-top: 0.5rem; }

.contact-success-msg {
  display: none;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--copper);
}

.contact-header { margin-bottom: 3.5rem; }

.contact-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0.5rem 0 0.85rem;
  overflow: visible;
}

.contact-subtitle {
  font-size: 1rem;
  color: rgba(184,184,184,0.52);
  max-width: 460px;
  line-height: 1.7;
}

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: start;
}

/* Left column */
.contact-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.contact-detail-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-detail-list svg { color: var(--copper); opacity: 0.7; flex-shrink: 0; }
.contact-detail-list a {
  font-size: 0.92rem;
  color: rgba(184,184,184,0.6);
  transition: color var(--t);
}
.contact-detail-list a:hover { color: var(--copper); }

/* Right: form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cf-field label {
  font-family: var(--ff-m);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  background: var(--charcoal-lt);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--ff-b);
  font-size: 0.92rem;
  padding: 0.82rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  -webkit-appearance: none;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(255,255,255,0.18);
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184,131,77,0.12);
}
.cf-field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.65;
}
.cf-field select {
  color-scheme: dark;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23B8834D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.cf-field select option { background: var(--charcoal-lt); color: var(--white); }
.cf-field input[type="file"] {
  color-scheme: dark;
  color: rgba(255,255,255,0.55);
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.cf-field input[type="file"]::-webkit-file-upload-button {
  background: var(--copper);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 0.5rem 0.9rem;
  margin-right: 0.85rem;
  font-family: var(--ff-m);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── NOTA LEGAL DEBAJO DE FORMULARIOS ── */
.form-legal-note {
  font-size: 0.8rem;
  color: rgba(184,184,184,0.5);
  line-height: 1.7;
  margin-top: 1.75rem;
  text-align: center;
}
.form-legal-note .footer-privacy-link {
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── TARJETA DE POSTULACIÓN (Trabaja con Nosotros) ── */
.apply-card {
  background: var(--charcoal-lt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.apply-specialties {
  text-align: left;
  margin: 2.25rem 0 0;
}

.apply-specialties-title {
  font-family: var(--ff-m);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.apply-specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.apply-specialty-card {
  background: var(--dk2);
  padding: 1.5rem 1.35rem;
}
.apply-specialty-card .why-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.apply-specialty-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.apply-specialty-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.apply-specialty-list li {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(184,184,184,0.55);
  position: relative;
  padding-left: 0.85rem;
}
.apply-specialty-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.apply-cta-wrap {
  margin: 2rem 0 1.25rem;
}

.btn-cta-lg {
  font-size: 0.95rem;
  padding: 1.15rem 2.75rem;
}

.apply-fallback {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.apply-fallback a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t);
}
.apply-fallback a:hover { color: var(--coral); }

/* Formulario centrado sin columna lateral */
.contact-form-solo {
  max-width: 700px;
  margin: 0 auto;
}

.cf-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.cf-success {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-m);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--success);
  line-height: 1.6;
}
.cf-success::before {
  content: '✓';
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================================
   MANIFESTO
   ============================================================= */
.manifesto-section {
  padding: 4.5rem 0;
  background: var(--dk2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-text {
  font-family: var(--ff-d);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  color: var(--white);
  line-height: 1.65;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 3px solid var(--copper);
  quotes: none;
}

/* =============================================================
   POR QUÉ ELEGIRNOS
   ============================================================= */
.why-section {
  padding: var(--gap-sec) 0;
  background: var(--dk2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(184,131,77,0.05) 0%, transparent 55%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.why-card {
  background: var(--dk2);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background var(--t-md);
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.why-card:hover { background: rgba(184,131,77,0.04); }
.why-card:hover::after { transform: scaleX(1); }

.why-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
  filter: saturate(0.9);
}

.why-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.why-desc {
  font-size: 0.88rem;
  color: rgba(184,184,184,0.5);
  line-height: 1.7;
}

/* =============================================================
   CTA FINAL
   ============================================================= */
.cta-section {
  background: var(--coral);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 15% 50%, rgba(0,0,0,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section::after {
  content: 'CONSTRUIMOS';
  position: absolute;
  right: -2rem;
  bottom: -1.5rem;
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(5rem, 12vw, 14rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-family: var(--ff-m);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}

.cta-title {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--coral);
  font-family: var(--ff-m);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  border-radius: 2px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.cta-btn svg { transition: transform var(--t) var(--ease); }
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
  background: var(--dk2);
  color: var(--white);
}
.cta-btn:hover svg { transform: translateX(4px); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 1100px — 3-col projects, 2-col footer */
@media (max-width: 1100px) {
  .pcard { flex: 0 0 calc(33.333% - 2px); } /* 3 por fila */
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
  .contact-cols { grid-template-columns: 1fr 1.4fr; gap: 3rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 900px — stack hero, single-col services */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 55vw;
    height: auto;
    min-height: unset;
  }
  .hero-content {
    padding: 7.5rem 2rem 3rem;
    padding-left: max(1.5rem, 4vw);
  }
  .hero-slider-panel {
    min-height: unset;
    padding: 1rem 1.5rem 2rem;
  }
  .hero-slider { height: 56vw; max-height: 320px; border-radius: 8px; }
  .hero-watermark { display: none; }
  .stats-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .presence-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .presence-text-col { order: -1; }
  .map-wrapper { max-width: 100%; }
  .peru-iframe { height: 420px; }
  .services-grid { grid-template-columns: 1fr; }
  .pcard { flex: 0 0 calc(50% - 1.5px); height: 260px; } /* 2 por fila */
  .hero-scroll { left: 50%; }
}

/* 768px — mobile nav */
@media (max-width: 768px) {
  :root { --gap-sec: 4.5rem; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 999;
  }
  .main-nav.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--charcoal-deepest);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 9999;
  }
  .main-nav a { font-size: 1rem; padding: 1rem 2rem; letter-spacing: 0.22em; }
  .main-nav a::after { display: none; }
  .main-nav.open a {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: var(--white);
  }
  .main-nav.open a:hover {
    color: var(--copper);
  }

  .btn-brochure { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; z-index: 1001; }

  .hero-title { font-size: clamp(2.2rem, 10vw, 3.75rem); }
  .contact-cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .cf-row { grid-template-columns: 1fr; }
  .hero-body { font-size: 0.95rem; }
  .presence-quote { font-size: 1.05rem; }
  .presence-num { font-size: 3.5rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-card { padding: 2.5rem 1.75rem; }
  .apply-specialties-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
  .footer-brand { grid-column: unset; }
  .container { padding: 0 1.5rem; }
  .section-title { font-size: clamp(2rem, 8vw, 3rem); }
  .svc-card { padding: 2.5rem 1.75rem; }

  footer {
    padding-top: 80px;
  }
}

/* 540px — 2-col projects */
@media (max-width: 540px) {
  .pcard { height: 220px; }
  .filter-tabs { gap: 0.3rem; }
  .ftab { font-size: 0.6rem; padding: 0.45rem 0.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; }
  .footer-bottom { padding: 1.25rem 0; }
}

/* 380px — single-col projects */
@media (max-width: 380px) {
  .pcard { flex: 0 0 100%; height: 240px; } /* 1 por fila */
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dk3);
  border-top: 2px solid var(--copper);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-text {
  flex: 1;
  font-family: var(--ff-m);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  min-width: 220px;
  margin: 0;
}
.cookie-policy-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--copper);
  font-family: var(--ff-m);
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}
.cookie-policy-link:hover { color: var(--white); }
.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--ff-m);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.82; }
.cookie-btn--accept { background: var(--copper); color: var(--white); }
.cookie-btn--reject { background: var(--charcoal-lt); color: rgba(255,255,255,0.5); }

/* ── PRIVACY MODAL ── */
.priv-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.priv-overlay.is-open { opacity: 1; }
.priv-overlay[hidden] { display: none; }
.priv-modal {
  background: var(--dk3);
  border: 1px solid var(--border);
  border-top: 3px solid var(--copper);
  border-radius: 8px;
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--copper) var(--charcoal-lt);
}
.priv-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.priv-close:hover { color: var(--copper); }
.priv-title {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 1.5rem;
  padding-right: 2rem;
}
.priv-body h3 {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.5rem 0 0.5rem;
}
.priv-body p, .priv-body li {
  font-family: var(--ff-m);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  margin: 0 0 0.4rem;
}
.priv-body ul {
  padding-left: 1.25rem;
  margin: 0.4rem 0 0.8rem;
}
.priv-body li { margin-bottom: 0.3rem; }
.priv-body a { color: var(--copper); transition: color var(--t); }
.priv-body a:hover { color: var(--white); }
.priv-body strong { color: rgba(255,255,255,0.82); font-weight: 600; }

/* =============================================================
   HOMOLOGACIONES
   ============================================================= */
.hom-section {
  padding: var(--gap-sec) 0;
  background: var(--dk2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hom-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(184,131,77,0.04) 0%, transparent 55%);
  pointer-events: none;
}

.hom-subtitle {
  font-size: 0.98rem;
  color: rgba(184,184,184,0.45);
  max-width: 680px;
  margin: 0.5rem 0 0;
  line-height: 1.8;
}

.hom-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.hom-card {
  background: var(--charcoal-lt);
  border: 1px solid rgba(184,131,77,0.25);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  position: relative;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.hom-card:hover {
  box-shadow: 0 0 0 1px rgba(184,131,77,0.35), 0 20px 55px rgba(184,131,77,0.1);
  border-color: rgba(184,131,77,0.38);
  transform: translateY(-5px);
}

.hom-logo {
  max-width: 180px;
  max-height: 55px;
  width: auto;
  height: auto;
  margin: 0 auto 1.75rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity var(--t);
}
.hom-card:hover .hom-logo { opacity: 1; }

.hom-card-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.hom-brand-name {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: 3rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}

.hom-divider {
  width: 40px;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

.hom-badge {
  font-family: var(--ff-m);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.hom-card-text {
  font-size: 0.875rem;
  color: rgba(184,184,184,0.48);
  line-height: 1.75;
}

/* Footer homologado — columna derecha */
.footer-hom-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-hom-title {
  font-family: var(--ff-m);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--copper);
  font-weight: 500;
}
.footer-hom-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-hom-logo {
  max-height: 28px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.7);
}
.footer-hom-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.footer-hom-badge {
  border: 1px solid var(--b-copper-50);
  padding: 5px 12px;
  border-radius: 4px;
}
.footer-hom-badge span {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--white);
}
.footer-hom-desc {
  font-family: var(--ff-m);
  font-size: 0.68rem;
  color: rgba(184,184,184,0.48);
  line-height: 1.55;
}

/* Legacy — keep for any remaining references */
.footer-hom {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-hom-label {
  font-family: var(--ff-m);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(184,184,184,0.28);
}
.footer-hom-logos {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.footer-hom-logo {
  max-width: 60px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.28;
  transition: opacity var(--t);
}
.footer-hom-logo:hover { opacity: 0.55; }

@media (max-width: 768px) {
  .hom-grid { flex-direction: column; align-items: center; }
  .hom-card { max-width: 100%; }
}

/* footer privacy link */
.footer-privacy-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-m);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  transition: color var(--t);
  padding: 0;
  display: inline-block;
  margin-top: 0.45rem;
}

/* ── POLICY TABS ── */
.pol-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s;
  line-height: 1.4;
}
.pol-tab:hover {
  border-color: var(--copper);
  color: var(--white);
}
.pol-tab.active {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
  font-weight: 700;
}
.pol-content { display: none; }
.pol-content.active { display: block; }
.footer-privacy-link:hover { color: var(--copper); }

/* =============================================================
   PAGE HERO REUTILIZABLE (.ef-*)
   Usado en enfoque.html, proyectos.html, clientes.html, servicios.html
   ============================================================= */
.ef-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--charcoal-deepest);
}

.ef-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(184,131,77,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(184,131,77,0.05) 0%, transparent 50%),
    linear-gradient(160deg, var(--charcoal-deepest) 0%, var(--charcoal-deep) 50%, var(--charcoal-deepest) 100%);
  pointer-events: none;
}

.ef-hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.ef-hero-watermark {
  position: absolute;
  left: 50%;
  bottom: -2.5rem;
  transform: translateX(-50%);
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(5rem, 13vw, 16rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184,131,77,0.045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.03em;
  z-index: 1;
}

.ef-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2.5rem;
}

.ef-hero-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 1.5rem 0 1.5rem;
}
.ef-hero-title span { display: block; color: var(--copper); }

.ef-hero-sub {
  font-family: var(--ff-d);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: rgba(184,184,184,0.55);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto;
}

.ef-hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.25;
}
.ef-hero-scroll span {
  font-family: var(--ff-m);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ── SECCIONES ALTERNADAS (.ef-section) — usado en enfoque.html y servicios.html ── */
.ef-section {
  padding: var(--gap-sec) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--dk);
}
.ef-section.ef-alt { background: var(--dk2); }

.ef-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(184,131,77,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.ef-section.ef-reverse::before {
  background: radial-gradient(ellipse 50% 60% at 20% 50%, rgba(184,131,77,0.04) 0%, transparent 55%);
}

.ef-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: center;
}

.ef-reverse .ef-img-col { order: 2; }
.ef-reverse .ef-text-col { order: 1; }

.ef-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 20px 60px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.3);
}
.ef-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) saturate(0.88);
  transition: transform 0.75s var(--ease), filter 0.5s var(--ease);
}
.ef-img-wrap:hover img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(1);
}

.ef-img-wrap img.ef-img-contain {
  height: auto;
  object-fit: contain;
  background: linear-gradient(135deg, var(--dk3) 0%, var(--dk2) 100%);
  filter: brightness(0.94) saturate(0.92);
}

.ef-section-num {
  font-family: var(--ff-m);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.ef-section-num::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

.ef-section-title {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 2.3rem);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
}

.ef-section-body {
  font-size: 0.97rem;
  color: rgba(184,184,184,0.52);
  line-height: 1.9;
  max-width: 500px;
}

.ef-stats {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ef-stat-chip {
  font-family: var(--ff-m);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  padding: 0.45rem 1.05rem;
  border: 1px solid rgba(184,131,77,0.3);
  border-radius: 100px;
  background: rgba(184,131,77,0.06);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ef-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ef-reverse .ef-img-col { order: unset; }
  .ef-reverse .ef-text-col { order: unset; }
  .ef-img-wrap img { height: 280px; }
  .ef-section-body { max-width: 100%; }
}
@media (max-width: 768px) {
  .ef-img-wrap img { height: 240px; }
  .ef-hero-title { letter-spacing: -0.015em; }
}
