/* =========================================================
   G&P INGENIERÍA Y ARQUITECTURA S.A.S. — DESIGN SYSTEM
   Tokens: navy #022951 · orange #FF4500 · warm stone #F6F4EF
   Type: Montserrat (display) / Jost (body, Century-Gothic-like)
   Signature: topographic contour lines + winding road dividers
   ========================================================= */

:root {
  /* Brand core */
  --navy:        #022951;
  --navy-deep:   #011a35;
  --navy-tint:   #0e4a86;
  --orange:      #FF4500;
  --orange-deep: #d63a00;

  /* Neutrals */
  --stone:       #F6F4EF;
  --stone-dim:   #ECE8DF;
  --paper:       #FFFDFB;
  --ink:         #16202B;
  --ink-soft:    #4B5661;
  --line:        #DEDAD0;
  --line-dark:   rgba(255,255,255,0.16);

  /* Type */
  --f-display: 'Montserrat', 'Century Gothic', sans-serif;
  --f-body:    'Jost', 'Century Gothic', sans-serif;

  /* Rhythm */
  --gap: clamp(1.5rem, 3vw, 3rem);
  --radius: 4px;
  --shadow-soft: 0 20px 45px -20px rgba(2,41,81,0.28);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; margin: 0 0 .6em; color: var(--navy); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
/* Safety net: every inline icon in this project relies on CSS for its size.
   Without this, any icon that is ever added without a matching class rule
   would fall back to the SVG spec's default replaced-element size
   (~300x150px), rendering as a huge filled shape. 1em keys it to the
   surrounding font-size instead — small and inert by default — and every
   real icon still gets its own explicit width/height from a more specific
   selector further down, which wins on specificity. */
svg { width: 1em; height: 1em; flex-shrink: 0; display: block; }
svg path:not([fill]), svg circle:not([fill]), svg rect:not([fill]) { fill: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem;
  z-index: 999; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  width: min(1320px, 92%);
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; }

.eyebrow {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  display: inline-block;
}
.eyebrow-light { color: #FF8A5C; }

h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); max-width: 22ch; }
.section-lead { max-width: 56ch; color: var(--ink-soft); font-size: 1.05rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(2, 41, 81, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.4);
}
/* Fixed, explicit header height so the logo can be resized freely without
   ever changing the header's footprint. Everything inside is vertically
   centered against this height via align-items:center on .header-inner. */
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 96px;
  transition: height .35s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 70px; }

.brand { display: flex; align-items: center; gap: .8rem; line-height: 1; }
.brand-emblem {
  height: 70px; width: auto; flex-shrink: 0;
  transition: transform .3s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled .brand-emblem { height: 46px; }
.brand:hover .brand-emblem { transform: scale(1.05); }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; color: #FFF; letter-spacing: -0.01em; }
.brand-mark-light { color: var(--navy); }
.brand-amp { color: var(--orange); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #C9D6E6; margin-top: 3px; }
.site-footer .brand-sub { color: #; }

.main-nav ul { display: flex; gap: 1.7rem; }
.nav-item { position: relative; display: flex; align-items: center; }

/* Row that holds the link + its single trailing arrow button. Flex at all
   breakpoints so the arrow always sits inline, right of the text, never
   below it. */
.nav-item-row { display: flex; align-items: center; }

.nav-link {
  font-family: var(--f-display); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.02em; color: #EAF0F7; position: relative; padding: .6rem 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .3s var(--ease);
}
.nav-link:hover::after, .nav-link.is-current::after { width: 100%; }

/* Single arrow, fully reset from native <button> chrome: no border, no
   background, no padding box — just an inline icon with a comfortable
   tap target. Lives outside any media query so it is correctly sized and
   invisible-as-a-button on desktop AND mobile alike. */
.mega-toggle {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; margin: 0 0 0 .3rem;
  width: 22px; height: 22px;
  color: #EAF0F7; cursor: pointer;
  flex-shrink: 0;
}
.mega-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 50%; }
.nav-caret { width: 9px; height: 9px; flex-shrink: 0; transition: transform .25s var(--ease); }
.nav-caret path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.has-mega:hover .nav-caret,
.nav-item.has-mega:focus-within .nav-caret { transform: rotate(180deg); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: none; padding: 0;
}
.nav-toggle span { width: 100%; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,26,53,0.55) 0%, rgba(1,26,53,0.35) 40%, rgba(1,26,53,0.92) 100%);
}
.hero-contours {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  opacity: 0.35; mix-blend-mode: soft-light;
}
.hero-contours path { fill: none; stroke: #fff; stroke-width: 1.4; }

.hero-content { position: relative; padding-bottom: clamp(4rem, 9vw, 7rem); padding-top: 8rem; color: #fff; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  max-width: 16ch;
  margin-bottom: .5em;
}
.hero-lead { max-width: 46ch; font-size: 1.12rem; color: #E4EBF3; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }

.reveal { opacity: 0; transform: translateY(22px); animation: heroIn .9s var(--ease) forwards; }
.hero-content .eyebrow.reveal { animation-delay: .05s; }
.hero-content h1.reveal { animation-delay: .18s; }
.hero-content .hero-lead.reveal { animation-delay: .32s; }
.hero-content .hero-actions.reveal { animation-delay: .46s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,0.6); border-radius: 20px;
}
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 24px; } 100% { opacity: 0; top: 8px; } }

