:root {
  --green: #087a66;
  --green-dark: #075b4d;
  --green-soft: #eaf5f2;
  --red: #c9152b;
  --ink: #161a1c;
  --muted: #5f6b70;
  --line: #dbe3e4;
  --surface: #f7f9f9;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 42, 47, .10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 227, 228, .85);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 215px;
  max-height: 62px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .94rem;
  font-weight: 650;
}

.main-nav > a:not(.btn) {
  position: relative;
  padding: 29px 0 25px;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 19px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width .2s ease;
}

.main-nav > a:not(.btn):hover::after,
.main-nav > a:not(.btn):focus-visible::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 24px rgba(8,122,102,.22);
}

.btn-secondary {
  color: var(--green-dark);
  background: rgba(255,255,255,.85);
  border-color: rgba(8,122,102,.45);
}

.btn-whatsapp {
  color: #fff;
  background: var(--green);
  white-space: nowrap;
}

.btn-store {
  color: var(--ink);
  background: #fff;
  border-color: rgba(22,26,28,.20);
  white-space: nowrap;
  letter-spacing: .035em;
}

.btn-store:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(22,26,28,.16);
}

.btn-whatsapp svg,
.floating-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: #eef4f4;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.97) 36%, rgba(255,255,255,.77) 54%, rgba(255,255,255,.16) 74%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 43%;
  background:
    linear-gradient(120deg, rgba(8,122,102,.10), rgba(3,40,48,.10)),
    url("../assets/img/hero-industria.webp") center/cover no-repeat;
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.16)),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,0), rgba(0,55,60,.24));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 610px) 1fr;
  align-items: center;
  min-height: 610px;
}

.hero-copy {
  padding: 74px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 600px;
  margin: 24px 0 0;
  color: #445158;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Sections */
.section { padding: 92px 0; }

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.intro-copy h2,
.project-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading.compact { margin-bottom: 30px; }

/* Intro */
.intro {
  background:
    radial-gradient(circle at 10% 20%, rgba(8,122,102,.08), transparent 25%),
    var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 68px;
}

.intro-graphic {
  display: grid;
  place-items: center;
  width: 270px;
  height: 270px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--green-soft);
}

