/* ══════════════════════════════════════════════════════════════
   Gestión AI — landing gai.masprojects.com
   Tema claro: papel #F7F8FA · navy #081C34 · dorado #C9A24B
   ══════════════════════════════════════════════════════════════ */

:root {
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --navy: #081C34;
  --navy-soft: #16243D;
  --gold: #C9A24B;
  --gold-soft: #E8D9B8;
  --border: #E2E6ED;
  --muted: #5A6478;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(8, 28, 52, 0.08);
  --shadow-lg: 0 20px 60px rgba(8, 28, 52, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.section { padding: 110px 0; }
.section--tinted { background: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section__lead { max-width: 620px; color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.section__lead--wide { max-width: 780px; }
.eyebrow--ondark { color: var(--gold); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35);
}
.btn--gold:hover { box-shadow: 0 10px 26px rgba(201, 162, 75, 0.5); }
.btn--ghost { color: var(--navy); }
.btn--ghost:hover { background: rgba(8, 28, 52, 0.06); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--lg { font-size: 16px; padding: 14px 30px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand__name span { color: var(--gold); }
.header__nav { display: flex; gap: 22px; margin-left: auto; }
.header__nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-soft);
  opacity: 0.85;
}
.header__nav a:hover { opacity: 1; color: var(--gold); }
.header__actions { display: flex; gap: 10px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; overflow: hidden; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.25) 0%, rgba(247, 248, 250, 0) 30%, rgba(247, 248, 250, 0) 62%, var(--paper) 100%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 40%, rgba(247, 248, 250, 0.35) 100%);
}
.hero__intro,
.hero__final {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero__final { opacity: 0; visibility: hidden; }
.hero__mark { width: 84px; margin-bottom: 22px; filter: drop-shadow(0 6px 20px rgba(255,255,255,0.9)); }
.hero__kicker {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.65);
  padding: 8px 20px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.scroll-cue {
  position: absolute;
  bottom: 34px;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(8, 28, 52, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.scroll-cue span {
  width: 4px;
  height: 9px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--gold);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(12px); opacity: 0.2; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.8);
}
.hero__sub {
  max-width: 640px;
  margin: 22px 0 30px;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--navy-soft);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 6px 14px;
  backdrop-filter: blur(3px);
}
.chatbar {
  display: flex;
  align-items: center;
  width: min(560px, 92%);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 15px 22px;
  box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.14), var(--shadow-lg);
  margin-bottom: 30px;
  text-align: left;
}
.chatbar__text { font-size: 16px; color: var(--navy-soft); min-height: 1.4em; }
.chatbar__cursor {
  width: 2px;
  height: 20px;
  background: var(--gold);
  margin-left: 3px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chatbar__send {
  margin-left: auto;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__trust {
  margin-top: 26px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Strip de rubros ─────────────────────────────────────── */
.rubros {
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.rubros__label {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.rubros__viewport { overflow: hidden; flex: 1; }
.rubros__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.rubros__track span {
  padding: 16px 26px;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.9;
  white-space: nowrap;
}
.rubros__track span::after { content: "·"; margin-left: 26px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Conversa · Delega · Automatiza (sticky, sin pin GSAP) ─ */
.words { height: 260vh; position: relative; }
.words__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.words__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.words__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 28, 52, 0.88) 0%, rgba(8, 28, 52, 0.55) 55%, rgba(8, 28, 52, 0.25) 100%);
}
.words__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6vh;
  padding: 0 max(6vw, 32px);
  color: #fff;
}
.word { opacity: 0.18; transform: translateX(-12px); transition: opacity 0.4s, transform 0.4s; }
.word.is-on { opacity: 1; transform: none; }
.word h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.word.is-on h2 { color: var(--gold); }
.word p {
  max-width: 480px;
  margin-top: 8px;
  font-size: clamp(14px, 1.6vw, 17px);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s 0.1s, max-height 0.45s;
}
.word.is-on p { opacity: 0.92; max-height: 120px; }

/* ── Agent marketplace ───────────────────────────────────── */
.agents__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.agent { perspective: 1200px; min-height: 430px; }
.agent__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.agent.is-flipped .agent__inner { transform: rotateY(180deg); }
.agent__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.agent__front {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.agent__media { position: relative; aspect-ratio: 1; background: #f0f1f4; }
.agent__media video, .agent__media img { width: 100%; height: 100%; object-fit: cover; }
.agent__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.agent__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}
.agent__name em { font-style: normal; color: var(--gold); }
.agent__role { font-size: 13.5px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; margin: 2px 0 8px; }
.agent__bio { font-size: 14px; color: var(--muted); line-height: 1.5; }
.agent__hint {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-soft);
  opacity: 0.7;
}
.agent__back {
  background: var(--navy);
  color: #fff;
  transform: rotateY(180deg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.agent__back h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--gold);
}
.agent__chat { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow: hidden; }
.bubble {
  max-width: 88%;
  padding: 8px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.bubble--in { background: rgba(255, 255, 255, 0.12); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--out { background: var(--gold); color: var(--navy); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.agent__back .btn { margin-top: 12px; justify-content: center; }

/* ── Operaciones (tabs + mockups) ────────────────────────── */
.ops__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.ops__tab {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
}
.ops__tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.ops__panel { display: none; }
.ops__panel.is-active { display: block; animation: fadeUp 0.45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.ops__caption { text-align: center; color: var(--muted); margin-top: 22px; font-size: 15px; }

.browser {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #EEF0F4;
  border-bottom: 1px solid var(--border);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D4D9E2; }
.browser__bar i:first-child { background: #E8AFa6; }
.browser__url {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border-radius: 6px;
  padding: 3px 12px;
  flex: 1;
  max-width: 320px;
}
.browser__body { padding: 18px; }

.pos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.pos__products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.pos__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.pos__item b { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 12px; }
.pos__thumb { font-size: 18px; }
.pos__ticket { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.pos__ticket h4 { font-family: var(--font-display); font-size: 14px; margin-bottom: 10px; }
.pos__line { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--muted); }
.pos__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  border-top: 1.5px dashed var(--border);
  margin-top: 8px;
  padding-top: 10px;
}
.pos__pay {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  border-radius: 8px;
  padding: 9px;
}

.phone {
  width: 280px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 34px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone__notch { width: 90px; height: 16px; background: var(--navy); border-radius: 0 0 12px 12px; margin: 0 auto; position: relative; z-index: 2; }
.phone__screen {
  background: var(--paper);
  border-radius: 26px;
  min-height: 340px;
  padding: 26px 12px 16px;
  margin-top: -14px;
}
.chatdemo { display: flex; flex-direction: column; gap: 9px; }
.chatdemo .bubble--in { background: var(--white); border: 1px solid var(--border); color: var(--navy); }
.chatdemo .bubble--out { background: var(--navy); color: #fff; font-weight: 500; }

.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shop__card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop__img { font-size: 38px; text-align: center; background: var(--paper); border-radius: 8px; padding: 18px 0; margin-bottom: 6px; }
.shop__card b { color: var(--navy-soft); }
.shop__tag { font-size: 11px; font-weight: 700; color: #3D8A5A; }
.shop__tag--low { color: #B4652A; }

/* ── Automatización: micro-animaciones ───────────────────── */
.auto__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.auto__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.auto__card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.auto__card p { font-size: 14.5px; color: var(--muted); }
.auto__anim {
  height: 130px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

/* 1 · Lectura de facturas */
.anim-invoice__doc {
  width: 62px;
  height: 84px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 8px;
  position: relative;
  overflow: hidden;
}
.anim-invoice__doc i { display: block; height: 5px; border-radius: 3px; background: var(--border); margin-bottom: 7px; }
.anim-invoice__doc i:nth-child(2) { width: 70%; }
.anim-invoice__doc i:nth-child(4) { width: 50%; }
.anim-invoice__scan {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(201, 162, 75, 0.65);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 6%; } 50% { top: 90%; } }
.anim-invoice__rows { display: flex; flex-direction: column; gap: 8px; }
.anim-invoice__rows b {
  width: 74px;
  height: 12px;
  border-radius: 6px;
  background: var(--navy);
  opacity: 0.12;
  animation: rowIn 2.6s ease-in-out infinite;
}
.anim-invoice__rows b:nth-child(2) { animation-delay: 0.35s; width: 60px; }
.anim-invoice__rows b:nth-child(3) { animation-delay: 0.7s; width: 66px; }
@keyframes rowIn { 0%, 25% { opacity: 0.12; } 60%, 85% { opacity: 0.85; background: var(--gold); } 100% { opacity: 0.12; } }

/* 2 · Conciliación bancaria */
.anim-bank__col { display: flex; flex-direction: column; gap: 12px; }
.anim-bank__col i { width: 54px; height: 14px; border-radius: 7px; background: var(--white); border: 1.5px solid var(--border); }
.anim-bank__links { display: flex; flex-direction: column; gap: 20px; }
.anim-bank__links span {
  width: 42px;
  height: 2px;
  background: var(--gold);
  position: relative;
  transform: scaleX(0);
  transform-origin: left;
  animation: link 3s ease-in-out infinite;
}
.anim-bank__links span::after {
  content: "✓";
  position: absolute;
  right: -16px;
  top: -10px;
  font-size: 12px;
  font-weight: 800;
  color: #3D8A5A;
  opacity: 0;
  animation: tick 3s ease-in-out infinite;
}
.anim-bank__links span:nth-child(2), .anim-bank__links span:nth-child(2)::after { animation-delay: 0.45s; }
.anim-bank__links span:nth-child(3), .anim-bank__links span:nth-child(3)::after { animation-delay: 0.9s; }
@keyframes link { 0% { transform: scaleX(0); } 35%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes tick { 0%, 30% { opacity: 0; } 45%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* 3 · Control de inventario */
.anim-stock__bars { display: flex; align-items: flex-end; gap: 10px; height: 80px; }
.anim-stock__bars i {
  width: 18px;
  border-radius: 5px 5px 0 0;
  background: var(--navy);
  opacity: 0.75;
  animation: stock 3.2s ease-in-out infinite;
}
.anim-stock__bars i:nth-child(1) { height: 70%; }
.anim-stock__bars i:nth-child(2) { height: 52%; animation-delay: 0.3s; }
.anim-stock__bars i:nth-child(3) { height: 38%; animation-delay: 0.6s; background: var(--gold); opacity: 1; }
.anim-stock__bars i:nth-child(4) { height: 60%; animation-delay: 0.9s; }
@keyframes stock { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }
.anim-stock__alert {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
  animation: pulseAlert 3.2s ease-in-out infinite;
}
@keyframes pulseAlert { 0%, 40%, 100% { opacity: 0; transform: scale(0.9); } 55%, 85% { opacity: 1; transform: scale(1); } }

/* ── ¿Qué es Gestión AI? ─────────────────────────────────── */
.quees__pillars { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.quees__pillar {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(201, 162, 75, 0.07);
}
.quees__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quees__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.quees__icon { font-size: 30px; margin-bottom: 12px; }
.quees__card h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.quees__card li { font-size: 14px; color: var(--muted); line-height: 1.5; list-style: none; padding-left: 18px; position: relative; margin-bottom: 6px; }
.quees__card li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 3px; }

/* ── Facturación electrónica SUNAT ───────────────────────── */
.sunat { background: var(--navy); color: #fff; padding: 110px 0; }
.sunat .section__title { color: #fff; }
.sunat__intro { max-width: 720px; font-size: 17px; opacity: 0.9; margin-bottom: 42px; }
.sunat__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.sunat__benefits { display: flex; flex-direction: column; gap: 16px; }
.sunat__benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 18px;
}
.sunat__benefit i { font-style: normal; font-size: 22px; flex: none; }
.sunat__benefit h4 { font-family: var(--font-display); font-size: 15.5px; margin-bottom: 2px; color: var(--gold-soft); }
.sunat__benefit p { font-size: 14px; opacity: 0.85; line-height: 1.5; }
.sunat__docs {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 28px 26px;
}
.sunat__docs h3 { font-family: var(--font-display); font-size: 18px; color: var(--gold); margin-bottom: 16px; }
.sunat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sunat__chips span {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(201, 162, 75, 0.55);
  border-radius: 999px;
  padding: 5px 13px;
  color: #fff;
}
.sunat__sire {
  font-size: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 75, 0.1);
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
}

/* ── ¿Por qué elegir Gestión AI? ─────────────────────────── */
.porque__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.porque__card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.porque__card h3 { font-family: var(--font-display); font-size: 17.5px; margin-bottom: 10px; line-height: 1.25; }
.porque__card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ── Integraciones ───────────────────────────────────────── */
.integ__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.integ__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.integ__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.integ__icon { font-size: 32px; margin-bottom: 12px; }
.integ__card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.integ__card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.integ__link { margin-top: 16px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--gold); }
.integ__nota { text-align: center; color: var(--muted); font-size: 15px; margin-top: 28px; }

/* ── Contadores ──────────────────────────────────────────── */
.counters { background: var(--navy); color: #fff; padding: 70px 0; }
.counters__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.counter b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.counter span { font-size: 14.5px; opacity: 0.85; }

/* ── Planes ──────────────────────────────────────────────── */
.plans__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.plans__card {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plans__card::before {
  content: "✦";
  position: absolute;
  top: -16px;
  right: 26px;
  font-size: 30px;
  color: var(--gold);
}
.plans__card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 18px; color: var(--gold); }
.plans__card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plans__card li { padding-left: 28px; position: relative; font-size: 15px; }
.plans__card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq__item.is-open { box-shadow: var(--shadow); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  padding: 18px 22px;
}
.faq__q::after {
  content: "+";
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.3s;
  flex: none;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--muted);
  font-size: 15px;
}
.faq__a p { padding: 0 22px 20px; }

/* ── CTA final ───────────────────────────────────────────── */
.finale { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden; }
.finale__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,28,52,0.55), rgba(8,28,52,0.82)); }
.finale__content { position: relative; text-align: center; color: #fff; padding: 90px 24px; }
.finale__content h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 34px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: #fff; padding: 46px 0 40px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer__logo { width: 220px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-size: 14.5px; }
.footer__links a { opacity: 0.85; }
.footer__links a:hover { opacity: 1; color: var(--gold); }
.footer__share {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13.5px;
  font-weight: 700;
}
.footer__share:hover { border-color: var(--gold); color: var(--gold); }
.footer__copy { font-size: 13px; opacity: 0.6; }

/* ── WhatsApp flotante ───────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .agents__grid { grid-template-columns: repeat(2, 1fr); }
  .auto__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .counters__grid { grid-template-columns: repeat(2, 1fr); }
  .plans__inner { grid-template-columns: 1fr; gap: 36px; }
  .header__nav { display: none; }
  .quees__grid { grid-template-columns: repeat(2, 1fr); }
  .sunat__inner { grid-template-columns: 1fr; gap: 32px; }
  .porque__grid { grid-template-columns: repeat(2, 1fr); }
  .integ__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .agents__grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .agent { min-height: 470px; }
  .pos { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .rubros__label { padding: 14px 16px; font-size: 12px; }
  .hero__title { text-shadow: 0 2px 18px rgba(255,255,255,0.9); }
  .quees__grid { grid-template-columns: 1fr; }
  .porque__grid { grid-template-columns: 1fr; }
  .sunat { padding: 72px 0; }
  .words { height: 220vh; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rubros__track,
  .anim-invoice__scan, .anim-invoice__rows b,
  .anim-bank__links span, .anim-bank__links span::after,
  .anim-stock__bars i, .anim-stock__alert,
  .scroll-cue span { animation: none; }
  .anim-invoice__rows b { opacity: 0.85; background: var(--gold); }
  .anim-bank__links span { transform: scaleX(1); }
  .anim-bank__links span::after { opacity: 1; }
  .anim-stock__alert { opacity: 1; }
}
