:root {
  --ink: #071225;
  --navy: #0c1c33;
  --blue: #2457a6;
  --blue-2: #1c74c9;
  --cyan: #46c7ff;
  --orange: #ff5c11;
  --paper: #f6f8fb;
  --line: #dbe4ef;
  --muted: #5d6f85;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(7, 18, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body[data-page="servicios"] {
  --page-image: url("../assets/redes-infraestructura.png");
}

body[data-page="reportes"] {
  --page-image: url("../assets/hero-ai-security.png");
}

body[data-page="outsourcing"] {
  --page-image: url("../assets/outsourcing-soporte.png");
}

body[data-page="nosotros"] {
  --page-image: url("../assets/redes-infraestructura.png");
}

body[data-page="contacto"] {
  --page-image: url("../assets/reportes-dashboard.png");
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 228, 239, 0.8);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #25364c;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: #eef5ff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white) !important;
  box-shadow: 0 12px 28px rgba(255, 92, 17, 0.28);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 18, 37, 0.94) 0%, rgba(7, 18, 37, 0.82) 47%, rgba(7, 18, 37, 0.4) 100%),
    url("../assets/hero-ai-security.png") center right / cover no-repeat;
  color: var(--white);
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 690px;
  padding: 72px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #b9dbff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  color: var(--navy);
  font-size: 1.35rem;
}

.lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: #d7e7f8;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(255, 92, 17, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.button.dark {
  background: var(--blue);
  color: var(--white);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  color: var(--white);
  background: #25d366;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(16, 128, 70, 0.36);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(16, 128, 70, 0.44);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-float span {
  line-height: 1;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 116px;
  padding: 24px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

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

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section.white {
  background: var(--white);
}

.section.dark {
  background: var(--navy);
  color: var(--white);
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section.dark p,
.section.dark .section-heading p {
  color: #c6d7ea;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.service-card,
.process-step,
.contact-card,
.value-card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(7, 18, 37, 0.06);
}

.service-card h3,
.process-step h3,
.contact-card h3,
.value-card h3 {
  margin-top: 16px;
}

.service-card p,
.process-step p,
.contact-card p,
.value-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
}

.icon.orange {
  background: #fff0e9;
  color: var(--orange);
}

.feature-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.feature-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #2d4158;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px #fff0e9;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(7, 18, 37, 0.92), rgba(7, 18, 37, 0.68)),
    var(--page-image) center / cover no-repeat;
  color: var(--white);
  padding: 118px 0 92px;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
}

.page-hero p {
  max-width: 720px;
  color: #d7e7f8;
  font-size: 1.2rem;
}

.split-band {
  background: linear-gradient(90deg, var(--white) 0 50%, #edf5ff 50% 100%);
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.process-step {
  position: relative;
  overflow: hidden;
}

.process-step::after {
  content: attr(data-step);
  position: absolute;
  right: 18px;
  bottom: -18px;
  color: rgba(36, 87, 166, 0.1);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.cta-band {
  padding: 68px 0;
  background: linear-gradient(120deg, var(--blue), #15345f 58%, var(--orange));
  color: var(--white);
}

.cta-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-content h2 {
  color: var(--white);
}

.cta-content p {
  margin: 12px 0 0;
  max-width: 680px;
  color: #e5effa;
}

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

.contact-form {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 7px;
  color: #2d4158;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.footer {
  padding: 48px 0 28px;
  color: #c6d7ea;
  background: #071225;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
}

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

.footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer a,
.footer p {
  display: block;
  margin: 8px 0;
  color: #c6d7ea;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #8fa5bd;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .nav {
    min-height: 70px;
  }

  .brand img {
    width: 156px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 70px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

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

  .hero-copy {
    padding: 72px 0 112px;
  }

  .hero-metrics,
  .grid-3,
  .grid-2,
  .timeline,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .cta-content {
    align-items: start;
    flex-direction: column;
  }

  .split-band {
    background: var(--white);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }

  .hero-metrics {
    margin-top: -44px;
  }

  .metric {
    min-height: auto;
  }

  .page-hero {
    padding: 88px 0 72px;
  }

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

  .span-2 {
    grid-column: auto;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    padding: 12px;
  }

  .whatsapp-float span {
    display: none;
  }
}
