:root {
  --blue: #082f4f;
  --blue-2: #0c4069;
  --green: #4caf50;
  --green-2: #2f8f46;
  --text: #0d1b2a;
  --muted: #5b6b7c;
  --soft: #f4f8fb;
  --line: #dce7ef;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(8, 47, 79, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 231, 239, 0.8);
}

.nav-wrapper {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 250px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 30px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 3px;
  background: var(--green);
  border-radius: 999px;
  transition: 0.25s;
}

.main-nav a:hover::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: #ffffff;
}

.language-switcher span {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}

.lang-btn.active {
  background: var(--green);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--blue);
  color: #ffffff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 55%, #eff8ff 100%);
  padding: 72px 0 58px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% 20%;
  height: 360px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.10), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-2);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 67px);
  line-height: 1.02;
  margin: 0 0 22px;
  color: var(--blue);
  letter-spacing: -0.05em;
}

.hero-text {
  font-size: 18px;
  color: #1e3144;
  margin: 0 0 32px;
  max-width: 590px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.btn.primary {
  background: var(--green);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--green-2);
  transform: translateY(-2px);
}

.btn.secondary {
  background: #ffffff;
  color: var(--blue);
  border-color: var(--green);
}

.btn.secondary:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* MAPA */
.hero-map {
  position: relative;
  width: 100%;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.world-map-img {
  width: 100%;
  max-width: 820px;
  opacity: 0.95;
  display: block;
}

.map-dot {
  position: absolute;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  z-index: 3;
  box-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.04),
    0 10px 24px rgba(8, 43, 73, 0.22);
}

.map-dot-panama {
  background: #2f8f4e;
  left: 25.2%;
  top: 47.8%;
}

.map-dot-venezuela {
  background: #06365d;
  left: 30.7%;
  top: 49.3%;
}

.map-legend {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 43, 73, 0.08);
  border-radius: 12px;
  padding: 13px 22px;
  box-shadow: 0 12px 28px rgba(8, 43, 73, 0.10);
  z-index: 4;
  backdrop-filter: blur(8px);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #283847;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot-main {
  background: #2f8f4e;
}

.legend-dot-dev {
  background: #06365d;
}

/* SECCIONES */
.section {
  padding: 78px 0;
}

.section.muted {
  background: #f7fafc;
}

.section-title {
  text-align: center;
  margin: 0 auto 42px;
  max-width: 760px;
}

.section-title h2,
.value-copy h2,
.about-grid h2,
.contact-copy h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-title p,
.value-copy p,
.about-grid p,
.contact-copy p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(8, 47, 79, 0.04);
  transition: 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(76, 175, 80, 0.45);
}

.icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border: 2px solid rgba(76, 175, 80, 0.45);
  border-radius: 16px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
}

.service-card h3 {
  color: var(--blue);
  font-size: 18px;
  line-height: 1.22;
  margin: 0 0 12px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
}

.clients-grid img {
  max-height: 62px;
  margin: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.76;
  transition: 0.2s;
}

.clients-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.value-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.value-copy {
  border-left: 4px solid var(--green);
  padding-left: 26px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metrics div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(8, 47, 79, 0.05);
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  margin-top: 8px;
}

.about-section {
  background: linear-gradient(135deg, #ffffff, #f0f7f1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-grid p:last-child {
  font-size: 19px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background: radial-gradient(circle at right bottom, rgba(76, 175, 80, 0.24), transparent 30%),
    linear-gradient(135deg, #072b49, #082f4f 60%, #0b416a);
  color: #ffffff;
}

.contact-section::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
}

.contact-copy h2 {
  color: #ffffff;
}

.contact-copy p {
  color: #d9e6ef;
  margin-bottom: 28px;
}

.contact-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-copy li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #ffffff;
}

.contact-copy span {
  color: #6dde74;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 16px 17px;
  font: inherit;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.contact-form textarea,
.contact-form select {
  grid-column: 1 / -1;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
}

.site-footer {
  padding: 34px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-grid img {
  width: 230px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

.footer-grid p {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .nav-wrapper {
    height: auto;
    padding: 18px 0;
    flex-wrap: wrap;
  }

  .brand img {
    width: 210px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero-grid,
  .value-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-map {
    min-height: 330px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid img {
    margin: auto;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-grid p {
    text-align: center;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 38px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-map {
    min-height: auto;
    flex-direction: column;
    gap: 10px;
  }

  .world-map-img {
    max-width: 620px;
  }

  .map-dot {
    width: 15px;
    height: 15px;
    border-width: 3px;
  }

  .map-dot-panama {
    left: 29.5%;
    top: 45.5%;
  }

  .map-dot-venezuela {
    left: 37.2%;
    top: 47.5%;
  }

  .map-legend {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .legend-item {
    font-size: 12px;
  }

  .services-grid,
  .clients-grid,
  .metrics {
    grid-template-columns: 1fr;
  }
}