:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #5f5e5a;
  --ink-3: #9a9893;
  --line: #e6e4df;
  --white: #ffffff;

  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --gutter: 16px;
  --max: 1180px;
  --r-lg: 20px;
  --r-md: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- shared bits ---------- */
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  flex: none;
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.chip--sm { padding: 5px 10px; font-size: 11.5px; gap: 6px; }
.chip--sm .dot { width: 5px; height: 5px; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
}

.pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  background: var(--ink); color: var(--white);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.pill-btn:hover { background: #2a2a2a; transform: translateY(-1px); }
.pill-btn--sm { padding: 10px 18px; font-size: 13px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  height: 100svh;
  min-height: 600px;
  max-height: 1000px;
  color: var(--white);
  background: #0b0b0b;
  overflow: hidden;
}

.hero__media, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__media img { object-fit: cover; object-position: 50% 30%; }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(180deg, rgba(0,0,0,0) 32%, rgba(0,0,0,0.42) 52%, rgba(0,0,0,0.74) 78%, rgba(0,0,0,0.82) 100%);
}

.nav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  font-size: 13px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.nav__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.nav__logo--dark .nav__avatar { border-color: var(--line); }

.sx-mark {
  display: inline-block;
  width: 1em; height: 1em;
  margin-right: 0.4em;
  vertical-align: -0.14em;
  background: currentColor;
  -webkit-mask: url(../assets/img/sistemaxi-mark.png) center / contain no-repeat;
  mask: url(../assets/img/sistemaxi-mark.png) center / contain no-repeat;
}
.nav__links { display: none; gap: 28px; }
.nav__links a { opacity: 0.85; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__yt {
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
}

.hero__copy {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 var(--gutter) 44px;
  text-align: center;
}
.hero__title {
  font-weight: 500;
  font-size: clamp(60px, 18vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.18);
}
.hero__word { display: block; }
.hero__word + .hero__word { transition-delay: 0.08s; }
.hero__subtitle {
  margin-top: 16px;
  font-size: 15px; line-height: 1.45;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
  transition-delay: 0.16s;
}

.hero__bar {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.bar-cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px var(--gutter);
  background: rgba(15,15,15,0.28);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.bar-cell + .bar-cell { border-left: 1px solid rgba(255,255,255,0.18); }
.bar-cell__label { font-size: 12px; font-weight: 500; }
.bar-cell__value { font-size: 12px; color: rgba(255,255,255,0.62); }
.bar-cell--hide-sm { display: none; }

.bar-cta {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px;
  background: var(--white); color: var(--ink);
  font-size: 15px; font-weight: 500;
  transition: background 0.3s var(--ease);
}
.bar-cta:hover { background: #ecebe7; }

@media (min-width: 900px) {
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .nav__links { display: flex; }

  .hero { min-height: 640px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 20%),
      linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 45%),
      linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%);
  }
  .hero__media img { object-position: 30% 40%; }
  .hero__copy {
    justify-content: center; align-items: flex-start;
    padding-bottom: 0;
    text-align: left;
  }
  .hero__title { font-size: min(8.5vw, 150px); }
  .hero__subtitle { max-width: 280px; font-size: 16px; margin-top: 20px; }

  .hero__bar { grid-template-columns: repeat(4, 1fr) minmax(220px, 1.1fr); }
  .bar-cell { padding: 20px 24px; }
  .bar-cell:first-child { padding-left: var(--gutter); }
  .bar-cell--hide-sm { display: flex; }
  .bar-cell__label { font-size: 13px; }
  .bar-cell__value { font-size: 13px; }
  .bar-cta { grid-column: auto; min-height: 0; font-size: 16px; }
}

/* ================= INTRO ================= */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  text-align: center;
}
.intro__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 36px;
}
.intro__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.intro__title {
  font-weight: 500;
  font-size: clamp(30px, 8.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.intro__title > span { display: block; white-space: nowrap; }
.intro__line {
  display: flex; align-items: center; justify-content: center;
  margin-top: 22px;
}
.intro__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.intro__dash { width: 90px; border-top: 1.5px dashed var(--ink-3); }
.intro__target {
  position: relative;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink);
}
.intro__target::after {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%; background: var(--ink);
}

@media (min-width: 900px) {
  .intro { padding-top: 88px; padding-bottom: 48px; }
  .intro__meta { margin-bottom: 56px; }
  .intro__dash { width: 120px; }
}

/* ================= SÉRIE ================= */
.series {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}
.series__head { margin: 18px 0 28px; }
.series__title {
  font-weight: 500;
  font-size: clamp(48px, 13vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.series__desc { margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 300px; }

.infobar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 30px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}
.infobar__cell strong { display: block; font-size: 14px; font-weight: 600; }
.infobar__cell span { font-size: 12.5px; color: var(--ink-3); }
.infobar .pill-btn { grid-column: 1 / -1; }

.cards { display: grid; gap: 16px; }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 30px rgba(0,0,0,0.04);
}
.card__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 4px 4px 12px;
}
.card__head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card__head p { font-size: 13px; color: var(--ink-2); }

.card__media {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #dcdad4;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card__media:hover img { transform: scale(1.04); }
.card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5));
}
.card__chips {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; gap: 14px;
  color: var(--white); font-size: 12px; font-weight: 500;
}

.card__go {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin-left: 2px;
  border-radius: 50%;
  background: #f0efeb;
  font-size: 14px;
  transition: background 0.2s;
}
.card__go:hover { background: #e3e1dc; }

.card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .infobar { grid-template-columns: repeat(2, 1fr) auto; align-items: center; padding: 14px 14px 14px 22px; }
  .infobar__cell + .infobar__cell { border-left: 1px solid var(--line); padding-left: 18px; }
  .infobar .pill-btn { grid-column: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

@media (min-width: 900px) {
  .series { padding-bottom: 110px; }
  .series__head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
    margin: 20px 0 36px;
  }
  .series__desc { margin: 0 0 12px; }
}

/* ================= CTA FINAL ================= */
.final {
  margin: 0 var(--gutter) 16px;
  padding: 64px 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
  text-align: center;
}
.final__title {
  font-weight: 500;
  font-size: clamp(38px, 10vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
}
.bar-cta--inline {
  display: inline-flex;
  min-height: 0;
  padding: 16px 28px;
  border-radius: 999px;
}
@media (min-width: 900px) {
  .final { max-width: var(--max); margin: 0 auto 24px; padding: 110px 40px; border-radius: 28px; }
}

/* ================= FOOTER ================= */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__logo--dark { color: var(--ink); }
.footer__right { display: flex; align-items: center; gap: 16px; }
.footer__icon { display: inline-flex; opacity: 0.75; transition: opacity 0.2s; }
.footer__icon:hover { opacity: 1; }
.footer__email { font-size: 14px; font-weight: 500; }
.footer__copy { width: 100%; font-size: 12px; color: var(--ink-3); }
