/* =========================================================
   AILLAPAN CONSTRUCCIONES · Naranja de obra + negro carbón
   ========================================================= */
:root {
  --orange: #e2700f;
  --orange-l: #f08a2c;
  --orange-d: #c75f08;
  --coal: #141414;
  --coal-2: #1e1e1e;
  --concrete: #e9e7e3;
  --paper: #f6f5f2;
  --ink: #111;
  --mute: #66625d;
  --line: rgba(17, 17, 17, .12);
  --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-slab: "Roboto Slab", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(18px, 4.5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h3 { font-size: 1.55rem; line-height: 1.05; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.or { color: var(--orange); }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.eyebrow { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-d); margin-bottom: 1rem; }
.eyebrow-light { color: var(--orange-l); }
.sec-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-lead { margin-top: 1.2rem; color: var(--mute); font-size: 1.1rem; max-width: 40rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.6rem; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .3s, color .3s, border-color .3s, box-shadow .3s; will-change: transform; }
.btn svg { width: 20px; height: 20px; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 6px 6px 0 var(--coal); }
.btn-orange:hover { background: var(--orange-d); box-shadow: 3px 3px 0 var(--coal); }
.hero .btn-orange, .cyv .btn-orange, .quote .btn-orange { box-shadow: 6px 6px 0 rgba(255,255,255,.18); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--coal); border-color: #fff; }
.btn-dark-line { border-color: var(--coal); color: var(--coal); }
.btn-dark-line:hover { background: var(--coal); color: #fff; }
.btn-sm { padding: .6rem 1.1rem; font-size: .98rem; box-shadow: none !important; }
.btn-block { width: 100%; }

/* Splash */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--coal); transition: clip-path .9s var(--ease); clip-path: inset(0 0 0 0); animation: splashSafety .01s 4.5s forwards; }
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); pointer-events: none; } }
.splash-inner { display: flex; flex-direction: column; align-items: center; }
.splash-iso { width: clamp(80px, 12vw, 120px); height: auto; clip-path: inset(100% 0 0 0); animation: build .9s var(--ease) .1s forwards; }
@keyframes build { to { clip-path: inset(0 0 0 0); } }
.splash-word { margin-top: 1rem; font-family: var(--f-slab); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.4rem); color: #fff; letter-spacing: .02em; opacity: 0; animation: up .7s var(--ease) .6s forwards; }
.splash-sub { font-family: var(--f-display); color: var(--orange); letter-spacing: .5em; font-size: clamp(.8rem, 1.6vw, 1rem); opacity: 0; animation: up .7s var(--ease) .8s forwards; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Topbar */
.topbar { background: var(--orange); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; gap: 1.8rem; align-items: center; padding-top: .45rem; padding-bottom: .45rem; }
.tb-wa { margin-left: auto; display: inline-flex; gap: .4rem; align-items: center; text-decoration: none; font-weight: 600; }
.tb-wa svg { width: 16px; height: 16px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(20,20,20,.96); color: #fff; transition: box-shadow .3s; }
@supports (backdrop-filter: blur(8px)) { .nav { background: rgba(20,20,20,.84); backdrop-filter: blur(14px); } }
.nav.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-iso { width: 42px; height: 42px; transition: transform .6s var(--bounce); }
.brand:hover .brand-iso { transform: translateY(-4px); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--f-slab); font-weight: 800; font-size: 1.55rem; letter-spacing: .02em; }
.brand-txt small { font-family: var(--f-display); font-weight: 500; font-size: .62rem; letter-spacing: .42em; color: var(--orange); margin-top: .25rem; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; font-family: var(--f-display); font-weight: 500; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; }
.nav-links > a:not(.btn) { text-decoration: none; position: relative; padding: .3rem 0; }
.nav-links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--orange); transition: right .35s var(--ease); }
.nav-links > a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--coal); color: #fff; padding: clamp(50px, 7vw, 90px) 0 0; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(1) contrast(1.2); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--coal) 30%, rgba(20,20,20,.6) 100%); }
.hero-slash { position: absolute; right: -6%; top: 0; bottom: 0; width: 46%; background: var(--orange); clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); opacity: .95; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 4vw, 60px); align-items: center; padding-bottom: clamp(40px, 5vw, 70px); }
.hero-copy { min-width: 0; }
.hero-tag { display: flex; align-items: center; gap: .8rem; font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-l); margin-bottom: 1.2rem; font-size: 1.1rem; }
.tag-bar { width: 40px; height: 4px; background: var(--orange); }
.hero-title { font-size: clamp(3.4rem, 8vw, 7.6rem); line-height: .88; }
.hero-title em { font-style: normal; color: var(--orange); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero-title.is-in .ln > span { transform: none; }
.hero-title .ln:nth-child(2) > span { transition-delay: .12s; }
.no-js .hero-title .ln > span { transform: none; }
.hero-sub { margin-top: 1.6rem; max-width: 34rem; color: rgba(255,255,255,.8); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.hero-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual { position: relative; aspect-ratio: 1 / 1.05; }
.house { position: absolute; left: 6%; top: 0; width: 72%; height: 92%; clip-path: url(#house-clip); -webkit-clip-path: url(#house-clip); background: var(--coal-2); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.house img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hv-a { position: absolute; right: 0; bottom: 4%; width: 46%; aspect-ratio: 1; margin: 0; overflow: hidden; border: 6px solid var(--coal); box-shadow: 10px 10px 0 rgba(0,0,0,.35); }
.hv-a img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip { position: absolute; left: 0; bottom: 14%; background: #fff; color: var(--coal); padding: .9rem 1.2rem; box-shadow: 8px 8px 0 var(--orange); display: flex; flex-direction: column; line-height: 1.1; }
.hero-chip b { font-family: var(--f-display); text-transform: uppercase; font-size: 1.5rem; }
.hero-chip span { font-size: .85rem; color: var(--mute); }
.hero-stats { position: relative; z-index: 3; list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 0; padding-bottom: 0; }
.hero-stats li { background: var(--coal-2); padding: 1.3rem 1.4rem; border-top: 4px solid var(--orange); border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--f-display); font-size: 1.6rem; text-transform: uppercase; }
.hero-stats span { color: rgba(255,255,255,.65); font-size: .9rem; }

/* Marquee */
.marquee { background: var(--orange); color: #fff; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; padding: 1rem 0; animation: marq 40s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 20px; height: 20px; flex: none; background: var(--coal); clip-path: polygon(0 100%, 0 40%, 50% 0, 50% 20%, 100% 20%, 100% 100%); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Services */
.services { padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 9vw, 120px); }
.svc-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, clamp(260px, 25vw, 340px)); gap: 14px; }
.svc { position: relative; overflow: hidden; color: #fff; background: var(--coal) var(--img) center / cover no-repeat; isolation: isolate; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; background-size: cover; transition: transform 1.1s var(--ease); }
.svc:hover::before { transform: scale(1.07); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,20,0) 20%, rgba(20,20,20,.92) 100%); }
.svc-xl { grid-row: span 2; }
.svc-n { position: absolute; top: 0; left: 0; background: var(--orange); font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; padding: .4rem .8rem; }
.svc-body { position: absolute; inset: auto 0 0 0; padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.svc h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.svc-xl h3 { font-size: clamp(2.2rem, 3.6vw, 3.3rem); }
.svc p { font-size: .94rem; color: rgba(255,255,255,.82); max-width: 28rem; }
.svc a { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--orange-l); }
.svc a svg, .trades-link svg { width: 18px; height: 18px; transition: transform .4s var(--bounce); }
.svc:hover a svg { transform: translateX(5px); }
.trades { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.3rem 1.5rem; background: var(--concrete); border-left: 6px solid var(--orange); }
.trades ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.trades li { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; background: #fff; padding: .35rem .8rem; font-weight: 500; }
.trades-link { margin-left: auto; display: inline-flex; gap: .4rem; align-items: center; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; text-decoration: none; color: var(--orange-d); }

/* Construye y vende */
.cyv { background: var(--coal); color: #fff; padding: clamp(90px, 11vw, 150px) 0; overflow: hidden; position: relative; }
.cyv::before { content: ""; position: absolute; left: -10%; top: 0; width: 40%; height: 100%; background: linear-gradient(135deg, rgba(226,112,15,.16), transparent 70%); }
.cyv-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.cyv-media { position: relative; aspect-ratio: 1 / 1.08; }
.cm { position: absolute; margin: 0; overflow: hidden; }
.cm img { width: 100%; height: 100%; object-fit: cover; }
.cm-1 { left: 0; top: 0; width: 56%; height: 100%; }
.cm-1 img { object-position: 50% 15%; }
.cm-2 { right: 0; top: 6%; width: 40%; height: 44%; border-top: 6px solid var(--orange); }
.cm-3 { right: 0; bottom: 0; width: 40%; height: 44%; }
.cyv-addr { display: inline-block; margin: 1.2rem 0 1rem; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; background: var(--orange); padding: .3rem .9rem; }
.cyv-copy > p:not(.eyebrow):not(.cyv-addr) { color: rgba(255,255,255,.78); max-width: 32rem; }
.units { display: flex; gap: 14px; margin: 2rem 0; }
.units div { flex: 1; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(255,255,255,.15); background: var(--coal-2); }
.units b { font-family: var(--f-display); font-size: 3.6rem; line-height: 1; color: var(--orange); }
.units span { font-size: .95rem; line-height: 1.3; color: rgba(255,255,255,.85); }

/* Works carousel */
.works { padding: clamp(90px, 11vw, 150px) 0; background: var(--concrete); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 50px); }
.works-nav { display: flex; align-items: center; gap: 1.4rem; max-width: 30rem; color: var(--mute); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 52px; height: 52px; border: 2px solid var(--coal); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.arrows button:first-child svg { transform: scaleX(-1); }
.arrows button svg { width: 22px; height: 22px; }
.arrows button:hover { background: var(--coal); color: #fff; }
.works-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 10px; scroll-padding: 0 var(--pad); scrollbar-width: none; cursor: grab; }
@media (min-width: 1320px) { .works-track { padding-left: calc((100vw - 1320px) / 2 + var(--pad)); } }
.works-track::-webkit-scrollbar { display: none; }
.work { position: relative; flex: 0 0 clamp(240px, 24vw, 320px); aspect-ratio: 3 / 4; margin: 0; overflow: hidden; scroll-snap-align: start; background: var(--coal); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); pointer-events: none; }
.work:hover img { transform: scale(1.06); }
.work figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 2.4rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: .9rem; display: flex; flex-direction: column; }
.work figcaption b { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; border-left: 4px solid var(--orange); padding-left: .55rem; margin-bottom: .2rem; }
.works-cta { margin-top: 2.2rem; }

/* Machines */
.machines { position: relative; overflow: hidden; background: var(--coal-2); color: #fff; padding: clamp(90px, 11vw, 150px) 0; }
.machines-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 700; font-size: clamp(6rem, 20vw, 20rem); color: transparent; -webkit-text-stroke: 1.5px rgba(226,112,15,.16); white-space: nowrap; pointer-events: none; }
.machines-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.machines-copy > p:not(.eyebrow) { margin-top: 1.4rem; color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 30rem; }
.mlist { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.mlist li { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding: .5rem .9rem; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.mlist li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--orange); margin-right: .55rem; vertical-align: middle; }
.machines-media { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.15 / 1; }
.mm { margin: 0; overflow: hidden; position: relative; }
.mm img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mm:hover img { transform: scale(1.06); }
.mm-1 { grid-row: span 2; border-bottom: 6px solid var(--orange); }

/* Team */
.team { padding: clamp(90px, 11vw, 150px) 0; }
.team-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.team-photos { position: relative; aspect-ratio: 1 / 1; }
.tp { position: absolute; margin: 0; overflow: hidden; }
.tp img { width: 100%; height: 100%; object-fit: cover; }
.tp-1 { left: 0; top: 0; width: 62%; height: 70%; }
.tp-2 { right: 0; top: 14%; width: 34%; height: 46%; border: 6px solid var(--paper); }
.tp-3 { left: 26%; bottom: 0; width: 56%; height: 40%; border: 6px solid var(--paper); box-shadow: 10px 10px 0 var(--orange); }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 10px; }
.values li { display: flex; flex-direction: column; padding: 1rem 1.2rem; background: #fff; border-left: 5px solid var(--orange); }
.values b { font-family: var(--f-display); text-transform: uppercase; font-size: 1.3rem; }
.values span { color: var(--mute); font-size: .95rem; }

/* Quote */
.quote-sec { background: var(--coal); color: #fff; padding: clamp(90px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.quote-sec::after { content: ""; position: absolute; right: -8%; bottom: -10%; width: 34%; aspect-ratio: 1; background: var(--orange); opacity: .1; clip-path: polygon(0 100%, 0 40%, 50% 0, 50% 20%, 100% 20%, 100% 100%); }
.quote-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 1.2rem; background: var(--coal-2); border: 1px solid rgba(255,255,255,.07); }
.steps li > span { flex: none; display: grid; place-items: center; width: 52px; height: 52px; background: var(--orange); font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; }
.steps b { font-family: var(--f-display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .03em; }
.steps p { color: rgba(255,255,255,.65); font-size: .92rem; }
.quote { background: #fff; color: var(--ink); padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 1rem; box-shadow: 12px 12px 0 var(--orange); }
.quote h3 { font-size: 2rem; }
.quote label > span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: .35rem; }
.quote label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.quote input[type="text"], .quote select, .quote textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .85rem 1rem; border: 2px solid var(--concrete); background: var(--paper); border-radius: 0; appearance: none; -webkit-appearance: none; }
.quote textarea { resize: vertical; }
.quote select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--orange); background-color: #fff; }
.quote .is-invalid { border-color: #c0392b !important; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.form-note { font-size: .8rem; color: var(--mute); text-align: center; }

/* Visit */
.visit { padding: clamp(80px, 10vw, 130px) 0; }
.visit-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.visit-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 14px 14px 0 var(--orange); }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.vdata { margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--coal); }
.vdata div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.vdata dt { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--orange-d); font-size: .9rem; font-weight: 600; }
.vdata dd { margin: .2rem 0 0; font-weight: 500; }
.vdata a { text-decoration: none; border-bottom: 2px solid var(--orange); }

