:root {
  --navy: #072a46;
  --navy-deep: #041d32;
  --blue: #0b78bd;
  --green: #2ba745;
  --green-bright: #78bd2e;
  --orange: #f28c18;
  --ink: #15243a;
  --muted: #5f6c7d;
  --line: #dbe3e9;
  --surface: #f5f8fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(5, 35, 59, .12);
  --radius: 22px;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 124px;
  --header-compact-height: 104px;
  --anchor-offset: 132px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
body { max-width: 100%; margin: 0; overflow-x: clip; color: var(--ink); background: var(--white); font-family: "Montserrat", "Aptos", "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
section[id], header[id], main[id] { scroll-margin-top: var(--anchor-offset); }
button, input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); margin-bottom: 24px; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { color: var(--muted); }
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(82px, 7vw, 112px) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-150%); z-index: 1000; padding: 10px 16px; background: var(--white); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--navy); background: rgba(255,255,255,.96); box-shadow: 0 8px 30px rgba(3,28,48,.09); backdrop-filter: blur(16px); transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled, .site-header.menu-open { background: rgba(255,255,255,.96); color: var(--navy); box-shadow: 0 8px 30px rgba(3,28,48,.09); backdrop-filter: blur(16px); }
.nav-shell { width: var(--container); min-height: var(--header-height); margin: auto; padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; transition: min-height .25s ease, padding .25s ease; }
.site-header.scrolled .nav-shell, .site-header.menu-open .nav-shell { min-height: var(--header-compact-height); padding-block: 10px; }
.brand { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; width: fit-content; height: auto; max-width: none; padding: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.logo { display: block; flex: 0 0 auto; width: auto; min-width: 0; height: auto; max-width: none; max-height: 84px; object-fit: contain; object-position: left center; transition: max-height .25s ease, opacity .25s ease; }
.site-header.scrolled .brand, .site-header.menu-open .brand { width: auto; height: auto; max-width: none; background: transparent; box-shadow: none; }
.site-header.scrolled .logo, .site-header.menu-open .logo { max-height: 76px; }
.main-nav { display: flex; align-items: center; gap: 29px; font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--green); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 11px 19px !important; border: 1px solid var(--green); border-radius: 999px; color: #23883a; }
.site-header.scrolled .nav-cta { border-color: var(--green); color: var(--green); }
.language-switcher { display: inline-flex; align-items: center; gap: 6px; margin-left: -8px; color: #71808d; font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
.language-switcher button { padding: 5px 2px; color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer; transition: color .2s ease; }
.language-switcher button:hover, .language-switcher button:focus-visible, .language-switcher button[aria-pressed="true"] { color: var(--green); }
.nav-toggle { display: none; width: 45px; height: 45px; padding: 11px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: var(--white); }
.hero-media { position: absolute; inset: 0; background: url("assets/images/hero-renovable.webp") center 55% / cover no-repeat; transform: scale(1.01); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,28,48,.9) 0%, rgba(3,35,58,.68) 42%, rgba(3,35,58,.12) 78%), linear-gradient(0deg, rgba(2,24,41,.55), transparent 50%); }
.hero-content { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 150px; }
.eyebrow, .kicker { margin-bottom: 20px; color: #23883a; font-size: 1rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #b6f06d; }
.hero h1 { max-width: 960px; margin: 0 0 28px; font-size: clamp(4rem, 8vw, 7.8rem); font-weight: 800; letter-spacing: -.018em; }
.hero h1 span { color: #66d154; }
.hero-copy { max-width: 660px; margin-bottom: 38px; color: rgba(255,255,255,.87); font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 25px; border-radius: 999px; font-size: 1rem; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: #229239; }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.5); background: rgba(4,33,55,.18); backdrop-filter: blur(8px); }
.button-ghost:hover { background: var(--white); color: var(--navy); }
.hero-capabilities { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 40px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; color: var(--white); font-size: 1rem; font-weight: 800; letter-spacing: .015em; }
.hero-capabilities span { position: relative; display: flex; align-items: center; min-height: 62px; padding: 15px 18px; overflow: hidden; background: rgba(3,31,52,.76); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.hero-capabilities span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green-bright); }
.hero-capabilities span:nth-child(2)::before { background: var(--blue); }
.hero-capabilities span:nth-child(3)::before { background: var(--orange); }
.hero-capabilities span:nth-child(4)::before { background: #64ca55; }
.scroll-cue { position: absolute; right: 35px; bottom: 32px; z-index: 4; width: 28px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--white); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

.split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.about .split-grid { width: var(--container); grid-template-columns: .88fr 1.12fr; gap: clamp(54px, 6vw, 88px); }
.section-copy .lead { color: var(--ink); font-size: clamp(1.16rem, 2vw, 1.4rem); line-height: 1.55; }
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; padding-top: 0; border-top: 0; }
.value-row div { position: relative; min-height: 132px; padding: 24px 20px 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 9px 25px rgba(6,43,71,.07); }
.value-row div::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--green); }
.value-row div:nth-child(2)::before { background: var(--blue); }
.value-row div:nth-child(3)::before { background: var(--orange); }
.value-row strong, .value-row span { display: block; }
.value-row strong { color: var(--navy); font-size: 1.08rem; line-height: 1.25; }
.value-row span { margin-top: 9px; color: #4f5d6e; font-size: 1rem; line-height: 1.5; }
.about-visual { margin: 0; position: relative; transition: transform .45s ease, filter .45s ease; }
.about-visual:hover { transform: translateY(-7px); filter: saturate(1.04); }
.about-visual img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 65px rgba(5,35,59,.16); }
.about-visual figcaption { position: absolute; left: 28px; right: 28px; bottom: 22px; padding: 16px 18px; color: var(--white); background: rgba(5,37,61,.92); border-radius: 12px; backdrop-filter: blur(10px); font-size: 1rem; }

