/* ============================================================
   main.css — BotRifa Landing Page
   ============================================================
   Full stylesheet loaded async (not render-blocking).
   Depends on: critical.css (inlined in <head>), design-system.css
   Sections: Problema, Solución, Capacidades, Planes, Anti-baneo,
             Dashboard, Seguridad, Onboarding, FAQ, CTA Final, Footer
   ============================================================ */

/* ─── CSS Custom Properties (Full Set) ──────────────────── */
:root {
  /* Colors — BotRifa Identity (2026) */
  --bg-deep: #04040f;
  --bg-card: #0a0a1a;
  --bg-elevated: #12122a;
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c8;
  --text-muted: #8080b5;
  --accent-300: #c084fc;
  --accent-400: #8b5cf6;
  --accent-500: #9333ea;
  --accent-600: #7e22ce;
  --accent-700: #6b21a8;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --green-400: #34d399;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --amber-600: #d97706;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-400: #22d3ee;
  --color-whatsapp: #25D366;

  /* Borders & Effects */
  --border-default: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(124, 58, 237, 0.4);
  --border-gold: rgba(251, 191, 36, 0.3);
  --shadow-glow-purple: 0 0 60px rgba(124, 58, 237, 0.3);
  --shadow-glow-gold: 0 0 40px rgba(251, 191, 36, 0.15);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(10, 10, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --backdrop-blur: blur(20px);

  /* Typography */
  --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', 'Consolas', monospace;
  --text-xs: clamp(0.7rem, 1.2vw, 0.75rem);
  --text-sm: clamp(0.75rem, 1.5vw, 0.875rem);
  --text-base: clamp(0.875rem, 2vw, 1rem);
  --text-lg: clamp(0.95rem, 2vw, 1.1rem);
  --text-xl: clamp(1.1rem, 2.5vw, 1.3rem);
  --text-2xl: clamp(1.25rem, 3.5vw, 1.65rem);
  --text-3xl: clamp(1.5rem, 4vw, 2.25rem);
  --text-hero: clamp(2.25rem, 6vw, 4.5rem);
  --weight-normal: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing */
  --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-24: 6rem;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* 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-out-back — subtle overshoot snap */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;

  /* Breakpoints (used in JS, referenced here) */
  --bp-mobile: 767px;
  --bp-tablet: 1023px;
}

/* ─── Gradient Text Utilities (solid color — gradient is an AI tell) ─── */
.grad-text {
  color: var(--accent-400);
}

/* Gold accent */
.grad-gold {
  color: var(--gold-400);
}

/* ─── Section Layout ────────────────────────────────────── */
.section {
  position: relative;
  z-index: 0;
  padding: calc(var(--section-padding, var(--space-24)) + 1rem) clamp(1rem, 5vw, 2rem);
  scroll-margin-top: 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.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(139,92,246,.15));
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(251,191,36,.25);
  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;
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ─── Utility Classes ──────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Modal fade in — used by JS for modal overlay ──────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal scrollbar styling */
.legal-modal-inner::-webkit-scrollbar { width: 4px; }
.legal-modal-inner::-webkit-scrollbar-track { background: transparent; }
.legal-modal-inner::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.2); border-radius: 4px; }
.legal-modal-inner::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.4); }

/* ─── Glass Card ────────────────────────────────────────── */
.glass-card {
  background: linear-gradient(135deg, #0e0e24, #0a0a1a);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration-normal), transform var(--duration-normal), box-shadow var(--duration-normal);
}

@media (hover: hover) {
.glass-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-purple);
}
}

/* ─── Bento Grid ────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ─── Bento Card ────────────────────────────────────────── */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration-normal), transform var(--duration-normal), box-shadow var(--duration-normal);
  position: relative;
  overflow: hidden;
}

/* Left accent line */
.bento-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent-600), var(--gold-400));
  opacity: 0;
  transition: opacity var(--duration-normal), top var(--duration-slow), bottom var(--duration-slow);
}

@media (hover: hover) {
.bento-card:hover {
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 0 40px rgba(139,92,246,.15), 0 0 80px rgba(139,92,246,.05);
  transform: translateY(-3px);
}
}

@media (hover: hover) {
.bento-card:hover::before {
  opacity: 1;
}
}

.bento-card:hover::after {
  opacity: 1;
  top: 10%;
  bottom: 10%;
}

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

/* ─── Features More / Details Reveal Animation ──────────── */
details.features-more summary {
  transition: border-color var(--duration-normal), background var(--duration-normal);
  list-style: none;
  user-select: none;
}

details.features-more summary::-webkit-details-marker {
  display: none;
}

details.features-more[open] summary {
  border-color: rgba(139,92,246,.35) !important;
  background: rgba(139,92,246,.08) !important;
}

/* Container reveal handled by GSAP — CSS minimal only for summary */

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

/* ─── Bento Grid: 3 Columns (Solucion section) ─────────── */
.bento-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 1023px) {
  .bento-grid--cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .bento-grid--cols-3 {
    grid-template-columns: 1fr !important;
  }
}

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

.bento-card__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

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

/* ─── Price Cards ───────────────────────────────────────── */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

@media (max-width: 1023px) {
  .price-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .price-card[data-plan="express"],
  .price-card[data-plan="enterprise"],
  .price-card--popular {
    transform: none !important;
  }
}

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