/* WA float */
.wa-float { position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 70; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.2rem .85rem 1rem; background: #25d366; color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; box-shadow: 5px 5px 0 var(--coal); transform: translateY(150%); transition: transform .6s var(--bounce); }
.wa-float.is-shown { transform: none; }
.wa-float svg { width: 24px; height: 24px; }

/* Footer */
.footer { background: var(--coal); color: rgba(255,255,255,.72); padding: 0 0 26px; overflow: hidden; }
.footer-big { font-family: var(--f-slab); font-weight: 800; font-size: clamp(4.6rem, 17vw, 16rem); line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(226,112,15,.4); padding-top: .18em; white-space: nowrap; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: clamp(30px, 4vw, 50px); }
.footer-brand { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: .95rem; color: rgba(255,255,255,.6); }
.footer h4 { font-size: 1.05rem; letter-spacing: .14em; color: var(--orange); margin-bottom: .9rem; }
.footer-inner a:not(.brand) { display: block; text-decoration: none; font-size: .95rem; margin-bottom: .4rem; }
.footer-inner a:not(.brand):hover { color: var(--orange-l); }
.footer-copy { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; opacity: .6; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-links { gap: 1.1rem; font-size: .95rem; }
  .svc-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(260px, 34vw, 340px); }
  .svc-xl { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 960px) {
  .hero-inner, .cyv-inner, .machines-inner, .team-inner, .quote-inner, .visit-inner { grid-template-columns: 1fr; }
  .hero-slash { width: 60%; opacity: .5; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cyv-media, .team-photos { max-width: 560px; }
  .visit-photo { max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(2.6rem, 13.5vw, 4.4rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .svc-xl { grid-column: auto; }
  .trades-link { margin-left: 0; }
  .units { flex-direction: column; }
  .works-nav { flex-direction: column; align-items: flex-start; }
  .machines-media { aspect-ratio: auto; grid-template-rows: 200px 200px; }
  .row2 { grid-template-columns: 1fr; }
  .vdata { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; }
  .brand-txt b { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 90s; } }
.hero-stats li { min-width: 0; }
@media (max-width: 600px) {
  .hero-stats b { font-size: 1.25rem; }
  .hero-stats li { padding: 1rem; }
  .hero-chip { left: -2%; }
  .hero-slash { right: -30%; }
}

/* Obra destacada */
.feat { padding: clamp(90px, 11vw, 150px) 0; background: var(--paper); }
.feat-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.feat-steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-steps li { counter-increment: s; position: relative; padding: 1rem 1rem 1rem 3.4rem; background: #fff; border-left: 4px solid var(--orange); display: flex; flex-direction: column; }
.feat-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem; font-family: var(--f-display); font-weight: 700; color: var(--orange); font-size: 1.2rem; }
.feat-steps b { font-family: var(--f-display); text-transform: uppercase; font-size: 1.15rem; }
.feat-steps span { font-size: .88rem; color: var(--mute); }
.feat-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1.1; }
.fg { position: relative; margin: 0; overflow: hidden; background: var(--coal); }
.fg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fg:hover img { transform: scale(1.06); }
.fg-1 { grid-row: span 2; border-bottom: 6px solid var(--orange); }
.fg-2 { grid-row: span 1; }
.fg-3 { grid-row: span 2; }
.fg-4 { grid-row: span 1; }
.fg figcaption { position: absolute; left: 0; top: 0; background: var(--coal); color: #fff; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; padding: .35rem .8rem; }
@media (max-width: 960px) { .feat-inner { grid-template-columns: 1fr; } .feat-grid { max-width: 620px; } }
@media (max-width: 600px) { .feat-steps { grid-template-columns: 1fr; } .feat-grid { aspect-ratio: auto; grid-template-rows: 180px 180px 180px; } }

/* ======== v2: hero slideshow ======== */
.hero { min-height: calc(100svh - 112px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(90px, 12vw, 160px); }
.hero-bg { display: none; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.slide.is-on img { transform: scale(1); }
.slide img.pos-top { object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,.92) 0%, rgba(14,14,14,.72) 42%, rgba(14,14,14,.15) 75%), linear-gradient(0deg, rgba(14,14,14,.9) 0%, transparent 40%); }
.hero-slash { right: -18%; width: 34%; opacity: .9; mix-blend-mode: multiply; }
.hero-inner { grid-template-columns: 1fr auto; align-items: end; padding-bottom: clamp(36px, 5vw, 60px); }
.hero-title { font-size: clamp(3.4rem, 9vw, 8.6rem); text-shadow: 0 6px 40px rgba(0,0,0,.35); }
.hero-meta { justify-self: end; width: min(300px, 100%); color: #fff; padding: 1.1rem 1.2rem; background: rgba(20,20,20,.55); border-left: 4px solid var(--orange); }
@supports (backdrop-filter: blur(6px)) { .hero-meta { backdrop-filter: blur(10px); } }
.hm-count { font-family: var(--f-display); display: flex; align-items: baseline; gap: .4rem; }
.hm-count b { font-size: 2.4rem; color: var(--orange); line-height: 1; }
.hm-count span { opacity: .6; }
.hm-cap { font-size: .92rem; margin: .4rem 0 .8rem; min-height: 2.6em; }
.hm-bars { display: flex; gap: 6px; }
.hm-bars i { flex: 1; height: 3px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hm-bars i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.hm-bars i.on::after { animation: bar 5.5s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* ======== v2: construye y vende ======== */
.cyv-inner { grid-template-columns: .85fr 1.15fr; align-items: stretch; }
.cyv-render { position: relative; margin: 0; min-height: 560px; overflow: hidden; box-shadow: 16px 16px 0 var(--orange); }
.cyv-render img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cyv-render figcaption { position: absolute; right: 10px; bottom: 10px; font-size: .72rem; background: rgba(0,0,0,.6); padding: .25rem .6rem; color: rgba(255,255,255,.85); }
.cyv-pin { position: absolute; left: 0; top: 24px; background: var(--orange); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; padding: .45rem 1rem; font-size: 1.05rem; }
.cyv-copy { align-self: center; }
.cyv-lead { margin-top: 1.2rem; color: rgba(255,255,255,.8); font-size: 1.12rem; max-width: 34rem; }
.perks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perks li { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.12); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; }
.perks svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cyv-progress { position: relative; margin-top: clamp(60px, 8vw, 100px); }
.cp-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.cp-head b { font-family: var(--f-display); text-transform: uppercase; font-size: 1.9rem; }
.cp-head span { color: rgba(255,255,255,.6); font-size: .9rem; }
.cp-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; }
.cp-grid figure { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.cp-grid figure:first-child { aspect-ratio: auto; }
.cp-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cp-grid figure:hover img { transform: scale(1.06); }
.cp-grid figcaption { position: absolute; left: 0; bottom: 0; background: var(--orange); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding: .3rem .7rem; font-size: .9rem; }

/* ======== v2: galpón timeline ======== */
.feat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(30px, 4vw, 50px); }
.feat-head .sec-lead { margin: 0; }
.tl-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--coal); margin-bottom: 14px; }
.tl-tabs button { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: transparent; border: 0; border-right: 2px solid var(--coal); font-family: var(--f-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; color: var(--ink); transition: background .3s, color .3s; text-align: left; }
.tl-tabs button:last-child { border-right: 0; }
.tl-tabs button i { font-style: normal; color: var(--orange); }
.tl-tabs button[aria-selected="true"] { background: var(--coal); color: #fff; }
.tl-tabs button:not([aria-selected="true"]):hover { background: var(--concrete); }
.tl-panel { display: none; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.tl-panel.is-on { display: grid; animation: tlIn .7s var(--ease); }
@keyframes tlIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tl-panel figure { margin: 0; overflow: hidden; background: var(--coal); }
.tl-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tl-panel figure:hover img { transform: scale(1.05); }
.tl-big { grid-row: span 2; border-bottom: 6px solid var(--orange); }
.tl-txt { grid-column: 2 / 4; align-self: center; padding: 1.2rem 1.4rem; background: #fff; border-left: 5px solid var(--orange); font-size: 1.02rem; color: var(--mute); }
.tl-panel figure:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.tl-panel figure:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.tl-txt { grid-row: 2; }
.tl-txt b { color: var(--ink); font-family: var(--f-display); text-transform: uppercase; font-size: 1.3rem; font-weight: 600; display: block; margin-bottom: .2rem; }
.feat-cta { margin-top: 1.8rem; }

/* ======== v2: machines & team ======== */
.machines-media { grid-template-columns: 1.25fr 1fr; aspect-ratio: 1.05 / 1; }
.mm-1 img { object-position: 40% 60%; }
.tp-1 { width: 74%; height: 64%; }
.tp-1 img { object-position: 50% 70%; }
.tp-2 { top: 40%; height: 40%; width: 30%; }
.tp-3 { left: 8%; width: 50%; height: 34%; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta { justify-self: start; }
  .cyv-render { min-height: 480px; max-width: 520px; }
  .cp-grid { grid-template-columns: 1fr 1fr; }
  .cp-grid figure:first-child { aspect-ratio: 3 / 4; }
  .feat-head { grid-template-columns: 1fr; }
  .tl-panel { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px auto; }
  .tl-big { grid-column: 1 / -1; grid-row: 1; }
  .tl-panel figure:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .tl-panel figure:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .tl-txt { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero-meta { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,14,14,.95) 10%, rgba(14,14,14,.55) 100%); }
  .perks { grid-template-columns: 1fr; }
  .tl-tabs button { font-size: 1rem; padding: .8rem .6rem; flex-direction: column; align-items: flex-start; gap: .1rem; }
  .tl-panel { grid-template-rows: 240px 140px auto; }
  .team-photos { aspect-ratio: 1 / 1.1; }
}
@media (prefers-reduced-motion: reduce) { .slide img { transition: none; transform: none; } }
.hero-title { text-shadow: none; }
.hero-inner, .hero-stats { width: 100%; max-width: 1320px; margin-left: auto; margin-right: auto; }

/* ======== Obras urbanas ======== */
.urban { background: var(--coal); color: #fff; padding: clamp(90px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.urban-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(30px, 4vw, 50px); }
.urban-head > p { color: rgba(255,255,255,.75); font-size: 1.08rem; }
.urban-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 12px; }
.ug { position: relative; margin: 0; overflow: hidden; background: var(--coal-2); }
.ug img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ug:hover img { transform: scale(1.06); }
.ug-1 { grid-row: span 2; border-bottom: 6px solid var(--orange); }
.ug figcaption { position: absolute; left: 0; bottom: 0; background: var(--orange); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding: .35rem .8rem; font-size: .95rem; }
.ug-5 { display: block; }
.urban-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.urban-list li { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.2); }
.urban-list li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--orange); margin-right: .5rem; vertical-align: middle; }
.hero .slide img { object-position: 50% 45%; }
@media (max-width: 960px) {
  .urban-head { grid-template-columns: 1fr; }
  .urban-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .ug-1 { grid-column: 1 / -1; grid-row: auto; }
  .ug-5 { display: block; }
}
@media (max-width: 600px) { .urban-grid { grid-template-rows: 240px 170px 170px; } }
@media (max-width: 960px) {
  .cyv-inner { grid-template-columns: 1fr; }
  .cyv-render { min-height: 420px; max-width: none; width: 100%; }
}
@media (max-width: 600px) {
  .cyv-render { min-height: 380px; box-shadow: 10px 10px 0 var(--orange); }
  .cyv .btn, .urban .btn, .feat-cta { width: 100%; }
  .feat h2 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}

@media (max-width: 1180px) {
  .topbar .tb-hide { display: none; }
  .nav-toggle { display: grid; place-content: center; gap: 5px; width: 48px; height: 48px; background: transparent; border: 2px solid rgba(255,255,255,.25); cursor: pointer; z-index: 2; }
  .nav-toggle span { width: 22px; height: 2px; background: #fff; transition: transform .4s var(--ease), opacity .3s; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: fixed; left: 0; right: 0; top: 78px; height: calc(100dvh - 78px); flex-direction: column; justify-content: center; gap: 1.4rem; font-size: 1.9rem; background: var(--coal); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s; }
  .nav.is-open .nav-links { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease); }
}
.nav-links a { white-space: nowrap; }
.hero-copy { min-width: 0; }
@media (max-width: 1180px) { .hero-inner { grid-template-columns: 1fr; } .hero-meta { justify-self: start; } }
