:root {
  --navy-900: #0a1d3a;
  --navy-700: #123b6d;
  --blue-500: #2166f3;
  --green-500: #00a86b;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-200: #e5e7eb;
  --gray-500: #667085;
  --dark: #061426;
  --shadow-card: 0 10px 40px rgba(10, 29, 58, 0.08);
  --shadow-card-hover: 0 18px 50px rgba(10, 29, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy-900);
  background: var(--white);
  font-family: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

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

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 48px);
  color: var(--white);
  transition: background 250ms ease, box-shadow 250ms ease, color 250ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(6, 20, 38, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.nav-cta {
  padding: 11px 16px;
  color: var(--white);
  background: var(--green-500);
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: transparent;
}

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

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

.hero {
  position: relative;
  min-height: 92vh;
  padding: 136px 0 88px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.8;
  background:
    radial-gradient(circle at 74% 64%, rgba(0, 168, 107, 0.24), transparent 30%),
    radial-gradient(circle at 20% 35%, rgba(33, 102, 243, 0.32), transparent 35%),
    linear-gradient(135deg, #061426 0%, #0a1d3a 48%, #08182d 100%);
}

.hero-grid,
.split,
.commercial-grid,
.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-500);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.25;
}

p {
  color: var(--gray-500);
  line-height: 1.7;
}

.section-dark p,
.section-dark .secondary {
  color: #b8c4d4;
}

.hero-lead {
  max-width: 700px;
  color: #d9e3f2;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-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: 14px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 250ms ease, background 250ms ease, border 250ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

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

.button-cta {
  width: 100%;
  color: var(--white);
  background: var(--green-500);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual > img {
  width: min(620px, 100%);
  margin-inline: auto;
  border-radius: 24px;
  opacity: 0.9;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.4));
}

.network-card {
  position: absolute;
  width: 190px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(10, 29, 58, 0.72);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.network-card strong,
.network-card span {
  display: block;
}

.network-card strong {
  margin-bottom: 4px;
}

.network-card span {
  color: #b8c4d4;
  font-size: 0.84rem;
}

.card-a { top: 40px; right: 18px; }
.card-b { bottom: 110px; left: 0; }
.card-c { bottom: 34px; right: 56px; }

.thesis,
.capabilities,
.units,
.commercial,
.contact {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-heading {
  max-width: 720px;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.text-stack p {
  font-size: 1.05rem;
}

.capabilities,
.contact {
  background: var(--gray-50);
}

.capability-grid,
.unit-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.capability-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.capability-card,
.unit-card,
.contact-form {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.capability-card,
.unit-card {
  padding: 28px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.capability-card:hover,
.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.icon-line {
  display: block;
  width: 52px;
  height: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
}

.metrics {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
  overflow: hidden;
  background: url("../img/fondo.png") center / cover no-repeat;
}

.metrics::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.7;
  background: var(--dark);
}

.metrics-inner {
  position: relative;
  z-index: 1;
}

.metrics-heading {
  margin-bottom: 48px;
}

.metrics-heading h2 {
  max-width: 1100px;
  white-space: normal;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.metric {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 24px;
}

.metric strong {
  display: block;
  color: var(--green-500);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
}

.metric span {
  color: #b8c4d4;
  font-weight: 600;
}

.unit-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue-500);
  font-weight: 800;
}

.commercial-grid {
  grid-template-columns: 0.9fr 1fr;
}

.visual-band {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #061426, #123b6d);
  overflow: hidden;
}

.visual-band img {
  width: 760px;
  max-width: 140%;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 14px;
  height: 6px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}

.alliances {
  padding: clamp(72px, 10vw, 120px) 0;
}

.alliance-panel {
  display: grid;
  gap: 16px;
}

.alliance-panel div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.alliance-panel strong,
.alliance-panel span {
  display: block;
}

.alliance-panel span {
  margin-top: 6px;
  color: #b8c4d4;
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--navy-900);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.nav-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(33, 102, 243, 0.32);
  outline-offset: 3px;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.form-status.success {
  color: #05603a;
  background: #d1fadf;
}

.form-status.error {
  color: #912018;
  background: #fee4e2;
}

.site-footer {
  padding: 36px 0;
  color: #b8c4d4;
  background: var(--dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  margin: 8px 0 4px;
  color: var(--white);
  font-weight: 800;
}

.footer-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

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

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    color: var(--navy-900);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .nav-cta {
    text-align: center;
  }

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

  .hero {
    min-height: auto;
  }

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

  .capability-grid,
  .unit-grid,
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .site-header {
    padding: 12px;
  }

  .brand span {
    font-size: 0.78rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .network-card {
    position: relative;
    width: 100%;
    margin-top: 12px;
  }

  .card-a,
  .card-b,
  .card-c {
    inset: auto;
  }

  .capability-grid,
  .unit-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 20px 0 0;
  }

  .visual-band {
    min-height: 300px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
