:root {
  --navy: #09152b;
  --navy-card: #172238;
  --navy-border: #2a3650;
  --blue: #0c5394;
  --blue-dark: #093f71;
  --light: #f7f9fc;
  --border: #e3e8f0;
  --text: #09152b;
  --muted: #4a5568;
  --radius: 16px;
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 14px 40px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; gap: 24px;
}
.logo img { height: 64px; width: auto; }
.main-nav ul { display: flex; gap: 36px; list-style: none; }
.main-nav a { text-decoration: none; font-size: 16px; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 26px; height: 3px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--light); padding: 88px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 16px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 5vw, 57px); font-weight: 500; line-height: 1.15; margin-bottom: 28px; }
.hero p.lead { margin-bottom: 36px; max-width: 520px; }
.hero-img { border-radius: 4px; box-shadow: 0 20px 50px rgba(9,21,43,.15); }

/* ---------- Clients ---------- */
.clients { padding: 64px 0; text-align: center; }
.clients .eyebrow { margin-bottom: 36px; }
.logo-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; align-items: center;
}
.logo-row img {
  max-height: 72px; width: auto; margin: 0 auto; object-fit: contain;
  filter: grayscale(1); opacity: .75; transition: .25s;
}
.logo-row img:hover { filter: none; opacity: 1; }

/* ---------- Services (dark) ---------- */
.services { background: var(--navy); color: var(--light); padding: 88px 0; text-align: center; }
.services h2 { font-size: clamp(30px, 3.6vw, 43px); font-weight: 600; margin-bottom: 56px; line-height: 1.2; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.card {
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: var(--radius); padding: 32px;
}
.icon-box {
  width: 72px; height: 72px; border-radius: 12px;
  background: #2a3a58; display: grid; place-items: center; margin-bottom: 28px;
}
.icon-box svg { width: 40px; height: 40px; fill: #7fb0e3; }
.card h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.25; margin-bottom: 24px; }
.card p { font-size: 16px; }

/* ---------- Coverage ---------- */
.coverage { padding: 88px 0 40px; text-align: center; }
.coverage h2 { font-size: clamp(30px, 3.6vw, 43px); font-weight: 600; margin-bottom: 12px; }
.coverage .sub { font-size: 16px; margin-bottom: 40px; }
.gallery { display: grid; gap: 16px; }
.gallery img { width: 100%; height: auto; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; text-align: center; }
.cta h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; margin-bottom: 24px; }

/* ---------- About ---------- */
.about-hero { padding: 72px 0 24px; text-align: center; }
.about-hero h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 500; margin-bottom: 24px; }
.about-hero p { max-width: 760px; margin: 0 auto; font-size: 17px; }
.values { padding: 24px 0 120px; text-align: center; }
.values h2 { font-size: clamp(30px, 3.6vw, 43px); font-weight: 600; margin-bottom: 40px; }
.values .cards { text-align: center; }
.values .card { background: var(--light); border-color: var(--border); }
.values .icon-box { background: #d5dde8; margin: 0 auto 28px; }
.values .icon-box svg { fill: var(--blue); }
.values .card h3 { font-size: 28px; }

/* ---------- Contact ---------- */
.contact-section { padding: 48px 0 96px; }
.contact-box {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  min-height: 640px;
}
.contact-form-wrap { padding: 48px; }
.contact-form-wrap h1 { color: #274eab; font-size: 32px; font-weight: 500; margin-bottom: 20px; }
.contact-form-wrap .intro { font-size: 17px; margin-bottom: 32px; }
.contact-photo {
  background: url("../img/contacto-1.jpeg") center/cover no-repeat,
              linear-gradient(#274eab, #221d5e);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 16px; margin-bottom: 8px; }
.field label .req { color: #d62828; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px;
  padding: 14px 20px; border: 1px solid var(--border);
  background: var(--light); border-radius: 50px; color: var(--text);
}
.field textarea { border-radius: 20px; min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #274eab; outline-offset: 1px; }
.field .error { color: #d62828; font-size: 14px; margin-top: 6px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #d62828; }
.progress { margin: 28px 0 24px; font-size: 15px; }
.progress-bar { height: 8px; background: #d9dde3; border-radius: 8px; margin-top: 8px; overflow: hidden; }
.progress-bar > div { height: 100%; width: 50%; background: #274eab; border-radius: 8px; transition: width .3s; }
.form-step[hidden] { display: none; }
.form-actions { display: flex; gap: 12px; justify-content: space-between; }
.btn-secondary { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-secondary:hover { background: var(--light); }
.form-status { margin-top: 20px; font-size: 16px; }
.form-status.ok { color: #1b7f3b; }
.form-status.err { color: #d62828; }
.hp { position: absolute; left: -9999px; }

/* ---------- LinkedIn + Footer ---------- */
.linkedin-wrap { display: flex; justify-content: flex-end; padding: 0 0 32px; }
.linkedin-btn {
  width: 72px; height: 72px; border: 2px solid var(--blue); border-radius: 14px;
  display: grid; place-items: center; transition: .2s;
}
.linkedin-btn svg { width: 32px; height: 32px; fill: var(--blue); }
.linkedin-btn:hover { background: var(--blue); }
.linkedin-btn:hover svg { fill: #fff; }
.site-footer { background: var(--navy); color: var(--light); padding: 40px 0; text-align: center; font-size: 16px; }
.site-footer a { color: #7fb0e3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav {
    position: absolute; top: 88px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 32px 24px; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .hero-grid, .contact-box { grid-template-columns: 1fr; }
  .contact-photo { min-height: 280px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .header-inner { height: 76px; }
  .main-nav { top: 76px; }
  .logo img { height: 52px; }
  .header-actions .btn { padding: 10px 22px; }
  .hero, .services { padding: 56px 0; }
  .logo-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-form-wrap { padding: 28px 22px; }
}