/* Cancel reveal animation on price cards — always visible */
.price-card.reveal {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
.price-card:hover {
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 0 50px rgba(139,92,246,.2), 0 0 100px rgba(139,92,246,.08);
}
}

.price-card--popular {
  border-color: rgba(251,191,36,.3);
  background: linear-gradient(135deg, #0f0f28, #14142a);
  transform: scale(1.04);
  box-shadow: 0 0 60px rgba(139,92,246,.15), 0 0 120px rgba(251,191,36,.06), inset 0 0 80px rgba(251,191,36,.03);
  border-width: 1.5px;
  position: relative;
}

.price-card--popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(251,191,36,.15), transparent 40%, transparent 60%, rgba(139,92,246,.15));
  z-index: -1;
  opacity: 0.6;
}

.price-card--popular:hover {
  transform: scale(1.06);
  border-color: var(--gold-400);
  box-shadow: 0 0 60px rgba(139,92,246,.25), 0 0 120px rgba(251,191,36,.1), inset 0 0 80px rgba(251,191,36,.05);
}

/* Express card — tiered but clearly polished */
.price-card[data-plan="express"],
.price-card[data-plan="enterprise"] {
  transform: scale(0.96);
}

.price-card[data-plan="express"] {
  background: linear-gradient(135deg, rgba(20,18,40,0.7), rgba(15,15,30,0.5));
  border-color: rgba(139,92,246,0.12);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(139,92,246,0.04);
}

.price-card[data-plan="express"]:hover,
.price-card[data-plan="enterprise"]:hover {
  transform: scale(0.98);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 0 40px rgba(139,92,246,0.1);
}

.price-card[data-plan="express"]:hover {
  opacity: 1;
}

.price-card--selected {
  border-color: var(--accent-400);
  box-shadow: 0 0 32px rgba(139,92,246,.25);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #0a0a1a;
  padding: var(--space-1) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(251,191,36,.4);
  letter-spacing: 0.05em;
}

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

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

.price-card__tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  min-height: 2.5rem;
}

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

.price-card__monthly-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.price-card__monthly-label .gold-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  margin: 0 4px;
  vertical-align: middle;
}

.price-card__pricing {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: var(--space-1);
}

.price-card__monthly {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--gold-400);
  filter: drop-shadow(0 0 8px rgba(251,191,36,.15));
  line-height: 1.1;
}

.price-card__monthly-period {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.price-card__setup-amount {
  font-weight: var(--weight-extrabold);
  color: var(--accent-400);
}

.price-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
  flex: 1;
}

.price-card__feature {
  font-size: var(--text-sm);
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  line-height: var(--leading-snug);
}

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

.price-card__feature--no {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.price-card__feature-gap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0 0.15rem;
  margin: 0.5rem 0 0.25rem;
  border-top: 1px dashed rgba(251,191,36,0.15);
  font-size: var(--text-2xs);
  color: var(--gold-500);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-card__feature-gap::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(251,191,36,0.2), transparent);
}

.price-card__feature--no::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: var(--weight-bold);

}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  font-family: var(--font-body);
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: white;
  border: none;
  transition: transform var(--duration-fast) var(--ease-out-back), box-shadow var(--duration-fast);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  border: none;
  transition: transform var(--duration-fast) var(--ease-out-back), box-shadow var(--duration-fast);
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.15);
}

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

/* ─── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  vertical-align: middle;
}

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

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

/* Hero tag (badge above headline) */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  margin-bottom: 1.5rem;
}
.hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
}

/* Hero stats row */
.hero__stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero__stat {
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 0 0 auto;
  min-width: 4.5rem;
  padding: 0 0.25rem;
}

@media (hover: hover) {
.hero__stat:hover {
  transform: scale(1.1);
}
}
.hero__stat-num {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.hero__stat-num--gold {
  color: #fbbf24;
}
.hero__stat-num--purple {
  color: #8b5cf6;
}
.hero__stat-num--white {
  color: #fff;
}
.hero__stat-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

/* Hero heading smaller for two-column */
.hero__headline--compact {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}
.hero__sub--compact {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Comparison table compact */
.comparison-table-wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: var(--space-16);
}
.comparison-table__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--text-primary);
  padding: var(--space-5) var(--space-5) var(--space-2);
}
.plan-col-express { color: #fbbf24; }
.plan-col-pro { color: #a5b4fc; }
.plan-col-enterprise { color: #6ee7b7; }

/* ─── Comparison Table ──────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: transparent;
  overflow: hidden;
}

.comparison-table thead {
  background: rgba(255,255,255,0.01);
}

.comparison-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.01);
}

.comparison-table th:first-child {
  color: rgba(255,255,255,0.55);
}

.comparison-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
  background: rgba(99,102,241,0.03);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

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

.check-no {
  color: var(--text-muted) !important;
}

/* ─── Timeline Vertical ─────────────────────────────────── */
.timeline-vertical {
  position: relative;
  padding-left: var(--space-10);
}

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

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

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-500);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.timeline-step__body {
  opacity: 1;
}

.timeline-step__number {
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  color: var(--accent-400);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

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

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

/* ─── FAQ Accordion ─────────────────────────────────────── */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-default);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  text-align: left;
  cursor: pointer;
  gap: var(--space-4);
  transition: color var(--duration-fast);
}

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

.faq-item__icon {
  font-size: 1.5rem;
  font-weight: var(--weight-normal);
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.faq-item__icon svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.faq-item--open .faq-item__icon svg {
  transform: rotate(45deg);
  color: var(--accent-400);
}

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

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows var(--duration-slow) var(--ease-out-expo),
              opacity calc(var(--duration-slow) / 2) var(--ease-out-expo);
}

.faq-item--open .faq-item__answer {
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--duration-slow) var(--ease-out-expo),
              opacity calc(var(--duration-slow) / 3) var(--ease-out-expo) 0s;
}

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

