/* WES landing: mobile-first, light theme, brand blue from the logo, no JS, no external assets.
   Base = celular. @media (min-width: 601px) = tableta. @media (min-width: 961px) = escritorio. */

:root {
  --blue: #0a6ebd;          /* texto y botones: 5.3:1 sobre blanco */
  --blue-dark: #07568f;
  --blue-light: #1a97d6;    /* solo decorativo o texto grande */
  --tint: #eef6fc;
  --tint-2: #dcecf8;
  --ink: #0f2233;
  --muted: #55687a;
  --line: #e1eaf2;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 110, 189, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 110, 189, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

[id] { scroll-margin-top: 76px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; min-height: 44px; }   /* zona de toque >= 44px */
.brand img { display: block; height: 30px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: none;                      /* en celular solo queda el boton de contacto */
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 12px; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; text-align: center;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; margin-right: 9px; vertical-align: -3px; }
.btn-sm { padding: 11px 18px; font-size: 0.93rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(10, 110, 189, 0.28); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--tint-2); }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px;
  background: radial-gradient(1000px 520px at 85% -10%, var(--tint) 0%, rgba(255,255,255,0) 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }

h1 {
  margin: 0 0 18px; font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
}
.grad {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.cta-row .btn { flex: 1 1 150px; }
.proof { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Visual del hero (solo CSS): oculto en celular */
.hero-visual { display: none; position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 300px; height: 300px; right: -40px; top: 0;
  background: radial-gradient(circle at 30% 30%, var(--blue-light), var(--blue)); opacity: 0.16; }
.blob-2 { width: 190px; height: 190px; left: 10px; bottom: 6px;
  background: radial-gradient(circle at 30% 30%, var(--tint-2), var(--blue-light)); opacity: 0.35; }
.dots { position: absolute; right: 0; bottom: 20px; width: 170px; height: 120px;
  background-image: radial-gradient(var(--blue-light) 1.6px, transparent 1.6px);
  background-size: 18px 18px; opacity: 0.45; }
.stack { position: relative; z-index: 2; display: grid; gap: 14px; padding: 10px 0; }
.mini {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  box-shadow: var(--shadow-lg); max-width: 330px;
}
.mini strong { display: block; font-size: 1rem; }
.mini small { color: var(--muted); font-size: 0.85rem; }
.mini-ico, .ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}
.mini-ico svg, .ico svg { width: 24px; height: 24px; }
.mini-2 { transform: translateX(40px); }
.mini-3 { transform: translateX(10px); }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.soft { background: var(--tint); }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
h2 { margin: 0 0 28px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 22em; }
h3 { margin: 0 0 8px; font-size: 1.2rem; }

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card .ico { margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0 0 18px; }
.card .card-lead { color: var(--ink); font-weight: 500; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.points strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

/* Etiqueta AI */
.ai {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding: 2px 10px 2px 8px; vertical-align: 2px;
  background: linear-gradient(120deg, #07568f 0%, #0a6ebd 100%);
  color: #fff; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.5;
  text-decoration: none; cursor: help;
}
.ai::before { content: "\2726"; font-size: 0.78rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.about-grid h2 { margin-bottom: 18px; }
.body { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 34em; }
.about-grid .body + .body { margin-top: 14px; }
.facts { display: grid; gap: 14px; margin: 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow); }
.facts dt { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--blue); }
.facts dd { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

.mv { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.mv-card h3 { color: var(--blue); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.mv-card p { margin: 0; font-size: 1.04rem; line-height: 1.6; }

/* Valores */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 22px; }
.values li { position: relative; padding-top: 20px; }
.values li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}
.values h3 { margin-bottom: 6px; }
.values p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Careers */
.careers-box { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.careers-box h2 { margin-bottom: 14px; }
.careers-box .body { max-width: 38em; }
.careers-box .btn { flex: none; }

/* ---------- Cierre (contacto) ---------- */
.closing {
  position: relative; overflow: hidden; color: #fff;
  padding: 56px 0 48px;
  background: linear-gradient(120deg, #07568f 0%, #0a6ebd 100%);
}
.closing::before {
  content: ""; display: none; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.closing::after {
  content: ""; display: none; position: absolute; right: 28px; bottom: 34px; width: 170px; height: 110px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.6px, transparent 1.6px);
  background-size: 18px 18px; opacity: 0.55; pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; }
.closing-eyebrow { margin: 0 0 14px; color: #e5f1fa; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.closing h2 { color: #fff; margin: 0 0 14px; max-width: 18em; }
.closing-lead { margin: 0 0 26px; max-width: 38em; color: #e5f1fa; font-size: 1.04rem; }
.closing-cta { display: grid; grid-template-columns: 1fr; gap: 12px; }

.offices {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.offices h3 { margin: 0 0 6px; color: #e5f1fa; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.offices address { font-style: normal; color: #fff; line-height: 1.55; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 24px 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 24px; width: auto; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Animaciones de entrada (sin JS) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { animation: rise .7s ease both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.mini { animation: rise .8s ease both; }
.mini-2 { animation-delay: .12s; }
.mini-3 { animation-delay: .24s; }

/* Efectos de "hover": solo en dispositivos con mouse (en el celular no quedan pegados al tocar) */
@media (hover: hover) {
  a:hover { color: var(--blue-dark); }
  .nav-link:hover { background: var(--tint); color: var(--blue); }
  .btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 110, 189, 0.34); }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }
  .btn-white:hover { background: var(--tint); color: var(--blue-dark); transform: translateY(-2px); }
  .btn-outline:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: translateY(-2px); }
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--tint-2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   TABLETA: desde 601px
   ========================================================= */
@media (min-width: 601px) {
  body { font-size: 17px; }
  [id] { scroll-margin-top: 84px; }

  .nav-inner { height: 68px; }
  .nav-link { display: inline-block; }
  .btn-sm { margin-left: 6px; }

  .hero { padding: 48px 0 64px; }
  .hero-visual { display: block; min-height: 0; }
  .cta-row .btn { flex: none; }
  .lead { font-size: 1.15rem; }

  .section { padding: 64px 0; }
  .card { padding: 28px; }
  .mv-card { padding: 28px; }
  .body { font-size: 1.08rem; }

  .values { grid-template-columns: repeat(2, 1fr); }
  .careers-box { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
  .careers-box > div { flex: 1 1 420px; }

  .closing { padding: 64px 0 56px; }
  .closing::after { display: block; }
  .closing-cta { grid-template-columns: repeat(2, max-content); }
  .offices { grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px 56px; margin-top: 48px; padding-top: 28px; }
}

/* =========================================================
   ESCRITORIO: desde 961px
   ========================================================= */
@media (min-width: 961px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero-visual { min-height: 380px; }
  .blob-1 { right: 10px; }
  .stack { padding-left: 30px; }

  .section { padding: 84px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .about-grid { grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
  .mv { grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
  .values { grid-template-columns: repeat(4, 1fr); gap: 22px; }

  .closing { padding: 88px 0 72px; }
  .closing::before { display: block; }
}
