@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/manrope.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Grepol 2 — plano de obra
   Paleta original (azul pizarra + amarillo de señalización), tipografía industrial autoalojada. */

:root {
  --navy: #2e2e42;
  --ink: #1d1d2a;
  --yellow: #fbd232;
  --yellow-deep: #e8b900;
  --paper: #ececf0;
  --line: #d6d6de;
  --text: #3d3d4c;
  --white: #fff;
  --head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --bar: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.7 var(--body); color: var(--text); background: var(--white); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 10px 16px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- tipografía ---------- */
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.1; letter-spacing: -.025em; }
h2 { font-weight: 700; font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -.015em; }
.sub { font-family: var(--head); font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.45; letter-spacing: -.01em; color: var(--navy); }

/* ---------- botones ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font: 700 .95rem/1 var(--head); letter-spacing: .01em;
  background: var(--yellow); color: var(--navy);
  padding: 18px 34px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--white); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--yellow); }
.btn-dark:hover { background: var(--ink); color: var(--white); }

/* ---------- cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar); background: var(--navy); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: var(--yellow); transform-origin: left; transform: scaleX(var(--p, 0)); }
.bar { position: relative; height: 100%; width: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }
.brand { position: absolute; z-index: 2; left: 50%; top: 0; transform: translateX(-50%); height: var(--bar); display: flex; align-items: center; background: var(--white); padding: 6px 12px; transition: background-color .25s; }
.brand img { height: 100%; width: auto; }
.brand:hover { background: var(--yellow); }
#menu ul { display: flex; justify-content: space-between; height: var(--bar); }
#menu li { display: flex; }
#menu li.gap { flex: 0 0 150px; }
#menu a {
  position: relative; display: flex; align-items: center; padding: 0 6px; text-decoration: none; color: var(--white);
  font: 600 .93rem/1 var(--head); letter-spacing: 0;
}
#menu a::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 24px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .28s; }
#menu a:hover::after, #menu a.is-current::after { transform: scaleX(1); }
#menu a.is-current { color: var(--yellow); }
.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2; color: var(--white); overflow-x: clip;
  min-height: max(660px, 100svh);
  display: grid; align-items: center;
  padding: calc(var(--bar) + 90px) max(var(--gut), calc((100vw - var(--wrap)) / 2)) 120px;
}
.hero-slides { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; animation: drift 14s ease-out both; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(29,29,42,.9) 0%, rgba(29,29,42,.66) 44%, rgba(29,29,42,.4) 100%),
  linear-gradient(0deg, rgba(29,29,42,.4), transparent 30%); }

.hero-copy { position: relative; z-index: 3; max-width: 560px; }
.hero h1 { color: var(--white); font-weight: 700; font-size: clamp(3.1rem, 7.6vw, 5.8rem); line-height: 1; letter-spacing: -.04em; }
.hero h1::after { content: ''; display: block; width: 96px; height: 8px; margin: 22px 0 22px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, transparent 8px 14px); }
.hero-sub { font: 600 clamp(1.05rem, 1.8vw, 1.35rem)/1.35 var(--head); letter-spacing: -.01em; color: var(--yellow); margin-bottom: 18px; }
.hero-lead { max-width: 50ch; font-size: 1rem; color: rgba(255,255,255,.92); margin-bottom: 34px; }

.plan { position: absolute; z-index: 2; right: max(14px, calc((100vw - 1320px) / 2)); top: 52%; transform: translateY(-50%); width: min(52vw, 740px); height: auto; fill: none; stroke: var(--yellow); stroke-width: 2.2; stroke-linejoin: miter; }
.plan .fine { stroke-width: 1.5; opacity: .85; }
.plan .win { stroke-width: 1.7; }
.plan .dim { stroke: var(--white); stroke-width: 1.2; opacity: .75; }
.plan .dimtext { fill: var(--white); stroke: none; font: 600 14px var(--head); letter-spacing: .02em; }

.hero-ctrl { position: absolute; z-index: 4; left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); bottom: 36px; display: flex; align-items: center; gap: 10px; }
.dot { position: relative; width: 52px; height: 26px; border: 0; background: none; padding: 0; }
.dot::before, .dot::after { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 4px; }
.dot::before { background: rgba(255,255,255,.35); }
.dot::after { background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.dot.is-active::after { transform: scaleX(1); }
.pause { width: 34px; height: 34px; margin-left: 8px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; background: none; display: grid; place-items: center; padding: 0; transition: border-color .2s, background-color .2s; }
.pause:hover { border-color: var(--yellow); background: rgba(251,210,50,.14); }
.pause svg { width: 14px; height: 14px; fill: var(--white); }
.pause .p-play { display: none; }
.hero.is-paused .pause .p-pause { display: none; }
.hero.is-paused .pause .p-play { display: block; }

.badge { position: absolute; z-index: 5; right: max(var(--gut), calc((100vw - var(--wrap)) / 2)); bottom: -62px; width: 132px; height: 132px; filter: drop-shadow(0 8px 14px rgba(20,20,34,.35)); }
.badge .ring text { font: 700 11px var(--head); fill: var(--navy); }
.badge .b-small { font: 600 11.5px var(--head); fill: var(--navy); }
.badge .b-big { font: 700 27px var(--head); letter-spacing: -.03em; fill: var(--navy); }

/* ---------- pregunta ---------- */
.ask { position: relative; z-index: 1; background: var(--paper); padding: 88px 0 72px; }
.ask p { font: 700 clamp(1.7rem, 3.4vw, 2.7rem)/1.18 var(--head); letter-spacing: -.03em; color: var(--navy); max-width: 24ch; }

