:root {
  --blue: #0b68b3;
  --blue-dark: #08345e;
  --cyan: #2fb7d4;
  --ink: #102236;
  --muted: #607287;
  --line: #dbe6ef;
  --bg: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 52, 94, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled {
  padding-block: 12px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(16,34,54,.08);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 800; }
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  align-self: center;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.2));
}
.brand-mark { font-size: 30px; letter-spacing: 0; color: currentColor; }
.brand-copy { font-size: 12px; text-transform: uppercase; letter-spacing: 0; opacity: .82; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.nav a { opacity: .86; }
.nav a:hover { opacity: 1; color: var(--cyan); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: currentColor;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  padding: 132px clamp(18px, 6vw, 80px) 48px;
  color: var(--white);
  background: var(--blue-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 52, 94, .96), rgba(11, 104, 179, .78) 46%, rgba(8, 52, 94, .36)),
    url("assets/infraestructura-gsi.jpg") 78% center / cover no-repeat;
  transform: scale(1.16);
  filter: saturate(1.05);
  opacity: .68;
  animation: heroDrift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -22vh auto;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(255,255,255,.22);
  transform: rotate(35deg);
  animation: frameFloat 9s ease-in-out infinite;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-bottom: 42px;
  animation: heroIn .9s ease both;
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: .95;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}
h3 { font-size: 22px; margin-bottom: 12px; }
.lead { max-width: 660px; font-size: clamp(18px, 2vw, 24px); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-22deg);
  transition: left .45s ease;
}
.btn:hover::after { left: 120%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8,52,94,.18); }
.btn.primary { color: var(--white); background: var(--blue); }
.btn.secondary { color: var(--white); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.btn.download { color: var(--blue-dark); background: var(--white); }
.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(880px, 100%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  animation: panelIn .8s ease .18s both;
}
.hero-panel div { padding: 22px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-panel div:last-child { border-right: 0; }
.hero-panel strong { display: block; font-size: 28px; line-height: 1; }
.hero-panel span { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-size: 14px; }

section:not(.hero) { padding: clamp(64px, 9vw, 118px) clamp(18px, 6vw, 80px); }
.split, .feature, .proof, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}
.about p, .feature-copy p, .proof p, .contact-copy p { color: var(--muted); font-size: 18px; }
.image-stack {
  position: relative;
  min-height: 440px;
}
.image-stack img {
  position: absolute;
  width: 76%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.image-stack img:first-child { top: 0; right: 0; }
.image-stack img:last-child { left: 0; bottom: 0; width: 45%; }

.services { background: var(--white); }
.services > h2 { max-width: 800px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  --mx: 50%;
  --my: 0%;
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(47,183,212,.18), transparent 34%),
    linear-gradient(180deg, #fff, #f7fbff);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47,183,212,.55);
  box-shadow: var(--shadow);
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}
.service-card p { color: var(--muted); font-size: 15px; }

.feature { background: #eef5fb; }
.feature-media img { border-radius: 8px; box-shadow: var(--shadow); }
.feature-media, .certificate, .image-stack img {
  transition: transform .35s ease, filter .35s ease;
}
.feature-media:hover, .certificate:hover, .image-stack img:hover {
  filter: saturate(1.08) contrast(1.02);
}
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); font-size: 17px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: inset 0 0 0 4px #d9f5fb;
}

.proof { background: var(--white); }
.certificate {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.certificate:hover { transform: rotate(-1deg) translateY(-4px); }
.certificate img { border-radius: 6px; }
.certificate span { color: var(--blue); font-weight: 800; text-align: center; }

.contact {
  background:
    linear-gradient(105deg, rgba(8,52,94,.93), rgba(8,52,94,.72)),
    url("assets/contacto-gsi.jpg") center / cover no-repeat;
  color: var(--white);
}
.contact-copy p, .contact-list { color: rgba(255,255,255,.78); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.contact-form label { display: grid; gap: 7px; font-weight: 800; font-size: 13px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--white);
  background: rgba(255,255,255,.12);
  font: inherit;
}
.contact-form select option { color: var(--ink); }
.contact-form textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 80px);
  color: #dce9f5;
  background: #071d33;
}
.footer p { margin: 0; }
.footer a { color: var(--cyan); font-weight: 800; }

.section-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.section-observe.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroDrift {
  from { transform: scale(1.16) translate3d(-10px, -4px, 0); }
  to { transform: scale(1.2) translate3d(14px, 8px, 0); }
}

@keyframes frameFloat {
  0%, 100% { transform: rotate(35deg) translate3d(0, 0, 0); opacity: .8; }
  50% { transform: rotate(35deg) translate3d(-18px, -10px, 0); opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .feature, .proof, .contact { grid-template-columns: 1fr; }
  .image-stack { min-height: 360px; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 68px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; }
  .brand-copy { display: none; }
  .hero { min-height: 92vh; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-panel div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .hero-panel div:last-child { border-bottom: 0; }
  .service-grid, .contact-form { grid-template-columns: 1fr; }
  .image-stack { min-height: auto; display: grid; gap: 16px; }
  .image-stack img { position: static; width: 100%; }
  .footer { flex-direction: column; }
}
