/* ============================================================
   ZAROOA POS — Mercury Design System
   Paper & ink · light theme · Helvetica Now Display
   ============================================================ */

/* ---------- Type: Helvetica Now Display (autoalojada) ---------- */
@font-face {
  font-family: 'HelveticaNowDisplay';
  src: url('../assets/fonts/HelveticaNowDisplayW01-Rg.woff2') format('woff2');
  font-weight: 300 450;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HelveticaNowDisplay';
  src: url('../assets/fonts/HelveticaNowDisplay-Medium.woff2') format('woff2');
  font-weight: 451 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colors — papel y tinta */
  --color-onyx-canvas: #ffffff;
  --color-graphite-card: #f6f6f8;
  --color-obsidian-button: #f0f0f3;
  --color-obsidian-hover: #e7e7ec;
  --color-slate-border: #b9b9c4;
  --color-mist-border: #e6e6ec;
  --color-ash-text: #55555f;
  --color-ivory-text: #0a0a0d;
  --color-ink: #0a0a0d;
  --color-ink-hover: #26262e;
  --color-accent: #8a5a00;
  --color-accent-hover: #6e4800;
  --color-accent-bright: #e8a319;
  --surface-accent: rgba(232, 163, 25, 0.16);
  --color-pure-white: #ffffff;

  /* Derived surfaces */
  --surface-hairline: rgba(10, 10, 13, 0.09);
  --surface-hairline-strong: rgba(10, 10, 13, 0.18);
  --surface-divider: rgba(10, 10, 13, 0.14);
  --surface-card-hover: #ffffff;
  --surface-scrolled: rgba(255, 255, 255, 0.86);

  /* Status (semantic) */
  --color-success: #157f3d;
  --color-warning: #9a6700;
  --color-danger: #cf222e;
  --color-info: #8a5a00;
  --surface-success: rgba(21, 127, 61, 0.10);
  --surface-warning: rgba(154, 103, 0, 0.12);
  --surface-danger: rgba(207, 34, 46, 0.10);
  --surface-info: rgba(138, 90, 0, 0.10);

  /* Typography — families */
  --font-heading: 'HelveticaNowDisplay', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'HelveticaNowDisplay', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-arcadia: var(--font-body);
  --font-arcadiadisplay: var(--font-heading);

  /* Typography — scale */
  --text-caption: 12px;
  --leading-caption: 1;
  --tracking-caption: 0.6px;
  --text-body-sm: 14px;
  --leading-body-sm: 1;
  --tracking-body-sm: 0.07px;
  --text-body: 16px;
  --leading-body: 1.5;
  --text-body-lg: 18px;
  --leading-body-lg: 1.35;
  --text-subheading: 21px;
  --leading-subheading: 1.35;
  --text-heading-sm: 30px;
  --leading-heading-sm: 1.2;
  --tracking-heading-sm: -0.2px;
  --text-heading: 36px;
  --leading-heading: 1.15;
  --tracking-heading: -0.3px;
  --text-heading-lg: 48px;
  --leading-heading-lg: 1.15;
  --tracking-heading-lg: -0.6px;
  --text-display: clamp(2.75rem, 6.8vw, 80px);
  --leading-display: 1.1;

  /* Typography — weights (Inter variable) */
  --font-weight-w360: 360;
  --font-weight-regular: 400;
  --font-weight-w420: 420;
  --font-weight-w480: 480;
  --font-weight-w530: 530;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-56: 56px;
  --spacing-72: 72px;
  --spacing-112: 112px;
  --spacing-128: 128px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 72px;
  --card-padding: 32px;
  --element-gap: 12px;

  /* Border radius */
  --radius-nav: 40px;
  --radius-tags: 40px;
  --radius-cards: 12px;
  --radius-inputs: 32px;
  --radius-buttons: 32px;
  --radius-default: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms;
  --transition-base: 300ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arcadia);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-ivory-text);
  background-color: var(--color-onyx-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(232, 163, 25, 0.35);
  color: var(--color-ivory-text);
}

/* ---------- Layout helpers ---------- */
.section-container {
  position: relative;
  z-index: 2;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-32);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--spacing-56);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-ash-text);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-tags);
  padding: 6px 16px;
  margin-bottom: var(--spacing-24);
}

.section-title {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-16);
}

.section-description {
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-ash-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-buttons);
  transition: background var(--transition-fast) ease, border-color var(--transition-fast) ease, color var(--transition-fast) ease, transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-pure-white);
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--color-ink-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(10, 10, 13, 0.42);
}

.btn-primary:hover::before {
  left: 115%;
}

.btn-primary:active {
  background: var(--color-ink);
  transform: translateY(0);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-ivory-text);
  border: 1px solid var(--color-ivory-text);
}

.btn-ghost:hover {
  background: rgba(10, 10, 13, 0.05);
  border-color: rgba(10, 10, 13, 0.45);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: transparent;
  transition: background var(--transition-base) ease, backdrop-filter var(--transition-base) ease, border-color var(--transition-base) ease, box-shadow var(--transition-base) ease;
  border-bottom: 1px solid transparent;
  animation: nav-enter 0.6s var(--ease-out) both;
}

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 10, 13, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base) ease;
  pointer-events: none;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--surface-hairline);
  box-shadow: 0 4px 24px -10px rgba(10, 10, 13, 0.28);
}

