:root {
  --ink: #071426;
  --navy: #0b1b2f;
  --blue: #315a93;
  --blue-dark: #183f74;
  --line: #d8e0eb;
  --muted: #5d6d84;
  --paper: #f5f7fb;
  --gold: #f4c95d;
  --orange: #d97706;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
input, textarea, button { font: inherit; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: rgba(7, 20, 38, .88);
  color: white;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 18px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #dbe7f6;
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover { color: white; }

.system-link, .primary, .secondary, .whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.system-link {
  background: var(--gold);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 38, .96), rgba(7, 20, 38, .74), rgba(7, 20, 38, .28)),
    url("/assets/fondo.jpg") center / cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 120px);
  padding-top: 84px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6.8vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: #e7edf7;
  font-size: 20px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary {
  border: 0;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

.primary:hover { background: var(--blue-dark); }

.secondary {
  border: 1px solid rgba(255, 255, 255, .5);
  color: white;
}

.metrics {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 24px 70px rgba(7, 20, 38, .16);
}

.metrics div {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: white;
}

.metrics strong { font-size: 24px; }
.metrics span { color: var(--muted); font-size: 14px; }

.section, .experience, .why, .system-panel, .contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.section h2, .experience h2, .why h2, .system-panel h2, .contact h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.copy p, .section-heading p, article p, .system-panel p, .contact p, .portfolio-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.mission-grid article, .service-grid article, .project-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.values {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.value-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.value-card span {
  color: var(--gold);
  font-weight: 900;
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 840px;
  margin-bottom: 28px;
}

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

.service-grid article {
  min-height: 210px;
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--orange);
  font-weight: 900;
}

article h3 {
  margin: 0;
  font-size: 20px;
}

.experience {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.experience-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.experience-grid strong {
  font-size: 36px;
  color: var(--blue);
}

.experience-grid span { color: var(--muted); }

.portfolio-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  background: white;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.client-list span {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: center;
  font-weight: 900;
  color: var(--blue);
}

.why {
  padding-top: 0;
}

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

.why-grid div {
  padding: 22px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.why-grid strong::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
}

.why-grid p { color: #d7e1ef; }

.system-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
}

.whatsapp {
  background: #ecfdf3;
  color: #027a48;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: #cbd7e7;
}

footer strong {
  display: block;
  color: white;
  font-size: 20px;
}

footer p { margin: 4px 0 0; }

footer nav {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

footer > p { text-align: right; }

.reveal {
  animation: rise .7s ease-out both;
}

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

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .nav { display: none; }
  .metrics, .split, .values, .experience-grid, .why-grid, .contact, footer {
    grid-template-columns: 1fr;
  }
  .system-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  footer > p { text-align: left; }
}

@media (max-width: 620px) {
  .site-header { height: 70px; padding: 0 14px; }
  .brand span { display: none; }
  .brand img { width: 44px; height: 44px; }
  .system-link { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .hero__content { margin: 0 auto; padding-top: 70px; }
  .lead { font-size: 17px; }
  .metrics { margin-top: 0; width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  .section, .experience, .why, .system-panel, .contact { width: min(100% - 28px, 1180px); padding: 52px 0; }
  .service-grid, .mission-grid, .client-list { grid-template-columns: 1fr; }
  .system-panel { padding: 24px; }
  footer nav { flex-wrap: wrap; }
}
