:root {
  /* Paleta tomada del membrete: azul marino, verde corporativo, blanco y grises limpios. */
  --navy: #061f3d;
  --navy-2: #0b315d;
  --green: #67b73a;
  --green-dark: #4f9c2f;
  --white: #ffffff;
  --ice: #f4f7fa;
  --line: #dbe3ea;
  --ink: #17212f;
  --muted: #607084;
  --shadow: 0 20px 50px rgba(6, 31, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

.section {
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
}

.site-header {
  min-height: 760px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 16, 31, 0.98), rgba(6, 31, 61, 0.94) 42%, rgba(5, 24, 45, 0.72)),
    radial-gradient(circle at 72% 34%, rgba(31, 154, 217, 0.22), transparent 23%),
    radial-gradient(circle at 18% 70%, rgba(103, 183, 58, 0.18), transparent 25%),
    var(--navy);
  overflow: hidden;
  position: relative;
}

.site-header::before {
  content: "";
  inset: 104px 0 0;
  opacity: 0.36;
  position: absolute;
  background:
    linear-gradient(rgba(0, 161, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 161, 255, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 26% 34%, rgba(0, 161, 255, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 62%, rgba(0, 161, 255, 0.55) 0 4px, transparent 5px),
    radial-gradient(circle at 66% 44%, rgba(103, 183, 58, 0.5) 0 3px, transparent 4px);
  background-size: 92px 92px, 92px 92px, 100% 100%, 100% 100%, 100% 100%;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.86), transparent 92%);
}

.site-header::after {
  /* Franja diagonal inspirada en el pie grafico del membrete corporativo. */
  content: "";
  position: absolute;
  right: -140px;
  bottom: 0;
  width: 58%;
  height: 74px;
  background: linear-gradient(90deg, transparent, rgba(103, 183, 58, 0.82) 18%, rgba(103, 183, 58, 0.95) 62%, transparent);
  transform: skewX(-34deg);
  opacity: 0.9;
}

