/* =============================================
   TRIFACTU — Modern SaaS Landing
   ============================================= */

:root {
  --color-primary: #533667;
  --color-primary-light: #ad9eb7;
  --color-dark: #2c2332;
  --color-accent: #75558c;
  --color-accent-deep: #66497d;
  --color-muted: #6d6176;
  --color-light: #dbd3e1;

  --bg-base: #1a1520;
  --bg-surface: rgba(44, 35, 50, 0.6);
  --bg-card: rgba(83, 54, 103, 0.12);
  --border-subtle: rgba(219, 211, 225, 0.08);
  --border-glow: rgba(173, 158, 183, 0.25);

  --text-primary: #f5f0f8;
  --text-secondary: #ad9eb7;
  --text-muted: #6d6176;

  --gradient-brand: linear-gradient(135deg, #75558c 0%, #533667 50%, #66497d 100%);
  --gradient-text: linear-gradient(135deg, #dbd3e1 0%, #ad9eb7 50%, #75558c 100%);
  --gradient-glow: radial-gradient(circle, rgba(117, 85, 140, 0.35) 0%, transparent 70%);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(117, 85, 140, 0.2);

  --header-h: 72px;
  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-angle-spin {
  to { --border-angle: 360deg; }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overscroll-behavior-x: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 55% at 12% 45%, rgba(83, 54, 103, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 25%, rgba(83, 54, 103, 0.08) 0%, transparent 52%),
    var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(44, 35, 50, 0.4) 50%, transparent 100%);
}

/* ---- Background Orbs ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: var(--color-primary);
  top: -8%;
  right: -12%;
  opacity: 0.28;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  bottom: 20%;
  left: -15%;
  opacity: 0.42;
  animation-delay: -7s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: var(--color-accent-deep);
  top: 55%;
  left: 48%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  animation-delay: -14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 54, 103, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body.cursor-active .cursor-glow {
  opacity: 1;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(26, 21, 32, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(83, 54, 103, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(83, 54, 103, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  background: rgba(83, 54, 103, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: rgba(83, 54, 103, 0.2);
  border-color: var(--color-primary-light);
}

/* ---- Typography ---- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(83, 54, 103, 0.3);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 24px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ---- Glow Cards (mouse effect base) ---- */
.glow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(117, 85, 140, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.glow-card:hover::before {
  opacity: 1;
}

.glow-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

/* ---- Hero animation (placeholder) ---- */
.hero-animation {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.fallback-scene {
  position: relative;
  width: 280px;
  height: 280px;
  animation: float-card 6s ease-in-out infinite;
}

.fallback-ring {
  position: absolute;
  inset: 10%;
  border: 2px solid rgba(173, 158, 183, 0.2);
  border-radius: 50%;
  animation: spin-slow 20s linear infinite;
}

.fallback-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-accent);
  border-right-color: var(--color-primary-light);
}

.fallback-doc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 130px;
  transform: translate(-60%, -55%) rotate(-8deg);
  background: linear-gradient(145deg, rgba(117, 85, 140, 0.5), rgba(83, 54, 103, 0.3));
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(83, 54, 103, 0.4);
}

.fallback-doc::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 16px;
  right: 16px;
  height: 6px;
  background: rgba(219, 211, 225, 0.15);
  border-radius: 3px;
  box-shadow: 0 14px 0 rgba(219, 211, 225, 0.1), 0 28px 0 rgba(219, 211, 225, 0.08);
}

.fallback-qr {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(30%, -20%) rotate(6deg);
  background:
    linear-gradient(90deg, var(--color-primary-light) 2px, transparent 2px) 0 0 / 9px 9px,
    linear-gradient(var(--color-primary-light) 2px, transparent 2px) 0 0 / 9px 9px;
  opacity: 0.5;
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 12px 40px rgba(117, 85, 140, 0.5);
}

.fallback-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ---- Problema — 3 cards fijas ---- */
.problema-section {
  position: relative;
  overflow: hidden;
}

