/* ============================================================
   BotRifa Design System v1.0 — Shared CSS Variables & Components

   Usage: <link rel="stylesheet" href="../styles/design-system.css">
   Serves: landing/index.html, guia-ventas.html, guia-admins.html,
           resumen-proyecto.html

   Zero dependencies. Self-hosted fonts. No CDN.
   ============================================================ */

/* ─── @font-face Declarations ─────────────────────────── */
/* NOTE: Font files must be in landing/assets/fonts/ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../landing/assets/fonts/plus-jakarta-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../landing/assets/fonts/plus-jakarta-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../landing/assets/fonts/plus-jakarta-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../landing/assets/fonts/plus-jakarta-sans-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../landing/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Custom Properties ───────────────────────────── */

:root {
  /* === Colors: Backgrounds === */
  --bg-deep: #04040f;
  --bg-card: #0a0a1a;
  --bg-card-hover: #16163a;
  --bg-elevated: #141430;
  --bg-subtle: rgba(10, 10, 26, 0.5);
  --bg-glass: rgba(10, 10, 26, 0.7);

  /* === Colors: Text === */
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c8;
  --text-muted: #6868a0;
  --text-inverse: #04040f;

  /* === Colors: Purple Family */
  --accent-50: #f5f3ff;
  --accent-100: #ede9fe;
  --accent-200: #ddd6fe;
  --accent-300: #c4b5fd;
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;
  --accent-700: #6d28d9;
  --accent-800: #5b21b6;

  /* === Colors: Gold/Warm Family === */
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;

  /* === Colors: Emerald/Success === */
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;

  /* === Colors: Semantic === */
  --color-whatsapp: #25D366;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* === Borders === */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);
  --border-gold: rgba(251, 191, 36, 0.3);

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 60px rgba(139, 92, 246, 0.25);
  --shadow-glow-gold: 0 0 40px rgba(251, 191, 36, 0.15);

  /* === Typography: Font Families === */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* === Typography: Scale (clamp for responsive) === */
  --text-2xs: clamp(0.5rem, 1.2vw, 0.625rem);
  --text-xs: clamp(0.625rem, 1.5vw, 0.75rem);
  --text-sm: clamp(0.75rem, 1.5vw, 0.875rem);
  --text-base: clamp(0.875rem, 2vw, 1rem);
  --text-lg: clamp(1rem, 2.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 3vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 4vw, 2.25rem);
  --text-3xl: clamp(2rem, 5vw, 3.5rem);
  --text-4xl: clamp(2.5rem, 6vw, 5rem);
  --text-hero: clamp(3rem, 8vw, 6rem);

  /* === Typography: Weights === */
  --weight-normal: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* === Typography: Line Heights === */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* === Spacing (4px base) === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-padding: clamp(3rem, 8vw, 6rem);

  /* === Radii === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* === Transitions === */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
  --duration-xslow: 1000ms;

  /* === Layout === */
  --content-max-width: 1200px;
  --content-narrow: 800px;
}

/* ─── Reset ───────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139,92,246,.06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(124,58,237,.04), transparent 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ─── Subtle Grid Pattern Overlay ─────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(139,92,246,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ─── Section Background Variants ──────────────────── */
.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Purple dream — capabilities */
.section-bg--purple {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139,92,246,.15), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(139,92,246,.1), transparent 50%),
    radial-gradient(ellipse 30% 30% at 50% 100%, rgba(139,92,246,.08), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(139,92,246,.02) 60px, rgba(139,92,246,.02) 61px);
}

/* Gold accent — pricing/value */
.section-bg--gold {
  background:
    radial-gradient(ellipse 70% 50% at 70% 10%, rgba(251,191,36,.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(245,158,11,.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(251,191,36,.04), transparent 50%),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(251,191,36,.015) 80px, rgba(251,191,36,.015) 81px);
}

/* Emerald — solución/growth */
.section-bg--green {
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(16,185,129,.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(5,150,105,.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 90%, rgba(16,185,129,.04), transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(16,185,129,.015) 50px, rgba(16,185,129,.015) 51px);
}

/* Deep tech — security/anti-baneo */
.section-bg--blue {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59,130,246,.1), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(99,102,241,.08), transparent 50%),
    radial-gradient(ellipse 30% 30% at 20% 80%, rgba(59,130,246,.06), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(99,102,241,.02) 40px, rgba(99,102,241,.02) 41px);
}

/* Dark moody — problema */
.section-bg--dark {
  background:
    radial-gradient(ellipse 60% 40% at 50% 10%, rgba(239,68,68,.06), transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(124,58,237,.08), transparent 50%),
    radial-gradient(ellipse 30% 30% at 80% 30%, rgba(239,68,68,.04), transparent 50%),
    repeating-linear-gradient(135deg, transparent, transparent 50px, rgba(239,68,68,.015) 50px, rgba(239,68,68,.015) 51px);
}