.navbar.scrolled::before {
  opacity: 1;
}

/* Logo: hover elegante */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  flex-shrink: 0;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand:hover .nav-logo {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 2px 12px rgba(10, 10, 13, 0.3));
}

/* Brand text: tracking + color al hover */
.brand-text {
  font-family: var(--font-arcadiadisplay);
  font-size: 20px;
  font-weight: var(--font-weight-w530);
  letter-spacing: -0.01em;
  color: var(--color-ivory-text);
}

.brand-accent {
  font-weight: var(--font-weight-w360);
  margin-left: 2px;
}

.nav-container {
  max-width: var(--page-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-24);
  position: relative;
  z-index: 2;
}

/* Links separados por coma en escritorio; overlay a pantalla completa en movil. */
.nav-panel {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-comma {
  color: var(--color-ash-text);
  font-size: var(--text-body);
  user-select: none;
  pointer-events: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-ivory-text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  opacity: 0.55;
}

.nav-links a.active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w480);
  color: var(--color-ash-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-nav);
  cursor: pointer;
  transition:
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-toggle:hover {
  background: rgba(10, 10, 13, 0.05);
  color: var(--color-ivory-text);
}

.lang-toggle svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.lang-toggle:hover svg {
  transform: rotate(180deg) scale(1.05);
}

/* CTA de texto subrayado */
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 4px;
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-ivory-text);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
  opacity: 0.55;
}

/* CTA solido de conversion */
.nav-cta-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-nav);
  background: var(--color-ink);
  color: var(--color-pure-white);
  border: none;
  text-decoration: none;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w480);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta-solid:hover {
  background: var(--color-ink-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(10, 10, 13, 0.55);
}

.nav-cta-solid:active {
  transform: translateY(0);
  box-shadow: none;
}

.nav-cta-solid.is-hidden {
  display: none;
}

/* Sesión activa: el user-menu ya muestra la identidad */
.nav-cta.is-hidden {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ivory-text);
  border-radius: 2px;
  transition: transform var(--transition-base) ease, opacity var(--transition-fast) ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- User menu ---------- */
.user-menu {
  position: relative;
  display: none;
  align-items: center;
}

.user-menu.active {
  display: flex;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  height: 40px;
  padding: 0 12px 0 4px;
  background: var(--color-obsidian-button);
  border: 1px solid transparent;
  border-radius: var(--radius-nav);
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu-trigger:hover {
  background: var(--color-obsidian-hover);
  border-color: rgba(10, 10, 13, 0.16);
  box-shadow:
    0 4px 14px -6px rgba(10, 10, 13, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.user-menu-trigger .user-menu-avatar {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu-trigger:hover .user-menu-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(138, 90, 0, 0.45), 0 2px 8px rgba(10, 10, 13, 0.18);
}

.user-menu-trigger .user-menu-chevron {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.user-menu-trigger:hover .user-menu-chevron {
  color: var(--color-accent);
}

.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-graphite-card);
  color: var(--color-ivory-text);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-name {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w420);
  color: var(--color-ivory-text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-chevron {
  width: 16px;
  height: 16px;
  color: var(--color-ash-text);
  transition: transform var(--transition-fast) ease;
}

.user-menu.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--color-graphite-card);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-cards);
  padding: var(--spacing-8);
  z-index: 100;
}

.user-menu.open .user-menu-dropdown {
  display: block;
}

.user-menu-dropdown a,
.user-menu-dropdown .logout-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  width: 100%;
  padding: 10px 12px;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-ivory-text);
  border-radius: 8px;
  transition: background var(--transition-fast) ease;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown .logout-btn:hover {
  background: var(--color-obsidian-button);
}

.user-menu-dropdown svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-ash-text);
}

.user-menu-divider {
  height: 1px;
  background: var(--surface-divider);
  margin: var(--spacing-8) 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 var(--spacing-72);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform-origin: center 45%;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--page-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-32);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Susurro desenfocado: la etiqueta de entrada del hero */
.hero-intro {
  margin: 0 0 var(--spacing-20);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(10, 10, 13, 0.82);
  filter: blur(2.5px);
  user-select: none;
  animation: heroFadeUp 0.6s var(--ease-out) 0.05s both;
}

.hero-intro-line {
  display: block;
}

.hero-title {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-display);
  font-weight: var(--font-weight-w530);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-heading-lg);
  color: var(--color-ivory-text);
  max-width: 660px;
  margin-bottom: var(--spacing-24);
  animation: heroFadeUp 0.6s var(--ease-out) 0.12s both;
}

.hero-highlight {
  font-weight: var(--font-weight-w530);
  color: var(--color-ivory-text);
}

.hero-title .hero-line-muted {
  opacity: 0.5;
}

.hero-description {
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-w420);
  line-height: var(--leading-body);
  color: var(--color-ivory-text);
  max-width: 560px;
  margin: 0 0 var(--spacing-32);
  animation: heroFadeUp 0.6s var(--ease-out) 0.2s both;
}

