:root {
  --green-950: #0b1f13;
  --green-900: #10271a;
  --green-850: #143021;
  --green-800: #1a3a2a;
  --green-700: #245c40;
  --lime: #9fc932;
  --lime-bright: #b7e52a;
  --cream: #f5f7ef;
  --mist: #edf1ea;
  --card: #fbfcf8;
  --ink: #132018;
  --muted: #657068;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(7, 31, 19, .16);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 138px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: .98;
}
p { line-height: 1.75; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 105px 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; padding: 12px 18px; color: #fff; background: #000; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: #fff;
  background: var(--green-950);
  border-bottom: 1px solid rgba(183, 229, 42, .18);
  box-shadow: 0 7px 30px rgba(0, 0, 0, .12);
}
.nav-wrap {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand { flex: 0 0 auto; width: clamp(200px, 18vw, 242px); }
.brand img {
  width: 100%;
  height: auto;
  max-height: 116px;
  object-fit: contain;
  background: transparent;
}
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 30px); }
.main-nav > a {
  position: relative;
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.main-nav > a:not(.nav-whatsapp)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -10px;
  height: 2px;
  background: var(--lime-bright);
  transition: right .25s ease;
}
.main-nav > a:hover, .main-nav > a.active { color: #fff; }
.main-nav > a:hover::after, .main-nav > a.active::after { right: 0; }
.nav-whatsapp {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--green-950) !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--lime-bright);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: transparent;
}
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 5px auto; background: #fff; transition: transform .25s, opacity .25s; }

.hero {
  position: relative;
  min-height: calc(100vh - 132px);
  display: flex;
  color: #fff;
  background: url("assets/hero.png") center 56% / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,31,19,.94) 0%, rgba(11,31,19,.8) 43%, rgba(11,31,19,.25) 78%, rgba(11,31,19,.1) 100%),
    linear-gradient(0deg, rgba(11,31,19,.38), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 132px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 44px;
}
.hero-copy { width: min(740px, 100%); }
.eyebrow {
  display: inline-block;
  margin-bottom: 17px;
  color: var(--green-700);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.eyebrow.light { color: var(--lime-bright); }
.hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(3.2rem, 6.6vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.hero h1 em { display: block; color: var(--lime-bright); font-style: normal; }
.hero-copy > p {
  max-width: 650px;
  margin: 28px 0 32px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--green-950); background: var(--lime-bright); }
.btn-primary:hover { background: #c7f53c; }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-dark { color: #fff; background: var(--green-850); }
.btn-dark:hover { background: var(--green-700); }

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-feature {
  padding: 24px 28px 4px 0;
  border-right: 1px solid rgba(255,255,255,.18);
}
.hero-feature:last-child { border-right: 0; padding-right: 0; }
.hero-feature strong { display: block; color: var(--lime-bright); font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-feature span { color: rgba(255,255,255,.75); font-size: .85rem; }

.section-heading.centered { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-heading.centered h2,
.section-heading.split h2,
.about-copy h2,
.supply-copy h2,
.cta h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
  letter-spacing: -.035em;
}
.section-heading.centered p { max-width: 670px; margin: 22px auto 0; color: var(--muted); }

.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.service-card {
  min-height: 335px;
  padding: 28px 24px 30px;
  border: 1px solid rgba(18,59,41,.1);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 38px rgba(13,48,33,.045);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(159,201,50,.5); box-shadow: var(--shadow); }
.service-icon-img {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 41, .09);
  border-radius: 24px;
  background: #ffffff;
}
.service-icon-img img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.service-card h3 { margin-bottom: 13px; font-size: 1.14rem; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }

.projects { background: var(--mist); overflow: hidden; }
.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .7fr);
  align-items: end;
  gap: 50px;
  margin-bottom: 42px;
}
.section-heading.split p { margin: 0 0 6px; color: var(--muted); }

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform .45s ease;
  will-change: transform;
}
.carousel-card {
  flex: 0 0 calc((100% - 36px) / 3);
  overflow: hidden;
  border-radius: 20px;
  background: var(--green-900);
  box-shadow: 0 12px 30px rgba(8,37,24,.1);
}
.carousel-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.carousel-caption {
  padding: 16px 18px 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,25,16,.95), rgba(10,25,16,.98));
}
.carousel-caption h3 { margin: 0 0 4px; font-size: 1.05rem; }
.carousel-caption p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.7); }
.carousel-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: var(--green-900);
  box-shadow: 0 10px 22px rgba(7,31,19,.18);
}
.carousel-btn:hover { background: var(--green-800); }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11,31,19,.18);
}
.carousel-dots button.active { background: var(--green-700); }

.supply { background: #fff; }
.supply-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: center; }
.supply-copy p { margin: 24px 0 30px; color: var(--muted); }
.supply-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.supply-gallery figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--mist);
}
.supply-gallery img { width: 100%; height: 100%; object-fit: cover; }
.supply-gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(7,27,16,.78);
  backdrop-filter: blur(8px);
}