/* ─── CTA Final ────────────────────────────────────────── */
#comenzar .section-header {
  margin-bottom: var(--space-2);
}

/* ─── Floating CTA ──────────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.15);
  transition: transform var(--duration-normal) var(--ease-out-back),
              opacity var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
}

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

.floating-cta:hover {
  transform: scale(1.1);
}

.floating-cta--hidden {
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}

/* Bounce in on appear */
@keyframes ctaBounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.18); opacity: 1; }
  70% { transform: scale(0.92); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.floating-cta--animate {
  animation: ctaBounceIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-default);
  background: var(--bg-card);
  padding: var(--space-12) 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-6);
}

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

.site-footer__links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  /* 44×44px minimum touch target */
  padding: 0.75rem 0.5rem;
}

.site-footer__links a:hover {
  color: var(--text-primary);
}

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

/* ─── Typewriter ────────────────────────────────────────── */
.typewriter.typing .cursor {
  display: inline-block;
}

.typewriter.typed .cursor {
  animation: blink 0.8s steps(1) infinite;
}

/* ─── Calculator Plan Cards ─────────────────────────────── */
.calc-plan-card {
  padding: var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-sm);
  transition: all var(--duration-fast);
  cursor: pointer;
  background: var(--bg-card);
}

.calc-plan-card:hover {
  border-color: var(--border-accent);
}

input[name="calc-plan"]:checked + .calc-plan-card {
  border-color: var(--accent-500);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

/* ─── Stat Counter ──────────────────────────────────────── */
.stat-counter {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-2xl);
  color: var(--gold-400);
  filter: drop-shadow(0 0 10px rgba(251,191,36,.15));
}

/* ─── Scroll Animations (Reveal) ────────────────────────── */
/* Visible by default — never gate content on JS execution.
   Inline <script> hides before paint on desktop for smooth GSAP/transition entrances. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger variants — subtle entrance differences */
.reveal[data-stagger-delay] {
  transition-delay: 0ms;
}

/* 44×44px minimum touch target for range input thumb */
#calc-recaudo { height: 6px; }
#calc-recaudo::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-400);
  cursor: pointer;
  /* In practice the native mobile thumb is ≥44px;
     24px CSS pixels is the minimum WCAG 2.2 AA level,
     and the native mobile browser will render a larger
     hit area via its own heuristics. */
}
#calc-recaudo::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-400);
  cursor: pointer; border: none;
}

/* ─── Calculator Number Transition ──────────────────────── */
@keyframes calcNumberUpdate {
  0% { transform: scale(1.04); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

#calc-total.calc-total--updated {
  animation: calcNumberUpdate 0.35s ease-out forwards;
}

/* ─── Expand Cards (Anti-baneo) ─────────────────────────── */
/* Push technique: cards expand and push siblings — no overlap.
   Sizes calculated so 12 collapsed + 1 expanded fit in section.
   Colors via CSS variables (--ch,--cs,--cl) set inline in HTML. */
.expand-cards-wrap {
  width: 100%;
  padding: var(--space-6) 0;
}

/* Mobile: allow horizontal scroll so all cards reachable by tap */
@media (max-width: 859px) {
  .expand-cards-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

/* width:max-content + margin auto es lo que mantiene la tira SIEMPRE centrada,
   con el mismo aire a izquierda y derecha, sin importar el ancho de pantalla.
   Con justify-content:center a secas la tira ocupaba todo el wrap y el
   contenido quedaba pegado a un lado en tablet (12 tarjetas de 44px caben en
   696px, y sobraban 92px solo a la derecha).
   Cuando la tira SÍ desborda (una tarjeta abierta en pantalla angosta) los
   márgenes auto se resuelven a 0 y el scroll horizontal alcanza todo — que es
   justo lo que justify-content:center rompía, dejando el inicio inalcanzable. */
.expand-cards-strip {
  display: flex;
  gap: 4px;
  align-items: stretch;
  padding: 0 1rem;
  width: max-content;
  margin-inline: auto;
  justify-content: flex-start;
}

/* ── Card base ── */
.exp-card {
  --cw: 4.25rem;     /* collapsed width (68px) */
  --ew: 20rem;       /* expanded width (320px) */
  position: relative;
  flex-shrink: 0;
  width: var(--cw);
  height: 24rem;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 400ms ease,
              box-shadow 400ms ease;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.exp-card.is-expanded {
  width: var(--ew);
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 0 40px rgba(139,92,246,0.08);
  z-index: 2;
}

/* ── Gradient bg — tinted per card via CSS vars ── */
.exp-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  transition: opacity 500ms ease 300ms;
  background: linear-gradient(135deg, hsla(var(--ch,270), var(--cs,91%), var(--cl,65%), 0.25), transparent 60%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.exp-card.is-expanded .exp-card__bg { opacity: 0.5; }

/* ── Hover glow ring ── */
.exp-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 500ms ease 200ms;
  pointer-events: none;
  z-index: 0;
  border: 1px solid transparent;
}
.exp-card.is-expanded .exp-card__glow {
  opacity: 1;
  border-color: rgba(139,92,246,0.15);
  box-shadow: inset 0 0 30px rgba(139,92,246,0.04);
}

/* ── Icon — centered when collapsed, top-left when expanded ── */
.exp-card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
  z-index: 2;
  pointer-events: none;
  transition: top 500ms cubic-bezier(0.22, 1, 0.36, 1),
              left 500ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
              font-size 500ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.2));
}
.exp-card.is-expanded .exp-card__icon {
  top: 1.25rem;
  left: 1.25rem;
  transform: translate(0, 0);
  font-size: 2rem;
}

