/* ============ Tokens ============ */
:root {
  --navy: #274a73;
  --blue: #3d8bef;
  --blue-light: #7cc3ff;
  --ink: #16181d;
  --gray-700: #4a5261;
  --gray-500: #6b7280;
  --gray-300: #d7dde5;
  --bg-soft: #f5f8fb;
  --white: #ffffff;

  --font-head: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1140px;
  --radius: 14px;
  --shadow: 0 20px 40px -24px rgba(22, 33, 55, 0.25);
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
.text-gradient {
  background: linear-gradient(100deg, var(--navy), var(--blue) 55%, var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0 0 1em; color: var(--gray-700); }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(61, 139, 239, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(61, 139, 239, .6); }
.btn-ghost {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand img { height: 52px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--bg-soft); color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  margin-left: 8px;
}
.nav-cta:hover { background: #2f78d9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 65%);
}
.hero-network {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 620px;
  height: 620px;
  color: var(--blue);
  opacity: .16;
  pointer-events: none;
}
.hero-network-nodes circle:nth-child(3) { color: var(--navy); }
.hero-inner { position: relative; text-align: center; max-width: 780px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero-lead {
  font-size: 19px;
  color: var(--gray-700);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-lead { font-size: 18px; }

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: center;
}
.split-reverse .split-text { order: 1; }
.split-reverse .split-form { order: 2; }
.split-text h2 { font-size: clamp(26px, 3.2vw, 34px); }

.split-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.stat-card:first-child { grid-column: 1 / -1; }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--blue);
}
.stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

/* ============ Servicios ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e9f2ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 20px; }
.service-card p { margin-bottom: 0; font-size: 15px; }

/* ============ Quote ============ */
.quote-section {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  padding: 80px 0;
}
.quote-section blockquote { margin: 0; text-align: center; }
.quote-section p {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  max-width: 780px;
  margin: 0 auto 16px;
  line-height: 1.35;
}
.quote-section cite {
  font-style: normal;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ============ Clientes ============ */
.clients-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 92px;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.client-logo:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.client-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: .65;
  transition: filter .2s ease, opacity .2s ease;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ============ Contacto ============ */
.contact-list { margin-top: 28px; }
.contact-list li { margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; }
.contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); width: 90px; flex-shrink: 0; }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

.split-form {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color .15s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #c0392b;
}
.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
}
.form-response {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}
.form-response.success { color: #1a8a4a; }
.form-response.error { color: #c0392b; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,.6); margin: 0; }
.footer-col h6 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.footer-col p { margin: 0 0 8px; }
.footer-col a:hover { color: var(--blue-light); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
}
.social-links a:hover { border-color: var(--blue-light); color: var(--blue-light); }
.footer-bottom { padding: 20px 24px 28px; text-align: center; font-size: 13px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-text { order: 0; }
  .split-reverse .split-form { order: 1; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 24px 24px;
    gap: 4px;
    box-shadow: -12px 0 40px rgba(16,24,40,.12);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-link { padding: 14px 16px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 150px 0 80px; }
  .hero-network { width: 420px; height: 420px; top: -6%; right: -20%; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .split-form { padding: 24px; }
  .clients-row { gap: 14px; }
  .client-logo { width: 136px; height: 80px; padding: 14px 18px; }
}