/* Cursor de la maquina de escribir */
.typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--element-gap);
  margin-bottom: var(--spacing-40);
}

/* Pildoras de accion del hero */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-40);
  animation: heroFadeUp 0.6s var(--ease-out) 0.28s both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  background: var(--color-pure-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w480);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill:hover {
  background: var(--color-ink);
  color: var(--color-pure-white);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(10, 10, 13, 0.5);
}

.pill:active {
  transform: translateY(0);
  box-shadow: none;
}

.pill--outline {
  background: transparent;
}

.pill--outline:hover {
  background: var(--color-ink);
}

.pill-copy-icon {
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-40);
  margin-bottom: var(--spacing-72);
  color: var(--color-ivory-text);
  animation: heroFadeUp 0.6s var(--ease-out) 0.36s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.stat-number {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-ivory-text);
}

.stat-label {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-ash-text);
}

.hero-stats .stat-label {
  color: inherit;
  opacity: 0.72;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--surface-divider);
}

.hero-stats .stat-divider {
  background: rgba(10, 10, 13, 0.28);
}

/* Contenido solo para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Hero zoom on scroll — scroll-driven animation (con fallback JS en app.js) */
@keyframes mercury-hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.6);
  }
}

@supports (animation-timeline: scroll()) {
  .hero {
    view-timeline: --hero-view block;
  }

  .hero-media {
    animation: mercury-hero-zoom 1s linear both;
    animation-timeline: --hero-view;
    animation-range: exit 0% exit 100%;
  }
}

/* ---------- Sections: Features ---------- */
.features {
  padding: var(--section-gap) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--element-gap);
}

/* ---------- SEO copy (home) ---------- */
.seo-copy {
  position: relative;
  padding: var(--section-gap) 0;
}

.seo-copy .section-header {
  margin-bottom: var(--spacing-40);
}

.seo-copy-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.seo-copy-body p {
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-ash-text);
  margin-bottom: var(--spacing-24);
}

.seo-copy-body p:last-child {
  margin-bottom: 0;
}

.seo-copy-body strong {
  color: var(--color-ivory-text);
  font-weight: var(--font-weight-w530);
}

.seo-copy-body a {
  color: var(--color-info);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 90, 0, 0.45);
  transition: border-color 0.2s ease;
}

.seo-copy-body a:hover {
  border-color: var(--color-info);
}

.feature-card {
  background: var(--color-graphite-card);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.feature-card:hover {
  background: var(--surface-card-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-cards);
  background: var(--color-obsidian-button);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-24);
  transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.feature-card:hover .feature-icon {
  color: var(--color-info);
  transform: scale(1.06) rotate(-3deg);
}

.feature-title {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-subheading);
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-12);
}

.feature-description {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.55;
  color: var(--color-ash-text);
}

/* ---------- Sections: Pricing ---------- */
.pricing-section {
  padding: var(--section-gap) 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-40);
}

.pricing-toggle-label {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-ash-text);
  transition: color var(--transition-fast) ease;
}

.pricing-toggle-label.active {
  color: var(--color-ivory-text);
}

.pricing-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--color-obsidian-button);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-nav);
  transition: background var(--transition-fast) ease;
}

.pricing-toggle-switch.active {
  background: var(--color-obsidian-button);
}

.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--color-ivory-text);
  border-radius: 50%;
  transition: transform var(--transition-base) var(--ease-out);
}

.pricing-toggle-switch.active .pricing-toggle-knob {
  transform: translateX(24px);
}

.pricing-toggle-badge {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  color: var(--color-ivory-text);
  background: var(--color-obsidian-button);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-tags);
  padding: 6px 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--element-gap);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--color-graphite-card);
  border: 1px solid transparent;
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  transition: background var(--transition-base) ease, border-color var(--transition-base) ease, transform var(--transition-base) ease;
}

.pricing-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--surface-hairline-strong);
  transform: translateY(-6px);
}

.pricing-card--popular {
  border-color: var(--surface-hairline-strong);
}

.pricing-card--popular:hover {
  box-shadow: 0 24px 56px -24px rgba(138, 90, 0, 0.35);
}

.pricing-popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-ivory-text);
  background: var(--color-obsidian-button);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-tags);
  padding: 4px 14px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: var(--spacing-24);
}

.pricing-plan-name {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-subheading);
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-8);
}

.pricing-plan-desc {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-ash-text);
  min-height: 42px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--spacing-24);
  min-height: 48px;
}

.pricing-currency {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-w480);
  color: var(--color-ash-text);
}

.pricing-amount {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  color: var(--color-ivory-text);
}

.pricing-amount--free {
  font-size: var(--text-heading);
}

.pricing-period {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-ash-text);
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--spacing-32);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-12);
  padding: 8px 0;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-ash-text);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-ivory-text);
  margin-top: 1px;
}

.pricing-btn {
  width: 100%;
  text-align: center;
}