/* ── Content overlay ── */
.exp-card__body {
  position: absolute;
  inset: 0;
  padding: 4.5rem 1.25rem 1.25rem;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms ease 250ms,
              transform 400ms cubic-bezier(0.22, 1, 0.36, 1) 250ms;
}
.exp-card.is-expanded .exp-card__body { opacity: 1; transform: translateY(0); }

/* ── Hover-only: same visuals as .is-expanded but only on real hover devices ── */
@media (hover: hover) {
  .exp-card:hover {
    width: var(--ew);
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 0 40px rgba(139,92,246,0.08);
    z-index: 2;
  }
  .exp-card:hover .exp-card__bg { opacity: 0.5; }
  .exp-card:hover .exp-card__glow {
    opacity: 1;
    border-color: rgba(139,92,246,0.15);
    box-shadow: inset 0 0 30px rgba(139,92,246,0.04);
  }
  .exp-card:hover .exp-card__icon {
    top: 1.25rem;
    left: 1.25rem;
    transform: translate(0, 0);
    font-size: 2rem;
  }
  .exp-card:hover .exp-card__body { opacity: 1; transform: translateY(0); }
  .exp-card:hover .exp-card__bar { opacity: 1; }
}

.exp-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.exp-card__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
  max-width: 17rem;
}

/* ── Accent bar — color from CSS vars ── */
.exp-card__bar {
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 400ms ease 300ms;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg,
    hsl(var(--ch,270), var(--cs,91%), var(--cl,65%)),
    hsl(var(--ch,270), var(--cs,91%), calc(var(--cl,65%) + 10%)));
}
.exp-card.is-expanded .exp-card__bar { opacity: 1; }

/* ── Responsive ── */
/* ≥1200px: default (no query) — center, cw=4.25rem, ew=20rem */
/* 860-1199px: centered, smaller cards */
@media (max-width: 1199px) {
  .exp-card { --cw: 2.75rem; --ew: 14rem; height: 18rem; }
  .exp-card__icon { font-size: 1.25rem; }
  .exp-card.is-expanded .exp-card__icon { font-size: 1.5rem; }
  .exp-card__body { padding: 3.25rem 0.75rem 0.75rem; }
  .exp-card__title { font-size: 0.9rem; }
  .exp-card__desc { font-size: 0.75rem; }
  @media (hover: hover) {
    .exp-card:hover .exp-card__icon { font-size: 1.5rem; }
  }
}

/* <860px: el centrado lo resuelve width:max-content + margin auto en la regla
   base, así que aquí no hace falta forzar nada. */

/* <480px: extra compact */
@media (max-width: 479px) {
  .exp-card { --cw: 2.5rem; --ew: 12rem; height: 16rem; border-radius: 1rem; }
  .exp-card__icon { font-size: 1rem; }
  .exp-card.is-expanded .exp-card__icon { top: 0.75rem; left: 0.75rem; font-size: 1.25rem; }
  .exp-card__body { padding: 2.75rem 0.625rem 0.625rem; }
  .exp-card__title { font-size: 0.85rem; }
  .exp-card__desc { font-size: 0.7rem; }
  .exp-card__bar { left: 0.5rem; right: 0.5rem; }
  @media (hover: hover) {
    .exp-card:hover .exp-card__icon { top: 0.75rem; left: 0.75rem; font-size: 1.25rem; }
  }
}