.problema-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(117, 85, 140, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.problema-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
}

.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.problema-card {
  text-align: center;
  padding: 36px 28px 40px;
  border-radius: var(--radius-md);
}

.problema-section .problema-card.glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    rgba(83, 54, 103, 0.45) 0%,
    rgba(102, 73, 125, 0.55) 25%,
    rgba(117, 85, 140, 0.5) 50%,
    rgba(102, 73, 125, 0.45) 75%,
    rgba(83, 54, 103, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: border-angle-spin 4s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.45s ease;
}

.problema-section .problema-card.glow-card:hover::after {
  opacity: 0.75;
  animation-play-state: running;
}

.problema-section .problema-card.glow-card::before {
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(117, 85, 140, 0.14),
    rgba(83, 54, 103, 0.06) 35%,
    transparent 55%
  );
  opacity: 0.3;
}

.problema-section .problema-card.glow-card:hover::before {
  opacity: 0.55;
}

.problema-section .problema-card.glow-card:hover {
  border-color: transparent;
  box-shadow: 0 0 24px rgba(117, 85, 140, 0.18);
  transform: none;
}

.problema-card-icon {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  overflow: visible;
}

.problema-icon {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.problema-icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(117, 85, 140, 0.32) 0%, rgba(83, 54, 103, 0.14) 48%, rgba(44, 35, 50, 0.35) 100%);
  border: 1px solid rgba(219, 211, 225, 0.14);
  box-shadow:
    0 14px 36px rgba(83, 54, 103, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -12px 24px rgba(26, 21, 32, 0.25);
}

.problema-icon-bg::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: radial-gradient(circle at 28% 22%, rgba(219, 211, 225, 0.12) 0%, transparent 52%);
  pointer-events: none;
}

.problema-icon-svg {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  color: #ebe4f0;
  filter: drop-shadow(0 3px 10px rgba(117, 85, 140, 0.35));
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
}

.problema-card:hover .problema-icon {
  transform: translateY(-3px);
}

.problema-card:hover .problema-icon-svg {
  color: #f5f0f8;
  transform: scale(1.04);
}

.problema-card:hover .problema-icon-bg {
  border-color: rgba(173, 158, 183, 0.28);
  box-shadow:
    0 18px 42px rgba(117, 85, 140, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -12px 24px rgba(26, 21, 32, 0.2);
}

.problema-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.35;
}

.problema-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Feature Cards (otras secciones) ---- */
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 36px 28px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(117, 85, 140, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--color-primary-light);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Split Section / Steps (legacy, ver backup) ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.steps-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 40px;
}

.step-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.step-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  margin-left: 48px;
}

/* ---- Cómo funciona — scroll narrativo ---- */
.como-section {
  padding-bottom: 80px;
}

.como-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.como-header .section-text {
  margin-bottom: 0;
}

.como-scroll-container {
  position: relative;
}

.como-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 48px;
  z-index: 1;
  will-change: transform;
}

.como-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.como-scene {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: none;
}

.como-scene--1 .como-media-slot {
  align-items: center;
}

.como-scene.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.como-visual {
  position: relative;
}

.como-visual-frame {
  position: relative;
  aspect-ratio: 4 / 3.2;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
}

.como-visual-frame.glow-card:hover {
  transform: none;
}

.como-media-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.como-media-slot img,
.como-media-slot video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Mock escena 1 — upload */
.como-mock-upload {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 36px 24px;
  border: 2px dashed rgba(173, 158, 183, 0.35);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(83, 54, 103, 0.15);
}

.como-mock-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--color-primary-light);
}

.como-mock-upload-icon svg {
  width: 100%;
  height: 100%;
}