/* ---------- Sections: Download ---------- */
.download-section {
  padding: var(--section-gap) 0 var(--spacing-112);
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--spacing-56);
  align-items: center;
  background: var(--color-graphite-card);
  border: 1px solid var(--surface-hairline);
  border-radius: var(--radius-cards);
  padding: var(--spacing-56);
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -15%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(10, 10, 13, 0.05), transparent 65%);
  pointer-events: none;
}

.download-copy {
  position: relative;
}

.download-copy .section-tag {
  margin-bottom: var(--spacing-24);
}

.download-title {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-16);
}

.download-description {
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-ash-text);
  max-width: 440px;
  margin-bottom: var(--spacing-24);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-32);
}

.download-meta li {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  color: var(--color-ash-text);
  background: var(--color-obsidian-button);
  border: 1px solid var(--surface-hairline);
  border-radius: var(--radius-tags);
  padding: 6px 14px;
}

.download-cta {
  padding: 16px 36px;
}

.download-panel {
  position: relative;
  background: var(--color-obsidian-button);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-cards);
  padding: var(--spacing-32);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  min-height: 250px;
}

.download-panel-top {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-ash-text);
}

.download-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ivory-text);
}

.download-panel-version {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.download-panel-label {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-ash-text);
}

.download-panel-number {
  font-family: var(--font-arcadiadisplay);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-w530);
  line-height: 1.05;
  color: var(--color-ivory-text);
}

.download-panel-date {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-ash-text);
}

.download-panel-os {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-top: auto;
  padding-top: var(--spacing-16);
  border-top: 1px solid var(--surface-divider);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  letter-spacing: var(--tracking-caption);
  color: var(--color-ash-text);
}

.download-panel-os svg {
  color: var(--color-ivory-text);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--spacing-72) 0 var(--spacing-40);
  border-top: 1px solid var(--surface-hairline);
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-32);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-72);
  margin-bottom: var(--spacing-56);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-16);
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-text--footer {
  font-size: 18px;
}

.footer-tagline {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-ash-text);
  margin-bottom: var(--spacing-24);
}

.footer-social {
  display: flex;
  gap: var(--spacing-12);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-obsidian-button);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ash-text);
  transition: background var(--transition-fast) ease, color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.footer-social-link:hover {
  background: var(--color-graphite-card);
  color: var(--color-info);
  transform: translateY(-2px);
}

.footer-columns {
  display: flex;
  gap: var(--spacing-72);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
}

.footer-col-title {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-4);
}

.footer-col a {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-ash-text);
  transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.footer-col a:hover {
  color: var(--color-ivory-text);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-32);
  border-top: 1px solid var(--surface-hairline);
}

.footer-bottom p {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  color: var(--color-ash-text);
}

/* ---------- Login gate modal (app.js) ---------- */
.login-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
  padding: var(--spacing-24);
}

.login-gate-card {
  background: var(--color-graphite-card);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-cards);
  padding: var(--spacing-32);
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s var(--ease-out);
}

.login-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-obsidian-button);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-16);
  color: var(--color-ivory-text);
}

.login-gate-title {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-subheading);
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-8);
}

.login-gate-text {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-ash-text);
  margin-bottom: var(--spacing-24);
}

.login-gate-actions {
  display: flex;
  gap: var(--spacing-12);
}

.login-gate-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: var(--text-body-sm);
}

.login-gate-cancel {
  display: block;
  margin-top: var(--spacing-16);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  color: var(--color-ash-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast) ease;
}

.login-gate-cancel:hover {
  color: var(--color-ivory-text);
}

/* ---------- App pages: shared components ---------- */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 128px 24px 72px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-32);
}

.page-header h1,
.page-header-left h1 {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-w530);
  line-height: var(--leading-heading-sm);
  letter-spacing: var(--tracking-heading-sm);
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-4);
}

.page-header p,
.page-header-left p {
  font-size: var(--text-body-sm);
  color: var(--color-ash-text);
}

.page-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

/* Forms (shared: account, checkout, auth) */
/* El checkout usa <h1>; se conserva el tamaño que tenía como <h2> */
.checkout-header h1 {
  font-size: 1.5em;
  font-weight: 700;
}

.form-field {
  margin-bottom: var(--spacing-20);
}

.form-field label {
  display: block;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  color: var(--color-ash-text);
  margin-bottom: var(--spacing-8);
}

.form-field input,
.form-field select,
.form-field textarea,
.checkout-field input {
  width: 100%;
  background: var(--color-obsidian-button);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-inputs);
  padding: 14px 20px;
  color: var(--color-ivory-text);
  font-family: var(--font-arcadia);
  font-size: var(--text-body-sm);
  line-height: 1.4;
  transition: border-color var(--transition-fast) ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.checkout-field input::placeholder {
  color: #6f6f79;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.checkout-field input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-error {
  font-size: var(--text-body-sm);
  color: var(--color-danger);
  margin-top: var(--spacing-8);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  padding: 4px;
  background: none;
  border: none;
  color: var(--color-ash-text);
  cursor: pointer;
  transition: color var(--transition-fast) ease;
}

.password-toggle:hover {
  color: var(--color-ivory-text);
}

/* Status badges */
.status-badge,
.plan-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-tags);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-w480);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  white-space: nowrap;
}