/* ============ SCROLL REVEAL (generic) ============ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ============ QUIÉNES SOMOS ============ */
.who-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gap); align-items: center; }
.who blockquote {
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--navy);
  border-left: 3px solid var(--orange); padding-left: 1.2rem; margin: 1.6rem 0; line-height: 1.4;
}
.who-text > p { color: var(--ink-soft); text-align: justify; max-width: 95.5%; }
.pillars { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.pillars li { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-num { font-family: var(--f-display); font-weight: 800; color: var(--orange); font-size: 0.95rem; padding-top: 2px; }
.pillars strong { display: block; color: var(--navy); font-family: var(--f-display); font-size: 1rem; margin-bottom: .2rem; }
.pillars p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.who-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
/* ============ MISIÓN / VISIÓN ============ */
.mv { position: relative; color: #fff; overflow: hidden; padding: 0; }
.mv-media { position: absolute; inset: 0; z-index: -2; }
.mv-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); }
.mv::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(1,26,53,0.9), rgba(1,26,53,0.86));
}
.mv-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--gap); padding: clamp(4rem, 8vw, 7rem) 0; }
.mv-card p { color: #D9E2ED;text-align: justify; }
.mv-divider { width: 1px; background: rgba(255,255,255,0.22); }
.mv .eyebrow-light { color: var(--orange);font-size: 1.8rem;font-weight: 800; }

/* ============ PROPUESTA DE VALOR ============ */
.value-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--gap); align-items: center; }
.value-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/3.4; object-fit: cover; }
.value-lead { color: var(--ink-soft); font-size: 1.02rem; text-align: justify;}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; margin-top: 1.8rem;align-items: start; }
.why-item h3 { font-size: 1rem; margin-bottom: .35rem; }
.why-item p { color: var(--ink-soft); font-size: 0.92rem; margin: 0;text-align: justify; }
.why-item { border-top: 2px solid var(--orange); padding-top: .8rem; }

/* ============ SERVICES ============ */
.services { background: var(--stone); }
.services-shell { margin-top: 2.6rem; display: grid; grid-template-columns: 252px 1fr; gap: clamp(1.6rem, 2.6vw, 2.4rem); align-items: start; }

