/* =========================================================
   Blume Premium Conversion LPs — macOS neutral replacement
   Load after /styles.css.
   ========================================================= */

:root {
  --bp-bg: var(--bg, #fbfbfd);
  --bp-bg-2: var(--bg-2, #f5f5f7);
  --bp-ink: var(--ink, #0a0a0b);
  --bp-text: var(--text, rgba(24, 24, 27, .90));
  --bp-muted: var(--muted, rgba(24, 24, 27, .62));
  --bp-faint: var(--muted-2, rgba(24, 24, 27, .48));
  --bp-line: var(--line, rgba(24, 24, 27, .105));
  --bp-panel: var(--surface, rgba(255, 255, 255, .74));
  --bp-panel-solid: var(--surface-solid, #fff);
  --bp-action: var(--premium-action, #18181b);
  --bp-action-hover: var(--premium-action-hover, #27272a);
  --bp-action-text: var(--premium-action-text, #fff);
  --bp-accent: var(--brand-1, #18181b);
  --bp-success: var(--success, #34c759);
  --bp-warning: var(--warning, #ff9f0a);
  --bp-danger: var(--danger, #ff3b30);
  --bp-radius-xl: 30px;
  --bp-radius-lg: 24px;
  --bp-radius-md: 18px;
  --bp-container: 1180px;
  --bp-topbar: var(--topbar-h, 72px);
  --bp-ease: var(--ease, cubic-bezier(.16, 1, .3, 1));
  --bp-ease-out: var(--ease-soft, cubic-bezier(.2, .8, .2, 1));
  --bp-elev: var(--shadow-lg);
  --bp-elev-soft: var(--shadow-sm);
}

body.blumePremium {
  margin: 0;
  background: var(--page-ambient, var(--bp-bg)) !important;
  color: var(--bp-ink);
  font-family:
    -apple-system,
    "Inter var",
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    system-ui,
    sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.blumePremium::before {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 58vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 340px at calc(var(--mx, 58) * 1%) calc(var(--my, 8) * 1%), rgba(255, 255, 255, .54), transparent 68%);
  opacity: .72;
  filter: blur(4px);
}

.bp-container {
  width: min(var(--bp-container), calc(100% - 48px));
  margin-inline: auto;
}

.bp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--bp-line);
  background:
    linear-gradient(135deg, var(--surface-highlight), transparent 44%),
    color-mix(in srgb, var(--bp-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.bp-nav {
  height: var(--bp-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bp-brand,
.bp-links,
.bp-actions {
  display: flex;
  align-items: center;
}

.bp-brand img {
  height: 38px;
  width: auto;
}

.bp-links {
  gap: 24px;
  font-size: 14px;
  font-weight: 760;
  color: var(--bp-muted);
}

.bp-links a {
  transition: color .18s var(--bp-ease), transform .18s var(--bp-ease);
}

.bp-links a:hover {
  color: var(--bp-ink);
  transform: translateY(-1px);
}

.bp-actions {
  gap: 10px;
}

.bp-btn {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 820;
  letter-spacing: -.015em;
  line-height: 1;
  overflow: hidden;
  transition:
    transform .22s var(--bp-ease),
    background .22s var(--bp-ease),
    border-color .22s var(--bp-ease),
    color .22s var(--bp-ease),
    box-shadow .22s var(--bp-ease);
}

.bp-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(120px 80px at var(--x) var(--y), rgba(255, 255, 255, .28), transparent 58%);
  opacity: 0;
  transition: opacity .18s var(--bp-ease);
  pointer-events: none;
}

.bp-btn:hover::before {
  opacity: 1;
}

.bp-btn:hover {
  transform: translateY(-1px);
}

.bp-btn--primary {
  background: var(--bp-action);
  color: var(--bp-action-text) !important;
  border-color: color-mix(in srgb, var(--bp-action) 92%, transparent);
  box-shadow:
    0 12px 26px rgba(24, 24, 27, .14),
    inset 0 1px 0 rgba(255, 255, 255, .20);
}

.bp-btn--primary:hover {
  background: var(--bp-action-hover);
}

.bp-btn--secondary {
  background:
    linear-gradient(135deg, var(--surface-highlight), transparent 44%),
    var(--bp-panel);
  color: var(--bp-ink);
  border-color: var(--bp-line);
  box-shadow: var(--bp-elev-soft);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.bp-btn--lg {
  min-height: 56px;
  padding: 0 24px;
  font-size: 16px;
}

.bp-eyebrow,
.bp-kicker {
  color: var(--bp-muted);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.bp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--bp-line);
  background:
    linear-gradient(135deg, var(--surface-highlight), transparent 44%),
    var(--bp-panel);
}

.bp-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bp-success);
  box-shadow: 0 0 0 0 rgba(var(--success-rgb, 52, 199, 89), .34);
  animation: bpPulse 2.2s var(--bp-ease-out) infinite;
}

@keyframes bpPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--success-rgb, 52, 199, 89), .34); }
  60%, 100% { box-shadow: 0 0 0 12px transparent; }
}

.bp-hero {
  padding: clamp(62px, 8vw, 112px) 0 58px;
}

.bp-heroGrid,
.bp-split {
  display: grid;
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.bp-heroGrid {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
}

.bp-split {
  grid-template-columns: .95fr 1.05fr;
}

.bp-title,
.bp-copy h2,
.bp-section h2 {
  margin: 20px 0 18px;
  color: var(--bp-ink);
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.bp-title {
  font-size: clamp(46px, 7vw, 84px);
  line-height: .94;
  letter-spacing: -.075em;
}

.bp-title span {
  color: var(--bp-muted);
}

.bp-sub,
.bp-copy p,
.bp-sectionHead p {
  color: var(--bp-muted);
  line-height: 1.58;
}

.bp-sub {
  font-size: clamp(18px, 2vw, 23px);
  max-width: 720px;
  margin: 0 0 28px;
}

.bp-ctaRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 30px 0 16px;
}

.bp-proof {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--bp-muted);
  font-size: 14px;
  font-weight: 760;
}

.bp-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bp-proof i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bp-success);
  display: inline-block;
}

.bp-visual {
  position: relative;
  min-height: 620px;
  perspective: 1100px;
}

.bp-device,
.bp-adminFloat,
.bp-paymentFloat,
.bp-importFloat,
.bp-card,
.bp-step,
.bp-app,
.bp-faqItem {
  border: 1px solid var(--bp-line);
  background:
    linear-gradient(135deg, var(--surface-highlight), transparent 44%),
    var(--bp-panel);
  box-shadow: var(--bp-elev-soft);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.bp-device {
  position: absolute;
  inset: 0;
  border-radius: var(--bp-radius-xl);
  overflow: hidden;
  box-shadow: var(--bp-elev);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .12s linear;
}

.bp-deviceBar {
  height: 50px;
  border-bottom: 1px solid var(--bp-line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--bp-faint);
}

.bp-deviceBar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bp-ink) 18%, transparent);
}

.bp-deviceBar span {
  font-size: 12px;
  font-weight: 800;
  color: var(--bp-muted);
  margin-left: 4px;
}

.bp-deviceBody {
  padding: 20px;
}

.bp-storeHero {
  border: 1px solid var(--bp-line);
  border-radius: 24px;
  padding: 24px;
  min-height: 188px;
  background: color-mix(in srgb, var(--bp-panel-solid) 62%, transparent);
  display: grid;
  grid-template-columns: 1fr .78fr;
  gap: 18px;
  align-items: center;
}

.bp-storeHero h3 {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.055em;
  margin: 0 0 10px;
}

.bp-storeHero p,
.bp-product small,
.bp-card p,
.bp-step p,
.bp-app span,
.bp-faqItem p {
  color: var(--bp-muted);
}

.bp-productGrid,
.bp-grid3,
.bp-grid2,
.bp-steps,
.bp-appGrid,
.bp-faq {
  display: grid;
  gap: 14px;
}

.bp-productGrid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.bp-grid3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bp-grid2,
.bp-faq {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.bp-steps {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.bp-appGrid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bp-product,
.bp-productThumb {
  border: 1px solid var(--bp-line);
  background: var(--bp-panel);
}

.bp-product {
  border-radius: 18px;
  padding: 12px;
}

.bp-productThumb {
  height: 74px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.bp-productThumb::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 24, 27, .14);
  box-shadow:
    0 20px 0 rgba(var(--success-rgb, 52, 199, 89), .22),
    0 40px 0 rgba(24, 24, 27, .09);
}

html[data-theme="dark"] .bp-productThumb::after,
body[data-theme="dark"] .bp-productThumb::after {
  background: rgba(255, 255, 255, .18);
  box-shadow:
    0 20px 0 rgba(var(--success-rgb, 48, 209, 88), .28),
    0 40px 0 rgba(255, 255, 255, .12);
}

.bp-adminFloat,
.bp-paymentFloat,
.bp-importFloat {
  position: absolute;
  border-radius: 24px;
  padding: 18px;
}

.bp-adminFloat { left: -24px; bottom: 54px; width: 310px; }
.bp-paymentFloat { right: -18px; bottom: 128px; width: 245px; }
.bp-importFloat { right: -10px; top: 42px; width: 260px; }

.bp-metric {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid var(--bp-line);
  font-size: 13px;
}

.bp-metric span {
  color: var(--bp-muted);
}

.bp-miniLine {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bp-ink) 10%, transparent);
  margin: 9px 0;
  overflow: hidden;
}

.bp-miniLine::before {
  content: "";
  display: block;
  width: var(--w, 64%);
  height: 100%;
  background: var(--bp-success);
  border-radius: inherit;
  animation: bpLine 3s var(--bp-ease-out) infinite;
}

@keyframes bpLine {
  0%, 100% { transform: translateX(-8%); }
  50% { transform: translateX(8%); }
}

.bp-section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.bp-sectionHead {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 34px;
}

.bp-card,
.bp-step,
.bp-app,
.bp-faqItem {
  border-radius: 24px;
  padding: 24px;
}

.bp-card {
  min-height: 210px;
  transition: transform .28s var(--bp-ease), box-shadow .28s var(--bp-ease);
}

.bp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bp-cardIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(24, 24, 27, .075);
  border: 1px solid var(--bp-line);
  color: var(--bp-ink);
  font-weight: 900;
  margin-bottom: 22px;
}

.bp-step {
  position: relative;
  overflow: hidden;
}

.bp-step strong {
  display: block;
  font-size: 13px;
  color: var(--bp-muted);
  margin-bottom: 18px;
}

.bp-step::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bp-success);
  opacity: .85;
}

