/* ============================================================
   MARKEOS — Sistema de marca
   Monocromo de alto contraste + acento eléctrico (volt)
   Display: Space Grotesk · Texto: Hanken Grotesk · Mono: Space Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* — Color base — */
  --ink:        #0B0B0C;   /* casi negro */
  --ink-soft:   #141417;   /* superficie oscura elevada */
  --ink-2:      #1E1E22;   /* borde sobre oscuro */
  --paper:      #FFFFFF;
  --paper-2:    #F4F4F1;   /* superficie clara cálida */
  --paper-3:    #ECECE7;

  --fg:         #0B0B0C;
  --fg-muted:   #5C5C63;
  --fg-faint:   #8A8A90;
  --on-dark:    #FFFFFF;
  --on-dark-muted: #A7A7AE;
  --on-dark-faint: #6E6E76;

  --line:       #E4E4DF;   /* borde sobre claro */
  --line-dark:  #26262B;   /* borde sobre oscuro */

  /* — Acento — */
  --volt:       #C9F23C;   /* verde eléctrico (señal de crecimiento) */
  --volt-deep:  #A9D31E;
  --volt-ink:   #0B0B0C;   /* texto sobre el acento */

  /* — Tipografía — */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* — Layout — */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;

  /* — Sombras — */
  --shadow-sm: 0 1px 2px rgba(11,11,12,.06);
  --shadow:    0 18px 50px -22px rgba(11,11,12,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--volt); color: var(--volt-ink); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--volt { color: var(--volt-deep); }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.on-dark .eyebrow--volt { color: var(--volt); }

.lede { font-size: clamp(1.12rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--fg-muted); text-wrap: pretty; }
.on-dark .lede { color: var(--on-dark-muted); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark.on-dark, .on-dark { color: var(--on-dark); }
.muted { background: var(--paper-2); }

.stack-sm > * + * { margin-top: .75rem; }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.95em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--volt { background: var(--volt); color: var(--volt-ink); }
.btn--volt:hover { background: var(--volt-deep); }

.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: #000; }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.on-dark .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.on-dark .btn--ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,.04); }

.btn--lg { font-size: 1.05rem; padding: 1.05em 1.7em; }

/* link con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--fg);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.link-arrow:hover { border-color: var(--volt-deep); }
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--on-dark); }
.on-dark .link-arrow:hover { border-color: var(--volt); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: flex; align-items: center; height: 100%; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  font-size: 0.96rem; font-weight: 500; color: var(--fg-muted);
  transition: color .2s var(--ease); position: relative; padding: 6px 0;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--volt-deep);
}
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.nav__toggle span + span { margin-top: 6px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__menu-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav__menu-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* mobile drawer */
.mobile-menu {
  display: none;
  position: fixed; inset: 76px 0 0 0; z-index: 49;
  background: var(--ink); color: var(--on-dark);
  padding: var(--gutter);
  flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 7vw, 90px) 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__logo { height: 34px; width: auto; margin-bottom: 22px; }
.footer h5 { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; color: var(--on-dark-faint); font-weight: 400; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--on-dark-muted); padding: 6px 0; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--on-dark); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); color: var(--on-dark-faint); font-size: .86rem; flex-wrap: wrap; }
@media (max-width: 760px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px){ .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.on-dark .card { background: var(--ink-soft); border-color: var(--line-dark); }
.on-dark .card:hover { border-color: var(--volt); box-shadow: none; }

/* index numerado */
.idx { font-family: var(--font-mono); font-size: .8rem; color: var(--fg-faint); letter-spacing: .04em; }
.on-dark .idx { color: var(--on-dark-faint); }

/* pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  padding: .5em .85em; border: 1px solid var(--line); border-radius: 100px; color: var(--fg-muted);
}
.on-dark .chip { border-color: var(--line-dark); color: var(--on-dark-muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilidades ---------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px){ .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }
.text-volt { color: var(--volt-deep); }
.on-dark .text-volt { color: var(--volt); }
.mono { font-family: var(--font-mono); }