.service-tabs { display: flex; flex-direction: column; gap: .5rem; position: sticky; top: 6.5rem; }
.service-tab {
  display: flex; align-items: center; gap: .85rem;
  text-align: left; background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid transparent;
  padding: .85rem 1.05rem; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 600; font-size: 0.88rem; color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.tab-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--stone);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .25s var(--ease);
}
.tab-icon svg { width: 16px; height: 16px; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-index { display: block; font-weight: 800; color: var(--line); font-size: 0.7rem; margin-bottom: 2px; }
.service-tab:hover { border-color: var(--orange); color: var(--navy); }
.service-tab.is-active { background: var(--navy); color: #fff; border-left-color: var(--orange); box-shadow: var(--shadow-soft); }
.service-tab.is-active .tab-index { color: var(--orange); }
.service-tab.is-active .tab-icon { background: rgba(255,255,255,0.14); }
.service-tab.is-active .tab-icon svg { stroke: #fff; }

.service-panel { display: none; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.service-panel.is-active { display: block; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Full, uncropped image stage: photos of any aspect ratio (portrait,
   landscape or square) are shown complete via object-fit:contain, so this
   also works unchanged once the placeholder photos are swapped for the
   final corporate imagery. The stage is edge-to-edge within the card
   (no inset padding) so the photo reads as the top of ONE continuous
   card — not a separate tinted box sitting above the text. */
.panel-media {
  position: relative;
  height: clamp(360px, 44vw, 520px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,69,0,0.08), transparent 55%),
    linear-gradient(150deg, var(--stone) 0%, #fff 70%);
}
.panel-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.panel-media-tag {
  position: absolute; left: clamp(1.4rem, 2.6vw, 2rem); top: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--navy); color: #fff; font-family: var(--f-display); font-weight: 700;
  font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(2,41,81,0.5);
}
/* Thin accent rule at the image/text seam — a single visual thread that
   ties the photo and the copy together as one card instead of two. */
.panel-media::after {
  content: '';
  position: absolute; left: clamp(1.8rem, 3vw, 3.2rem); right: clamp(1.8rem, 3vw, 3.2rem); bottom: 0;
  height: 2px; background: var(--orange);
  transform: scaleX(0.14); transform-origin: left;
}

.panel-body { padding: clamp(1.5rem, 2.4vw, 2.1rem) clamp(1.8rem, 3vw, 3.2rem) clamp(1.9rem, 2.8vw, 2.6rem); }
.panel-body h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.panel-body-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.4rem, 2.6vw, 2.2rem); align-items: center; }
.panel-intro { display: flex; flex-direction: column; justify-content: center; }
.panel-intro > p { color: var(--ink-soft); font-size: 1rem;text-align: justify; }
.panel-checklist { border-left: 1px solid var(--line); padding-left: clamp(1.4rem, 2.6vw, 2.2rem); }
.check-list-title { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: .8rem; }
.check-list { display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.5rem; font-size: 0.9rem; color: var(--ink); line-height: 1.5; text-align: justify; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--orange);
}

/* ============ EXPERIENCIA EQUIPO ============ */
.team-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--gap); align-items: center; }
.team-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 3/3.4; object-fit: cover; }
.team-text > p { color: var(--ink-soft); }
.team-facts { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
.team-fact { border-left: 3px solid var(--navy); padding-left: 1.1rem; }
.team-fact h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.team-fact p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.capacity-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .8rem;
  align-items: center;
}

.capacity-icon {
  grid-column: 1;
  grid-row: 1;
}

.capacity-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.1rem;
}

.capacity-card p {
  grid-column: 1 / -1;
  margin-top: .8rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

/* ============ SECTORES ============ */
.sectors { background: var(--stone); }
.sectors .section-lead {max-width: 900px;}
.sectors-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--gap); align-items: center; }
.sector-list { margin-top: 2rem; display: grid; gap: 1rem; }
.sector-item {
  display: flex; align-items: center; gap: 1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem;
  font-family: var(--f-display); font-weight: 600; color: var(--navy);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sector-item:hover { transform: translateX(6px); box-shadow: var(--shadow-soft); }
.sector-item svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sectors-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.sector-card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: .8rem;
}

.sector-card-body svg {
  grid-column: 1;
}

.sector-card-body h3 {
  grid-column: 2;
  margin: 0;
}

.sector-card-body p {
  grid-column: 1 / -1;
  margin-top: .7rem;
  text-align: justify;
}

