/* ==========================================================================
   Jonatan Uran — Tech Lead de IA fraccional
   ========================================================================== */

:root {
  /* Acento: cambiarlo acá lo cambia en toda la página */
  --accent: #C8F560;
  --on-accent: #0C0E0D;

  --bg: #0C0E0D;
  --bg-alt: #111412;
  --surface: #141816;
  --text: #EDF0EA;
  --text-strong: #FFFFFF;
  --muted: #A3AAA2;
  --subtle: #7F877E;
  --line: #262B28;
  --line-strong: #3A403C;
  --dot: #2E3430;
  --photo-bg: #F7F6F2;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base
   ========================================================================== */

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--text); }
a:hover { color: var(--text-strong); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
.skip-link:hover { color: var(--on-accent); }

/* Layout
   ========================================================================== */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding-top: 96px; padding-bottom: 96px; }

.band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.split__intro { flex: 1 1 320px; min-width: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

/* Tipografía
   ========================================================================== */

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.section-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.body-text { margin: 0; color: var(--muted); }

.mono-note {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--subtle);
}

/* Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn--block { justify-content: center; min-height: 48px; }

.btn--primary,
.btn--primary:hover { background: var(--accent); color: var(--on-accent); }

.btn--outline,
.btn--outline:hover { border: 1px solid var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header
   ========================================================================== */

.site-header { border-bottom: 1px solid var(--line); }

.site-header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.brand:hover {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.site-nav__link { text-decoration: none; color: var(--muted); }

/* Hero
   ========================================================================== */

.hero { padding-top: 88px; padding-bottom: 72px; }

.hero__main {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.hero__copy { flex: 1 1 520px; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lead {
  margin: 26px 0 0;
  max-width: 600px;
  font-size: 20px;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions { margin-top: 36px; }

/* Terminal */

.terminal { flex: 1 1 400px; min-width: 0; margin: 0; }

.terminal__window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

.terminal__dots { display: flex; gap: 6px; }
.terminal__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.terminal__body {
  padding: 22px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal__prompt { color: var(--accent); }

.terminal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.terminal__row--result { margin-top: 6px; }

.terminal__key { min-width: 120px; color: var(--subtle); }
.terminal__value { color: var(--muted); }
.terminal__row--result .terminal__key { color: var(--accent); }
.terminal__row--result .terminal__value { color: var(--text); }

.terminal__caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

/* Números */

.stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}

.stat { padding-top: 18px; border-top: 1px solid var(--line); }

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
}

.stat__label { color: var(--muted); font-size: 15px; }

/* El problema
   ========================================================================== */

.problems__title { max-width: 760px; margin-bottom: 48px; text-wrap: balance; }

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card__num {
  font-family: var(--font-mono);
  color: var(--subtle);
  font-size: 13px;
}

.card__title {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

.card__text { margin: 0; color: var(--muted); font-size: 16px; }

/* Qué hago
   ========================================================================== */

.service-list {
  flex: 2 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0 32px;
}

.service { padding: 22px 0; border-top: 1px solid var(--line); }

.service__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.service__text { margin: 0; color: var(--muted); font-size: 16px; }

/* Planes
   ========================================================================== */

.plans__title { max-width: 760px; margin-bottom: 12px; text-wrap: balance; }
.plans__intro { margin: 0 0 44px; max-width: 680px; color: var(--muted); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan--featured { border-color: var(--accent); }

.plan__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--subtle);
}

.plan__tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}

.plan__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
}

.plan__price {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.plan__period { font-size: 17px; font-weight: 500; color: var(--muted); }

.plan__desc { margin: 0; color: var(--muted); font-size: 16px; flex-grow: 1; }

/* Cómo trabajo
   ========================================================================== */

.process__title { margin-bottom: 44px; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step__when {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.step__title {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.step__text { margin: 0; color: var(--muted); font-size: 16px; }

.process__note { margin: 28px 0 0; color: var(--muted); font-size: 16px; }

/* Sobre mí
   ========================================================================== */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.about__photo {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 300px;
  box-sizing: border-box;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--photo-bg);
  border: 1px solid var(--line);
}

.about__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about__copy { flex: 2 1 460px; min-width: 0; }
.about__copy .section-title { margin-bottom: 18px; }
.about__copy .body-text { margin-bottom: 28px; }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }

.timeline__role {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
}

/* Próximo paso
   ========================================================================== */

.contact { padding-top: 112px; padding-bottom: 104px; }

.contact__inner { max-width: 760px; }

.contact__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.contact__lead { margin: 0 0 36px; font-size: 19px; color: var(--muted); }

.contact__actions .btn--lg { padding: 0 26px; }

.contact__email a { color: var(--muted); }
.contact__email a:hover { color: var(--text-strong); }

/* Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); }

.site-footer__inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--subtle);
}

.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__links a { color: var(--muted); }

/* 404
   ========================================================================== */

.not-found { padding-top: 96px; padding-bottom: 96px; }
.not-found .hero__actions { margin-top: 32px; }
