:root {
  --black: #080808;
  --panel: #0e0e0e;
  --ink: #f4f2ee;
  --muted: #9e9a96;
  --line: rgba(255, 255, 255, .13);
  --red: #17462f;
  --deep-red: #2f7d52;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --pad: clamp(22px, 5vw, 78px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.ui-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; }
::selection { color: white; background: var(--red); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 96px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.brand { width: 250px; display: grid; grid-template-columns: auto 1fr; align-items: center; line-height: 1; }
.brand__name { grid-column: 1 / -1; font: 800 19px/1 var(--display); letter-spacing: .1em; }
.brand__line { height: 1px; background: var(--deep-red); margin-right: 7px; }
.brand__role { font: 600 8px/1 var(--body); letter-spacing: .13em; color: #ccc; white-space: nowrap; }
.brand__role b { color: var(--deep-red); font-weight: 700; }
.desktop-nav { display: flex; gap: clamp(24px, 3vw, 52px); }
.desktop-nav a { position: relative; color: #d8d6d2; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--deep-red); transition: width .25s ease; }
.desktop-nav a:hover::after { width: 100%; }
.header-cta { min-width: 190px; height: 40px; padding: 0 15px 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.3); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .1em; transition: background .2s ease, color .2s ease; }
.header-cta svg { width: 17px; }
.header-cta:hover { color: #fff; background: var(--red); border-color: var(--red); }
.menu-toggle, .mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 850px;
  height: 100svh;
  max-height: 980px;
  overflow: hidden;
  background: #07140e;
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3,12,8,.99) 0%, rgba(7,27,19,.8) 38%, rgba(9,38,25,.08) 67%, rgba(0,0,0,.18) 100%); }
.hero__background { position: absolute; inset: 0; background: radial-gradient(circle at 68% 45%, rgba(47,125,82,.34), transparent 35%), linear-gradient(110deg, #030b07 8%, #153f2d 60%, #2f6f4e 100%); }
.hero__portrait { position: absolute; inset: 0; background-image: url("assets/cerramientos-leganes-hero.png"); background-size: cover; background-position: center; }
.hero__giant-word { position: absolute; z-index: 1; top: 12%; left: 6%; color: rgba(59,139,94,.15); font: 900 clamp(110px, 16vw, 260px)/.8 var(--display); letter-spacing: -.055em; user-select: none; }
.hero__content { position: absolute; z-index: 3; top: 50%; left: var(--pad); width: min(680px, 52vw); transform: translateY(-47%); }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--deep-red); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: #fff; }
.hero h1, .section h2, .method h2, .contact h2, .coverage h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 { font-size: clamp(70px, 7.8vw, 138px); line-height: .76; }
.hero h1 em { display: inline-block; font-size: .8em; }
h1 em, h2 em { color: var(--deep-red); font-style: normal; }
.hero__lead { max-width: 440px; margin: 28px 0 34px; color: #beb9b4; font-size: clamp(15px, 1.25vw, 19px); }
.hero__actions { display: flex; align-items: center; gap: 34px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; min-width: 226px; height: 54px; padding: 0 20px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button svg { width: 18px; }
.button--red { background: var(--red); }
.button--outline { border: 1px solid rgba(255,255,255,.27); }
.button--outline:hover { background: var(--red); border-color: var(--red); }
.text-link { font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.26); padding-bottom: 5px; }
.text-link span { color: var(--deep-red); margin-left: 5px; }
.stat-cards { position: absolute; z-index: 5; right: var(--pad); bottom: 10.5%; display: flex; gap: 12px; }
.stat-card { width: 180px; height: 184px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.stat-card--solid { background: rgba(42,116,76,.95); }
.stat-card--glass { background: rgba(20,69,47,.82); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,.1); }
.stat-card strong { font: 500 62px/.85 var(--display); letter-spacing: -.04em; }
.stat-card strong sup { font-size: .55em; }
.stat-card strong small { font-size: .48em; }
.stat-card p { margin: 0; color: rgba(255,255,255,.75); font-size: 10px; line-height: 1.4; }
.scroll-cue { position: absolute; z-index: 5; bottom: 32px; left: var(--pad); display: flex; align-items: center; gap: 14px; color: #938e8a; text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.scroll-cue i { position: relative; width: 38px; height: 1px; background: var(--deep-red); }

.section { padding: 130px var(--pad); }
.services { background: var(--black); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 8vw; max-width: 1400px; margin: 0 auto 72px; }
.section h2, .method h2, .contact h2, .coverage h2 { font-size: clamp(58px, 6.1vw, 104px); line-height: .82; }
.section-intro { max-width: 470px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-grid--single { grid-template-columns: 1fr; }
.service-card { position: relative; isolation: isolate; min-height: 535px; padding: 25px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #191919; }
.service-card--single { min-height: 560px; }
.service-card--single::before { background-position: 70% 43%; }
.service-card--single .service-card__content { max-width: 540px; }
.service-card--single p { max-width: 500px; }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; opacity: .56; filter: grayscale(.25) contrast(1.05); transition: transform .7s ease, opacity .4s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.14) 20%, rgba(4,4,4,.95) 90%); }
.service-card:hover::before { transform: scale(1.045); opacity: .75; }
.service-card--vallados::before { background-image: linear-gradient(120deg, rgba(24,63,45,.2), rgba(0,0,0,.08)), url("assets/cerramientos-leganes-malla-simple-torsion.png"); background-position: center 38%; }
.service-card--ganadera::before { background-image: linear-gradient(120deg, rgba(0,0,0,.12), rgba(24,63,45,.18)), url("assets/cerramientos-leganes-malla-ganadera.png"); background-position: center 40%; }
.service-card--puertas::before { background-image: linear-gradient(120deg, rgba(0,0,0,.12), rgba(24,63,45,.18)), url("assets/cerramientos-leganes-puertas-paneles.png"); background-position: center 36%; }
.service-card__number { position: absolute; top: 22px; left: 24px; font: 700 11px var(--body); color: var(--deep-red); letter-spacing: .12em; }
.service-card__content { position: relative; }
.service-card__content > span { color: var(--deep-red); font: 700 9px var(--body); letter-spacing: .16em; text-transform: uppercase; }
.service-card h3 { margin: 10px 0 15px; font: 700 clamp(31px, 2.5vw, 46px)/.87 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.service-card p { max-width: 310px; margin: 0; color: #8f8c89; font-size: 11px; line-height: 1.6; }
.service-card > a { position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--deep-red); font-size: 18px; transition: background .2s ease, color .2s ease; }
.service-card > a:hover { color: white; background: var(--red); }
.services-footer { max-width: 1400px; margin: 45px auto 0; display: flex; justify-content: space-between; align-items: center; }
.services-footer--single { justify-content: flex-start; }
.mini-stats { margin: 0; display: flex; gap: 60px; }
.mini-stats div { display: grid; gap: 3px; }
.mini-stats dt { font: 700 35px/1 var(--display); }
.mini-stats dd { margin: 0; color: #797572; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.method { background: var(--red); overflow: hidden; }
.method__copy { max-width: 1400px; margin: 0 auto; padding: 115px var(--pad); display: flex; flex-direction: column; justify-content: center; }
.method__copy .eyebrow { color: #72ad89; }
.method__copy .eyebrow span { background: #72ad89; }
.method h2 em { color: #72ad89; }
.method__lead { max-width: 650px; margin: 28px 0 36px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.8; }
.method__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.26); }
.method__list li { padding: 19px 0; display: flex; gap: 22px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.26); }
.method__list i { width: 34px; color: #72ad89; font: 800 11px var(--body); font-style: normal; }
.method__list div { display: grid; }
.method__list strong { font: 700 22px/1 var(--display); text-transform: uppercase; }
.method__list span { margin-top: 5px; color: rgba(255,255,255,.68); font-size: 10px; }

.manifesto { position: relative; overflow: hidden; }
.manifesto__grid { max-width: 1400px; margin: 0 auto 115px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 9vw; align-items: start; }
.manifesto__copy { padding-top: 20px; }
.manifesto__copy p { margin: 0 0 20px; color: #9e9a96; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.8; }
.manifesto__copy strong { color: #fff; }
.text-link--red { display: inline-block; margin-top: 20px; color: var(--deep-red); border-color: rgba(47,125,82,.45); }
.marquee { width: calc(100% + 60px); margin-left: -30px; padding: 12px 0; background: var(--red); transform: rotate(-2.2deg); }
.marquee div { display: flex; width: max-content; align-items: center; gap: 32px; animation: marquee 24s linear infinite; white-space: nowrap; }
.marquee span { color: white; font: 800 28px/1 var(--display); letter-spacing: .04em; }
.marquee i { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: var(--deep-red); }
@keyframes marquee { to { transform: translateX(-50%); } }

.coverage { padding-top: 100px; padding-bottom: 100px; background: #0c0c0c; border-top: 1px solid var(--line); }
.coverage__heading { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 8vw; }
.coverage__copy p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.coverage__copy .text-link { display: inline-block; margin-top: 24px; }

.contact { position: relative; min-height: 625px; padding: 100px var(--pad); display: grid; grid-template-columns: 1fr 360px; gap: 9vw; align-items: center; overflow: hidden; background: #17462f; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1b5137, rgba(23,70,47,.97) 57%, #103724); }
.contact__glow { position: absolute; right: 23%; top: -15%; width: 530px; height: 530px; border: 100px solid rgba(145,205,170,.18); border-radius: 50%; }
.contact__content, .contact__card { position: relative; z-index: 2; }
.contact h2 { max-width: 950px; }
.contact h2 em { color: #72ad89; }
.contact__content > p:not(.eyebrow) { max-width: 590px; color: rgba(255,255,255,.72); }
.contact__phone { margin-top: 28px; display: flex; align-items: center; width: max-content; gap: 18px; font: 700 clamp(34px, 4vw, 62px)/1 var(--display); letter-spacing: -.02em; }
.contact__phone i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #0b0b0b; }
.contact__phone svg { width: 22px; }
.contact__card { min-height: 340px; padding: 40px; display: flex; flex-direction: column; background: #0b0b0b; box-shadow: 0 22px 55px rgba(4,28,18,.34); }
.contact__card > span { color: var(--deep-red); font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.contact__card h3 { margin: 20px 0 15px; font: 700 36px/.9 var(--display); }
.contact__card p { color: #77736f; font-size: 11px; line-height: 1.65; }
.contact__card div { margin-top: 15px; color: #ccc; font-size: 10px; }
.contact__card div i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #38be6d; box-shadow: 0 0 0 4px rgba(56,190,109,.12); }
.contact__card a { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.contact__card a b { color: var(--deep-red); }

footer { min-height: 150px; padding: 40px var(--pad); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #77736f; border-top: 1px solid var(--line); font-size: 10px; }
.brand--footer { color: #fff; }
footer p { text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 30px; }
footer a:hover { color: var(--deep-red); }

.floating-call { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: 58px; height: 58px; display: none; place-items: center; color: white; background: var(--red); border-radius: 50%; box-shadow: 0 10px 35px rgba(47,125,82,.4); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease; }
.floating-call.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.floating-call svg { width: 23px; }
.floating-call .whatsapp-logo { fill: currentColor; stroke: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .hero { min-height: 780px; }
  .hero__content { width: 65vw; }
  .hero__portrait { background-position: 58% center; }
  .stat-card { width: 152px; height: 156px; }
  .stat-card strong { font-size: 50px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 470px; }
  .service-card:last-child { grid-column: 1 / -1; }
  .method__copy { padding: 80px 50px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .site-header { position: absolute; height: 76px; }
  .header-cta { display: none; }
  .menu-toggle { width: 42px; height: 42px; padding: 11px 8px; display: flex; flex-direction: column; justify-content: center; gap: 7px; color: white; background: transparent; border: 1px solid var(--line); }
  .menu-toggle span { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { position: fixed; z-index: 19; inset: 0; padding: 120px 28px 40px; display: flex; flex-direction: column; gap: 7px; background: rgba(8,8,8,.98); transform: translateY(-102%); transition: transform .35s ease; }
  .mobile-nav.is-open { transform: translateY(0); }
  .mobile-nav a { padding: 8px 0; font: 700 42px/1 var(--display); text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { margin-top: auto; color: var(--deep-red); }
  body.menu-open { overflow: hidden; }

  .hero { min-height: 820px; height: 100svh; max-height: 900px; }
  .hero::after { background: linear-gradient(180deg, rgba(3,12,8,.15) 25%, rgba(5,24,15,.78) 58%, #030b07 94%); }
  .hero__portrait {
    background-image: url("assets/cerramientos-leganes-hero.png");
    background-position: 71% center;
  }
  .hero__giant-word { top: 13%; left: -4%; font-size: 105px; }
  .hero__content { top: auto; bottom: 152px; left: var(--pad); width: calc(100% - 40px); transform: none; }
  .hero h1 { font-size: clamp(56px, 18vw, 76px); }
  .hero h1 em { font-size: .68em; }
  .hero__lead { margin: 20px 0 24px; font-size: 14px; }
  .hero__actions { gap: 18px; }
  .hero__actions .text-link { display: none; }
  .button { min-width: 220px; }
  .stat-cards { right: 16px; bottom: 23px; gap: 7px; }
  .stat-card { width: 133px; height: 108px; padding: 14px; }
  .stat-card strong { font-size: 37px; }
  .stat-card p { font-size: 8px; }
  .scroll-cue { bottom: 62px; }
  .scroll-cue span { display: none; }

  .section { padding: 90px var(--pad); }
  .section-heading, .manifesto__grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .section h2, .method h2, .contact h2, .coverage h2 { font-size: clamp(54px, 16vw, 75px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .service-card { min-height: 430px; }
  .service-card__content { padding-bottom: 58px; }
  .services-footer { align-items: stretch; flex-direction: column; gap: 45px; }
  .mini-stats { justify-content: space-between; gap: 10px; }
  .mini-stats dt { font-size: 27px; }
  .mini-stats dd { max-width: 80px; }

  .method__copy { padding: 80px var(--pad); }
  .method__lead { font-size: 14px; }
  .manifesto__grid { margin-bottom: 80px; }
  .manifesto__copy { padding-top: 0; }
  .marquee { width: calc(100% + 40px); margin-left: -20px; }
  .coverage__heading { grid-template-columns: 1fr; gap: 30px; }
  .coverage { padding-top: 80px; padding-bottom: 80px; }

  .contact { padding: 85px var(--pad); grid-template-columns: 1fr; gap: 55px; }
  .contact__phone { font-size: 42px; }
  .contact__phone i { width: 48px; height: 48px; }
  .contact__card { min-height: 310px; }
  footer { padding: 50px var(--pad); grid-template-columns: 1fr; gap: 28px; text-align: left; }
  footer p { text-align: left; }
  footer > div { justify-content: flex-start; }
  .floating-call { display: grid; }
}

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