/* ============ CONTACT ============ */
.contact { position: relative; color: #fff; padding: 0; overflow: hidden; }
.contact-media { position: absolute; inset: 0; z-index: -2; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(1,26,53,0.97) 38%, rgba(1,26,53,0.72) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: clamp(4rem,8vw,7rem) 0; align-items: start; }

.contact-text h2 { color: #fff; max-width: 20ch; }
.contact-list { display: grid; gap: 1.3rem; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 1.8; flex-shrink: 0; margin-top: 2px; }
.contact-label { display: block; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB3C8; margin-bottom: 2px; }
.contact-list a { font-weight: 500; color: #fff; }
.contact-list a[href^="mailto"], .contact-list a[href^="https"] { border-bottom: 1px solid rgba(255,255,255,0.3); }

.contact-social { display: flex; gap: .8rem; }
.contact-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 0.85rem;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.contact-social svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; }
.contact-social a:hover { background: var(--orange); border-color: var(--orange); }

.contact-form {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-soft);
}
.contact-form-title { font-family: var(--f-display); font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; font-family: var(--f-display); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--f-body); font-size: 0.96rem; background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255,69,0,0.15);
}
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #C0392B; }
.field-error { display: block; font-size: 0.78rem; color: #C0392B; margin-top: .3rem; min-height: 1em; }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.success { color: #1E7A46; }
.form-status.error { color: #C0392B; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-deep); color: #C9D6E6; padding: 3.8rem 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 0.85fr 1fr 1fr;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: start;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { margin: .3rem 0 0; color: #9FB3C8; font-size: 0.88rem; }
.footer-tagline { font-style: italic; color: #FF8A5C !important; }
.footer-col-title {
  display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.7rem;
  letter-spacing: .09em; text-transform: uppercase; color: #7E93AC; margin-bottom: 1.1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .65rem; }
.footer-nav a { font-size: 0.9rem; color: #C9D6E6; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--orange); }
.footer-info-list { display: flex; flex-direction: column; gap: .65rem; font-size: 0.9rem; color: #C9D6E6; }
.footer-info-list a { color: #C9D6E6; transition: color .2s var(--ease); }
.footer-info-list a:hover { color: var(--orange); }
/* Instagram en el footer */
.footer-social {
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C9D6E6;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social a:hover {
  color: var(--orange);
  border-color: var(--orange);
}
.footer-bottom { padding: 1.3rem 0 1.6rem; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: #7E93AC; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--navy); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); }

/* =========================================================
   MEGA MENU
   ========================================================= */
.mega-panel {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(1,26,53,0.4);
  padding: 1.6rem; z-index: 50;
  width: max-content; max-width: 92vw;
}
.nav-item.has-mega:hover .mega-panel,
.nav-item.has-mega:focus-within .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega-inner { display: grid; grid-template-columns: 1fr; gap: .3rem; }
.mega-inner.has-media { grid-template-columns: 300px 200px; gap: 1.6rem; }
.mega-list { display: grid; gap: .2rem; }
.mega-list.cols-2 { grid-template-columns: 1fr 1fr; gap: .2rem .8rem; }
.mega-item {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .7rem .6rem; border-radius: var(--radius);
  transition: background .2s var(--ease);
}
.mega-item:hover { background: var(--stone); }
.mega-item.is-disabled { opacity: .5; cursor: default; }
.mega-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--stone); display: flex; align-items: center; justify-content: center; }
.mega-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega-item:hover .mega-icon { background: var(--navy); }
.mega-item:hover .mega-icon svg { stroke: var(--orange); }
.mega-item strong { display: block; font-family: var(--f-display); font-size: 0.86rem; color: var(--navy); margin-bottom: 2px; }
.mega-item span.mega-desc { display: block; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.4; }
.mega-tag { font-size: 0.62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-left: .4rem; }
.mega-media { border-radius: var(--radius); overflow: hidden; position: relative; }
.mega-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.mega-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,26,53,0) 40%, rgba(1,26,53,0.75)); }
.mega-media-label {
  position: absolute; left: .9rem; bottom: .8rem; z-index: 2;
  color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; max-width: 85%;
}

/* ============ PAGE BANNER (interior pages) ============ */
.page-banner {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.page-banner-media { position: absolute; inset: 0; z-index: -2; }
.page-banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.page-banner-media img[src*="servicio-infraestructura-vial"] { object-position: center 35.5%; }
.page-banner-media img[src*="sectores-red-planos"] { object-position: center 48%; }
.page-banner-media img[src*="experiencia-equipo-via"] { object-position: center 28%; }
.page-banner-media img[src*="contacto-casco-planos"] { object-position: center 29.5%; }
.page-banner-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,26,53,0.55) 0%, rgba(1,26,53,0.5) 45%, rgba(1,26,53,0.94) 100%);
}
.page-banner-content { position: relative; padding: 9rem 0 3.4rem; color: #fff; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: 0.8rem; color: #C9D6E6; margin-bottom: 1rem; font-family: var(--f-display); font-weight: 600; letter-spacing: .03em; }
.breadcrumb a { color: #C9D6E6; transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb svg { width: 7px; height: 7px; opacity: .55; }
.breadcrumb svg path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-banner-content h1 { color: #fff; max-width: 26ch; font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .5em; }
.page-banner-lead { max-width: 58ch; color: #E4EBF3; font-size: 1.05rem; margin: 0; }

/* ============ HOME: SERVICE TEASER GRID ============ */
.teaser-grid { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.teaser-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.teaser-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.teaser-media { aspect-ratio: 4/3; overflow: hidden; }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.teaser-card:hover .teaser-media img { transform: scale(1.08); }
.teaser-body { padding: 1.2rem 1.1rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.teaser-num { font-family: var(--f-display); font-weight: 800; color: var(--orange); font-size: 0.78rem; }
.teaser-body h3 { font-size: 1rem; margin: .4rem 0 .5rem; }
.teaser-body p { font-size: 0.86rem; color: var(--ink-soft); flex: 1; margin-bottom: .8rem; }
.teaser-link { font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; display: inline-flex; align-items: center; gap: .3rem; }
.teaser-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.teaser-card:hover .teaser-link svg { transform: translateX(4px); }

/* ============ HOME: STRIP CTA ============ */
.strip-cta {
  background: var(--navy); color: #fff; text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative; overflow: hidden;
}
.strip-cta h2 { color: #fff; max-width: 30ch; margin-inline: auto; }
.strip-cta p { color: #C9D6E6; max-width: 52ch; margin: 0 auto 2rem; }
.strip-cta .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ SECTION LINK-BACK (page footer navigation) ============ */
.next-section {
  border-top: 1px solid var(--line); margin-top: 0; padding: 2.2rem 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex-wrap: wrap;
}
.z { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-family: var(--f-display); font-weight: 600; }
.next-section-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-weight: 700; color: var(--navy); font-size: 1rem; }
.next-section-link svg { width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 2; transition: transform .25s var(--ease); }
.next-section-link:hover svg { transform: translateX(5px); }

/* ============ EXPERIENCIA: capacities + placeholder ============ */
.capacities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.capacity-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.capacity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--orange); }
.capacity-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--stone); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.capacity-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.capacity-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.capacity-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.projects-placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 2.4rem;
  text-align: center; margin-top: 2.6rem; background: var(--stone);
}
.projects-placeholder h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.projects-placeholder p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; font-size: 0.92rem; }
.projects-placeholder .mega-tag { margin-left: 0; }

/* ============ SECTORES page cards ============ */
.sector-cards { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.sector-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; scroll-margin-top: 7rem;
}
.sector-card-media { aspect-ratio: 16/10; overflow: hidden; }
.sector-card-media img { width: 100%; height: 100%; object-fit: cover; }
.sector-card:first-child .sector-card-media img {
  object-position: 30% center;
}

.sector-card-body { padding: 1.6rem; }
.sector-card-body svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.sector-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.sector-card-body p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ============ CONTACT page: extra rows (whatsapp / nit) ============ */
.contact-list a.wa-link { color: #fff; }
.contact-quick { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.contact-quick .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Anchor offset so fixed header doesn't cover targets */
[id] { scroll-margin-top: 6.5rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1020px) {
  .who-grid, .value-grid, .team-grid, .sectors-grid, .contact-grid { grid-template-columns: 1fr; }
  .who-media, .value-media { order: -1; }
  .services-shell { grid-template-columns: 1fr; }
  .service-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
  .panel-body-grid { grid-template-columns: 1fr; }
  .panel-checklist { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .mv-divider { width: 100%; height: 1px; }
  .teaser-grid { grid-template-columns: repeat(3, 1fr); }
  .capacities-grid, .sector-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 82%);
    max-height: 100vh;
    background: var(--navy-deep);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 4.5rem 1.6rem 2rem;
    z-index: 95;
    overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); box-shadow: -20px 0 40px rgba(0,0,0,.3); }
  .main-nav ul { flex-direction: column; gap: .2rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; z-index: 96; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 2rem;
  row-gap: 1.5rem;
}

.footer-brand {
  grid-column: 1 / -1;
  grid-row: 1;
}

.footer-inner > div:nth-child(2) {
  grid-column: 1;
  grid-row: 2 / 4;
}

.footer-inner > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.footer-inner > div:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}
  /* Mobile mega menu -> accordion */
  .nav-link { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; }
  .nav-item { flex-direction: column; align-items: stretch; }
  .mega-toggle { width: 44px; height: 44px; color: #fff; }
  .mega-toggle .nav-caret { width: 11px; height: 11px; }
  .nav-item.is-expanded .mega-toggle .nav-caret { transform: rotate(180deg); }
  .mega-panel {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none !important;
    background: transparent; box-shadow: none; padding: 0; width: 100%;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav-item.is-expanded .mega-panel { max-height: 1000px; padding: .6rem 0 1rem; }
  .mega-inner, .mega-inner.has-media { grid-template-columns: 1fr; gap: 0; }
  .mega-media { display: none; }
  .mega-list.cols-2 { grid-template-columns: 1fr; }
  .mega-item { padding: .6rem .3rem; }
  .mega-item strong, .mega-item .mega-desc { color: #EAF0F7; }
  .mega-item .mega-desc { color: #9FB3C8; }
  .mega-item:hover { background: rgba(255,255,255,0.06); }
  .mega-icon { background: rgba(255,255,255,0.08); }
  .mega-icon svg { stroke: #fff; }
}

@media (max-width: 560px) {
  .hero-content, .page-banner-content { padding-top: 7rem; }
  .service-tabs { flex-direction: column; }
  .teaser-grid { grid-template-columns: 1fr; }
  .strip-cta .btn-group { flex-direction: column; align-items: stretch; }
}