.bp-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--bp-text);
  font-weight: 700;
}

.bp-check i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--bp-success);
  margin-top: 2px;
  position: relative;
}

.bp-check i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

.bp-darkBand {
  border: 1px solid var(--bp-line);
  border-radius: 34px;
  padding: clamp(30px, 6vw, 66px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(135deg, #0a0a0b 0%, #18181b 100%);
  color: #fafafa;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.bp-darkBand .bp-eyebrow {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .78);
}

.bp-darkBand h2 {
  color: inherit;
  max-width: 900px;
}

.bp-darkBand p {
  color: rgba(250, 250, 250, .72);
  max-width: 760px;
  font-size: 19px;
  line-height: 1.6;
}

.bp-darkBand .bp-btn--primary {
  background: #ffffff;
  color: #0a0a0b !important;
}

.bp-footer {
  border-top: 1px solid var(--bp-line);
  padding: 30px 0;
  color: var(--bp-muted);
  font-size: 14px;
}

.bp-footerInner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bp-stickyCta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bp-bg) 88%, transparent);
  border-top: 1px solid var(--bp-line);
  backdrop-filter: blur(18px);
  display: none;
}

.bp-stickyCta .bp-btn {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--bp-ease), transform .7s var(--bp-ease), filter .7s var(--bp-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

@media (max-width: 980px) {
  .bp-heroGrid,
  .bp-split {
    grid-template-columns: 1fr;
  }

  .bp-visual {
    min-height: 580px;
  }

  .bp-links {
    display: none;
  }

  .bp-grid3,
  .bp-grid2,
  .bp-appGrid,
  .bp-faq {
    grid-template-columns: 1fr;
  }

  .bp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bp-container {
    width: calc(100% - 28px);
  }

  .bp-nav {
    height: 66px;
  }

  .bp-actions .bp-btn--secondary {
    display: none;
  }

  .bp-hero {
    padding: 46px 0 44px;
  }

  .bp-title {
    font-size: clamp(40px, 12vw, 58px);
    letter-spacing: -.06em;
  }

  .bp-ctaRow .bp-btn {
    width: 100%;
  }

  .bp-visual {
    min-height: 520px;
  }

  .bp-storeHero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .bp-productGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bp-product:nth-child(3) {
    display: none;
  }

  .bp-adminFloat {
    left: 0;
    bottom: 54px;
    width: 260px;
  }

  .bp-paymentFloat {
    right: 0;
    width: 205px;
  }

  .bp-importFloat {
    right: 0;
    top: 34px;
    width: 230px;
  }

  .bp-steps {
    grid-template-columns: 1fr;
  }

  .bp-stickyCta {
    display: block;
  }

  body.blumePremium {
    padding-bottom: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bp-device {
    transform: none !important;
  }
}

/* Móvil: la columna del hero nunca puede exceder el viewport aunque su
   contenido (tablas de demos) tenga min-content más ancho. */
@media (max-width: 860px) {
  .bp-heroGrid { grid-template-columns: minmax(0, 1fr) !important; }
  .bp-heroGrid > * { min-width: 0; }
  .bp-visual { min-width: 0; max-width: 100%; }
}
