:root {
  --black: #101010;
  --ink: #191919;
  --paper: #f4f1ed;
  --white: #fff;
  --red: #c91522;
  --red-dark: #9d0e18;
  --line: rgba(16, 16, 16, .14);
  --sans: "Inter", system-ui, sans-serif;
  --display: "Barlow Condensed", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header {
  position: absolute; z-index: 20; top: 0; left: 0; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(22px, 5vw, 76px); color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { position: relative; width: 48px; height: 44px; display: grid; place-items: center; background: #101010; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand-mark b, .brand-mark i { position: absolute; font: 800 31px/1 var(--display); font-style: normal; }
.brand-mark b { color: var(--red); transform: translateX(-7px); }
.brand-mark i { color: var(--red); transform: translateX(7px); }
.brand strong { display: block; font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: .035em; }
.brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.68); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: 14px; font-weight: 600; }
.main-nav a:not(.nav-cta) { padding: 10px 0; border-bottom: 1px solid transparent; }
.main-nav a:not(.nav-cta):hover { border-color: var(--white); }
.nav-cta { padding: 13px 18px; background: var(--red); border-radius: 3px; }
.language-link { color: #ffbec3; letter-spacing: .08em; }
.menu-button { display: none; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.5); padding: 9px 12px; }

.hero { position: relative; min-height: 780px; height: 100svh; color: var(--white); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("assets/client-originals/54-fachada-acristalada-industrial.jpg") center 42% / cover no-repeat; filter: brightness(1.13) saturate(1.05); transform: scale(1.025); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,6,6,.84) 0%, rgba(6,6,6,.58) 43%, rgba(6,6,6,.1) 78%), linear-gradient(0deg, rgba(6,6,6,.55), transparent 45%); }
.hero-content { position: relative; z-index: 2; width: min(760px, 90%); margin-left: clamp(22px, 9vw, 145px); padding-top: 70px; }
.eyebrow { margin: 0 0 18px; color: #efc3c6; font-size: 12px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow.dark { color: var(--red); }
.hero h1 { margin: 0; font: 800 clamp(64px, 8.2vw, 118px)/.84 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 span { color: var(--red); }
.hero-copy { max-width: 670px; margin: 30px 0; color: rgba(255,255,255,.82); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 3px; font-size: 14px; font-weight: 700; transition: .2s ease; }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(255,255,255,.52); }
.button-ghost:hover { background: var(--white); color: var(--black); }
.hero-proof { position: absolute; z-index: 2; bottom: 0; left: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 clamp(22px, 5vw, 76px); border-top: 1px solid rgba(255,255,255,.2); background: rgba(8,8,8,.32); backdrop-filter: blur(9px); }
.hero-proof span { padding: 22px; border-right: 1px solid rgba(255,255,255,.18); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.hero-proof span:last-child { border: 0; }
.hero-proof b { margin-right: 12px; color: var(--red); }

.section { padding: clamp(72px, 9vw, 132px) clamp(22px, 7vw, 110px); }
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(50px, 10vw, 160px); align-items: end; }
h2 { margin: 0; font: 700 clamp(44px, 5.3vw, 78px)/.93 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.intro > p { margin: 0; color: #555; font-size: 18px; line-height: 1.8; }

.routes { padding-top: 0; background: var(--paper); }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.route-card { position: relative; min-height: 510px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4vw, 58px); overflow: hidden; }
.route-card-dark { color: #fff; background: var(--black); }
.route-card-light { color: var(--black); background: #ded8d1; }
.route-card::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 300px; height: 300px; border: 58px solid rgba(201,21,34,.14); border-radius: 50%; }
.route-card > * { position: relative; z-index: 1; }
.route-tag { padding: 8px 10px; color: var(--red); border: 1px solid currentColor; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.route-card h3 { max-width: 650px; margin: 40px 0 17px; font: 700 clamp(38px, 4.5vw, 64px)/.95 var(--display); text-transform: uppercase; }
.route-card p { max-width: 590px; margin: 0; color: inherit; opacity: .72; font-size: 16px; line-height: 1.7; }
.route-card ul { margin: 28px 0 34px; padding: 0; list-style: none; }
.route-card li { position: relative; margin: 12px 0; padding-left: 23px; font-size: 14px; }
.route-card li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.route-card .button { margin-top: auto; }
.button-dark { color: #fff; background: var(--black); }
.button-dark:hover { background: #333; transform: translateY(-2px); }
.button-outline { color: var(--black); border: 1px solid rgba(16,16,16,.35); }
.button-outline:hover { color: #fff; background: var(--black); transform: translateY(-2px); }

.services { background: var(--white); }
.section-heading { margin-bottom: 44px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 430px; padding: 30px 30px 175px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.service-card.featured { grid-column: span 2; color: var(--white); background: var(--black); }
.service-number { color: var(--red); font: 700 14px var(--display); letter-spacing: .12em; }
.service-card h3 { margin: 48px 0 12px; font: 700 30px/1 var(--display); text-transform: uppercase; }
.service-card p { position: relative; z-index: 2; max-width: 350px; margin: 0; color: #666; font-size: 14px; line-height: 1.65; }
.service-card.featured p { color: rgba(255,255,255,.72); }
.service-card.featured { padding-bottom: 30px; }
.service-card.featured img { position: absolute; right: 0; top: 0; width: 43%; height: 100%; object-fit: cover; opacity: .72; mask-image: linear-gradient(90deg, transparent, #000 38%); }
.service-photo { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 145px; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-photo { transform: scale(1.035); }

.process { background: #e8e3dd; }
.process-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.process-strip figure { position: relative; margin: 0; min-height: 480px; overflow: hidden; background: #bbb; }
.process-strip img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; transition: transform .45s ease; }
.process-strip figure:hover img { transform: scale(1.035); }
.process-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 22px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.process-strip figcaption b { color: #ff4954; margin-right: 9px; }

.portfolio { background: var(--paper); }
.portfolio-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.filter { cursor: pointer; padding: 9px 13px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.filter.active, .filter:hover { color: #fff; border-color: var(--black); background: var(--black); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 10px; }
.gallery-item { position: relative; cursor: zoom-in; display: block; padding: 0; border: 0; background: #d7d2cd; overflow: hidden; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease, filter .42s ease; }
.gallery-item span { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 7px 9px; color: #fff; background: rgba(0,0,0,.76); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: .25s ease; }
.gallery-item:hover img { transform: scale(1.045); filter: brightness(.78); }
.gallery-item:hover span { opacity: 1; transform: none; }

.trust { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); gap: clamp(45px, 8vw, 120px); align-items: center; background: #ded8d1; }
.trust-copy > p:not(.eyebrow) { max-width: 700px; color: #56514c; font-size: 17px; line-height: 1.75; }
.trust-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-points { border-top: 1px solid rgba(16,16,16,.2); }
.trust-points article { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 24px; padding: 25px 0; border-bottom: 1px solid rgba(16,16,16,.2); }
.trust-points b { color: var(--red); font: 800 56px/1 var(--display); }
.trust-points span { color: #494540; font-size: 14px; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 140px); color: #fff; background: var(--black); }
.contact-copy p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.75; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button-secondary { color: var(--white); border: 1px solid rgba(255,255,255,.52); }
.button-secondary:hover { color: var(--black); background: var(--white); transform: translateY(-2px); }
.contact-card { align-self: center; border-top: 1px solid rgba(255,255,255,.2); font-style: normal; }
.contact-card div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-card small { color: rgba(255,255,255,.45); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.contact-card a { overflow-wrap: anywhere; }
.contact-card a:hover { color: #ff6570; }
.social-link { display: inline-flex; align-items: center; gap: 11px; }
.contact-icon { flex: 0 0 auto; width: 24px; height: 24px; }
.instagram-icon { fill: none; stroke: currentColor; stroke-width: 1.8; }
.instagram-icon .instagram-dot { fill: currentColor; stroke: none; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px clamp(22px, 5vw, 76px); color: #fff; background: #080808; border-top: 1px solid rgba(255,255,255,.1); }
footer p { color: rgba(255,255,255,.48); font-size: 12px; }
.floating-whatsapp { position: fixed; z-index: 15; right: 18px; bottom: 18px; width: 60px; height: 60px; display: grid; place-items: center; color: #fff; background: #25d366; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.28); transition: transform .2s ease, box-shadow .2s ease; }
.floating-whatsapp::after { content: ""; position: absolute; inset: -6px; z-index: -1; border: 2px solid rgba(37,211,102,.38); border-radius: 50%; }
.floating-whatsapp svg { width: 34px; height: 34px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.floating-whatsapp svg path:last-child { fill: currentColor; stroke: none; }
.floating-whatsapp-label { position: absolute; right: calc(100% + 12px); width: max-content; padding: 8px 10px; color: #fff; background: rgba(16,16,16,.92); border-radius: 4px; font-size: 12px; font-weight: 700; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.floating-whatsapp:hover .floating-whatsapp-label, .floating-whatsapp:focus-visible .floating-whatsapp-label { opacity: 1; transform: none; }

.lightbox { width: min(1100px, 94vw); height: min(86vh, 900px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; right: -2px; top: -44px; cursor: pointer; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 27px; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 22px; background: rgba(12,12,12,.97); flex-direction: column; align-items: stretch; gap: 8px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 4px; }
  .nav-cta { text-align: center; }
  .route-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .trust { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { padding: 16px; }
  .brand small { display: none; }
  .brand strong { max-width: 215px; font-size: 16px; }
  .brand-mark { width: 42px; height: 39px; }
  .hero { min-height: 720px; }
  .hero-bg { background-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,6,6,.82), rgba(6,6,6,.36)), linear-gradient(0deg, rgba(6,6,6,.68), transparent 55%); }
  .hero-content { margin: 0 18px; width: auto; padding-top: 30px; }
  .hero h1 { font-size: clamp(56px, 18vw, 82px); }
  .hero-copy { margin: 22px 0; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { grid-template-columns: 1fr; padding: 0 18px; }
  .hero-proof span { display: none; padding: 15px 0; border: 0; }
  .hero-proof span:first-child { display: block; }
  .section { padding: 70px 18px; }
  .intro { grid-template-columns: 1fr; gap: 30px; }
  .route-card { min-height: 540px; padding: 32px 24px; }
  .route-card h3 { font-size: 43px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; min-height: 430px; }
  .service-card.featured img { width: 100%; height: 49%; top: auto; bottom: 0; mask-image: linear-gradient(0deg, #000, transparent); }
  .process-strip { grid-template-columns: 1fr; }
  .process-strip figure, .process-strip img { min-height: 390px; }
  .portfolio-heading { display: block; }
  .filters { margin-top: 25px; justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 2; }
  .gallery-item span { opacity: 1; transform: none; }
  .trust-actions { flex-direction: column; align-items: stretch; }
  .trust-points article { grid-template-columns: 70px 1fr; }
  .trust-points b { font-size: 48px; }
  .contact-card div { grid-template-columns: 1fr; gap: 8px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