/* ─── Print Styles ──────────────────────────────────────── */
@media print {
  .navbar,
  .floating-cta,
  .hero__cta-group,
  .btn-whatsapp,
  .btn-primary,
  .btn-outline {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .section {
    padding: 2rem 1rem;
    break-inside: avoid;
  }

  .glass-card,
  .bento-card {
    border: 1px solid #ccc;
    background: white;
    box-shadow: none;
  }

  .grad-text {
    -webkit-text-fill-color: black !important;
    color: black !important;
  }
}

/* ─── Hyperframe — Phone Mockup WhatsApp Scroll ────────── */
.hyperframe-section {
  position: relative;
  isolation: isolate;
  padding: 0;
  background: transparent;
}

.hyperframe-track {
  position: relative;
  height: 400vh;  /* tall scroll track */
}

.hyperframe-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hyperframe-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.hyperframe-label {
  position: absolute;
  top: 1rem;
  left: 2rem;
  z-index: 2;
}

.hyperframe-label .section-label {
  font-size: 0.85rem;
  padding: var(--space-1) var(--space-4);
}

/* ─── Phone Mockup ────────────────────────────────────── */
.hyperframe-phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hyperframe-phone {
  position: relative;
  width: 260px;
  height: 520px;
  transform: rotateY(-5deg) rotateX(2deg);
  /* Float + 3D tilt driven by GSAP (initHyperframeParallax) — no CSS transition to avoid fighting GSAP */
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 32px;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(139, 92, 246, 0.3),
    0 0 0 4px rgba(251, 191, 36, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(99, 102, 241, 0.1),
    inset 0 0 30px rgba(139, 92, 246, 0.05);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.phone-notch::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #222;
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.5);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a1a;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ─── WhatsApp Header ──────────────────────────────────── */
.wa-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #fff;
  z-index: 5;
  position: relative;
  flex-shrink: 0;
}

.wa-header-back {
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.8;
}

.wa-header-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.wa-header-info {
  flex: 1;
  min-width: 0;
}

.wa-header-name {
  font-size: 0.72rem;
  font-weight: 600;
}

.wa-header-status {
  font-size: 0.55rem;
  opacity: 0.8;
}

.wa-header-menu {
  cursor: pointer;
  opacity: 0.8;
  font-size: 1rem;
}

/* ─── WhatsApp Messages ────────────────────────────────── */
.wa-messages {
  flex: 1;
  padding: 5px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  scrollbar-width: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.03), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(251, 191, 36, 0.02), transparent 50%);
}
.wa-messages::-webkit-scrollbar { display: none; }

.wa-msg {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  max-width: 85%;
  flex-shrink: 0;
}

.wa-msg--visible {
  opacity: 1;
  transform: translateY(0);
}

.wa-msg--in {
  align-self: flex-start;
}

.wa-msg--out {
  align-self: flex-end;
}

.wa-msg--system {
  align-self: center;
  max-width: 90%;
}

.wa-msg-bubble {
  padding: 4px 7px;
  border-radius: 10px;
  font-size: 0.6rem;
  line-height: 1.35;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.wa-msg--in .wa-msg-bubble {
  background: #1f2c33;
  color: #e9edef;
  border-bottom-left-radius: 3px;
}

.wa-msg--out .wa-msg-bubble {
  background: linear-gradient(135deg, #005c4b, #025144);
  color: #e9edef;
  border-bottom-right-radius: 3px;
}

.wa-msg-bubble--system {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25D366;
  text-align: center;
  font-weight: 600;
  font-size: 0.6rem;
  border-radius: 16px;
  padding: 4px 12px;
}

.wa-msg-time {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1px;
  padding: 0 3px;
}

.wa-msg--out .wa-msg-time {
  text-align: right;
}

/* PDF card inside message */
.wa-pdf-card {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-pdf-icon {
  font-size: 1rem;
}

.wa-pdf-info {
  flex: 1;
}

.wa-pdf-name {
  font-weight: 600;
  font-size: 0.62rem;
}

.wa-pdf-size {
  font-size: 0.55rem;
  opacity: 0.7;
}

/* ─── WhatsApp Input Bar ────────────────────────────────── */
.wa-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #1f2c33;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.wa-input-icon,
.wa-input-mic {
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.wa-input-icon:hover,
.wa-input-mic:hover {
  opacity: 1;
}

.wa-input-text {
  flex: 1;
  background: #2a3942;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Phone Glow Effect ────────────────────────────────── */
.phone-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 32px;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  animation: phoneGlow 4s ease-in-out infinite alternate;
}

@keyframes phoneGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ─── Steps Text ────────────────────────────────────────── */
.hyperframe-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.hf-step {
  opacity: 0.2;
  transform: translateX(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  padding: 1rem 1rem 1rem 1.5rem;
  border-left: 2px solid rgba(139, 92, 246, 0.2);
}

.hf-step--active {
  opacity: 1;
  transform: translateX(0);
  border-left-color: var(--accent-500);
}

.hf-step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-400);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.hf-step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.hf-step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Progress Dots ───────────────────────────────────── */
/* ─── Responsive: Hyperframe ──────────────────────────── */
@media (max-width: 900px) {
  .hyperframe-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .hyperframe-label {
    position: static;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .hyperframe-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
  }

  .hf-step {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    padding: 0.75rem;
    border-left: none;
    border-top: 2px solid rgba(139, 92, 246, 0.2);
    text-align: center;
  }

  .hf-step--active {
    border-top-color: var(--accent-500);
  }

  .hf-step-desc {
    display: none;  /* keep it compact on mobile */
  }

  .hyperframe-phone {
    width: 260px;
    height: 520px;
    transform: none;
  }
}

/* ─── Hyperframe Scroll Hint ──────────────────────────── */
.hf-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  z-index: 5;
  pointer-events: none;
  animation: hfHintFade 2s ease-in-out infinite;
  opacity: 0.6;
}

.hf-scroll-hint__text {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes hfHintFade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* ─── 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;
  }

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

  .reveal-gsap {
    opacity: 1;
  }

  .bento-card:hover {
    transform: none;
  }

  .particle-container { display: none !important; }
  .glass-card::before, .bento-card::before, .price-card::before { display: none !important; }
  .nav-wrapper--scrolled .nav-pill { transition: none !important; }
  .nav-pill::before { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   DYNAMIC BACKGROUNDS — Fondos animados
   ═══════════════════════════════════════════════════════ */

/* ─── Hero BG — Animated Gradient Drift ─────────────────── */
.hero__bg {
  animation: heroBgDrift 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroBgDrift {
  0%   { transform: scale(1)    translate(0%, 0%);   opacity: 0.8; }
  50%  { transform: scale(1.06) translate(1.5%, -1%); opacity: 1; }
  100% { transform: scale(1.1)  translate(-1%, 1.5%); opacity: 0.85; }
}

/* ─── Hero Orbs — base + drift animation ────────────────── */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.hero__orb--purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.2), transparent 70%);
  top: -200px;
  left: -150px;
  animation: orbPurple 10s ease-in-out infinite alternate;
}

.hero__orb--gold {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 60% 60%, rgba(251, 191, 36, 0.12), transparent 70%);
  bottom: -120px;
  right: -100px;
  animation: orbGold 12s ease-in-out infinite alternate;
}

@keyframes orbPurple {
  0%   { scale: 1;   opacity: 0.6; }
  100% { scale: 1.2; opacity: 1; }
}

@keyframes orbGold {
  0%   { scale: 1;   opacity: 0.4; }
  100% { scale: 1.25; opacity: 0.8; }
}

/* ─── Hero Dots — floating particles ───────────────────── */
.hero__dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__dot--1 {
  width: 4px; height: 4px;
  background: rgba(139, 92, 246, 0.5);
  top: 20%; left: 15%;
  animation: dotFloat1 6s ease-in-out infinite;
}

.hero__dot--2 {
  width: 3px; height: 3px;
  background: rgba(251, 191, 36, 0.5);
  top: 60%; right: 20%;
  animation: dotFloat2 7s ease-in-out infinite;
}

.hero__dot--3 {
  width: 5px; height: 5px;
  background: rgba(99, 102, 241, 0.4);
  top: 35%; right: 35%;
  animation: dotFloat3 8s ease-in-out infinite;
}

@keyframes dotFloat1 {
  0%, 100% { scale: 1;   opacity: 0.3; }
  50%      { scale: 1.8; opacity: 0.8; }
}

@keyframes dotFloat2 {
  0%, 100% { scale: 1;   opacity: 0.2; }
  50%      { scale: 1.6; opacity: 0.7; }
}

@keyframes dotFloat3 {
  0%, 100% { scale: 1;   opacity: 0.3; }
  50%      { scale: 2;   opacity: 0.6; }
}

/* ─── Grid overlay — tech lines with traveling glow ──────── */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.08;
  /* Fine grid */
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Sweeping light across the grid */
.hero__grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.15) 40%, rgba(251,191,36,0.08) 60%, transparent 100%);
  animation: gridSweep 8s ease-in-out infinite;
}