.como-mock-upload span {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.como-mock-upload small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Mock escena 2 — app + checks */
.como-mock-app {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(26, 21, 32, 0.6);
}

.como-mock-app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(44, 35, 50, 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.como-mock-app-bar span:last-child {
  margin-left: 8px;
}

.como-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(173, 158, 183, 0.3);
}

.como-mock-app-body {
  padding: 20px;
}

.como-mock-progress {
  height: 4px;
  background: rgba(219, 211, 225, 0.1);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.como-mock-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.como-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.como-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.como-check.is-checked {
  color: var(--text-primary);
}

.como-check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(173, 158, 183, 0.35);
  position: relative;
  transition: all 0.35s ease;
}

.como-check.is-checked .como-check-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.como-check.is-checked .como-check-icon::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Mock escena 3 — QR */
.como-mock-result-doc {
  width: 100%;
  max-width: 280px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(26, 21, 32, 0.7);
  border: 1px solid var(--border-subtle);
}

.como-mock-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.como-mock-badge {
  color: #7dd3a8;
  font-size: 0.625rem;
}

.como-mock-result-lines span {
  display: block;
  height: 6px;
  background: rgba(219, 211, 225, 0.12);
  border-radius: 3px;
  margin-bottom: 8px;
}

.como-mock-result-lines span:nth-child(1) { width: 100%; }
.como-mock-result-lines span:nth-child(2) { width: 75%; }
.como-mock-result-lines span:nth-child(3) { width: 55%; }

.como-qr-block {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(245, 240, 248, 0.95);
  text-align: center;
  opacity: 0;
  transform: scale(0.85);
}

.como-qr-pattern {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  padding: 6px;
  background: #fff;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(44, 35, 50, 0.08);
}

.como-qr-pattern svg {
  display: block;
  width: 100%;
  height: 100%;
}

.como-qr-block span {
  font-size: 0.625rem;
  font-weight: 700;
  color: #2c2332;
  letter-spacing: 0.05em;
}

.como-qr-block.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Factura flotante */
.como-floating-doc {
  position: absolute;
  left: 18%;
  bottom: 14%;
  width: 100px;
  z-index: 5;
  pointer-events: none;
  will-change: transform, opacity;
}

.como-floating-doc-inner {
  padding: 12px 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f5f0f8, #dbd3e1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.como-floating-doc-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #533667;
  margin-bottom: 6px;
}

.como-floating-doc-lines span {
  display: block;
  height: 3px;
  background: rgba(83, 54, 103, 0.25);
  border-radius: 2px;
  margin-bottom: 4px;
}

.como-floating-doc-lines span:nth-child(2) { width: 70%; }

.como-scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  opacity: 0.7;
}

/* Panel pasos derecha */
.como-steps-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.como-step-item.is-upcoming {
  opacity: 0.35;
  transform: translateX(8px);
}

.como-step-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  opacity: 0.35;
  transform: translateX(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  position: relative;
  z-index: 0;
}

.como-step-item.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.como-step-item.is-passed {
  opacity: 0.55;
  transform: translateX(0);
}

.como-step-num {
  font-size: 1.375rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 36px;
  line-height: 1.2;
}

.como-step-item.is-active .como-step-num {
  font-size: 1.625rem;
}

.como-step-info h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.como-step-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.como-step-line {
  width: 2px;
  height: 28px;
  margin-left: 17px;
  background: rgba(219, 211, 225, 0.1);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.como-step-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary-light));
  border-radius: 1px;
}

