:root {
  --blue: #1f3cd1;
  --blue-deep: #1631bf;
  --ink: #111217;
  --muted: #656971;
  --line: #dedfe4;
  --snow: #f5f6f8;
  --white: #ffffff;
  /* Priorizar Aptos; si no está disponible, usar Manrope / Inter como fallback */
  --display: 'Aptos', 'Manrope', system-ui, sans-serif;
  --texto: 'Aptos', 'Inter', system-ui, sans-serif;
}

/* Si quieres alojar Aptos localmente, coloca los .woff2 en assets/fonts/ y descomenta:
@font-face {
  font-family: 'Aptos';
  src: local('Aptos'), url('assets/fonts/aptos-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Medium'), url('assets/fonts/aptos-medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--texto);
  -webkit-font-smoothing: antialiased;
}

/* Encabezados usan la fuente display */
h1, h2, h3 {
  font-family: var(--display);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 88px;
  padding: 0 clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 260px;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: 32px;
  font-size: 16px;
  color: var(--muted);
}

.desktop-nav a,
.header-action {
  transition: color 0.2s ease;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.language-selector a {
  color: inherit;
  opacity: 0.72;
}

.language-selector a:hover,
.language-selector a.active {
  opacity: 1;
  color: var(--ink);
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.header-action {
  justify-self: end;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.header-action:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(72px, 10vh, 118px) clamp(36px, 6vw, 92px) 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker.light {
  color: rgba(255, 255, 255, 0.68);
}

.hero h1 {
  max-width: 820px;
  margin: 28px 0 0;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.hero-lead {
  max-width: 620px;
  margin: 30px 0 0;
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-actions .button,
.hero-actions .text-link {
  font-size: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: var(--blue);
  background: var(--white);
  border: 0;
}

.button-light:hover {
  background: #eef0ff;
}

.text-link {
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  display: inline-block;
  margin-left: 6px;
  font-size: 20px;
  line-height: 1;
  vertical-align: -1px;
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.light-link {
  color: rgba(255, 255, 255, 0.94);
}

.territories {
  margin: auto 0 0;
  padding-top: 50px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.53);
}

.territories i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  margin: 26px 26px 26px 0;
  padding: clamp(30px, 4vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  background: #f7f8fa;
  color: var(--muted);
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: none;
  border-radius: 11px;
  pointer-events: none;
}

.map-frame {
  position: relative;
  z-index: 1;
}

.map-frame img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

/* Estilos para el mapa embebido: eliminar recuadro y efectos visuales, conservar SVG interactivo */
.mapa {
  position: relative;
  overflow: visible;
  margin-top: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: default;
  animation: none;
  transition: none;
}

.mapa__svg {
  display: block;
  width: 100%;
  height: clamp(220px, 36vw, 670px);
  object-fit: contain;
}
.mapa__leyenda {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.mapa__leyenda span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-visual > p {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-visual > p span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.section-shell {
  padding: clamp(86px, 10vw, 150px) clamp(24px, 6vw, 92px);
}

.intro {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr 0.85fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-index > span {
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.25;
  color: #a0a3aa;
}

.intro-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.intro-copy > p {
  max-width: 690px;
  margin: 34px 0 0;
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--muted);
}

.coordination-card {
  min-height: 330px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: var(--snow);
  border-radius: 16px;
}

.card-mark {
  width: 150px;
  height: auto;
  position: relative;
}

 .card-mark img {
   width: 100%;
   height: 100%;
   object-fit: contain;
   display: block;
  top: 4px;
}

.card-mark span:nth-child(2) {
  width: 42px;
  transform: rotate(10deg);
  right: 0;
  top: 9px;
}

.card-mark span:nth-child(3) {
  width: 25px;
  transform: rotate(-8deg);
  left: 0;
  top: 30px;
}

.card-mark span:nth-child(4) {
  width: 42px;
  transform: rotate(-8deg);
  left: 31px;
  top: 36px;
}

.card-mark span:nth-child(5) {
  width: 51px;
  transform: rotate(9deg);
  left: 8px;
  top: 57px;
}

.card-label {
  margin: auto 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.card-quote {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.capabilities {
  background: var(--snow);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.58fr 1.25fr 0.85fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.section-heading > p {
  margin: 0;
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  align-self: end;
}

.capability-list {
  margin-top: clamp(70px, 8vw, 118px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cfd1d7;
  border-bottom: 1px solid #cfd1d7;
}

.capability-list article {
  min-height: 390px;
  padding: 28px 25px 56px;
  position: relative;
  border-right: 1px solid #cfd1d7;
  overflow: hidden;
}

.capability-list article:first-child {
  border-left: 1px solid #cfd1d7;
}

.capability-number {
  display: block;
  font-size: clamp(64px, 5.5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 600;
  color: var(--blue);
}

.capability-list h3 {
  margin: 46px 0 0;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.capability-list p {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.capability-line {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 27px;
  height: 4px;
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(0.14);
  transition: transform 0.35s ease;
}

.capability-list article:hover .capability-line {
  transform: scaleX(1);
}

.operation {
  min-height: 780px;
  padding: clamp(92px, 11vw, 160px) clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 9vw, 150px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.dark-index {
  margin-bottom: 58px;
}

.dark-index > span {
  color: rgba(255, 255, 255, 0.38);
}

.dark-index .kicker {
  color: #8ba0ff;
}

.operation-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.operation-copy > p {
  max-width: 650px;
  margin: 34px 0 0;
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.operation-system {
  width: min(100%, 550px);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
}

.system-ring {
  position: absolute;
  inset: 13%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.system-ring::before,
.system-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.system-ring::before {
  inset: 14%;
}

.system-ring::after {
  inset: 28%;
}

.orbit {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(31, 60, 209, 0.15);
}

.orbit-a {
  left: -7px;
  top: 49%;
}

.orbit-b {
  right: 18%;
  top: 5%;
}

.orbit-c {
  right: 12%;
  bottom: 10%;
}

.system-center {
  width: 170px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--blue);
}

.system-center strong {
  font-size: 19px;
}

.system-center span {
  margin-top: 5px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
}

.system-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.system-label span {
  color: #7187f2;
}

.label-top {
  left: 3%;
  top: 11%;
}

.label-right {
  right: -3%;
  top: 48%;
}

.label-bottom {
  left: 12%;
  bottom: 5%;
}

.contact {
  padding: clamp(92px, 11vw, 158px) clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: clamp(60px, 10vw, 170px);
  align-items: end;
  background: var(--blue);
  color: var(--white);
}

.contact h2 {
  max-width: 980px;
  margin: 32px 0 0;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.contact-action {
  padding-bottom: 7px;
}

.contact-action > p {
  margin: 0 0 30px;
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.contact-action .button {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
  border: 0;
}

footer {
  min-height: 142px;
  padding: 36px clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
}

footer img {
  width: 190px;
  height: auto;
}

footer p {
  margin: 0;
  font-size: 15px;
}

footer a {
  justify-self: end;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

footer a span {
  margin-left: 7px;
}

:focus-visible {
  outline: 3px solid #7d8ef0;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 76px;
  }

  .desktop-nav {
    display: none;
  }

  .brand img {
    width: 190px;
  }
  .header-action {
    font-size: 14px;
    padding: 10px 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 610px;
  }

  .hero-visual {
    margin: 0 22px 22px;
    min-height: 430px;
  }

  .intro {
    grid-template-columns: 1fr 1fr;
  }

  .section-index {
    grid-column: 1 / -1;
  }

  .section-heading {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading .section-index {
    grid-column: 1 / -1;
  }

  .capability-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-list article:nth-child(3) {
    border-left: 1px solid #cfd1d7;
    border-top: 1px solid #cfd1d7;
  }

  .capability-list article:nth-child(4) {
    border-top: 1px solid #cfd1d7;
  }

  .operation {
    grid-template-columns: 1fr;
  }

  .operation-system {
    max-width: 520px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-action {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .brand img {
    width: 168px;
  }

  .header-action {
    padding: 9px 13px;
    font-size: 12px;
  }

  .hero-copy {
    min-height: 570px;
    padding: 66px 22px 32px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .territories {
    flex-wrap: wrap;
    line-height: 1.8;
  }

  .hero-visual {
    min-height: 330px;
    padding: 32px 22px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .coordination-card {
    min-height: 280px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list article {
    min-height: 310px;
    border-left: 1px solid #cfd1d7;
    border-top: 1px solid #cfd1d7;
  }

  .capability-list article:first-child {
    border-top: 0;
  }

  .capability-list h3 {
    margin-top: 40px;
  }

  .operation {
    min-height: auto;
    gap: 75px;
  }

  .operation-system {
    width: 112%;
    margin-left: -6%;
  }

  .system-center {
    width: 130px;
    height: 130px;
  }

  .system-label {
    font-size: 11px;
  }

  .contact {
    gap: 54px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer img {
    width: 170px;
  }

  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  footer a {
    grid-column: 2;
    grid-row: 1;
  }
}
