/* =============================================================
   Svemis — hoja de estilos única
   Sin dependencias externas. Sin build. Editar aquí y subir.
   ============================================================= */

/* ---------- Tokens: claro ---------- */
:root {
  --ground:      #FAF9F6;
  --surface:     #FFFFFF;
  --surface-alt: #F1EFE9;
  --ink:         #14201C;
  --muted:       #5C6A64;
  --line:        #DFE2DB;
  --accent:      #1F6B4F;
  --accent-soft: #E4EEE8;
  --gold:        #9C6E1E;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 5rem);

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  color-scheme: light dark;
}

/* ---------- Tokens: oscuro del sistema ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground:      #0D1512;
    --surface:     #141F1B;
    --surface-alt: #18241F;
    --ink:         #E8EDE9;
    --muted:       #94A39C;
    --line:        #24322C;
    --accent:      #5FB48B;
    --accent-soft: #16261F;
    --gold:        #D9A94E;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* La cabecera es fija: los anclajes necesitan holgura por encima */
[id] { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--ground);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Antetítulo monoespaciado: la voz de marca */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Cabecera ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 4.5rem;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--accent); }

nav.main {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  margin-inline-start: auto;
  flex-wrap: wrap;
}
nav.main a {
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.lang { display: flex; gap: 0.4rem; font-family: var(--mono); font-size: var(--step--1); }
.lang a { text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.lang span { color: var(--line); }

.tel {
  font-family: var(--mono);
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 62rem) { .tel { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: var(--step-4); font-weight: 700; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede {
  margin-top: 1.75rem;
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.5;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s;
}
.btn-solid { background: var(--accent); color: var(--ground); }
.btn-solid:hover { background: transparent; color: var(--accent); }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- Pilares ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.pillar h3 { font-size: var(--step-1); font-weight: 650; margin-bottom: 0.7rem; }
.pillar p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Secciones ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 44ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cap .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.cap h3 { font-size: var(--step-1); font-weight: 650; }
.cap p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Producto ---------- */
.product { background: var(--surface-alt); border-block: 1px solid var(--line); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.product h2 { font-size: var(--step-3); font-weight: 700; }
.product .claim { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.verticals { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.verticals li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.verticals .n {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.plans { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plan {
  background: var(--surface);
  padding: 1.35rem clamp(1.25rem, 3vw, 1.9rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.plan .name { font-weight: 650; }
.plan .who { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; margin-top: 0.15rem; }
.plan .price {
  font-family: var(--mono);
  font-size: var(--step-1);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan .price small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; }

/* ---------- Empleo ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
}
.perk { border-top: 2px solid var(--accent); padding-top: 1rem; }
.perk h3 { font-size: var(--step-0); font-weight: 650; margin-bottom: 0.5rem; }
.perk p { color: var(--muted); font-size: 0.94rem; }

.cv {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  max-width: 60ch;
}
.cv a { color: var(--accent); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.channel { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); }
.channel .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}
.channel a, .channel strong {
  font-size: var(--step-1);
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  display: block;
  line-height: 1.25;
}
.channel a:hover { color: var(--accent); }
.channel .note { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; }

/* ---------- Pie ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}
.foot .mono { font-family: var(--mono); letter-spacing: 0.06em; }

/* ---------- Página 404 ---------- */
.oops { min-height: 70vh; display: grid; align-content: center; gap: 1.25rem; }
.oops h1 { font-size: var(--step-4); font-weight: 700; }
.oops p { color: var(--muted); font-size: var(--step-1); max-width: 44ch; }

/* ---------- Movimiento ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