@keyframes gridSweep {
  0%   { left: -100%; opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* ─── Section dividers — height defined in design-system.css; visible on all viewports ─── */

/* ─── Section backgrounds — radial gradient color pools per section ─── */
.section-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  z-index: -1;
}

.section-bg--dark {
  background: rgba(239, 68, 68, 0.06) radial-gradient(ellipse 100% 70% at 50% 90%, rgba(239, 68, 68, 0.20), transparent 55%);
}
.section-bg--hyperframe {
  background: rgba(59, 130, 246, 0.06) radial-gradient(ellipse 100% 70% at 50% 10%, rgba(59, 130, 246, 0.20), transparent 55%);
}
.section-bg--green {
  background: rgba(16, 185, 129, 0.06) radial-gradient(ellipse 100% 70% at 75% 40%, rgba(16, 185, 129, 0.20), transparent 55%);
}
.section-bg--purple {
  background: rgba(139, 92, 246, 0.06) radial-gradient(ellipse 100% 70% at 25% 45%, rgba(139, 92, 246, 0.20), transparent 55%);
}
.section-bg--gold {
  background: rgba(251, 191, 36, 0.06) radial-gradient(ellipse 100% 70% at 50% 15%, rgba(251, 191, 36, 0.20), transparent 50%);
}
.section-bg--blue {
  background: rgba(59, 130, 246, 0.06) radial-gradient(ellipse 100% 70% at 75% 45%, rgba(59, 130, 246, 0.20), transparent 55%);
}
.section-bg--amber {
  background: rgba(217, 119, 6, 0.06) radial-gradient(ellipse 100% 70% at 25% 80%, rgba(217, 119, 6, 0.20), transparent 55%);
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS — Keyframes
   ═══════════════════════════════════════════════════════ */


/* Pulse for hero tag dot — defined here (used by .hero__tag-dot) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Blink for typewriter cursor — defined here (used by .typewriter.typed .cursor) */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile & Tablet
   ═══════════════════════════════════════════════════════ */

/* ─── Tablet (≤1023px) ──────────────────────────────── */
@media (max-width: 1023px) {
  .section {
    padding: var(--space-16) clamp(1rem, 5vw, 2rem);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
    max-width: 500px;
  }

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

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

  .hyperframe-phone {
    width: 230px;
    height: 460px;
  }

  .site-footer__links {
    gap: var(--space-4);
  }
}

/* ─── Mobile (≤767px) ───────────────────────────────── */
@media (max-width: 767px) {
  /* Layout */
  .section {
    padding: var(--space-12) 1rem;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
  }

  .section-subtitle {
    font-size: var(--text-sm);
    max-width: 100%;
  }

  .section-divider {
    display: block;
    height: 40px;
  }

  /* Hero */
  .hero {
    padding: 5rem 1rem 3rem;
    min-height: 100dvh;
  }

  .hero__headline {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero__sub {
    font-size: var(--text-base);
    margin-bottom: 2rem;
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__cta-primary,
  .hero__cta-secondary,
  .hero__cta-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
  }

  .hero__orb--purple {
    width: 150px;
    height: 150px;
    top: -40px;
    left: -50px;
  }

  .hero__orb--gold {
    width: 100px;
    height: 100px;
    bottom: 30px;
    right: -30px;
  }

  /* Bento / Glass cards */
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-4);
  }

  .bento-card {
    padding: var(--space-5);
  }

  .bento-card__title {
    font-size: var(--text-base);
  }

  .bento-card__desc {
    font-size: var(--text-xs);
  }

  .glass-card {
    padding: var(--space-5);
  }

  /* Hyperframe — mobile: sin teléfono, solo timeline */
  .hyperframe-section {
    padding: var(--space-12) 1rem;
  }

  .hyperframe-track {
    height: auto;
  }

  .hyperframe-sticky {
    position: relative;
    height: auto;
    display: block;
    align-items: unset;
    justify-content: unset;
    overflow: visible;
  }

  .hyperframe-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    max-width: 600px;
  }

  .hyperframe-label {
    position: static;
    text-align: center;
    margin-bottom: 0;
  }

  .hyperframe-phone-wrapper {
    display: none;
  }

  .hyperframe-steps {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
  }

  .hf-step {
    opacity: 1 !important;
    transform: none !important;
    min-width: unset;
    max-width: unset;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid var(--accent-500);
    border-top: none;
    text-align: left;
  }

  .hf-step-desc {
    display: block;
  }

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

  /* Price cards */
  .price-cards {
    gap: var(--space-4);
  }

  .price-card {
    padding: var(--space-6);
  }

  .price-card--popular {
    transform: scale(1.02);
  }

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

  .price-card[data-plan="express"] {
    transform: scale(1);
    opacity: 1;
  }

  .price-card[data-plan="express"]:hover {
    transform: scale(1.01);
  }

  .price-card__name {
    font-size: var(--text-xl);
  }

  .price-card__setup {
    font-size: var(--text-xs);
  }

  .price-card__pricing {
    gap: 0.15rem;
  }

  .price-card__monthly {
    font-size: var(--text-lg);
  }

  .price-card__monthly-period {
    font-size: var(--text-sm);
  }

  .price-card__features {
    padding: var(--space-2) 0;
    font-size: var(--text-xs);
  }

  /* Calculator */
  #calculadora {
    padding: var(--space-6) !important;
  }

  #calculadora > div:first-of-type > div {
    grid-template-columns: 1fr !important;
    gap: var(--space-2) !important;
  }

  .calc-plan-card {
    font-size: var(--text-xs) !important;
    padding: var(--space-2) !important;
  }

  /* Comparison table */
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    font-size: var(--text-xs);
    min-width: 500px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-2);
  }

  .comparison-table thead th {
    font-size: var(--text-2xs);
    white-space: normal;
  }

  /* Dashboard section */
  #dashboard > div:last-child {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  /* Security section */
  #seguridad > div:last-child {
    grid-template-columns: 1fr !important;
  }

  /* Timeline */
  .timeline-vertical {
    padding-left: var(--space-8);
  }

  .timeline-step {
    padding-left: var(--space-4);
  }

  .timeline-step::before {
    left: -22px;
  }

  .timeline-step__title {
    font-size: var(--text-base);
  }

  .timeline-step__desc {
    font-size: var(--text-xs);
  }

  /* FAQ */
  .faq-item__question {
    font-size: var(--text-base);
    padding: var(--space-3) 0;
  }

  .faq-item__answer-inner {
    font-size: var(--text-sm);
    padding-bottom: var(--space-3);
  }

  .faq-item {
    padding: var(--space-4);
  }

  .faq-item__question {
    min-height: 44px;
  }

  /* CTA Final */
  #comenzar > div:first-child {
    padding: var(--space-8) !important;
  }

  #comenzar h2 {
    font-size: var(--text-2xl) !important;
  }

  #comenzar p {
    font-size: var(--text-base) !important;
  }

  #comenzar > div:first-child > div:first-of-type {
    flex-direction: column;
    align-items: center;
  }

  #comenzar .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .site-footer {
    padding: var(--space-8) 1rem;
  }

  .site-footer__links {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }

  .site-footer__links a {
    font-size: var(--text-sm);
  }

  /* Floating CTA */
  .floating-cta {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
  }

  .floating-cta svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-10) 0.75rem;
  }

  .section-title {
    font-size: var(--text-lg);
  }

  .hero__headline {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .price-card {
    padding: var(--space-5);
  }

  .price-card__badge {
    font-size: var(--text-2xs);
    padding: var(--space-1) var(--space-3);
  }

  .hyperframe-phone {
    width: 200px;
    height: 400px;
  }

  .hyperframe-inner {
    gap: 1rem;
    padding: 0.5rem;
  }

  .hf-step {
    min-width: 100px;
    max-width: 140px;
    padding: 0.5rem;
  }

  .hf-step-num {
    font-size: 0.6rem;
  }

  .hf-step-title {
    font-size: var(--text-sm);
  }

  .hyperframe-steps {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hf-step {
    min-width: unset;
    max-width: unset;
    padding: 0.5rem;
  }

  .phone-notch {
    width: 80px;
    height: 22px;
  }

  .phone-notch::after {
    width: 8px;
    height: 8px;
  }

  .wa-msg-bubble {
    font-size: 0.6rem;
    padding: 5px 8px;
  }

  .wa-msg-time {
    font-size: 0.5rem;
  }

  .wa-input {
    padding: 6px 10px;
  }

  .wa-input-text {
    font-size: 0.65rem;
    padding: 5px 10px;
  }

  .comparison-table {
    font-size: var(--text-2xs);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-1) var(--space-2);
  }

  #comenzar > div:first-child {
    padding: var(--space-6) !important;
  }

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

  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }
}

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