@media (max-width: 768px) {
  .como-section {
    padding-bottom: 64px;
  }

  .como-header {
    margin-bottom: 32px;
  }

  .como-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .como-steps-panel {
    order: 1;
    width: 100%;
  }

  .como-visual {
    order: 2;
    width: 100%;
  }

  .como-step-item:not(.is-active) {
    display: none;
  }

  .como-step-item.is-active {
    display: flex;
    gap: 14px;
    padding: 0;
    opacity: 1;
    transform: none;
  }

  .como-step-line {
    display: none;
  }

  .como-visual-frame {
    min-height: 280px;
    aspect-ratio: 4 / 3.4;
  }

  .como-floating-doc {
    width: 84px;
    left: 12%;
    bottom: 10%;
  }

  .como-step-item.is-active .como-step-num {
    font-size: 1.375rem;
  }

  .como-step-info h4 {
    font-size: 0.9375rem;
  }

  .como-step-info p {
    font-size: 0.8125rem;
  }

  .como-scroll-hint {
    font-size: 0.6875rem;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .como-scroll-container {
    height: auto;
  }

  .como-pin {
    position: relative;
    min-height: auto;
  }

  .como-scene {
    position: relative;
    display: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    margin-bottom: 24px;
  }

  .como-scene:not(.como-scene--3) {
    display: none;
  }

  .como-scene--3 {
    display: flex;
  }

  .como-floating-doc {
    display: none;
  }

  .como-scroll-hint {
    display: none;
  }
}

/* ---- Benefits ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 36px 28px;
}

.beneficios-footer {
  margin-top: 48px;
}

.beneficios-cta {
  text-align: center;
}

.beneficios-prueba {
  width: 100%;
  margin-top: 88px;
  margin-bottom: 0;
}

.beneficios-prueba-shell {
  position: relative;
  width: 80%;
  margin: 0 auto;
  isolation: isolate;
}

.beneficios-prueba-shell::before {
  content: '';
  position: absolute;
  inset: -10px -18px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 85% at 0% 50%, rgba(117, 85, 140, 0.36) 0%, transparent 70%),
    radial-gradient(ellipse 40% 85% at 100% 50%, rgba(83, 54, 103, 0.3) 0%, transparent 70%);
  filter: blur(20px);
}

.beneficios-prueba-glow {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6px;
  background: rgba(44, 35, 50, 0.35);
  border-radius: var(--radius-md);
}

.beneficios-prueba-glow img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
}

.benefit-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 40px 32px;
  text-align: center;
}

.pricing-card-featured {
  border-color: var(--border-glow);
  background: rgba(83, 54, 103, 0.2);
  transform: scale(1.04);
  box-shadow: var(--shadow-glow);
}

.pricing-card-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-brand);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.plan-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}

.plan-price {
  margin-bottom: 28px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-currency {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.plan-features {
  text-align: left;
  margin-bottom: 32px;
}

.plan-features li {
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  padding-left: 24px;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 700;
}

.pricing-card .btn {
  padding: 18px 28px;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
}

.faq-item summary {
  padding: 22px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary-light);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--color-primary-light);
}

.faq-content {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition:
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
}

.faq-item.is-open .faq-content {
  opacity: 1;
}

.faq-content p {
  padding: 0 28px 22px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.phone-link {
  color: var(--color-primary-light);
  font-weight: 600;
  transition: color var(--transition);
}

.phone-link:hover {
  color: var(--text-primary);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.detail-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(117, 85, 140, 0.18);
  border: 1px solid rgba(173, 158, 183, 0.22);
  color: var(--color-primary-light);
}

.detail-icon svg {
  width: 26px;
  height: 26px;
}

.contact-detail strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-detail-value {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.contact-detail-value:hover {
  color: var(--color-primary-light);
}

.contact-form {
  padding: 36px 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(26, 21, 32, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(117, 85, 140, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ---- Scroll Reveal (GSAP maneja la animación) ---- */
.reveal {
  /* contenedor; los hijos .reveal-item se animan individualmente */
}

.reveal.visible {
  /* estado tras animación */
}

.reveal-item {
  will-change: transform, opacity;
}

/* delays legacy — el stagger de GSAP los sustituye */
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
  transition-delay: 0s;
}

/* ---- Tilt effect ---- */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cards-3,
  .benefits-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .hero-animation {
    max-width: 400px;
  }

  .problema-card-icon {
    height: 132px;
  }

  .problema-icon {
    width: 84px;
    height: 84px;
  }

  .problema-icon-svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 21, 32, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .problema-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