/* Warm amber — onboarding/FAQ */
.section-bg--amber {
  background:
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(245,158,11,.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(251,191,36,.06), transparent 50%),
    radial-gradient(ellipse 30% 30% at 80% 80%, rgba(245,158,11,.04), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 70px, rgba(251,191,36,.015) 70px, rgba(251,191,36,.015) 71px);
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ─── Focus Styles ────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ═══════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ─── Section Container ───────────────────────────────── */

.section {
  position: relative;
  padding: var(--section-padding) clamp(1rem, 5vw, 2rem);
  max-width: var(--content-max-width);
  margin: 0 auto;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-400);
  background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(99,102,241,.15));
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(251,191,36,.2);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Section Divider (Creative Alternating) ─────── */
.section-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  background: transparent;
}

/* Inner gradient bar */
.section-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  top: 50%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(139,92,246,.4) 15%,
    rgba(251,191,36,.5) 50%,
    rgba(139,92,246,.4) 85%,
    transparent 100%
  );
  animation: dividerShimmer 4s ease-in-out infinite;
}

/* Decorative corner accents */
.section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid rgba(251,191,36,.3);
  border-radius: 2px;
  background: var(--bg-deep);
  rotate: 45deg;
  animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerShimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes dividerPulse {
  0%, 100% { border-color: rgba(251,191,36,.3); box-shadow: 0 0 0 rgba(251,191,36,0); }
  50% { border-color: rgba(251,191,36,.6); box-shadow: 0 0 12px rgba(251,191,36,.15); }
}

/* ─── Decorative Section Top Accent ──────────────── */
.section-accent-top {
  position: relative;
  padding-top: var(--space-4);
}

.section-accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-600), var(--gold-400), var(--accent-600));
}

/* ─── Gradient Text ───────────────────────────────────── */

.grad-text {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(251,191,36,.15));
}

.grad-hero {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 30%, #7c3aed 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(139,92,246,.3)) drop-shadow(0 0 60px rgba(251,191,36,.1));
}

/* ─── Accent Line (Divider) ───────────────────────────── */

.accent-line {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-600), var(--gold-400));
  margin: 0 auto var(--space-6);
}

/* ─── Glass Card ──────────────────────────────────────── */

.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at var(--glow-x, 50%) var(--glow-y, 50%), rgba(139,92,246,.15), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
  z-index: 0;
}

/* Gold accent edge */
.glass-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 30%;
  right: 30%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal), left var(--duration-slow), right var(--duration-slow);
  pointer-events: none;
  z-index: 2;
}

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

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.4);
  box-shadow: 0 0 60px rgba(139,92,246,.25), 0 0 120px rgba(139,92,246,.08), 0 0 40px rgba(251,191,36,.05);
  background: rgba(20, 20, 48, 0.85);
}

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

.glass-card:hover::after {
  opacity: 1;
  left: 20%;
  right: 20%;
}

/* ─── Buttons ─────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: white;
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  min-height: 44px;
  min-width: 44px;
  transition: transform var(--duration-fast) var(--ease-out-back),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              opacity var(--duration-fast) var(--ease-out-expo);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-purple);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  min-height: 44px;
  min-width: 44px;
  transition: all var(--duration-fast) var(--ease-out-expo);
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--accent-400);
  background: rgba(99, 102, 241, 0.1);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-whatsapp);
  color: white;
  border-radius: var(--radius-full);
  padding: 0.875rem 2rem;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  min-height: 48px;
  min-width: 44px;
  transition: transform var(--duration-fast) var(--ease-out-back),
              box-shadow var(--duration-fast) var(--ease-out-expo);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: scale(0.97);
}

/* ─── Floating WhatsApp CTA ───────────────────────────── */

.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-out-back),
              opacity var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo);
}

.floating-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6);
}

.floating-cta:active {
  transform: scale(0.95);
}

.floating-cta--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.floating-cta svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ─── Bento Grid ──────────────────────────────────────── */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-purple);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

.bento-card__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.bento-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1023px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--wide {
    grid-column: span 1;
  }
}

/* ─── Price Cards ─────────────────────────────────────── */

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
  position: relative;
}

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

.price-card--popular {
  border: 2px solid transparent;
  background: var(--bg-elevated);
  background-clip: padding-box;
  transform: scale(1.03);
  box-shadow: 0 0 80px rgba(99, 102, 241, 0.3), 0 0 40px rgba(251, 191, 36, 0.15);
  position: relative;
}

.price-card--popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-500), var(--gold-400), var(--accent-500));
  z-index: -1;
  animation: popularBorderGlow 3s linear infinite;
}