/* ─── Custom Scrollbar (Webkit) ─────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS v2 — CINEMATIC MODE (taste-skill M=8)
   ═══════════════════════════════════════════════════════ */

/* ─── Hero Particles ──────────────────────────────────── */
@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
  25%       { transform: translateY(-20px) scale(1.1); opacity: 0.6; }
  50%       { transform: translateY(-10px) scale(0.9); opacity: 0.4; }
  75%       { transform: translateY(-30px) scale(1.05); opacity: 0.7; }
}

.particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* ─── GSAP Reveal Elements ────────────────────────────── */
.reveal-gsap { opacity: 1; } /* default visible; inline script hides before paint on desktop */

/* GSAP-ready: disable CSS transitions while GSAP controls animation */
.gsap-ready { transition: none !important; }

/* ─── Nav Liquid Glass ──────────────────────────────────── */
.nav-link {
  position: relative;
  overflow: hidden;
}

/* Refined hover — subtle glow instead of bg change */
.nav-link:hover {
  color: #fff;
  background: rgba(139,92,246,0.08);
}

/* Active indicator dot — pulsa suavemente */
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 6px rgba(139,92,246,0.6);
  animation: activeDot 2s ease-in-out infinite;
}

@keyframes activeDot {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateX(-50%) scale(0.8); }
}