.intro-graphic svg {
  width: 170px;
  height: 170px;
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.intro-highlights span {
  padding: 9px 12px;
  border: 1px solid #cfe1dd;
  border-radius: 999px;
  color: var(--green-dark);
  background: #f8fcfb;
  font-size: .88rem;
  font-weight: 700;
}

/* Cards */
.solutions { background: var(--surface); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(33,55,60,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.service-card:hover .card-image img { transform: scale(1.04); }

.card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(3,39,45,.28), transparent);
}

.card-badge {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.card-badge svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.obras-card .card-badge { background: var(--red); }
.hogar-card .card-badge { background: #5d8b43; }

.card-body { padding: 26px 24px 28px; }

.card-kicker {
  color: var(--green);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.obras-card .card-kicker { color: var(--red); }
.hogar-card .card-kicker { color: #4d7c36; }

.card-body h3 {
  margin: 7px 0 16px;
  font-size: 1.38rem;
  line-height: 1.2;
}

.card-body ul {
  margin: 0;
  padding-left: 19px;
  color: #4f5b60;
}

.card-body li { margin: 5px 0; }

.card-body li::marker { color: var(--green); }
.obras-card .card-body li::marker { color: var(--red); }
.hogar-card .card-body li::marker { color: #5d8b43; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--green-dark);
  font-weight: 800;
}
.obras-card .text-link { color: var(--red); }

.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Project panel */
.projects { padding-top: 80px; padding-bottom: 80px; }

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: 52px;
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(4,65,57,.98), rgba(8,122,102,.94)),
    url("../assets/img/automatizacion.webp") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.project-copy .eyebrow { color: #a8e1d7; }
.project-copy .eyebrow::before { background: #a8e1d7; }

.project-copy p {
  margin: 17px 0 0;
  color: rgba(255,255,255,.78);
}

.project-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}

.feature svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #c9eee8;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature.fire svg { stroke: #ffb6bd; }

.feature span { font-weight: 760; }

/* Brands */
.brands { background: #fff; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.brand-grid span {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #445158;
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: .02em;
  background: #fff;
}

.brand-grid span:nth-child(5n) { border-right: 0; }
.brand-grid span:nth-last-child(-n+5) { border-bottom: 0; }

.brands-note {
  margin: 14px 0 0;
  color: #7a8589;
  font-size: .83rem;
  text-align: center;
}

/* Contact */
.contact {
  background:
    linear-gradient(135deg, #f5faf8 0%, #eef5f4 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.contact-copy > p {
  margin: 16px 0 0;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid #dfe9e6;
}

.contact-list a:last-child { border-bottom: 0; }

.contact-list strong {
  display: block;
  margin-bottom: 1px;
  font-size: .82rem;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  border: 1px solid #d4e6e1;
  font-weight: 900;
}

.contact-form {
  padding: 30px;
  border: 1px solid #d5e3df;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(40,73,73,.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
}

.contact-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #445158;
  font-size: .82rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfdcda;
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdfd;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8,122,102,.10);
}

.contact-form textarea {
  resize: vertical;
  min-height: 124px;
}

.submit-btn {
  width: 100%;
  cursor: pointer;
  border: 0;
}

.form-note {
  margin: 10px 0 0;
  color: #7b8589;
  font-size: .78rem;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 54px 0 22px;
  color: #e8ecee;
  background: #151a1c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr 1fr;
  gap: 54px;
}

.footer-brand img {
  width: 230px;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.footer-brand p {
  margin: 12px 0 0;
  color: #aeb8bc;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links strong,
.footer-contact strong {
  margin-bottom: 4px;
  color: #fff;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: #aeb8bc;
  font-size: .9rem;
}

.footer-links a:hover,
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #2a3235;
  color: #89969b;
  font-size: .8rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #0aa77e;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: transform .2s ease;
}

.floating-whatsapp:hover { transform: translateY(-3px) scale(1.02); }
.floating-whatsapp svg { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 1180px) {
  .main-nav { gap: 11px; font-size: .84rem; }
  .nav-cta { padding-inline: 12px; }
  .brand img { width: 178px; }
}

@media (max-width: 1050px) {
  .main-nav { gap: 10px; font-size: .82rem; }
  .nav-cta { padding-inline: 14px; }
  .brand img { width: 190px; }

  .hero-media { left: 39%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .service-card:last-child { grid-column: 1 / -1; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid span { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line) !important; }
  .brand-grid span:nth-child(2n) { border-right: 0; }
  .brand-grid span:nth-last-child(-n+2) { border-bottom: 0 !important; }
}

@media (max-width: 900px) {
  .nav-wrap { min-height: 72px; }
  .brand img { width: 175px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(30,50,55,.10);
  }

  .main-nav.is-open { display: flex; }

  .main-nav > a:not(.btn) {
    padding: 13px 0;
    border-bottom: 1px solid #edf1f2;
  }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 12px; }
  .store-cta { margin-top: 14px; }

  .hero,
  .hero-grid { min-height: 560px; }

  .hero::before {
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 52%, rgba(255,255,255,.42) 100%);
  }

  .hero-media { inset: 0 0 0 28%; opacity: .78; }

  .intro-grid {
    grid-template-columns: 200px 1fr;
    gap: 35px;
  }

  .intro-graphic {
    width: 190px;
    height: 190px;
  }
  .intro-graphic svg { width: 120px; height: 120px; }

  .project-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }

  .hero { min-height: 650px; align-items: end; }
  .hero-grid { min-height: 650px; }
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(255,255,255,.22) 0%, rgba(255,255,255,.72) 36%, rgba(255,255,255,.98) 64%, #fff 100%);
  }
  .hero-media {
    inset: 0;
    height: 62%;
    opacity: 1;
  }
  .hero-copy {
    align-self: end;
    padding: 250px 0 54px;
  }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }

  .intro-grid { grid-template-columns: 1fr; text-align: center; }
  .intro-graphic { width: 170px; height: 170px; }
  .intro-copy .eyebrow { justify-content: center; }
  .intro-highlights { justify-content: center; }

  .cards { grid-template-columns: 1fr; }
  .cards .service-card:last-child { grid-column: auto; }

  .card-image { height: 190px; }

  .project-panel {
    padding: 32px 22px;
    border-radius: 22px;
  }
  .project-features { grid-template-columns: 1fr; }

  .brand-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid span { min-height: 72px; font-size: .88rem; }

  .contact-grid { gap: 40px; }
  .contact-form { padding: 22px 17px; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

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


/* CRM form V1.2 */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.consent-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 16px !important;
  cursor: pointer;
}

.consent-field input {
  width: 18px !important;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green);
}

.consent-field span {
  margin: 0 !important;
  color: #5d686c !important;
  font-size: .82rem !important;
  font-weight: 550 !important;
  line-height: 1.4;
}

.submit-btn[disabled] {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.form-status {
  display: none;
  margin-top: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 650;
}

.form-status.is-visible { display: block; }
.form-status.is-success {
  color: #075b4d;
  border: 1px solid #b9ddd3;
  background: #edf9f5;
}
.form-status.is-error {
  color: #9f1730;
  border: 1px solid #efc0c8;
  background: #fff2f4;
}