.status-badge .dot,
.plan-status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.approved,
.plan-status-badge.active {
  background: var(--surface-success);
  color: var(--color-success);
}

.status-badge.pending,
.plan-status-badge.trialing {
  background: var(--surface-warning);
  color: var(--color-warning);
}

.status-badge.declined,
.plan-status-badge.cancelled {
  background: var(--surface-danger);
  color: var(--color-danger);
}

.status-badge.refunded {
  background: var(--surface-info);
  color: var(--color-info);
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-20);
}

.filter-btn {
  padding: 8px 16px;
  background: var(--color-graphite-card);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-tags);
  font-family: var(--font-arcadia);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w420);
  color: var(--color-ash-text);
  cursor: pointer;
  transition: background var(--transition-fast) ease, border-color var(--transition-fast) ease, color var(--transition-fast) ease;
}

.filter-btn:hover {
  color: var(--color-ivory-text);
}

.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-pure-white);
}

/* Loading / empty states */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-112);
}

.loading-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--surface-hairline-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: var(--spacing-112) var(--spacing-32);
  color: var(--color-ash-text);
}

.empty-state svg {
  margin-bottom: var(--spacing-16);
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-body);
  font-weight: var(--font-weight-w480);
  color: var(--color-ivory-text);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: var(--text-body-sm);
}

/* Shared action buttons (algunos inyectados por JS) */
.btn-change-plan,
.btn-select-plan,
.checkout-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  padding: 11px 22px;
  background: var(--color-obsidian-button);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: var(--radius-buttons);
  font-family: var(--font-arcadia);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w420);
  color: var(--color-ivory-text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast) ease, border-color var(--transition-fast) ease, color var(--transition-fast) ease;
}

.btn-change-plan:hover,
.btn-select-plan:hover,
.checkout-status-btn:hover {
  background: var(--color-obsidian-hover);
}

.checkout-status-btn--primary {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-pure-white);
}

.checkout-status-btn--primary:hover {
  background: var(--color-ink-hover);
  border-color: var(--color-ink-hover);
}

.checkout-status-btn--ghost {
  background: transparent;
}

.btn-select-plan.is-current,
.btn-select-plan.current,
.btn-select-plan:disabled {
  background: transparent;
  border-color: var(--surface-hairline);
  color: var(--color-ash-text);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .page-content {
    padding: 104px 20px 56px;
  }
}

/* ---------- Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

body.lang-switching [data-i18n] {
  opacity: 0.25;
  transition: opacity 150ms ease;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Responsive ---------- */
/* Ventanas medianas: 2 columnas con ancho acotado y centrado */
@media (max-width: 1175px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1024px) {
  .download-card {
    gap: var(--spacing-40);
    padding: var(--spacing-40);
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-end;
    padding-top: 120px;
    padding-bottom: var(--spacing-56);
  }

  /* En movil el contenido va abajo: velo claro para que el texto respire */
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.78) 38%,
      rgba(255, 255, 255, 0.08) 68%,
      rgba(255, 255, 255, 0) 82%
    );
  }

  .hero-intro {
    font-size: 13px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 9.5vw, 3.4rem);
  }

  .hero-description {
    font-size: var(--text-body);
  }

  .hero-pills {
    gap: 10px;
  }

  .pill {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-stats {
    gap: var(--spacing-24);
  }

  .stat-divider {
    height: 28px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-32);
    padding: var(--spacing-40) var(--spacing-32);
  }

  .download-panel {
    min-height: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: var(--spacing-40);
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: var(--spacing-40);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-12);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 var(--spacing-24);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-24);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: var(--spacing-32) var(--spacing-24);
  }

  .download-cta {
    width: 100%;
  }

  .footer-columns {
    flex-direction: column;
    gap: var(--spacing-32);
  }

  .pricing-toggle {
    flex-wrap: wrap;
    gap: var(--spacing-12);
  }

  .section-title {
    font-size: var(--text-heading);
    letter-spacing: var(--tracking-heading);
  }

  .download-title {
    font-size: var(--text-heading);
    letter-spacing: var(--tracking-heading);
  }

  .pricing-amount {
    font-size: var(--text-heading);
    letter-spacing: var(--tracking-heading);
  }
}

/* ---------- Brands marquee ---------- */
.brands {
  padding: var(--spacing-56) 0 var(--spacing-64);
  text-align: center;
}

.brands-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--surface-hairline);
  border-bottom: 1px solid var(--surface-hairline);
  overflow: hidden;
  padding: var(--spacing-24) 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.brands-track {
  display: flex;
  width: max-content;
  animation: brands-scroll 46s linear infinite;
  will-change: transform;
}

.brands-strip:hover .brands-track,
.brands-strip:focus-within .brands-track,
.brands.is-paused .brands-track {
  animation-play-state: paused;
}

@keyframes brands-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.brands-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-40);
  padding-right: var(--spacing-40);
}

.brand-mark {
  font-size: 17px;
  font-weight: var(--font-weight-w420);
  letter-spacing: 0.01em;
  color: var(--color-ash-text);
  opacity: 0.85;
  white-space: nowrap;
  cursor: default;
  transition: color var(--transition-fast) ease, opacity var(--transition-fast) ease;
}