.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 72px; align-items: center; }
.about-image { position: relative; min-height: 560px; }
.about-image > img { width: 100%; height: 560px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.about-badge {
  position: absolute;
  right: -28px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  min-width: 235px;
  padding: 21px 24px;
  color: #fff;
  border-radius: 16px;
  background: var(--green-850);
  box-shadow: 0 18px 40px rgba(7,35,22,.23);
}
.about-badge strong { color: var(--lime-bright); font-family: "Playfair Display", serif; font-size: 1.22rem; }
.about-copy > p { margin: 24px 0; color: var(--muted); }
.check-list { display: grid; gap: 13px; margin: 28px 0 32px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 33px; color: #415048; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--green-950);
  font-size: .78rem;
  font-weight: 900;
  border-radius: 50%;
  background: var(--lime-bright);
}

.cta {
  position: relative;
  color: #fff;
  background: url("assets/proyecto-mantenimiento.webp") center 50% / cover no-repeat;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(11,31,19,.9); }
.cta-content {
  position: relative;
  z-index: 2;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta p { margin: 14px 0 0; color: rgba(255,255,255,.74); }

.footer {
  padding: 64px 0 24px;
  color: rgba(255,255,255,.68);
  background: var(--green-950);
}
.footer-grid { display: grid; grid-template-columns: 1.65fr .7fr .9fr 1fr; gap: 45px; }
.footer-brand img {
  width: min(100%, 285px);
  margin: -8px 0 16px;
  background: transparent;
}
.footer-brand p { max-width: 380px; margin: 0; }
.footer h3 { margin: 0 0 18px; color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer a:hover { color: var(--lime-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 22px;
  font-size: .8rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.floating-facebook,
.floating-instagram,
.floating-whatsapp {
  position: fixed;
  right: 18px;
  z-index: 900;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-facebook:hover,
.floating-instagram:hover,
.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.floating-facebook {
  bottom: 144px;
  color: #ffffff;
  background: #1877f2;
}

.floating-instagram {
  bottom: 82px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fdf497 5% 9%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.floating-facebook svg,
.floating-instagram svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.floating-whatsapp {
  bottom: 20px;
  background: #25d366;
}

.floating-whatsapp img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav-wrap { min-height: 118px; }
  .brand { width: 205px; }
  .main-nav { gap: 16px; }
  .main-nav > a { font-size: .75rem; }
  .hero, .hero-content { min-height: calc(100vh - 118px); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supply-grid { grid-template-columns: 1fr; }
  .supply-copy { max-width: 700px; }
  .about-grid { gap: 50px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
  .carousel-card { flex-basis: calc((100% - 18px) / 2); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 110px; }
  .container { width: min(100% - 28px, 720px); }
  .section { padding: 82px 0; }
  .nav-wrap { min-height: 105px; }
  .brand { width: 178px; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    background: var(--green-950);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 35px rgba(0,0,0,.2);
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease;
  }
  .main-nav.open { max-height: 430px; padding-top: 12px; padding-bottom: 20px; opacity: 1; }
  .main-nav > a { padding: 14px 8px; font-size: .85rem; }
  .main-nav > a:not(.nav-whatsapp)::after { display: none; }
  .nav-whatsapp { margin-top: 8px; justify-content: center; justify-self: start; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero, .hero-content { min-height: calc(100svh - 105px); }
  .hero { background-position: 63% center; }
  .hero-content { padding-top: 55px; padding-bottom: 34px; }
  .hero h1 { font-size: clamp(3rem, 11.5vw, 5.3rem); }
  .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 55px; }
  .hero-feature { padding: 18px 14px 10px 0; }
  .hero-feature:nth-child(2) { border-right: 0; }
  .hero-feature:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }

  .section-heading.split { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { min-height: 470px; }
  .about-image > img { height: 470px; }
  .about-badge { right: 18px; bottom: 20px; }
  .cta-content { min-height: 330px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 520px); }
  .nav-wrap { min-height: 94px; }
  .brand { width: 158px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero, .hero-content { min-height: calc(100svh - 94px); }
  .hero-content { padding-top: 44px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); line-height: .92; }
  .hero-copy > p { margin: 22px 0 28px; font-size: .98rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .hero-feature strong { font-size: .7rem; }
  .hero-feature span { font-size: .72rem; }

  .section { padding: 72px 0; }
  .section-heading.centered h2,
  .section-heading.split h2,
  .about-copy h2,
  .supply-copy h2,
  .cta h2 { font-size: clamp(2.35rem, 12vw, 3.55rem); }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-icon-img { width: 96px; height: 96px; }
  .service-icon-img img { width: 86px; height: 86px; }
  .carousel {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .carousel-card { flex-basis: 100%; }
  .carousel-btn {
    position: absolute;
    top: calc(50% - 42px);
    z-index: 2;
  }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .supply-gallery { grid-template-columns: 1fr; }
  .supply-gallery figure { min-height: 320px; }
  .about-image, .about-image > img { min-height: 410px; height: 410px; }
  .about-badge { left: 16px; right: 16px; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-brand img { width: 100%; max-width: 330px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}


@media (max-width: 560px) {
  .floating-facebook,
  .floating-instagram,
  .floating-whatsapp {
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .floating-facebook {
    bottom: 134px;
  }

  .floating-instagram {
    bottom: 74px;
  }

  .floating-facebook svg,
  .floating-instagram svg {
    width: 31px;
    height: 31px;
  }

  .floating-whatsapp {
    bottom: 14px;
  }

  .floating-whatsapp img {
    width: 48px;
    height: 48px;
  }
}

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