/* ---------- servicios ---------- */
.services { padding: 110px 0 120px; }
.sec-head { display: grid; grid-template-columns: 5fr 7fr; gap: 12px 56px; align-items: start; margin-bottom: 64px; }
.sec-head h2 { grid-row: span 2; }
.sec-head .sub { align-self: end; }
.sec-head p:not(.sub) { max-width: 60ch; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px solid var(--navy); }
.svc { padding: 40px 36px 12px; border-left: 1px solid var(--line); }
.svc:first-child { border-left: 0; padding-left: 0; }
.svc:last-child { padding-right: 0; }
.ico { width: 108px; height: 108px; margin-bottom: 26px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.ico .lite { stroke-width: 1.6; opacity: .55; }
.ico .ac { fill: var(--yellow); stroke: var(--navy); stroke-width: 2.2; }
.svc h3 { margin-bottom: 14px; }
.svc p { max-width: 44ch; }

/* ---------- trabajos ---------- */
.work { background: var(--navy); padding: 110px 0 120px; }
.work .sec-head h2, .work h3 { color: var(--white); }
.work .sub { color: #d3d3e0; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.work-grid li { grid-column: span 5; }
.work-grid li:nth-child(4n+1), .work-grid li:nth-child(4n+4) { grid-column: span 7; }
.card { position: relative; display: block; width: 100%; height: clamp(300px, 34vw, 470px); padding: 0; border: 0; overflow: hidden; background: var(--ink); text-align: left; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(29,29,42,.92) 0%, rgba(29,29,42,.25) 46%, transparent 70%); }
.card-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 24px 28px 24px 30px; display: grid; gap: 8px; }
.card-info h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.25; max-width: 30ch; }
.card-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font: 600 .88rem/1 var(--head); letter-spacing: .01em; }
.card-meta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-corner { position: absolute; z-index: 2; top: 0; right: 0; width: 56px; height: 56px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 100%); transform: translate(100%, -100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card-corner svg { position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2.2; }
.card:hover img, .card:focus-visible img { transform: scale(1.05); }
.card:hover .card-corner, .card:focus-visible .card-corner { transform: none; }
.nojs { color: #d3d3e0; margin-top: 16px; }

/* ---------- galería ---------- */
.lb { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(21,21,32,.97); color: var(--white); }
.lb[open] { display: grid; grid-template: "top top top" auto "prev stage next" 1fr "thumbs thumbs thumbs" auto / 72px 1fr 72px; animation: fade .25s ease; }
.lb::backdrop { background: transparent; }
.lb-top { grid-area: top; display: flex; align-items: center; gap: 18px; padding: 16px 20px 8px 28px; }
.lb-title { flex: 1; font: 600 1.05rem/1.3 var(--head); letter-spacing: -.01em; }
.lb-count { font: 600 .9rem/1 var(--head); color: var(--yellow); letter-spacing: .02em; white-space: nowrap; }
.lb-close, .lb-nav { background: none; border: 2px solid rgba(255,255,255,.4); color: var(--white); display: grid; place-items: center; padding: 0; transition: border-color .2s, background-color .2s; }
.lb-close { width: 44px; height: 44px; }
.lb-nav { align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%; }
.lb-prev { grid-area: prev; } .lb-next { grid-area: next; }
.lb-close:hover, .lb-nav:hover { border-color: var(--yellow); background: rgba(251,210,50,.14); }
.lb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { grid-area: stage; position: relative; min-height: 0; min-width: 0; touch-action: pan-y; }
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade .3s ease; }
.lb-img.is-loading { opacity: .35; }
.lb-thumbs { grid-area: thumbs; display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 18px; scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 auto; width: 78px; height: 58px; padding: 0; border: 2px solid transparent; background: none; opacity: .55; transition: opacity .2s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button[aria-current="true"] { border-color: var(--yellow); opacity: 1; }
.lb-thumbs button:hover { opacity: 1; }
body.lb-open { overflow: hidden; }

/* ---------- por qué ---------- */
.why { padding: 120px 0; background: var(--white); }
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.why-art { padding-right: 8px; }
.brickscene { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--navy); }
.brickscene .ground { stroke-width: 4; }
.brickscene .hatch { stroke-width: 1.6; opacity: .5; }
.brickscene .brick, .brickscene .hangbrick { fill: var(--yellow); stroke: var(--navy); stroke-width: 2; }
.brickscene .mast { stroke-width: 3; }
.brickscene .jib { stroke-width: 2.4; }
.brickscene .lattice { stroke-width: 1.5; }
.brickscene .cable { stroke-width: 1.8; }
.brickscene .cw, .brickscene .trolley { fill: var(--navy); }
.brickscene .swing { transform-origin: 340px 44px; }
.why-copy h2 { margin-bottom: 36px; max-width: 18ch; }
.why-item { padding: 26px 0 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: 12px 40px; }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item h3 { font-size: 1.15rem; line-height: 1.3; }
.why-item p { max-width: 54ch; }

/* ---------- promesa + contacto ---------- */
.promise { position: relative; background: var(--yellow); color: var(--navy); overflow-x: clip; }
.promise-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 520px); gap: 32px; align-items: end; padding-top: 84px; }
.promise-copy { align-self: center; padding-bottom: 48px; }
.promise h2 { max-width: 18ch; margin-bottom: 32px; color: var(--navy); }
.digger { width: 100%; height: auto; overflow: visible; fill: none; }
.digger .soil { fill: var(--navy); }
.digger .pile { fill: #5a5a74; }
.digger .puffs circle { fill: var(--navy); opacity: 0; transform-box: fill-box; transform-origin: center; }
.digger.in-view .puffs circle:nth-child(2) { animation-delay: .25s; } .digger.in-view .puffs circle:nth-child(3) { animation-delay: .5s; }
.digger .trk, .digger .hull, .digger .cwt, .digger .cab, .digger .bk { fill: var(--navy); }
.digger .wh, .digger .glass { fill: var(--yellow); }
.digger .arm { stroke: var(--navy); stroke-width: 16; stroke-linecap: round; }
.digger .ram { stroke: #5a5a74; stroke-width: 7; stroke-linecap: round; }
.digger .teeth { stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.digger .boom  { transform-origin: 300px 150px; }
.digger .stick { transform-origin: 208px 72px; }
.digger .bucket { transform-origin: 128px 168px; }

.contact-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 52px 0 64px; }
.contact-bar li { display: flex; gap: 18px; align-items: flex-start; }
.ci { flex: 0 0 62px; height: 62px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.ci svg { width: 28px; height: 28px; fill: none; stroke: var(--yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-bar h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-bar p { font-weight: 500; line-height: 1.4; }
.contact-bar a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(46,46,66,.35); transition: text-decoration-color .2s; }
.contact-bar a:hover { text-decoration-color: var(--navy); }

/* ---------- pie ---------- */
.site-footer { background: var(--ink); color: #c6c6d4; padding: 88px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 5fr 4fr 2fr; gap: 56px; }
.site-footer h2 { color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }
.site-footer p { margin-bottom: 10px; max-width: 52ch; }
.site-footer a { text-decoration: none; transition: color .2s; }
.foot-contact a:hover, .foot-nav a:hover { color: var(--yellow); }
.foot-contact a { text-decoration: underline; text-decoration-color: rgba(251,210,50,.5); text-underline-offset: 3px; }
.foot-nav li + li { margin-top: 8px; }
.foot-nav a { font: 600 1rem/1.3 var(--head); letter-spacing: 0; color: var(--white); }
.foot-base { display: flex; align-items: center; gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid #3a3a4f; }
.foot-logo { background: var(--white); padding: 6px 8px; width: 84px; }
.foot-logo img { width: 100%; height: auto; }
.foot-base p { flex: 1; margin: 0; font-size: .95rem; }
.to-top { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; color: var(--white); transition: border-color .2s, color .2s; }
.to-top:hover { border-color: var(--yellow); color: var(--yellow); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- animaciones SVG ---------- */
.js .dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .ac { opacity: 0; }
.js .dimtext { opacity: 0; }
.in-view .dr { animation: draw var(--t, .9s) cubic-bezier(.55,.1,.3,1) var(--d, 0s) forwards; }
.in-view .ac { animation: appear .5s ease 1.2s forwards; }
.in-view .dimtext { animation: appear .6s ease var(--d, 0s) forwards; }
.js .brick { opacity: 0; }
.in-view .brick { animation: lay .55s cubic-bezier(.2,.9,.25,1.15) calc(var(--i) * 75ms + .15s) both; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes lay { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes boom { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-3deg); } 70% { transform: rotate(2deg); } }
@keyframes stick { 0%, 100% { transform: rotate(6deg); } 38% { transform: rotate(-12deg); } 62% { transform: rotate(-12deg); } 82% { transform: rotate(14deg); } }
@keyframes bucket { 0%, 100% { transform: rotate(10deg); } 38% { transform: rotate(-6deg); } 62% { transform: rotate(-26deg); } 82% { transform: rotate(18deg); } }
@keyframes puff { 0%, 30% { opacity: 0; transform: translateY(0) scale(.6); } 40% { opacity: .35; } 70%, 100% { opacity: 0; transform: translateY(-26px) scale(2.2); } }


/* ---------- intro al cargar ---------- */
#intro { display: none; }
.intro-on #intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; cursor: pointer; background: radial-gradient(circle at 50% 44%, #3b3b53 0%, var(--navy) 52%, #242434 100%); transition: transform .9s cubic-bezier(.76, 0, .24, 1); }
.intro-on #intro::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 3px; background: var(--yellow); }
.intro-on #intro.is-out { transform: translateY(calc(-100% - 3px)); }
.intro-on #intro.is-out .intro-inner { opacity: 0; transition: opacity .35s ease; }
.intro-on body { overflow: hidden; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro-svg { width: min(60vw, 310px); height: auto; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linejoin: miter; stroke-linecap: square; }
.intro-svg .ip { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--t, .6s) cubic-bezier(.45, .05, .25, 1) var(--d, 0s) forwards; }
.intro-svg .ia { fill: var(--yellow); stroke: none; opacity: 0; animation: glow .7s ease var(--d) forwards; }
.intro-word { font: 600 1.15rem/1 var(--head); letter-spacing: .36em; padding-left: .36em; color: rgba(255,255,255,.92); opacity: 0; animation: wordin .9s ease 1s forwards; }
.intro-line { width: min(46vw, 180px); height: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.intro-line i { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; animation: introbar 1.8s cubic-bezier(.4, 0, .2, 1) forwards; }

/* ---------- movimiento moderado (solo opacidad y desplazamiento, una vez) ---------- */
.js .hero:not(.in-view) .hero-copy > *, .js .hero:not(.in-view) .badge { opacity: 0; }
.hero.in-view .hero-copy > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.1s + var(--k, 0) * 120ms); }
.hero-copy > :nth-child(2) { --k: 1; } .hero-copy > :nth-child(3) { --k: 2; } .hero-copy > :nth-child(4) { --k: 3; }
.hero.in-view .badge { animation: badgein .9s cubic-bezier(.2, 1.2, .3, 1) 1.1s backwards; }
.js [data-rise]:not(.in-view) { opacity: 0; transform: translateY(18px); }
[data-rise].in-view { animation: rise .8s cubic-bezier(.2, .8, .2, 1) calc(var(--n, 0) * 110ms) backwards; }
.mega { margin-top: 64px; font: 700 clamp(4rem, 17vw, 15rem)/.82 var(--head); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(251,210,50,.45); white-space: nowrap; overflow: hidden; user-select: none; padding-bottom: .06em; }
.foot-base { margin-top: 36px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes badgein { from { opacity: 0; transform: scale(.55) rotate(-60deg); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes glow { to { opacity: .9; } }
@keyframes wordin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes introbar { to { transform: scaleX(1); } }
/* el plano se dibuja una sola vez, algo más rápido */
.hero.in-view .plan .dr { animation-duration: calc(var(--t, .9s) * .7); animation-delay: calc(var(--d, 0s) * .55 + .3s); }
.hero.in-view .plan .dimtext { animation-delay: calc(var(--d, 0s) * .55 + .3s); }
/* excavadora y grúa: un par de ciclos al aparecer y se quedan quietas */
.digger:not(.in-view) .boom, .digger:not(.in-view) .stick, .digger:not(.in-view) .bucket, .digger:not(.in-view) .puffs circle { animation: none; }
.digger.in-view .boom { animation: boom 7s ease-in-out 2; }
.digger.in-view .stick { animation: stick 7s ease-in-out 2; }
.digger.in-view .bucket { animation: bucket 7s ease-in-out 2; }
.digger.in-view .puffs circle { animation: puff 7s ease-out 2; }
.why-art.in-view .swing { animation: sway2 4s ease-in-out 2; }
@keyframes sway2 { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(3deg); } 75% { transform: rotate(-3deg); } }

/* ---------- adaptable ---------- */
@media (max-width: 1060px) {
  #menu li.gap { flex-basis: 150px; }
  .plan { opacity: .5; width: min(78vw, 640px); right: 4vw; top: 56%; }
  .hero-copy { max-width: 520px; }
}
@media (max-width: 900px) {
  :root { --bar: 64px; }
  .brand { left: var(--gut); transform: none; padding: 5px 9px; }
  .bar { width: 100%; }
  .burger { position: absolute; right: var(--gut); top: 10px; display: grid; gap: 5px; align-content: center; width: 46px; height: 44px; background: none; border: 0; padding: 0 9px; }
  .burger i { display: block; height: 3px; background: var(--white); transition: transform .3s, opacity .2s; }
  .burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .burger[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }
  #menu { position: fixed; inset: var(--bar) 0 auto 0; background: var(--navy); border-top: 1px solid #44445c; padding: 8px var(--gut) 20px 132px; transform: translateY(-14px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; box-shadow: 0 16px 30px rgba(20,20,34,.4); }
  #menu.is-open { transform: none; opacity: 1; visibility: visible; }
  #menu ul { flex-direction: column; height: auto; }
  #menu li.gap { display: none; }
  #menu a { padding: 13px 0; font-size: 1.5rem; }
  #menu a::after { left: 0; right: auto; width: 36px; bottom: 6px; }
  .hero { padding-top: calc(var(--bar) + 70px); }
  .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 44px; }
  .sec-head h2 { grid-row: auto; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc:first-child, .svc:last-child { padding: 34px 0 30px; border-left: 0; border-bottom: 1px solid var(--line); }
  .svc:last-child { border-bottom: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid li, .work-grid li:nth-child(n) { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .why-art { max-width: 460px; }
  .why-item { grid-template-columns: 1fr; }
  .promise-top { grid-template-columns: 1fr; padding-top: 64px; }
  .promise-copy { padding-bottom: 12px; }
  .digger { max-width: 460px; margin-left: auto; }
  .contact-bar { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .lb[open] { grid-template: "top top" auto "stage stage" 1fr "prev next" auto "thumbs thumbs" auto / 1fr 1fr; }
  .lb-nav { margin: 6px 12px; }
  .lb-prev { justify-self: start; } .lb-next { justify-self: end; }
}
@media (max-width: 560px) {
  .badge { width: 104px; height: 104px; bottom: -52px; }
  .plan { opacity: .3; width: 94vw; right: 3vw; top: 64%; }
  .hero { padding-bottom: 130px; }
  .ask { padding-top: 84px; }
  .card-info { padding: 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .dr { stroke-dashoffset: 0; }
  .js .ac, .js .dimtext, .js .brick { opacity: 1; }
  .digger .boom, .digger .stick, .digger .bucket, .brickscene .swing { animation: none !important; }
}
