:root {
  --ink: #050708;
  --panel: #0b1117;
  --panel-soft: #111d27;
  --text: #f7fbff;
  --muted: #b8c8d6;
  --blue: #66addb;
  --blue-soft: #dceef8;
  --orange: #f97818;
  --green: #08a85e;
  --paper: #f6f9fb;
  --paper-text: #142230;
  --paper-muted: #607386;
  --line: #d9e5ec;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--ink);
}

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

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

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 8, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 168px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e8f3fa;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:not(.btn) {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 180ms ease;
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 18px 36px rgba(8, 168, 94, 0.3);
}

.btn-secondary {
  color: #eaf7ff;
  border-color: rgba(102, 173, 219, 0.36);
  background: rgba(102, 173, 219, 0.11);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background:
    radial-gradient(circle at 78% 26%, rgba(102, 173, 219, 0.18), transparent 26%),
    radial-gradient(circle at 84% 72%, rgba(8, 168, 94, 0.15), transparent 22%),
    linear-gradient(90deg, rgba(5, 7, 8, 0.98) 0%, rgba(5, 7, 8, 0.92) 30%, rgba(5, 7, 8, 0.56) 64%, rgba(5, 7, 8, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 7, 8, 0.48) 0%, rgba(5, 7, 8, 0.1) 48%, rgba(5, 7, 8, 0.76) 100%),
    repeating-linear-gradient(90deg, rgba(102, 173, 219, 0.07) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(102, 173, 219, 0.05) 0 1px, transparent 1px 88px),
    url("/images/hero-electromecanica-real.png");
  background-size: cover;
  background-position: 72% center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(5, 7, 8, 0.14) 0%, rgba(5, 7, 8, 0.24) 34%, rgba(5, 7, 8, 0.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 72px 0 78px;
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(26px, 3vw, 42px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 14, 20, 0.72), rgba(9, 14, 20, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-copy-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(102, 173, 219, 0.15) 0%, transparent 34%, transparent 66%, rgba(8, 168, 94, 0.12) 100%);
}

.eyebrow {
  min-height: 34px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 999px;
  color: #d7f4ff;
  background: rgba(102, 173, 219, 0.13);
  border: 1px solid rgba(102, 173, 219, 0.24);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(249, 120, 24, 0.14);
}

h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(2.85rem, 4.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  color: #d4e4ee;
  font-size: 1.08rem;
  line-height: 1.76;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-top: 30px;
}

.proof-item {
  min-height: 124px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.proof-item span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {

  padding: 84px 0;
}

.section.paper {
  background: linear-gradient(180deg, #f8fbfd 0%, #f4f8fb 100%);
}

.paper {
  color: var(--paper-text);
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.7;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service {
  overflow: hidden;
}

.service-body {
  display: grid;
  align-content: start;
}

.service-media {
  margin: -24px -24px 18px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #09131b;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.02);
}

.service-electrical { --service-accent: #f97818; }
.service-security { --service-accent: #66addb; }
.service-telecom { --service-accent: #08a85e; }
.service-ac { --service-accent: #f97818; }

.service-electrical .service-media img {
  object-position: 50% 50%;
}

.service-security .service-media img {
  object-position: 34% 50%;
  filter: contrast(1.05) saturate(1.12) hue-rotate(18deg);
}

.service-telecom .service-media img {
  object-position: 66% 50%;
  filter: contrast(1.05) saturate(1.08) hue-rotate(-10deg);
}

.service-ac .service-media img {
  object-position: 85% 50%;
  filter: contrast(1.05) saturate(1.08) hue-rotate(-22deg);
}

.service {
  min-height: 270px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(12, 20, 28, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, rgba(249, 120, 24, 0.7), rgba(102, 173, 219, 0.35));
  opacity: 0.55;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(12, 20, 28, 0.09);
}

.service.feature {
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(10, 34, 52, 0.94), rgba(15, 95, 144, 0.88)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 34px);
  border-color: transparent;
  box-shadow: inset 0 4px 0 var(--service-accent, #f97818), 0 16px 30px rgba(12, 20, 28, 0.05);
}

.service.feature .service-media {
  background: rgba(255, 255, 255, 0.06);
}

.service-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
}

.service:not(.feature) .service-mark {
  background: color-mix(in srgb, var(--service-accent, #66addb) 15%, #eaf5fb);
  color: color-mix(in srgb, var(--service-accent, #66addb) 82%, #0f5f90);
}

.service h3 {
  margin: 16px 0 10px;
  font-size: 1.34rem;
  line-height: 1.15;
}

.service p {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.68;
}

.service.feature p {
  color: #d4e9f4;
}

.caption {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--orange);
  background: rgba(249, 120, 24, 0.11);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature .caption {
  color: #ffe4cc;
  background: rgba(249, 120, 24, 0.2);
}

.service:not(.feature) .caption {
  color: color-mix(in srgb, var(--service-accent, #66addb) 70%, #0f5f90);
  background: color-mix(in srgb, var(--service-accent, #66addb) 12%, white);
}

.dark-section {
  background:
    linear-gradient(180deg, #050708, #0b1117),
    repeating-linear-gradient(90deg, rgba(102, 173, 219, 0.06) 0 1px, transparent 1px 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.step {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.step:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.step strong {
  color: var(--orange);
  font-size: 1.5rem;
}

.step h3 {
  margin: 18px 0 9px;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

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

.value-card {
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(12, 20, 28, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(12, 20, 28, 0.09);
}

.value-card h2 {
  margin: 0 0 14px;
  color: #0f5f90;
  font-size: 2rem;
}

.value-card p {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.75;
}

.cta {
  color: var(--text);
  background:
    radial-gradient(circle at 14% 20%, rgba(249, 120, 24, 0.18), transparent 32%),
    radial-gradient(circle at 86% 80%, rgba(8, 168, 94, 0.16), transparent 30%),
    var(--ink);
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
}

.cta p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer {
  padding: 28px 0;
  color: #9db4c5;
  background: #050b10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: #dcebf4;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(8, 168, 94, 0.34);
}

@media (max-width: 940px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 12px 0 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .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);
  }

  .hero {
    min-height: auto;
    background-position: 68% center;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0 58px;
  }

  .hero-copy-block {
    max-width: 100%;
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .brand img {
    width: 152px;
  }

  .hero-inner,
  .section {
    padding: 44px 0;
  }

  .hero-copy-block {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  .nav-links .btn,
  .nav-links a:not(.btn) {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 18px;
  }

  .service-media {
    margin: -18px -18px 16px;
    aspect-ratio: 16 / 9;
  }

  .cta-box {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.1rem);
  }

  .btn,
  .whatsapp-float {
    width: 100%;
  }

  .cta-box {
    padding: 24px;
  }

  .whatsapp-float {
    left: 12px;
    right: 12px;
  }
}