.brand-mark:hover {
  color: var(--color-ivory-text);
  opacity: 1;
}

.brand-mark--caps {
  text-transform: uppercase;
  font-weight: var(--font-weight-w530);
  letter-spacing: 0.12em;
  font-size: 15px;
}

.brand-mark--light {
  font-weight: var(--font-weight-w420);
  letter-spacing: 0.03em;
  font-size: 18px;
}

.brand-mark--tight {
  text-transform: uppercase;
  font-weight: var(--font-weight-w420);
  letter-spacing: 0.05em;
  font-size: 17px;
}

.brand-mark--wide {
  text-transform: uppercase;
  font-weight: var(--font-weight-w480);
  letter-spacing: 0.22em;
  font-size: 13px;
}

.brands-sep {
  width: 1px;
  height: 18px;
  background: var(--surface-hairline-strong);
  transform: rotate(18deg);
  flex: none;
}

/* ---------- Section reveal + arrival pulse ---------- */
.section-tag {
  transition: border-color 0.45s var(--ease-out) 0.3s;
}

[data-animate].visible .section-tag {
  border-color: rgba(138, 90, 0, 0.5);
}

.section-header.arrived .section-tag {
  animation: tag-arrive 1.1s var(--ease-out);
}

@keyframes tag-arrive {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 163, 25, 0);
    border-color: rgba(138, 90, 0, 0.8);
  }
  35% {
    box-shadow: 0 0 0 7px rgba(232, 163, 25, 0.22);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(232, 163, 25, 0);
  }
}

@media (max-width: 768px) {
  .brands {
    padding: var(--spacing-24) 0 var(--spacing-40);
  }

  .brands-group {
    gap: var(--spacing-24);
    padding-right: var(--spacing-24);
  }

  .brands-strip {
    padding: var(--spacing-16) 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .hero-media {
    animation: none !important;
    transform: none !important;
  }

  .brands-track {
    animation: none !important;
  }

  .section-header.arrived .section-tag {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============ NAV RESPONSIVE ============ */
/* ≤1199px: hamburguesa (evita filas amontonadas en tablets y laptops) */
@media (max-width: 1199px) {
  .nav-container {
    padding: 0 var(--spacing-16);
    gap: var(--spacing-12);
  }

  .nav-right {
    gap: var(--spacing-8);
  }

  /* Menu a pantalla completa; el panel se centra y alinea a la izquierda */
  .nav-links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 96px var(--spacing-32) var(--spacing-48);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition:
      opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
  }

  .nav-links a {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: var(--font-weight-w480);
    letter-spacing: -0.4px;
    line-height: 1.1;
  }

  .nav-links a:hover {
    opacity: 1;
    color: var(--color-accent);
  }

  .nav-links a.active {
    text-decoration: none;
    color: var(--color-accent);
  }

  .nav-comma {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .user-menu-name {
    display: none;
  }

  .nav-cta,
  .nav-cta-solid {
    padding: 0 var(--spacing-16);
    white-space: nowrap;
  }
}

/* ≤480px: botones compactos, etiqueta EN solo icono */
@media (max-width: 480px) {
  .brand-text {
    font-size: 15px;
  }

  .lang-toggle {
    padding: 0 10px;
  }

  .lang-toggle #langLabel {
    display: none;
  }

  .nav-cta {
    padding: 0 var(--spacing-12);
    font-size: 14px;
  }
}

/* ≤400px: solo logo en el header (el wordmark vive en el menú desplegado) */
@media (max-width: 400px) {
  .brand-text {
    display: none;
  }
}

/* ============ SHOWCASE VIDEO ============ */
.showcase {
  padding: var(--section-gap) 0;
}

.showcase .video-frame {
  position: relative;
  max-width: 960px;
  margin: 40px auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--surface-hairline);
  border-radius: var(--radius-cards);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

.showcase .video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(10, 10, 13, 0.4);
  transition: transform 0.35s var(--ease-out), background 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

.video-play:hover {
  transform: scale(1.08);
  background: var(--color-ink-hover);
}

.video-play:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.video-play svg {
  margin-left: 3px;
}

.video-frame.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}

@media (max-width: 768px) {
  .showcase .video-frame {
    margin-top: var(--spacing-24);
    border-radius: 10px;
  }

  .video-play {
    width: 64px;
    height: 64px;
  }
}

/* ============================================================
   HOME — contenido enriquecido y gráficos en movimiento
   ============================================================ */

/* Encabezado del marquee de giros */
.brands-heading {
  text-align: center;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w480);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--color-ash-text);
  margin: 0 0 var(--spacing-16);
}

/* ---- Banda de cifras (conteo animado) ---- */
.stats-band {
  padding: var(--spacing-56) 0;
  background: var(--color-graphite-card);
  border-top: 1px solid var(--surface-hairline);
  border-bottom: 1px solid var(--surface-hairline);
}

.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-40);
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-32);
}

.stat-big {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-big-number {
  font-family: var(--font-arcadiadisplay);
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: var(--font-weight-w530);
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--color-ivory-text);
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  color: var(--color-accent);
}