.services { background: var(--surface); }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading > p:last-child { max-width: 650px; font-size: 1.08rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; min-height: 390px; padding: 30px 24px 25px; display: grid; grid-template-rows: 82px auto 1fr auto; align-items: start; overflow: hidden; background: var(--white); border: 1px solid #e1e9ee; border-radius: 20px; box-shadow: 0 14px 38px rgba(6,43,71,.07); transition: transform .28s ease, box-shadow .28s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-topline { position: absolute; inset: 0 0 auto; height: 5px; background: currentColor; }
.service-card img { width: 76px; height: 76px; margin: 0 auto; object-fit: contain; }
.service-card h3 { min-height: 2.55em; margin: 9px 0 13px; color: currentColor; text-align: center; font-size: 1.35rem; }
.service-card p { margin: 0 0 20px; font-size: 1rem; line-height: 1.58; }
.service-card .result { display: flex; align-items: center; min-height: 52px; width: 100%; margin-top: 4px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem; font-weight: 800; line-height: 1.35; }
.service-green { color: #23883a; }
.service-blue { color: #0867a2; }
.service-slate { color: #506071; }
.service-orange { color: #a94f00; }

.capability-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px; background: var(--navy-deep); }
.story { position: relative; min-width: 0; min-height: clamp(520px, 45vw, 680px); overflow: hidden; background: var(--navy-deep); isolation: isolate; }
.story-media { position: absolute; inset: 0; overflow: hidden; background: var(--navy-deep); }
.story-media::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(3,29,49,.05) 25%, rgba(3,29,49,.3) 58%, rgba(3,29,49,.94) 100%); }
.story-territory { --story-image: url("assets/images/desarrollo-territorial.webp"); }
.story-engineering { --story-image: url("assets/images/ingenieria-construccion.webp"); }
.story-supply { --story-image: url("assets/images/suministro-industrial.webp"); }
.story-support { --story-image: url("assets/images/soporte-integral.webp"); }
.story-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .75s ease; }
.story-territory .story-media img { object-fit: contain; object-position: center; background: #dfe9ee; }
.story-engineering .story-media img { object-position: center 42%; }
.story-supply .story-media img { object-position: center 50%; }
.story-support .story-media img { object-position: 60% center; }
.story:hover .story-media img { transform: scale(1.035); filter: saturate(1.06); }
.story-copy { position: absolute; z-index: 2; inset: auto 0 0; padding: 36px 7% 42px; color: var(--white); }
.story-copy > span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 17px; color: var(--navy-deep); background: #8fe650; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; box-shadow: 0 8px 22px rgba(3,29,49,.3); font-size: 1.4rem; font-weight: 900; letter-spacing: 0; }
.story h3 { margin: 0 0 12px; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.story p { max-width: 540px; margin-bottom: 0; color: rgba(255,255,255,.88); text-shadow: 0 2px 12px rgba(0,0,0,.25); }

.markets { background: var(--white); }
.markets .section-heading { margin-bottom: -8px; }
.markets .section-heading .kicker { margin-bottom: 14px; }
.markets .section-heading h2 { margin-bottom: 16px; }
.markets .section-heading > p:last-child { margin-bottom: 0; }
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.market-card { position: relative; min-height: 360px; margin: 0; overflow: hidden; border-radius: 18px; background: var(--navy); }
.market-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(2,28,47,.96), rgba(2,28,47,0)); }
.market-card img { width: 100%; height: 100%; position: absolute; object-fit: cover; transition: transform .6s ease; }
.market-card:hover img { transform: scale(1.045); }
.market-card > div { position: absolute; z-index: 2; left: 26px; right: 24px; bottom: 25px; color: var(--white); }
.market-card span { visibility: hidden; color: #a9ef70; font-size: 1rem; font-weight: 800; letter-spacing: .12em; }
.market-card h3 { margin: 7px 0 0; font-size: 1.45rem; }

.experience { padding-top: clamp(73px, 6.2vw, 100px); padding-bottom: 0; overflow: hidden; color: var(--white); background: var(--navy); }
.experience-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(48px, 6vw, 82px); align-items: start; padding-bottom: 73px; }
.kicker-light { color: #8fda5d; }
.experience h2 { margin-bottom: 18px; color: var(--white); }
.experience-copy > p:not(.kicker) { color: rgba(255,255,255,.9); }
.experience-list { margin: 25px 0 0; padding: 0; list-style: none; }
.experience-list li { position: relative; padding: 9px 0 9px 27px; color: rgba(255,255,255,.9); font-size: 1rem; }
.experience-list li::before { content: ""; position: absolute; top: 19px; left: 0; width: 10px; height: 10px; border: 2px solid var(--green-bright); border-radius: 50%; }
.text-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 7px; border-bottom: 2px solid var(--green); color: var(--white); font-size: 1rem; font-weight: 800; }
.text-link span { color: #92dd59; }
.experience-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 286px 230px 230px 230px; gap: 7px; }
.experience-gallery figure { position: relative; isolation: isolate; min-width: 0; margin: 0; overflow: hidden; background: #0a3657; }
.experience-gallery .gallery-main { grid-column: 1 / 8; grid-row: 1 / 3; }
.experience-gallery .gallery-solar { grid-column: 8 / 13; grid-row: 1; }
.experience-gallery .gallery-zanja { grid-column: 8 / 13; grid-row: 2; }
.experience-gallery .gallery-electrica { grid-column: 1 / 7; grid-row: 3; }
.experience-gallery .gallery-territorial { grid-column: 7 / 13; grid-row: 3; }
.experience-gallery .gallery-territorial img { object-position: center 50%; }
.experience-gallery .gallery-suministro { grid-column: 1 / 13; grid-row: 4; }
.experience-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.25,1); }
.experience-gallery figure::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(2,25,43,0) 32%, rgba(2,25,43,.2) 55%, rgba(2,21,36,.94) 100%); pointer-events: none; }
.experience-gallery figure:hover img { transform: scale(1.025); }
.experience-gallery figcaption { position: absolute; z-index: 2; inset: auto 0 0; display: grid; gap: 7px; padding: 24px 26px 26px; color: var(--white); background: none; border-radius: 0; }
.experience-gallery figcaption strong { color: var(--white); font-size: 1.02rem; font-weight: 850; line-height: 1.2; letter-spacing: -.01em; }
.experience-gallery figcaption span { max-width: 44ch; color: rgba(255,255,255,.84); font-size: .9rem; font-weight: 400; line-height: 1.42; }
.experience-gallery .gallery-suministro img { object-position: center top; }
.client-band { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 16px; padding: 42px max(20px, calc((100% - 1180px) / 2)) 48px; border-top: 1px solid rgba(255,255,255,.14); background: var(--navy-deep); }
.client-band::before { content: "Experiencia desarrollada junto a"; grid-column: 1 / -1; margin-bottom: 4px; color: rgba(255,255,255,.9); font-size: 1rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.client-logo { min-height: 108px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; background: var(--white); border-radius: 14px; }
.client-logo img { max-width: 100%; width: auto; height: 40px; object-fit: contain; }
.client-logo-wide img { height: 48px; }
.client-logo-prodiel img { width: 92%; height: 54px; }
.client-logo span { color: var(--navy); font-size: 1rem; font-weight: 800; line-height: 1.2; text-align: center; }

.trajectory { position: relative; padding: clamp(90px, 10vw, 138px) 0; overflow: hidden; color: var(--white); background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 64%, #0a4268 100%); }
.trajectory::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 18%, rgba(48,174,214,.12), transparent 30%), linear-gradient(90deg, transparent 0%, rgba(255,255,255,.025) 100%); }
.trajectory .container { position: relative; z-index: 1; }
.trajectory-heading { max-width: 980px; margin-bottom: clamp(48px, 7vw, 72px); }
.trajectory .kicker { color: #9bea61; }
.trajectory h2 { max-width: 800px; margin-bottom: 28px; color: var(--white); font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.trajectory-intro { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.08rem; line-height: 1.7; }
.trajectory-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,.25); }
.trajectory-stat { min-width: 0; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.trajectory-value { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0 0 20px; color: var(--white); font-weight: 900; letter-spacing: -.045em; line-height: .92; }
.trajectory-prefix, .trajectory-number { font-size: clamp(3.4rem, 7vw, 6.6rem); }
.trajectory-unit { margin-left: 8px; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.02em; }
.trajectory-label { max-width: 30ch; margin: 0; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.62; }
.trajectory-integral { display: flex; flex-direction: column; justify-content: flex-end; }
.trajectory-integral h3 { max-width: 280px; margin: 0 0 23px; color: var(--white); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.02; letter-spacing: -.035em; }
.trajectory.is-observed .trajectory-stat { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.trajectory.is-observed.is-visible .trajectory-stat { opacity: 1; transform: none; }
.trajectory.is-observed.is-visible .trajectory-stat:nth-child(2) { transition-delay: .08s; }
.trajectory.is-observed.is-visible .trajectory-stat:nth-child(3) { transition-delay: .16s; }
.trajectory.is-observed.is-visible .trajectory-stat:nth-child(4) { transition-delay: .24s; }

.methodology { background: var(--surface); }
.process { display: grid; grid-template-columns: repeat(6, 1fr); margin: 30px 0 75px; padding: 0; list-style: none; counter-reset: step; }
.process li { position: relative; inset: auto; min-height: 170px; padding: 0 20px 0 0; transform: none; }
.process li::before { content: ""; position: absolute; top: 35px; left: 46px; right: 0; height: 2px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.process li:last-child::before { display: none; }
.process span { position: relative; z-index: 2; display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 22px; color: var(--white); background: var(--navy); border: 7px solid var(--surface); outline: 2px solid #d8e4ea; border-radius: 50%; font-size: 1rem; font-weight: 800; }
.process li:nth-child(3n+1) span, .process li:last-child span { background: #1f7a34; }
.process li:nth-child(5) span { background: #9b4b00; }
.process strong, .process small { position: static; inset: auto; display: block; transform: none; }
.process strong { color: var(--navy); font-size: 1rem; }
.process small { margin-top: 6px; color: #4f5d6e; font-size: 1rem; line-height: 1.45; }
.methodology-subheading { margin: 0 0 24px; }
.methodology-subheading .kicker { margin-bottom: 10px; }
.methodology-subheading h3 { max-width: 720px; margin: 0; color: var(--navy); font-size: clamp(1.6rem, 2.5vw, 2.35rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: reason; background: var(--white); border: 1px solid #cedbe3; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 46px rgba(5,35,59,.09); }
.why-grid div { position: relative; min-height: 250px; padding: 70px 32px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--white), #f9fbfc); counter-increment: reason; transition: transform .22s ease, background .22s ease; }
.why-grid div::before { content: "0" counter(reason); position: absolute; top: 24px; left: 28px; visibility: hidden; color: #23883a; font-size: 1rem; font-weight: 900; letter-spacing: .08em; }
.why-grid div::after { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--green); }
.why-grid div:nth-child(2)::after, .why-grid div:nth-child(3)::after { background: var(--blue); }
.why-grid div:nth-child(4)::after { background: var(--orange); }
.why-grid div:nth-child(5)::after { background: var(--navy); }
.why-grid div:nth-child(6)::after { background: var(--green); }
.why-grid div:hover { background: #f3f8fa; }
.why-grid div:nth-child(3) { border-right: 0; }
.why-grid div:nth-child(n+4) { border-bottom: 0; }
.why-grid div:last-child { border-right: 0; }
.why-grid strong { display: block; margin-bottom: 14px; color: var(--navy); font-size: 1.2rem; line-height: 1.25; }
.why-grid p { margin: 0; font-size: 1rem; line-height: 1.55; }

.contact { position: relative; padding: clamp(90px, 10vw, 150px) 0; overflow: hidden; color: var(--white); background: linear-gradient(120deg, var(--navy-deep), #07517d); }
.contact::before { content: ""; position: absolute; inset: 0; opacity: .14; background: radial-gradient(circle at 20% 30%, var(--blue), transparent 35%), radial-gradient(circle at 80% 70%, var(--green), transparent 28%); }
.contact-mark { position: absolute; right: -6%; top: -32%; width: min(600px, 55vw); opacity: .07; transform: rotate(-9deg); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(50px, 7vw, 100px); align-items: start; }
.contact h2 { max-width: 720px; color: var(--white); }
.contact-copy > p:last-child { max-width: 640px; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.contact-actions { display: grid; }
.contact-actions a, .contact-actions div { display: grid; gap: 2px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-actions span { color: #a9ef70; font-size: 1rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-actions strong { color: var(--white); font-size: clamp(1rem, 2vw, 1.25rem); }
.contact-actions a:hover strong { color: #a6ec75; }
.contact-form { padding: clamp(28px, 4vw, 44px); color: var(--ink); background: rgba(255,255,255,.98); border-radius: 20px; box-shadow: 0 26px 70px rgba(0,0,0,.2); }
.form-heading { display: grid; gap: 4px; margin-bottom: 24px; }
.form-heading span { color: #23883a; font-size: 1rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.form-heading strong { color: var(--navy); font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.contact-form label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--navy); font-size: 1rem; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--surface); border: 1px solid #d2dde4; border-radius: 9px; font: inherit; font-size: 1rem; outline: none; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43,167,69,.14); }
.contact-form .button { width: 100%; border: 0; cursor: pointer; }
.form-note, .form-status { margin: 12px 0 0; color: #4f5d6e; font-size: 1rem; line-height: 1.5; }
.form-status { min-height: 1.2em; font-weight: 700; }
.form-status.success { color: #147c2b; }
.form-status.error { color: #b93b2d; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { color: rgba(255,255,255,.88); background: #031522; }
.footer-grid { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; width: auto; max-width: 220px; min-height: 0; padding: 8px; overflow: visible; background: var(--white); border-radius: 12px; }
.footer-brand img { display: block; width: 100%; max-width: 220px; height: auto; object-fit: contain; }
.footer-grid p { margin: 0; color: inherit; font-size: 1rem; }
.footer-grid p:nth-child(2) { color: var(--white); font-weight: 700; }
.footer-grid p:last-child { text-align: right; }
.cookie-banner[hidden], .cookie-preferences-backdrop[hidden], .cookie-settings-trigger[hidden] { display: none !important; }
.cookie-banner { position: fixed; z-index: 120; right: 18px; bottom: 18px; left: 18px; color: rgba(255,255,255,.9); background: rgba(3,21,34,.98); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; box-shadow: 0 20px 55px rgba(0,0,0,.3); backdrop-filter: blur(14px); }
.cookie-banner-inner { width: min(100% - 36px, 1180px); margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cookie-banner strong { display: block; margin-bottom: 6px; color: var(--white); font-size: 1rem; }
.cookie-banner p { max-width: 780px; margin: 0; color: inherit; font-size: .92rem; line-height: 1.5; }
.cookie-banner-actions, .cookie-preferences-actions { display: flex; align-items: center; gap: 10px; }
.cookie-button { min-width: 108px; min-height: 42px; padding: 9px 16px; color: var(--white); border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.cookie-button:hover, .cookie-button:focus-visible { transform: translateY(-1px); }
.cookie-accept { background: var(--green); border-color: var(--green); }
.cookie-reject { background: #1d506c; border-color: #3f718b; }
.cookie-preferences-link { padding: 8px 4px; color: rgba(255,255,255,.86); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.45); font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.cookie-preferences-link:hover, .cookie-preferences-link:focus-visible { color: var(--white); border-color: var(--green); }
.cookie-preferences-backdrop { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,17,29,.68); backdrop-filter: blur(5px); }
.cookie-preferences-panel { position: relative; width: min(100%, 590px); max-height: calc(100vh - 48px); overflow-y: auto; padding: 34px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 26px 70px rgba(0,0,0,.3); }
.cookie-preferences-panel .kicker { margin-bottom: 8px; }
.cookie-preferences-panel h2 { margin: 0 40px 12px 0; color: var(--navy); font-size: 1.8rem; line-height: 1.15; }
.cookie-preferences-panel > p:not(.kicker) { margin: 0 0 24px; color: #4f5d6e; line-height: 1.55; }
.cookie-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--navy); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.cookie-category { padding: 18px 0; border-top: 1px solid var(--line); }
.cookie-category div { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.cookie-category strong { color: var(--navy); }
.cookie-category span { color: var(--green); font-size: .82rem; font-weight: 800; text-align: right; }
.cookie-category p { margin: 7px 0 0; color: #5d6975; font-size: .9rem; line-height: 1.5; }
.cookie-preferences-actions { margin-top: 18px; }
.cookie-settings-trigger { position: fixed; z-index: 88; left: 18px; bottom: 18px; padding: 8px 13px; color: rgba(255,255,255,.9); background: rgba(3,34,56,.9); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.2); font-size: .78rem; font-weight: 750; cursor: pointer; backdrop-filter: blur(8px); }
.whatsapp-float { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: grid; place-items: center; width: 58px; height: 58px; background: #25d366; border: 4px solid var(--white); border-radius: 50%; box-shadow: 0 12px 28px rgba(0,0,0,.25); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
.back-to-top { position: fixed; z-index: 89; right: 22px; bottom: 94px; min-height: 46px; padding: 0 16px 0 13px; display: flex; align-items: center; gap: 8px; color: var(--navy); background: rgba(255,255,255,.95); border: 1px solid rgba(7,42,70,.14); border-radius: 999px; box-shadow: 0 10px 26px rgba(3,30,50,.18); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, color .2s ease, background .2s ease; backdrop-filter: blur(12px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { color: var(--white); background: var(--navy); }
.back-to-top span { color: var(--green); font-size: 1.2rem; font-weight: 900; line-height: 1; }
.back-to-top strong { font-size: 1rem; letter-spacing: .03em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.service-grid .reveal:nth-child(2), .value-row div:nth-child(2) { transition-delay: .08s; }
.service-grid .reveal:nth-child(3), .value-row div:nth-child(3) { transition-delay: .16s; }
.service-grid .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 1050px) {
  .service-grid, .market-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 370px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid div:nth-child(3) { border-right: 1px solid var(--line); }
  .why-grid div:nth-child(2n) { border-right: 0; }
  .why-grid div { border-bottom: 1px solid var(--line); }
  .why-grid div:nth-child(n+5) { border-bottom: 0; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .process li:nth-child(3)::before, .process li:nth-child(6)::before { display: none; }
  .client-band { grid-template-columns: repeat(4, 1fr); }
}

/* Encuadre compacto para pantallas de escritorio de poca altura.
   Mantiene legibilidad y permite ver completos los bloques al usar el menú. */
@media (min-width: 841px) and (max-height: 900px) {
  .section { padding: 72px 0; }
  .about .split-grid { align-items: start; }
  .services .section-heading { margin-bottom: 48px; }
  .experience { padding-top: 76px; }
}

/* Refinamiento visual de escritorio: ritmo, tipografía, superficies y cierre. */
@media (min-width: 841px) {
  .main-nav a:not(.nav-cta) { isolation: isolate; transition: color .2s ease; }
  .main-nav a:not(.nav-cta)::before { content: ""; position: absolute; z-index: -1; inset: 2px -12px; background: transparent; border: 1px solid rgba(7,42,70,.18); border-radius: 999px; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .main-nav a:not(.nav-cta):hover,
  .main-nav a:not(.nav-cta):focus-visible,
  .main-nav a:not(.nav-cta).is-active { color: var(--green); }
  .main-nav a:not(.nav-cta):hover::before,
  .main-nav a:not(.nav-cta):focus-visible::before { background: rgba(43,167,69,.08); border-color: rgba(43,167,69,.42); }
  .main-nav a:not(.nav-cta).is-active::before { background: rgba(43,167,69,.13); border-color: rgba(43,167,69,.7); box-shadow: 0 4px 12px rgba(7,42,70,.08); }
  .nav-cta { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
  .nav-cta:hover, .nav-cta:focus-visible, .nav-cta.is-active { color: var(--white); background: var(--green); border-color: var(--green); }

  .section { padding: clamp(104px, 8vw, 128px) 0; }
  .about h2, .services h2, .markets h2, .experience h2, .contact h2 {
    max-width: 820px;
    font-size: clamp(3rem, 4.25vw, 4.15rem);
    line-height: 1.04;
    letter-spacing: -.035em;
  }
  .section-heading { max-width: 840px; margin-bottom: 54px; }
  .section-heading > p:last-child,
  .section-copy > p:not(.kicker),
  .experience-copy > p:not(.kicker),
  .contact-copy > p:last-child { max-width: 62ch; line-height: 1.6; }

  .hero { min-height: 100svh; }
  .hero-media { background-position: center 52%; transform: scale(1.035); }
  .hero-overlay { background: radial-gradient(circle at 72% 38%, rgba(14,89,115,.08), rgba(2,25,43,0) 34%), linear-gradient(90deg, rgba(2,25,43,.94) 0%, rgba(3,34,56,.8) 38%, rgba(3,35,58,.3) 67%, rgba(3,31,52,.08) 100%), linear-gradient(0deg, rgba(2,24,41,.68) 0%, rgba(2,24,41,.08) 58%); }
  .hero-content { max-width: 1280px; padding-top: clamp(145px, 17vh, 190px); padding-bottom: 120px; }
  .hero .eyebrow { margin-bottom: 30px; font-size: .98rem; letter-spacing: .22em; }
  .hero h1 { max-width: 960px; margin-bottom: 38px; font-size: clamp(5rem, 7.4vw, 7.6rem); line-height: .89; letter-spacing: -.045em; text-shadow: 0 8px 34px rgba(1,19,32,.2); }
  .hero-copy { max-width: 670px; margin-bottom: 50px; font-size: 1.34rem; line-height: 1.62; }
  .hero-actions { gap: 20px; align-items: center; }
  .hero .button-primary { min-width: 224px; padding: 17px 27px; box-shadow: 0 14px 32px rgba(20,148,62,.26); }
  .hero .button-ghost { min-width: 0; padding: 14px 4px 11px; border-width: 0 0 1px; border-radius: 0; color: rgba(255,255,255,.9); background: transparent; }
  .hero .button-ghost:hover { color: var(--white); background: transparent; border-color: var(--white); transform: translateY(-2px); }
  .hero-capabilities { bottom: 0; width: min(1280px, calc(100% - 64px)); gap: 0; background: rgba(3,31,52,.7); border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(16px); }
  .hero-capabilities span { min-height: 86px; padding: 22px 30px; background: transparent; border: 0; border-left: 1px solid rgba(255,255,255,.18); border-radius: 0; box-shadow: none; font-size: 1.04rem; }
  .hero-capabilities span:first-child { border-left: 0; }

  .about { padding-top: 128px; padding-bottom: 118px; }
  .about .split-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(46px, 4.5vw, 64px); align-items: center; }
  .about .section-copy { display: flex; flex-direction: column; max-width: none; padding: 12px 0 6px; }
  .about h2 { max-width: 690px; margin-bottom: 34px; font-size: clamp(3.35rem, 4.6vw, 4.55rem); }
  .about .lead { max-width: 650px; font-size: 1.17rem; line-height: 1.7; }
  .about .section-copy > p:not(.kicker):not(.lead) { max-width: 620px; }
  .about-visual { min-height: 0; }
  .about-visual img { height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 76px rgba(5,35,59,.15); }
  .about-visual figcaption { position: static; margin: 14px 22px 0; padding: 18px 20px; border-radius: 3px; }
  .value-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: auto; padding-top: 44px; border-top: 0; }
  .value-row div { min-height: 104px; padding: 26px 24px 0; overflow: visible; background: transparent; border: 0; border-left: 1px solid #d0dce3; border-radius: 0; box-shadow: none; }
  .value-row div:first-child { padding-left: 0; border-left: 0; }
  .value-row div::before { top: 0; left: 24px; width: 46px; height: 3px; }
  .value-row div:first-child::before { left: 0; }
  .value-row strong { font-size: 1.2rem; font-weight: 900; line-height: 1.18; }
  .value-row span { margin-top: 11px; font-size: .97rem; line-height: 1.5; }

  .services { padding-top: 126px; padding-bottom: 86px; background: #f3f7f9; }
  .services .section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); column-gap: 72px; align-items: end; max-width: none; margin-bottom: 66px; }
  .services .section-heading .kicker { grid-column: 1 / -1; }
  .services .section-heading h2 { margin-bottom: 0; }
  .services .section-heading > p:last-child { margin: 0 0 7px; font-size: 1.08rem; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid #bdcdd6; border-bottom: 1px solid #bdcdd6; }
  .service-card { min-height: 386px; padding: 40px 30px 32px; grid-template-rows: 98px auto minmax(0, 1fr) auto; background: transparent; border: 0; border-left: 1px solid #cedbe2; border-radius: 0; box-shadow: none; }
  .service-card:first-child { border-left: 0; }
  .service-card:hover { transform: none; background: rgba(255,255,255,.5); box-shadow: none; }
  .service-topline { inset: -1px auto auto 30px; width: 54px; height: 4px; }
  .service-card img { width: 81px; height: 81px; margin: 0 auto; }
  .service-card h3 { min-height: 2.3em; margin: 20px 0 18px; text-align: left; font-size: 1.5rem; font-weight: 900; line-height: 1.15; }
  .service-card p { margin-bottom: 24px; font-size: .98rem; line-height: 1.65; }
  .service-card .result { min-height: 50px; margin-top: 8px; padding-top: 16px; font-size: .96rem; }

  .capability-stories { display: block; padding: 0; background: var(--navy-deep); }
  .story { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(420px, .84fr); grid-template-rows: minmax(0, 1fr); height: clamp(440px, 39vw, 500px); min-height: 0; overflow: hidden; background: var(--navy-deep); }
  .story + .story { border-top: 1px solid rgba(255,255,255,.12); }
  .story:nth-child(even) { grid-template-columns: minmax(420px, .84fr) minmax(0, 1.16fr); }
  .story-media { position: relative; inset: auto; grid-column: 1; grid-row: 1; height: 100%; min-height: 0; }
  .story:nth-child(even) .story-media { grid-column: 2; }
  .story-media::after { background: linear-gradient(90deg, rgba(3,29,49,.02) 58%, rgba(3,29,49,.22) 100%); }
  .story:nth-child(even) .story-media::after { background: linear-gradient(270deg, rgba(3,29,49,.02) 58%, rgba(3,29,49,.22) 100%); }
  .story-media img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-position: center; }
  .story-copy { position: relative; inset: auto; grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 6vw, 90px); color: var(--white); background: var(--navy-deep); }
  .story:nth-child(even) .story-copy { grid-column: 1; }
  .story-copy > span { width: 46px; height: 46px; margin-bottom: 28px; border: 0; box-shadow: none; font-size: 1.12rem; }
  .story h3 { max-width: 460px; margin-bottom: 20px; font-size: clamp(2.35rem, 3.2vw, 3.45rem); line-height: 1.02; letter-spacing: -.03em; }
  .story p { max-width: 440px; font-size: 1.08rem; line-height: 1.68; text-shadow: none; }

  .market-grid { gap: 8px; }
  .markets .section-heading { margin-bottom: 0; }
  .market-card { min-height: 430px; border: 0; border-radius: 0; box-shadow: none; }
  .market-card > div { left: 28px; right: 26px; bottom: 30px; }
  .market-card h3 { font-size: 1.55rem; }

  .experience { padding-top: 112px; padding-bottom: 0; }
  .experience-grid { grid-template-columns: .66fr 1.34fr; gap: clamp(52px, 5vw, 72px); padding-bottom: 85px; }
  .experience h2 { width: 107%; max-width: none; font-size: clamp(3.15rem, 4.5vw, 4.35rem); line-height: 1.01; }
  .experience-copy > p:not(.kicker) { max-width: 42ch; }
  .experience-list { margin-top: 31px; }
  .experience-gallery { grid-template-rows: 330px 255px 255px 270px; gap: 6px; }
  .experience-gallery figcaption { gap: 7px; padding: 27px 30px 16px; }
  .experience-gallery figcaption strong { font-size: 1.08rem; }
  .experience-gallery figcaption span { max-width: 34ch; font-size: .82rem; line-height: 1.38; }
  .experience-gallery .gallery-zanja figcaption strong { width: max-content; max-width: 100%; text-wrap: balance; }

  .client-band { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; padding: 46px max(20px, calc((100% - 1180px) / 2)) 54px; background: var(--white); border-top: 1px solid #d7e1e7; border-bottom: 1px solid #d7e1e7; }
  .client-band::before { margin-bottom: 20px; color: var(--navy); }
  .client-logo { min-height: 94px; padding: 14px 12px; gap: 7px; overflow: visible; background: transparent; border: 0; border-left: 1px solid #dbe4e9; border-radius: 0; box-shadow: none; }
  .client-logo:nth-child(2) { border-left: 0; }
  .client-logo img { height: 36px; }
  .client-logo-wide img { height: 42px; }
  .client-logo-prodiel img { height: 46px; }
  .client-logo span { font-size: .82rem; }

  .trajectory { padding: 132px 0 142px; }
  .trajectory-heading { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr); column-gap: clamp(60px, 7vw, 100px); align-items: end; max-width: none; margin-bottom: 76px; }
  .trajectory-heading .kicker { grid-column: 1 / -1; }
  .trajectory-heading h2 { margin: 0; }
  .trajectory-intro { margin: 0 0 5px; }
  .trajectory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid rgba(255,255,255,.2); }
  .trajectory-stat { min-height: 270px; padding: 44px 30px 38px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.18); }
  .trajectory-stat:first-child { padding-left: 0; border-left: 0; }
  .trajectory-stat:last-child { padding-right: 0; }
  .trajectory-prefix, .trajectory-number { font-size: clamp(4.2rem, 5.6vw, 6rem); }
  .trajectory-unit { font-size: clamp(1.15rem, 1.55vw, 1.55rem); }

  .methodology { padding: 94px 0 100px; background: #f5f8fa; }
  .methodology .section-heading { max-width: none; margin-bottom: 20px; }
  .methodology .section-heading h2 { max-width: none; white-space: nowrap; }
  .process { gap: 0; margin: 18px 0 68px; border-top: 1px solid #cfdbe3; }
  .process li { min-height: 205px; padding: 30px 24px 0 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .process li::before { top: 62px; left: 68px; right: 0; height: 2px; }
  .process span { width: 64px; height: 64px; margin-bottom: 22px; border-width: 4px; outline-width: 1px; box-shadow: 0 7px 18px rgba(7,42,70,.14); font-size: 1rem; }
  .process strong { font-size: 1.06rem; font-weight: 900; }
  .process small { max-width: 150px; margin-top: 8px; font-size: .94rem; }
  .methodology-subheading { margin-bottom: 30px; padding-top: 4px; }
  .why-grid { border: 1px solid #ccd9e0; border-radius: 8px; box-shadow: none; }
  .why-grid div { min-height: 218px; padding: 62px 30px 30px; background: var(--white); }
  .why-grid div::after { height: 3px; }

  .contact { padding: 120px 0; }
  .contact::before { opacity: .07; }
  .contact-mark { opacity: .035; }
  .contact-grid { grid-template-columns: .82fr 1.18fr; gap: clamp(68px, 7vw, 100px); align-items: center; }
  .contact-copy > p:not(.kicker) { color: #e8f0f5; font-weight: 500; }
  .contact-actions a, .contact-actions div { border-bottom-color: rgba(255,255,255,.22); }
  .contact-form { padding: 40px; border: 0; border-radius: 12px; box-shadow: 0 20px 52px rgba(0,0,0,.16); }
  .contact-form input, .contact-form textarea { background: #f8fafb; border-color: #cbd8df; border-radius: 6px; }

  .site-footer { background: var(--navy-deep); border-top: 4px solid rgba(43,167,69,.72); }
  .footer-grid { width: min(1400px, calc(100% - 40px)); min-height: 194px; grid-template-columns: 1fr auto 1fr; gap: 20px; padding-block: 42px; }
  .footer-brand { width: 220px; max-width: 220px; padding: 0; background-color: transparent !important; background-image: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; }
  .footer-brand::before, .footer-brand::after { content: none !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  .footer-brand img { width: 200px; max-width: 200px; background: transparent !important; border: 0 !important; box-shadow: none !important; filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(1.05); }
  .footer-grid p { font-size: .96rem; line-height: 1.5; }
  .footer-grid p:nth-child(2) { justify-self: center; max-width: none; font-size: 0; line-height: 0; white-space: nowrap; }
  .footer-grid p:nth-child(2)::before { content: attr(data-desktop-copy); display: block; color: var(--white); font-size: 1.08rem; font-weight: 750; line-height: 1.45; letter-spacing: .01em; }
  .footer-grid p:last-child { justify-self: end; align-self: center; white-space: nowrap; transform: translateY(64px); }
}

@media (min-width: 841px) and (max-width: 1250px) {
  .footer-grid { width: var(--container); grid-template-columns: 180px minmax(0, 1fr); column-gap: 28px; row-gap: 20px; padding-block: 40px; }
  .footer-brand, .footer-brand img { width: 180px; max-width: 180px; }
  .footer-brand { grid-row: 1 / 3; }
  .footer-grid p:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: start; }
  .footer-grid p:nth-child(2)::before { letter-spacing: 0; }
  .footer-grid p:last-child { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; }
}

@media (max-width: 840px) {
  :root { --header-height: 98px; --header-compact-height: 88px; --anchor-offset: 106px; }
  body { font-size: 17px; }
  .nav-shell { min-height: var(--header-height); padding-block: 12px; }
  .brand { width: auto; height: auto; max-width: none; padding: 0; }
  .logo { width: auto; max-width: min(240px, 64vw); max-height: 66px; }
  .site-header.scrolled .brand, .site-header.menu-open .brand { width: auto; height: auto; max-width: none; }
  .site-header.scrolled .logo, .site-header.menu-open .logo { max-height: 58px; }
  .nav-toggle { display: block; position: relative; z-index: 3; }
  .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); }
  .main-nav { position: fixed; inset: var(--header-compact-height) 0 auto; display: grid; gap: 0; padding: 12px 20px 25px; color: var(--navy); background: rgba(255,255,255,.98); box-shadow: 0 20px 30px rgba(4,34,57,.1); transform: translateY(-130%); transition: transform .28s ease; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; padding: 12px 18px !important; text-align: center; border-color: var(--green); color: var(--green); }
  .language-switcher { justify-self: start; margin: 14px 0 0; }
  .hero-content { padding-top: 100px; padding-bottom: 130px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(2,28,48,.88), rgba(2,28,48,.5)), linear-gradient(0deg, rgba(2,24,41,.6), transparent); }
  .hero-capabilities { grid-template-columns: repeat(2, 1fr); bottom: 14px; gap: 8px; }
  .hero-capabilities span { min-height: 56px; padding: 12px 13px 12px 16px; font-size: 1rem; }
  .scroll-cue { display: none; }
  .split-grid, .experience-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-visual img { display: block; }
  .about-visual figcaption { position: static; margin-top: 12px; }
  .capability-stories { grid-template-columns: 1fr; }
  .story { min-height: clamp(500px, 88vw, 680px); }
  .experience-copy { max-width: 720px; }
  .experience h2 { line-height: 1.03; }
  .experience-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .experience-gallery .gallery-main,
  .experience-gallery .gallery-solar,
  .experience-gallery .gallery-zanja,
  .experience-gallery .gallery-electrica,
  .experience-gallery .gallery-territorial,
  .experience-gallery .gallery-suministro { grid-column: auto; grid-row: auto; height: 320px; min-height: 0; }
  .experience-gallery .gallery-main, .experience-gallery .gallery-suministro { grid-column: 1 / -1; height: 390px; min-height: 0; }
  .experience-gallery figcaption { gap: 7px; padding: 22px 23px 16px; }
  .experience-gallery figcaption strong { font-size: .98rem; }
  .experience-gallery figcaption span { max-width: 40ch; font-size: .84rem; line-height: 1.4; }
  .experience-gallery .gallery-solar img { object-position: 72% center; }
  .experience-gallery .gallery-territorial img { object-position: 58% center; }
  .trajectory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid rgba(255,255,255,.18); }
  .trajectory-stat { padding: 32px 24px; border-bottom: 0; }
  .trajectory-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.18); }
  .trajectory-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .markets .section-heading { margin-bottom: 6px; }
  .market-card:nth-child(4) img { object-position: center 25%; }
  .contact-grid { gap: 40px; }
  .section.methodology { padding-top: 72px; padding-bottom: 76px; }
  .methodology .section-heading { margin-bottom: 32px; }
  .process { position: relative; grid-template-columns: 1fr; gap: 18px; margin: 28px 0 48px; padding-left: 0; }
  .process li { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; width: calc(100% - 72px); height: 120px; min-height: 120px; padding: 16px 8px 16px 0; }
  .process li:nth-child(odd) { margin-right: 72px; }
  .process li:nth-child(even) { margin-left: 72px; }
  .process li::before { display: block; z-index: 0; top: 50%; left: 32px; right: auto; width: 156px; height: 2px; transform: rotate(62.4deg); transform-origin: left center; background: linear-gradient(90deg, var(--green), var(--blue)); }
  .process li:nth-child(3)::before { display: block; }
  .process li:nth-child(even)::before { transform: rotate(117.6deg); }
  .process li:last-child::before { display: none; }
  .process span { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 64px; height: 64px; margin: 0; }
  .process strong, .process small { grid-column: 2; }
  .process strong { align-self: end; }
  .process small { align-self: start; }
  .footer-grid { padding: 52px 0 104px; grid-template-columns: 1fr; gap: 0; }
  .footer-brand { justify-self: center; padding: 0; background-color: transparent !important; background-image: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; }
  .footer-brand::before, .footer-brand::after { content: none !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  .footer-brand img { width: 200px; max-width: 100%; background: transparent !important; border: 0 !important; box-shadow: none !important; filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(1.05); }
  .footer-brand { margin-bottom: 30px; }
  .footer-grid p:nth-child(2) { justify-self: center; width: 100%; max-width: 36ch; margin-bottom: 26px; color: var(--white); font-size: 1rem; line-height: 1.45; text-align: center; }
  .footer-grid p:last-child { justify-self: center; max-width: 100%; text-align: center; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; }
  .cookie-banner-inner { width: calc(100% - 28px); padding: 18px 0; grid-template-columns: 1fr; gap: 16px; }
  .cookie-banner-actions { flex-wrap: wrap; }
  .cookie-preferences-panel { padding: 28px 22px 24px; }
  .cookie-settings-trigger { left: 12px; bottom: 12px; }
}

@media (max-width: 590px) {
  :root { --container: min(100% - 28px, 1180px); }
  h2 { font-size: 2.25rem; }
  .section { padding: 78px 0; }
  .section.experience { padding-top: 69px; padding-bottom: 69px; }
  .section.methodology { padding-top: 68px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.3rem); }
  .hero-copy { font-size: 1.08rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 360px; }
  .hero-capabilities { width: calc(100% - 28px); }
  .value-row, .service-grid, .market-grid { grid-template-columns: 1fr; }
  .value-row { gap: 12px; }
  .value-row div { min-height: 0; padding: 21px 18px 18px; }
  .service-card { min-height: 0; }
  .market-card { min-height: 370px; }
  .experience-gallery { grid-template-columns: 1fr; grid-template-rows: none; gap: 7px; }
  .experience-gallery .gallery-main,
  .experience-gallery .gallery-solar,
  .experience-gallery .gallery-zanja,
  .experience-gallery .gallery-electrica,
  .experience-gallery .gallery-territorial,
  .experience-gallery .gallery-suministro { grid-column: 1; grid-row: auto; height: clamp(310px, 85vw, 340px); min-height: 0; }
  .experience-gallery .gallery-main { height: clamp(310px, 85vw, 340px); min-height: 0; }
  .client-band { grid-template-columns: 1fr; gap: 10px; }
  .client-logo { min-height: 76px; }
  .trajectory-grid { grid-template-columns: 1fr; }
  .trajectory-stat { padding: 30px 0; border-left: 0 !important; }
  .trajectory-stat:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.18); }
  .trajectory-label { max-width: 36ch; }
  .process { grid-template-columns: 1fr; gap: 22px; }
  .process li { min-height: 0; padding-right: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid div, .why-grid div:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .why-grid div:last-child { grid-column: auto; }
  .whatsapp-float { right: 14px; bottom: 14px; }
  .back-to-top { right: 18px; bottom: 86px; width: 46px; padding: 0; justify-content: center; }
  .back-to-top strong { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { width: 100%; }
  .cookie-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-banner-actions .cookie-preferences-link { grid-column: 1 / -1; justify-self: center; }
  .cookie-button { width: 100%; min-width: 0; }
  .cookie-category div { display: block; }
  .cookie-category span { display: block; margin-top: 5px; text-align: left; }
  .cookie-preferences-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  :root { --container: min(100% - 22px, 1180px); }
  .logo { max-width: 62vw; max-height: 60px; }
  .site-header.scrolled .logo, .site-header.menu-open .logo { max-height: 54px; }
  .hero { min-height: 0; display: block; }
  .hero-content { padding-top: calc(var(--header-height) + 44px); padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.65rem, 13.5vw, 3.8rem); }
  .hero-actions { width: 100%; max-width: none; }
  .hero-capabilities { position: relative; inset: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 22px); margin: 28px auto 0; padding-bottom: 22px; transform: none; }
  .hero-capabilities span { min-width: 0; padding-inline: 12px; }
  .about .split-grid { width: calc(100% - 22px); max-width: none; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: stretch; }
  .about .section-copy, .about .value-row, .about-visual { width: 100%; min-width: 0; max-width: 100%; }
  .about .value-row { grid-template-columns: minmax(0, 1fr); }
  .about-visual { order: 0; margin: 0; }
  .about-visual figcaption { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
