:root {
  --ink: #14142b;
  --muted: #5d5f73;
  --line: #e6e6ef;
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --accent: #3b3b98;       /* azul arándano */
  --accent-dark: #2a2a75;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 40px; }
h3 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  border: 1px solid var(--accent);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--small { padding: 8px 18px; font-size: 0.9rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--line); }
.btn--light { background: #fff; color: var(--accent); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.logo__light { font-weight: 400; color: var(--muted); }
.logo__mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.18);
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { color: #fff; }

/* Selector de idioma */
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang__btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 120px 0 110px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 24px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Secciones */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

/* Servicios */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card { background: var(--bg); padding: 32px 28px; transition: background .2s; }
.card:hover { background: var(--bg-alt); }
.card__num { display: block; font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 20px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about h2 { margin-bottom: 24px; }
.about p { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 24px 28px; }
.stat dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.stat dd { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

/* Fundadores */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.founder {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.founder__avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt);
  color: var(--accent);
  font-weight: 700;
}
.founder__role { font-size: 0.9rem; color: var(--accent); font-weight: 500; margin: 2px 0 10px; }
.founder p:last-child { color: var(--muted); font-size: 0.95rem; }

/* CTA */
.section--cta { background: var(--accent); color: #fff; text-align: center; }
.cta h2 { margin-bottom: 12px; }
.cta p { opacity: 0.85; margin-bottom: 32px; }

/* Footer */
.footer { padding: 28px 0; font-size: 0.85rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .founders { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .logo__light { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 72px 0; }
  .founder { flex-direction: column; }
}