.stat-big-label {
  font-size: var(--text-body-sm);
  color: var(--color-ash-text);
  line-height: 1.45;
}

/* ---- Tres razones ---- */
.value-props {
  padding: var(--section-gap) 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-40);
}

.value-prop-num {
  display: block;
  font-family: var(--font-arcadiadisplay);
  font-size: 14px;
  font-weight: var(--font-weight-w530);
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--spacing-12);
}

.value-prop h3 {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-w480);
  letter-spacing: var(--tracking-heading-sm);
  line-height: 1.2;
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-12);
}

.value-prop p {
  font-size: var(--text-body);
  color: var(--color-ash-text);
  line-height: 1.7;
  margin: 0;
}

/* ---- Bloques con capturas reales ---- */
.home-blocks {
  padding: var(--section-gap) 0;
}

.home-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: var(--spacing-72);
}

.home-block:first-child {
  margin-top: 0;
}

.home-block--reverse .home-block-copy {
  order: 2;
}

.home-block-copy h2,
.offline-copy h2 {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-w480);
  letter-spacing: var(--tracking-heading-lg);
  line-height: 1.15;
  color: var(--color-ivory-text);
  margin: var(--spacing-16) 0 var(--spacing-16);
}

.home-block-copy p,
.offline-copy p {
  font-size: var(--text-body-lg);
  color: var(--color-ash-text);
  line-height: 1.7;
  margin: 0 0 var(--spacing-24);
}

.home-block-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-block-list li {
  position: relative;
  padding-left: 28px;
  font-size: var(--text-body);
  color: var(--color-ash-text);
  line-height: 1.6;
}

.home-block-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

.home-block-shots {
  display: grid;
  gap: 16px;
}

.home-block-shots img {
  width: 100%;
  display: block;
  border-radius: var(--radius-cards);
  border: 1px solid var(--surface-hairline);
  box-shadow: 0 24px 56px -32px rgba(10, 10, 13, 0.35);
}

.home-block-shots img:first-child {
  animation: float-soft 7s ease-in-out infinite alternate;
}

.home-block-shots img:last-child {
  animation: float-soft 8s ease-in-out -3.5s infinite alternate-reverse;
}

.home-block-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-block-shot--single {
  width: 100%;
  display: block;
  border-radius: var(--radius-cards);
  border: 1px solid var(--surface-hairline);
  box-shadow: 0 24px 56px -32px rgba(10, 10, 13, 0.35);
}

/* ---- Chips de métodos de pago ---- */
.pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 var(--spacing-24);
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--surface-hairline-strong);
  background: var(--color-pure-white);
  color: var(--color-ivory-text);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w420);
  white-space: nowrap;
  transition:
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float-soft 6s ease-in-out infinite alternate;
}

.pay-chip:nth-child(odd) { animation-delay: -2s; }
.pay-chip:nth-child(3n) { animation-delay: -4s; }

.pay-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ---- Tarjeta de ventas en vivo (demo) ---- */
.live-sale-card {
  background: var(--color-pure-white);
  border: 1px solid var(--surface-hairline-strong);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 48px -32px rgba(10, 10, 13, 0.4);
}

.live-sale-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.live-sale-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w480);
  color: var(--color-ivory-text);
}

.live-sale-title em {
  font-style: normal;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  color: var(--color-ash-text);
}

.live-sale-total {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-w530);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.live-sale-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
}

.live-sale-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-ash-text);
  background: var(--color-graphite-card);
  border-radius: 10px;
  padding: 10px 14px;
  animation: sale-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.live-sale-list li strong {
  color: var(--color-ivory-text);
  font-weight: var(--font-weight-w480);
  font-variant-numeric: tabular-nums;
}

.live-method {
  font-size: 12px;
  color: var(--color-accent);
  white-space: nowrap;
}

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(21, 127, 61, 0.5);
  animation: live-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ---- Cómo funciona ---- */
.how-it-works {
  padding: var(--section-gap) 0;
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--element-gap);
}

.step-card {
  background: var(--color-graphite-card);
  border: 1px solid var(--surface-hairline);
  border-radius: var(--radius-cards);
  padding: var(--spacing-32);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 90, 0, 0.45);
  box-shadow: 0 20px 44px -28px rgba(138, 90, 0, 0.35);
}

.step-num {
  display: block;
  font-family: var(--font-arcadiadisplay);
  font-size: 52px;
  line-height: 1;
  font-weight: var(--font-weight-w530);
  letter-spacing: -1px;
  color: var(--color-accent-bright);
  margin-bottom: var(--spacing-16);
}

.step-card h3 {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-w480);
  letter-spacing: var(--tracking-heading-sm);
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-12);
}

.step-card p {
  font-size: var(--text-body-sm);
  color: var(--color-ash-text);
  line-height: 1.65;
  margin: 0;
}

/* ---- Modo offline ---- */
.offline-hero {
  padding: var(--section-gap) 0;
}

.offline-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.offline-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offline-status-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  background: var(--surface-success);
  border: 1px solid rgba(21, 127, 61, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-success);
}

.offline-status-card strong {
  display: block;
  line-height: 1.3;
}