.navbar {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: space-between;
  min-height: 104px;
  padding: 18px max(24px, calc((100vw - 1280px) / 2));
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  display: flex;
  padding: 7px 12px;
  width: 248px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.brand img {
  height: 58px;
  object-fit: contain;
  width: 100%;
}

.nav-menu {
  align-items: center;
  display: flex;
  gap: 32px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu a {
  opacity: 0.86;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-menu a:hover {
  color: var(--green);
  opacity: 1;
}

.nav-whatsapp {
  align-items: center;
  background: linear-gradient(180deg, #6ac43d, #3d9b22);
  border-radius: 7px;
  box-shadow: 0 12px 24px rgba(61, 155, 34, 0.22);
  color: var(--white);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-whatsapp:hover {
  box-shadow: 0 16px 32px rgba(61, 155, 34, 0.3);
  transform: translateY(-2px);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  background: var(--white);
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 28px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(430px, 0.9fr) minmax(440px, 1.1fr);
  min-height: 656px;
  padding-top: 42px;
  padding-bottom: 120px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.05rem);
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 760px;
}

h1 span {
  color: var(--green);
  display: block;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 0;
  max-width: 840px;
}

h3 {
  color: var(--navy);
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.22rem;
  font-weight: 600;
  max-width: 660px;
}

.hero-copy strong {
  color: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 430px;
  position: relative;
}

.hero-visual::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  content: "";
  height: 88%;
  position: absolute;
  right: -14%;
  top: 4%;
  transform: skewX(-8deg);
  width: 44%;
}

.hero-visual img {
  filter: drop-shadow(0 35px 44px rgba(0, 0, 0, 0.45));
  max-width: min(760px, 112%);
  position: relative;
  transform: translateX(24px);
  z-index: 2;
}

.network-field {
  inset: 3% 0 8%;
  position: absolute;
  z-index: 1;
}

.network-field::before,
.network-field::after {
  background: rgba(0, 161, 255, 0.42);
  content: "";
  height: 2px;
  left: 8%;
  position: absolute;
  top: 56%;
  transform: rotate(-21deg);
  width: 78%;
}

.network-field::after {
  top: 34%;
  transform: rotate(17deg);
  width: 66%;
}

.network-field span {
  background: #21b5ff;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(33, 181, 255, 0.8);
  height: 10px;
  position: absolute;
  width: 10px;
}

.network-field span:nth-child(1) {
  left: 14%;
  top: 58%;
}

.network-field span:nth-child(2) {
  left: 38%;
  top: 42%;
}

.network-field span:nth-child(3) {
  right: 32%;
  top: 60%;
}

.network-field span:nth-child(4) {
  right: 16%;
  top: 32%;
}

.trust-panel {
  align-items: stretch;
  background: rgba(4, 24, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  bottom: 28px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  justify-self: end;
  max-width: 760px;
  overflow: hidden;
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  width: min(760px, calc(100% - 48px));
  z-index: 4;
}

.trust-item {
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  justify-items: center;
  min-height: 142px;
  padding: 22px 18px;
  text-align: center;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  color: var(--white);
  font-size: 1.85rem;
  line-height: 1;
}

.trust-item strong {
  color: var(--green);
  font-size: 2.05rem;
  line-height: 1;
}

.trust-item small {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.32;
  text-transform: uppercase;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 430px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.hero-panel::before {
  /* Lineas tecnicas sutiles para reforzar seguridad, monitoreo y conectividad. */
  content: "";
  inset: 0;
  position: absolute;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(103, 183, 58, 0.24) 62% 68%, transparent 68%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 72px);
}

.hero-lens {
  align-items: center;
  border: 14px solid var(--white);
  border-left-color: var(--green);
  border-radius: 55% 45%;
  display: flex;
  height: 178px;
  justify-content: center;
  margin: 36px auto;
  position: relative;
  transform: rotate(-6deg);
  width: 280px;
  z-index: 1;
}

.lens-core {
  background: radial-gradient(circle at 38% 32%, #78c7ff, #101a29 30%, #020b15 62%, #6b7280 64%);
  border: 10px solid #d7dde4;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7), 0 0 28px rgba(103, 183, 58, 0.25);
  height: 98px;
  width: 98px;
}

.metric,
.status-grid {
  position: relative;
  z-index: 1;
}

.metric strong {
  color: var(--green);
  display: block;
  font-size: 4.2rem;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-transform: uppercase;
}

.status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}

.status-grid span {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--green);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading-center {
  text-align: center;
}

.section-heading-center h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-heading-center::after {
  background: var(--green);
  content: "";
  display: block;
  height: 3px;
  margin: 18px auto 0;
  width: 56px;
}

.about,
.why,
.testimonials {
  background: var(--ice);
}

.about-grid,
.services-grid,
.project-gallery,
.testimonial-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-card,
.service-card,
.project-card,
blockquote,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(6, 31, 61, 0.06);
}

.about-card,
.service-card,
blockquote {
  padding: 26px;
}

.about-card p,
.service-card p,
.project-card p,
blockquote p,
.contact-info p {
  color: var(--muted);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.service-card {
  min-height: 254px;
  padding: 28px 22px;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(103, 183, 58, 0.62);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.icon {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(6, 31, 61, 0.14);
  color: var(--white);
  display: inline-flex;
  font-size: 1.45rem;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  margin-bottom: 20px;
  width: 72px;
}

.service-card h3::after {
  background: var(--green);
  content: "";
  display: block;
  height: 3px;
  margin: 12px auto 0;
  width: 42px;
}

.service-card p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

.why-list {
  background: var(--white);
  border-left: 7px solid var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.why-list div {
  border-right: 1px solid var(--line);
  padding: 28px;
}

.why-list div:last-child {
  border-right: 0;
}

.why-list strong {
  color: var(--navy);
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-list span {
  color: var(--muted);
  display: block;
  font-size: 0.94rem;
}

.project-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.project-card h3,
.project-card p {
  padding-left: 24px;
  padding-right: 24px;
}

.project-card h3 {
  margin-top: 22px;
}

.project-card p {
  padding-bottom: 24px;
}

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

blockquote {
  margin: 0;
}

blockquote p {
  font-size: 1.04rem;
}

cite {
  color: var(--navy);
  font-style: normal;
  font-weight: 800;
}

.contact {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-info h2 {
  margin-bottom: 18px;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.contact-lines a,
.contact-lines span {
  color: var(--navy);
  font-weight: 700;
}

.whatsapp {
  background: var(--green);
  border-radius: 6px;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  padding: 13px 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.honeypot {
  display: none;
}

label {
  color: var(--navy);
  display: grid;
  font-size: 0.94rem;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(103, 183, 58, 0.18);
}

textarea {
  resize: vertical;
}

.form-status {
  color: var(--green-dark);
  font-weight: 800;
  margin: 0;
}

.footer {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 1fr auto;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
}

.footer img {
  background: var(--white);
  border-radius: 6px;
  max-width: 230px;
  padding: 8px;
}

.footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 12px 0 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.footer a:hover {
  color: var(--green);
}

.copyright {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 250px;
    padding: 8px;
    position: absolute;
    right: 24px;
    top: 96px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px;
    width: 100%;
  }

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

  .hero {
    gap: 32px;
    min-height: auto;
    padding-bottom: 72px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-visual img {
    max-width: min(620px, 100%);
    transform: none;
  }

  .trust-panel {
    bottom: auto;
    grid-template-columns: repeat(4, 1fr);
    justify-self: stretch;
    position: relative;
    right: auto;
    width: 100%;
  }

  .about-grid,
  .project-gallery,
  .testimonial-grid,
  .why-list,
  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .why-list div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .navbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    width: 190px;
  }

  .brand img {
    height: 48px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .nav-whatsapp {
    display: none;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-panel {
    min-height: 360px;
    padding: 22px;
  }

  .hero-lens {
    height: 132px;
    width: 210px;
  }

  .lens-core {
    height: 74px;
    width: 74px;
  }

  .status-grid,
  .about-grid,
  .project-gallery,
  .testimonial-grid,
  .why-list,
  .footer {
    grid-template-columns: 1fr;
  }

  .trust-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    min-height: 126px;
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(3),
  .trust-item:nth-child(4) {
    border-bottom: 0;
  }

  .why-list div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .why-list div:last-child {
    border-bottom: 0;
  }

  .footer {
    text-align: left;
  }

  .copyright {
    text-align: left;
  }
}