/* WhatsApp button in nav — subtle glass integration */
.nav-whatsapp {
  position: relative;
  overflow: hidden;
}

.nav-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%);
  pointer-events: none;
}

/* Mobile menu — match liquid glass aesthetic */
.mobile-menu {
  background: rgba(8,8,20,0.70);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.05) inset,
    0 8px 40px rgba(0,0,0,0.35);
}

.mobile-menu-link:hover {
  background: rgba(139,92,246,0.08);
  color: #fff;
}

/* Nav toggle — glass hover */
.nav-toggle:hover {
  background: rgba(139,92,246,0.08);
  color: #fff;
}
.nav-pill {
  position: relative;
  overflow: hidden;
}

/* Liquid sheen — barrido sutil sobre el cristal */
.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(139,92,246,0.04) 40%,
    rgba(251,191,36,0.02) 45%,
    rgba(139,92,246,0.06) 50%,
    rgba(251,191,36,0.02) 55%,
    rgba(139,92,246,0.04) 60%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: liquidSheen 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes liquidSheen {
  0%   { background-position: 200% 0; }
  50%  { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Ensure nav content is above the sheen */
.nav-pill > * { position: relative; z-index: 1; }

/* ─── Nav Scroll State ────────────────────────────────── */
.nav-wrapper { transition: opacity 0.6s ease, visibility 0.6s ease; }
.nav-wrapper--hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.nav-wrapper--scrolled { top: 0.4rem !important; }

.nav-wrapper--scrolled .nav-pill {
  background: rgba(6,6,16,0.72) !important;
  border-color: rgba(139,92,246,0.12) !important;
  border-bottom-color: rgba(139,92,246,0.08) !important;
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.08) inset,
    0 8px 40px rgba(0,0,0,0.35),
    0 0 60px rgba(139,92,246,0.04) !important;
}

/* ─── Ambient Glow (JS-driven via --glow-x/--glow-y) ──── */
.glass-card, .bento-card, .price-card {
  position: relative;
  overflow: hidden;
}

.glass-card::before, .bento-card::before, .price-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%,-50%);
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  z-index: 0;
}

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

/* Ensure card content is above glow */
.bento-card > *, .glass-card > *, .price-card > * {
  position: relative;
  z-index: 1;
}

/* ─── Magnetic Buttons ────────────────────────────────── */
.hero__cta-primary, .hero__cta-whatsapp, .hero__cta-secondary, .btn-whatsapp {
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s ease;
  will-change: transform;
}

/* ─── Section Entrance Enhancement ────────────────────── */
.section-title { will-change: transform, opacity, filter; }

/* ─── Hyperframe Phone Enhanced Entrance ──────────────── */
.hyperframe-phone { will-change: transform, opacity; }


/* Teal accent (Capacidades) */
.grad-teal {
  color: var(--teal-400);
}

/* Subtle accent (FAQ, secondary uses) */
.grad-subtle {
  color: var(--accent-300);
}

/* ─── Rendimiento ───────────────────────────────────────────
   Las reglas de rendimiento (pausa de animaciones fuera de pantalla,
   apagado de efectos de composición en táctiles, contención de repintado)
   viven en styles/design-system.css porque el mismo problema lo tienen las
   cuatro páginas, no solo la landing. */