.offline-status-card span {
  display: block;
  font-size: 12px;
  color: var(--color-ash-text);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding: 16px;
  background: var(--color-graphite-card);
  border: 1px solid var(--surface-hairline);
  border-radius: 14px;
}

.chart-bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--color-accent-bright), #f2c14e);
  border-radius: 6px 6px 2px 2px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.offline-grid.visible .chart-bar { transform: scaleY(1); }
.offline-grid.visible .chart-bar:nth-child(1) { transition-delay: 0.05s; }
.offline-grid.visible .chart-bar:nth-child(2) { transition-delay: 0.12s; }
.offline-grid.visible .chart-bar:nth-child(3) { transition-delay: 0.19s; }
.offline-grid.visible .chart-bar:nth-child(4) { transition-delay: 0.26s; }
.offline-grid.visible .chart-bar:nth-child(5) { transition-delay: 0.33s; }
.offline-grid.visible .chart-bar:nth-child(6) { transition-delay: 0.40s; }
.offline-grid.visible .chart-bar:nth-child(7) { transition-delay: 0.47s; }
.offline-grid.visible .chart-bar:nth-child(8) { transition-delay: 0.54s; }
.offline-grid.visible .chart-bar:nth-child(9) { transition-delay: 0.61s; }
.offline-grid.visible .chart-bar:nth-child(10) { transition-delay: 0.68s; }

.chart-caption {
  font-size: 12px;
  color: var(--color-ash-text);
  text-align: right;
  margin: 2px 4px 0 0;
}

.offline-visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius-cards);
  border: 1px solid var(--surface-hairline);
  box-shadow: 0 24px 56px -32px rgba(10, 10, 13, 0.35);
}

/* ---- Enlace "ver más" bajo las rejillas ---- */
.features-more {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-40);
}

.features .features-more .pill {
  background: var(--color-pure-white);
}

/* ---- Industrias y planes (reusan .features-grid y .pricing-grid) ---- */
.industries-preview,
.pricing-preview,
.faq-preview-section {
  padding: var(--section-gap) 0;
}

.pricing-preview-note {
  text-align: center;
  margin: var(--spacing-24) auto 0;
  max-width: 640px;
  font-size: var(--text-body-sm);
  color: var(--color-ash-text);
}

.pricing-preview-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Preguntas frecuentes ---- */
.faq-preview {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-preview-item {
  background: var(--color-graphite-card);
  border: 1px solid var(--surface-hairline);
  border-radius: var(--radius-cards);
  padding: 22px 26px;
  transition:
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-preview-item:hover {
  border-color: rgba(138, 90, 0, 0.45);
  transform: translateY(-2px);
}

.faq-preview-item h3 {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-w480);
  color: var(--color-ivory-text);
  margin-bottom: 8px;
}

.faq-preview-item p {
  font-size: var(--text-body-sm);
  color: var(--color-ash-text);
  line-height: 1.7;
  margin: 0;
}

/* ---- Banda CTA final ---- */
.cta-band {
  padding: var(--section-gap) 0;
}

.cta-band-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #e8a319 0%, #d9971c 100%);
  border-radius: 28px;
  padding: var(--spacing-56) var(--spacing-40);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-32);
  flex-wrap: wrap;
}

.cta-band-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 65%);
  animation: float-soft 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta-band-copy {
  position: relative;
  max-width: 540px;
}

.cta-band-copy h2 {
  font-family: var(--font-arcadiadisplay);
  font-size: var(--text-heading-lg);
  font-weight: var(--font-weight-w480);
  letter-spacing: var(--tracking-heading-lg);
  line-height: 1.15;
  color: var(--color-ivory-text);
  margin-bottom: var(--spacing-12);
}

.cta-band-copy p {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: rgba(10, 10, 13, 0.78);
  margin: 0;
}

.cta-band-actions {
  position: relative;
  display: flex;
  gap: var(--spacing-12);
  flex-wrap: wrap;
}

.cta-band-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(10, 10, 13, 0.55);
}

.cta-band-ghost:hover {
  background: var(--color-pure-white);
  border-color: var(--color-pure-white);
}

/* ---- Animaciones compartidas ---- */
@keyframes float-soft {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(21, 127, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 127, 61, 0); }
}

@keyframes sale-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive del home ---- */
@media (max-width: 1023px) {
  .stats-band-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-32);
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-32);
  }

  .home-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-40);
  }

  .home-block--reverse .home-block-copy {
    order: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .offline-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-40);
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .stats-band-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-24);
  }

  .stat-big-number {
    font-size: 40px;
  }

  .home-block {
    margin-top: var(--spacing-56);
  }

  .cta-band-inner {
    padding: var(--spacing-40) var(--spacing-24);
    border-radius: 20px;
  }

  .chart-bars {
    height: 110px;
  }
}

/* ---- Movimiento reducido ---- */
@media (prefers-reduced-motion: reduce) {
  .home-block-shots img,
  .pay-chip,
  .cta-band-inner::before,
  .live-dot,
  .live-sale-list li {
    animation: none !important;
  }

  .chart-bar {
    transform: scaleY(1) !important;
    transition: none !important;
  }
}