@keyframes popularBorderGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.price-card--popular:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: white;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.price-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.price-card__name {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.price-card__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.price-card__setup {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.price-card__setup-amount {
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.price-card__monthly {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.price-card__monthly-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.price-card__features {
  text-align: left;
  margin-bottom: var(--space-8);
}

.price-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.price-card__feature--yes::before {
  content: '✓';
  color: var(--emerald-500);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.price-card__feature--no::before {
  content: '✕';
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .price-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .price-card--popular {
    transform: none;
  }
  .price-card--popular:hover {
    transform: translateY(-4px);
  }
}

/* ─── Stat Counter ────────────────────────────────────── */

.stat-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.stat-counter__number {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  color: var(--accent-400);
  margin-bottom: var(--space-2);
}

.stat-counter__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ─── FAQ Accordion ───────────────────────────────────── */

.faq-list {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out-expo);
}

.faq-item:hover {
  border-color: var(--border-default);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--text-primary);
  text-align: left;
  min-height: 44px;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.faq-item__question:hover {
  color: var(--accent-400);
}

.faq-item__icon {
  font-size: 1.25rem;
  transition: transform var(--duration-fast) var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out-expo),
              padding var(--duration-normal);
}

.faq-item--open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─── Badge ───────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--purple {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-300);
}

.badge--gold {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold-300);
}

.badge--emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-300);
}

/* ─── Tooltip ─────────────────────────────────────────── */

.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--accent-400);
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast);
  z-index: 10;
}

.tooltip:hover::after {
  opacity: 1;
}

/* ─── Comparison Table ────────────────────────────────── */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.comparison-table th {
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table .check-yes {
  color: var(--emerald-500);
  font-weight: var(--weight-bold);
}

.comparison-table .check-no {
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .comparison-table {
    font-size: var(--text-xs);
  }
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-2) var(--space-2);
  }
}

/* ─── Timeline (Vertical, mobile) ─────────────────────── */

.timeline-vertical {
  position: relative;
  padding-left: var(--space-8);
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-500), var(--accent-700));
}

.timeline-step {
  position: relative;
  margin-bottom: var(--space-8);
  padding-left: var(--space-6);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 6px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-500);
  border: 2px solid var(--bg-deep);
}

.timeline-step__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-400);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}

.timeline-step__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.timeline-step__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─── Footer ──────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-8) clamp(1rem, 5vw, 2rem);
  text-align: center;
}

.site-footer__logo {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.site-footer__links a:hover {
  color: var(--accent-400);
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ─── Mobile Nav Toggle ───────────────────────────────── */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ─── Skip to Content (Accessibility) ─────────────────── */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-500);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  z-index: 10000;
  transition: top var(--duration-fast);
}

.skip-to-content:focus {
  top: var(--space-2);
}

/* ═══════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-gradient { -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.font-mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 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;
    scroll-behavior: auto !important;
  }
}

/* ─── Print Styles ────────────────────────────────────── */

@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .glass-card, .bento-card, .price-card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  .btn-primary, .btn-whatsapp, .btn-outline, .floating-cta, nav {
    display: none !important;
  }
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.75rem;
    color: #666;
  }
  .section {
    padding: 1rem !important;
    max-width: 100% !important;
  }
  .bento-grid, .price-cards {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   RENDIMIENTO — medido, no adivinado
   ═══════════════════════════════════════════════════════════

   Diagnóstico en tablet (1024px de ancho):
     · 2 canvas por requestAnimationFrame — el del hero a 1.43 megapíxeles
     · film-grain fijo a pantalla completa con mix-blend-mode: overlay
     · backdrop-filter: blur(32px) en la píldora de navegación, que es fixed
     · 52 animaciones CSS infinitas corriendo a la vez, la mayoría fuera de
       la pantalla (los separadores de sección animan sin que nadie los vea)

   Las cuatro se componen: cada una obliga al navegador a recomponer la
   pantalla entera en cada frame. Los canvas ya se apagan desde particles.js;
   lo que sigue apaga las otras tres.
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Animaciones infinitas fuera de viewport ──
   El observador de index.html marca con .anim-idle todo lo que no está
   visible. Pausar no reinicia: al volver, la animación sigue donde iba, así
   que no hay salto perceptible. Incluye los pseudo-elementos porque ahí vive
   el conic-gradient de 200%×200% que gira sin parar en el hero. */
.anim-idle,
.anim-idle::before,
.anim-idle::after {
  animation-play-state: paused !important;
}

/* ── 2. Efectos de composición en dispositivos táctiles ──
   `hover: none` / `pointer: coarse` = tablet o teléfono. Ahí el grano de
   película (opacidad .035 — imperceptible) y el desenfoque de fondo cuestan
   mucho más de lo que aportan. El fondo de la píldora sube de .65 a .88 de
   opacidad para compensar la pérdida del blur: se ve prácticamente igual. */
@media (hover: none), (pointer: coarse) {
  .film-grain { display: none; }

  .nav-pill,
  .mobile-menu,
  .glass-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-pill { background: rgba(8, 8, 20, 0.88); }
  .mobile-menu { background: rgba(8, 8, 20, 0.94); }
}

/* ── 3. Contención de repintado ──
   `contain: paint` le dice al navegador que nada de estas capas decorativas
   se dibuja fuera de su caja, así puede saltarse el área al recomponer. */
.section-bg,
.hero__bg,
.hero__shimmer {
  contain: paint;
}
