/* ==========================================================================
   KPI2X3 Infografías - Design System & Modern Responsive Styles
   ========================================================================== */

:root, [data-theme="dark"] {
  /* Color Palette - Dark Theme */
  --bg-primary: #090e1a;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-surface-glass: rgba(15, 23, 42, 0.85);
  --bg-surface-card: #131d33;
  --bg-surface-hover: #1e293b;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(255, 255, 255, 0.22);
  --border-focus: #38bdf8;
  --border-brand: rgba(56, 189, 248, 0.4);

  /* Typography Colors - 100% White in Dark Mode */
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  --text-inverse: #0f172a;

  /* Brand Accents */
  --brand-cyan: #38bdf8;
  --brand-cyan-dark: #0284c7;
  --brand-indigo: #6366f1;
  --brand-indigo-light: #818cf8;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;
  
  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #6366f1 100%);
  --grad-ready: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --grad-custom: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-card-dark: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  --grad-card-custom: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 30px -5px rgba(56, 189, 248, 0.35);
  --shadow-glow-indigo: 0 0 30px -5px rgba(99, 102, 241, 0.35);

  /* Typography & Sizing */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacings */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Light Theme Variables - High Contrast & Crisp Readability
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.95);
  --bg-surface-card: #ffffff;
  --bg-surface-hover: #f1f5f9;
  
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-medium: rgba(15, 23, 42, 0.22);
  --border-focus: #0284c7;
  --border-brand: rgba(2, 132, 199, 0.5);

  /* High contrast text for light mode */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --grad-card-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-card-custom: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
  --shadow-glow-cyan: 0 0 24px -4px rgba(2, 132, 199, 0.2);
  --shadow-glow-indigo: 0 0 24px -4px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

p, span, li, h1, h2, h3, h4, h5, h6, label {
  color: inherit;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-cyan);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--brand-cyan-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: scale(1.05);
}

/* ==========================================================================
   Mobile Hamburger Menu Styling
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  z-index: 1001;
}

.mobile-menu-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

[data-theme="light"] .mobile-menu-btn {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

/* Hamburger Icon (3 lines -> X animated) */
.hamburger-box {
  width: 20px;
  height: 14px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), top 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -6px;
  left: 0;
}

.hamburger-inner::after {
  content: "";
  top: 6px;
  left: 0;
}

/* Active Morph to X */
.mobile-menu-btn.is-active .hamburger-inner {
  background-color: transparent !important;
}

.mobile-menu-btn.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--brand-cyan);
}

.mobile-menu-btn.is-active .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--brand-cyan);
}

[data-theme="light"] .mobile-menu-btn.is-active .hamburger-inner::before,
[data-theme="light"] .mobile-menu-btn.is-active .hamburger-inner::after {
  background-color: #0284c7;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f172a;
  border-bottom: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 999;
}

[data-theme="light"] .mobile-nav-drawer {
  background: #ffffff;
  border-bottom: 2px solid #0284c7;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.mobile-nav-drawer.is-open {
  max-height: 85vh;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-content {
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  background: transparent;
  border: 1px solid transparent;
}

.mobile-nav-link svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

[data-theme="light"] .mobile-nav-link svg {
  color: #0284c7;
}

.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--brand-cyan);
  transform: translateX(4px);
}

[data-theme="light"] .mobile-nav-link:hover,
[data-theme="light"] .mobile-nav-link:active,
[data-theme="light"] .mobile-nav-link.active {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .header-nav {
    display: none !important;
  }

  .desktop-only-btn {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-nav-drawer {
    display: block;
  }
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.btn-custom {
  background: var(--grad-custom);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-custom:hover {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: var(--bg-surface);
}

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

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Hero Section & Pricing Summary Cards
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3rem;
  background: radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.15) 0%, rgba(9, 14, 26, 0) 70%);
  overflow: hidden;
}

[data-theme="light"] .hero-section {
  background: radial-gradient(circle at 50% -20%, rgba(2, 132, 199, 0.1) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  color: var(--brand-cyan);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .hero-badge-pill {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--brand-cyan-dark);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title-highlight {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* Pricing Dual Cards */
.pricing-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 920px;
  margin: 2.5rem auto 1.5rem;
  text-align: left;
}

@media (max-width: 768px) {
  .pricing-overview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.price-card {
  position: relative;
  background: var(--grad-card-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  color: var(--text-primary);
}

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

.price-card.card-ready {
  border-color: rgba(56, 189, 248, 0.4);
}
.price-card.card-ready:hover {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

[data-theme="light"] .price-card.card-ready {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border: 2px solid #0284c7;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.16), 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .price-card.card-ready:hover {
  border-color: #0369a1;
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.25);
}

.price-card.card-custom {
  border-color: rgba(168, 85, 247, 0.4);
  background: var(--grad-card-custom);
}
.price-card.card-custom:hover {
  border-color: #a855f7;
  box-shadow: var(--shadow-glow-indigo);
}

[data-theme="light"] .price-card.card-custom {
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border: 2px solid #8b5cf6;
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.16), 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .price-card.card-custom:hover {
  border-color: #7c3aed;
  box-shadow: 0 16px 36px -4px rgba(139, 92, 246, 0.25);
}

.price-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.price-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .badge-cyan {
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #7dd3fc;
  font-weight: 800;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .badge-purple {
  background: #ede9fe;
  color: #581c87;
  border: 1.5px solid #c084fc;
  font-weight: 800;
}

.price-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

[data-theme="light"] .price-card-title {
  color: #0f172a;
  font-weight: 800;
}

.price-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

[data-theme="light"] .price-card-desc {
  color: #334155;
  font-weight: 500;
}

.price-amount-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

[data-theme="light"] .price-currency {
  color: #475569;
  font-weight: 700;
}

.price-value {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

[data-theme="light"] .card-custom .price-value {
  color: #6b21a8;
}

[data-theme="light"] .card-ready .price-value {
  color: #0284c7;
}

.price-card-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

[data-theme="light"] .price-card-features {
  color: #1e293b;
  font-weight: 600;
}

.price-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card-features svg {
  flex-shrink: 0;
  color: var(--brand-emerald);
}

[data-theme="light"] .card-custom .price-card-features svg {
  color: #7c3aed;
}

[data-theme="light"] .card-ready .price-card-features svg {
  color: #059669;
}

/* ==========================================================================
   Catalog Controls: Search Bar & Filter Chips
   ========================================================================== */
.catalog-section {
  padding: 3rem 0 5rem;
  flex: 1;
}

.catalog-header-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.search-and-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-cyan);
  pointer-events: none;
}

[data-theme="light"] .search-icon {
  color: var(--brand-cyan-dark);
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .search-input:focus {
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
  display: none;
}

.catalog-count-badge {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.catalog-count-number {
  color: var(--brand-cyan);
  font-weight: 800;
}

[data-theme="light"] .catalog-count-number {
  color: var(--brand-cyan-dark);
}

/* Category Filter Chips */
.category-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-filter-chips::-webkit-scrollbar {
  height: 4px;
}

.category-filter-chips::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.filter-chip {
  padding: 0.5rem 1rem;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-chip:hover {
  border-color: var(--brand-cyan);
  background: var(--bg-surface-hover);
}

.filter-chip.active {
  background: var(--brand-cyan-dark);
  color: #ffffff;
  border-color: var(--brand-cyan);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   Infographics Grid & Cards
   ========================================================================== */
.infographics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

@media (max-width: 640px) {
  .infographics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.infographic-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  color: var(--text-primary);
}

.infographic-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .infographic-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .infographic-card:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.14);
}

/* Card Preview Visual */
.card-preview-container {
  position: relative;
  width: 100%;
  padding-top: 62%;
  background: #0b132b;
  overflow: hidden;
  cursor: pointer;
}

[data-theme="light"] .card-preview-container {
  background: #f1f5f9;
}

.card-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.infographic-card:hover .card-preview-img {
  transform: scale(1.04);
}

.card-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.infographic-card:hover .card-preview-overlay {
  opacity: 1;
}

.card-preview-zoom-btn {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="light"] .card-preview-zoom-btn {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-badge-top {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

[data-theme="light"] .card-badge-top {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1.5px solid #7dd3fc;
  color: #0369a1;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.card-badge-top.badge-courtesy {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

[data-theme="light"] .card-badge-top.badge-courtesy {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.card-badge-top.badge-locked {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

[data-theme="light"] .card-badge-top.badge-locked {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.card-price-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--grad-ready);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .card-price-pill {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Card Body Content */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

[data-theme="light"] .card-category-tag {
  color: #0284c7;
  font-weight: 800;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

[data-theme="light"] .card-title {
  color: #0f172a;
  font-weight: 800;
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="light"] .card-description {
  color: #334155;
}

/* Card Actions */
.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

[data-theme="light"] .card-actions {
  border-top-color: #f1f5f9;
}

.card-actions .btn {
  flex: 1;
}

[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  font-weight: 700;
}

[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .btn-custom {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

[data-theme="light"] .btn-custom:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* ==========================================================================
   Custom Topic Request Banner ("¿No encuentras tu tema?")
   ========================================================================== */
.custom-request-callout {
  margin-top: 4.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

[data-theme="light"] .custom-request-callout {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
  border: 2px solid #8b5cf6;
  box-shadow: 0 16px 36px -6px rgba(139, 92, 246, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.custom-request-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.custom-request-text {
  max-width: 620px;
}

.custom-request-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .custom-request-pill {
  background: #ede9fe;
  border: 1.5px solid #a855f7;
  color: #581c87;
  font-weight: 800;
}

.custom-request-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

[data-theme="light"] .custom-request-title {
  color: #0f172a;
}

.custom-request-desc {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.6;
}

[data-theme="light"] .custom-request-desc {
  color: #334155;
}

[data-theme="light"] .custom-request-desc strong {
  color: #6b21a8;
  font-weight: 800;
}

.custom-request-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.custom-request-price-tag {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

[data-theme="light"] .custom-request-price-tag {
  color: #6b21a8;
  font-weight: 900;
}

.custom-request-price-label {
  font-size: 0.8125rem;
  color: #ffffff;
  font-weight: 600;
}

[data-theme="light"] .custom-request-price-label {
  color: #475569;
  font-weight: 700;
}

/* ==========================================================================
   Modals (<dialog>) Styling - Robust Mobile & Top-Layer Architecture
   ========================================================================== */
dialog {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--text-primary);
  max-width: 880px;
  width: min(94vw, 880px);
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  overflow: visible;
  outline: none;
  box-shadow: none;
}

dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

dialog::backdrop {
  background: rgba(4, 8, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: 90vh;
  max-height: 90dvh;
  background: #131f3b;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.2);
  color: var(--text-primary);
  overflow: hidden;
  pointer-events: auto;
  animation: modalPopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

[data-theme="light"] .modal-container {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25), 0 0 25px rgba(2, 132, 199, 0.15);
}

.modal-container > form,
#customTopicForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #172442;
}

[data-theme="light"] .modal-header {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

[data-theme="light"] .modal-title {
  color: #0f172a;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--brand-cyan);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .modal-close-btn:hover {
  background: #e2e8f0;
}

.modal-body {
  padding: 1.35rem 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  color: var(--text-primary);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: #172442;
  color: var(--text-primary);
  z-index: 2;
}

[data-theme="light"] .modal-footer {
  background: #f8fafc;
  border-top-color: rgba(15, 23, 42, 0.1);
}

@media (max-width: 640px) {
  dialog {
    width: 95vw;
    max-height: 90dvh;
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-container {
    max-height: 90dvh;
    max-height: 90vh;
  }

  .modal-header {
    padding: 0.9rem 1.1rem;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-body {
    padding: 1rem 1.1rem 1.75rem;
  }

  .modal-footer {
    padding: 0.85rem 1.1rem;
    flex-direction: row;
    gap: 0.5rem;
  }
}

/* Modal Content: Custom Request Notice & Footer Price */
.custom-modal-notice {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
}

.custom-modal-notice strong {
  color: #ffffff;
}

[data-theme="light"] .custom-modal-notice {
  background: #f5f3ff;
  border: 1.5px solid #c084fc;
  color: #1e1b4b;
}

[data-theme="light"] .custom-modal-notice strong {
  color: #6b21a8;
  font-weight: 800;
}

.custom-modal-footer-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.custom-modal-price-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #c084fc;
}

[data-theme="light"] .custom-modal-price-value {
  color: #6b21a8;
  font-weight: 900;
}

.custom-modal-price-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

[data-theme="light"] .custom-modal-price-sub {
  color: #475569;
  font-weight: 600;
}

/* Modal Content: Preview Layout */
.preview-modal-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Courtesy Banner for the 1st free infographic */
.preview-courtesy-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

[data-theme="light"] .preview-courtesy-banner {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #064e3b;
}

[data-theme="light"] .preview-courtesy-banner strong {
  color: #047857;
}

/* Locked Alert Banner for 2nd+ infographics */
.preview-locked-alert {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

[data-theme="light"] .preview-locked-alert {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  color: #78350f;
}

[data-theme="light"] .preview-locked-alert strong {
  color: #92400e;
}

.btn-link-unlock {
  background: none;
  border: none;
  color: var(--brand-cyan);
  text-decoration: underline;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  display: inline;
}

[data-theme="light"] .btn-link-unlock {
  color: #0284c7;
}

/* Preview Image Box & Watermark Container */
.preview-image-box {
  position: relative;
  width: 100%;
  background: #0b132b;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .preview-image-box {
  background: #f1f5f9;
}

.preview-image-box.has-watermarks {
  user-select: none;
  -webkit-user-select: none;
}

.preview-full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Subtle blur to prevent reading underlying high-res diagram when watermarked */
.preview-full-img.preview-blurred-content {
  filter: blur(5px) contrast(0.92);
  pointer-events: none;
  transform: scale(1.02);
  transition: filter var(--transition-normal);
}

@media (max-width: 640px) {
  .preview-image-box {
    max-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .preview-full-img {
    max-height: 42vh;
    object-fit: contain;
  }

  .watermark-center-shield {
    padding: 1.1rem 0.85rem;
    width: 95%;
  }

  .watermark-shield-title {
    font-size: 0.95rem;
  }

  .watermark-shield-text {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
}

/* ==========================================================================
   Watermark Patches & Security Overlay
   ========================================================================== */
.watermark-patches-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: hidden;
  pointer-events: auto;
  z-index: 10;
}

[data-theme="light"] .watermark-patches-overlay {
  background: rgba(248, 250, 252, 0.5);
}

/* Repeating diagonal logo pattern */
.watermark-pattern-bg {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  opacity: 0.16;
  transform: rotate(-24deg);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 3.5rem 4.5rem;
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .watermark-pattern-bg {
  opacity: 0.2;
}

.watermark-pattern-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.watermark-bg-logo {
  height: 30px;
  width: auto;
  filter: grayscale(100%);
}

.watermark-bg-text {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Strategic Logo Patches Grid */
.watermark-patches-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 1.25rem;
  gap: 1rem;
  pointer-events: none;
  z-index: 2;
}

.watermark-patch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  max-width: 90%;
  pointer-events: auto;
  align-self: center;
  justify-self: center;
}

[data-theme="light"] .watermark-patch {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #0284c7;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.watermark-patch img {
  height: 20px;
  width: auto;
}

.watermark-patch.pos-tl { transform: rotate(-8deg); justify-self: start; align-self: start; }
.watermark-patch.pos-tr { transform: rotate(10deg); justify-self: end; align-self: start; border-color: rgba(168, 85, 247, 0.6); }
.watermark-patch.pos-ml { transform: rotate(12deg); justify-self: start; align-self: center; }
.watermark-patch.pos-mr { transform: rotate(-12deg); justify-self: end; align-self: center; border-color: rgba(168, 85, 247, 0.6); }
.watermark-patch.pos-bl { transform: rotate(-6deg); justify-self: start; align-self: end; }
.watermark-patch.pos-br { transform: rotate(8deg); justify-self: end; align-self: end; }

[data-theme="light"] .watermark-patch.pos-tr,
[data-theme="light"] .watermark-patch.pos-mr {
  border-color: #9333ea;
}

/* Central Lock Shield Card */
.watermark-center-shield {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid var(--brand-cyan);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 5;
  pointer-events: auto;
}

[data-theme="light"] .watermark-center-shield {
  background: #ffffff;
  border: 2.5px solid #0284c7;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25), 0 0 25px rgba(2, 132, 199, 0.2);
  color: #0f172a;
}

.watermark-shield-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.watermark-shield-logo {
  height: 32px;
  width: auto;
}

.watermark-shield-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-cyan);
}

[data-theme="light"] .watermark-shield-icon {
  color: #0284c7;
}

.watermark-shield-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="light"] .watermark-shield-title {
  color: #0f172a;
}

.watermark-shield-text {
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .watermark-shield-text {
  color: #334155;
}

.watermark-shield-text strong {
  color: var(--brand-cyan);
  font-weight: 800;
}

[data-theme="light"] .watermark-shield-text strong {
  color: #0284c7;
}

.preview-resolution-badge {
  font-size: 0.8125rem;
  color: var(--brand-cyan);
  font-weight: 700;
}

[data-theme="light"] .preview-resolution-badge {
  color: var(--brand-cyan-dark);
  font-weight: 800;
}

.preview-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

[data-theme="light"] .preview-modal-title {
  color: #0f172a;
}

.preview-modal-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

[data-theme="light"] .preview-modal-desc {
  color: #334155;
}

.preview-modal-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-cyan);
}

[data-theme="light"] .preview-modal-price {
  color: #0284c7;
}

/* Modal Content: Checkout Elements */
.checkout-item-card {
  background: var(--bg-surface-elevated);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
}

[data-theme="light"] .checkout-item-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
}

.checkout-item-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

[data-theme="light"] .checkout-item-title {
  color: #0f172a;
}

.checkout-item-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
}

[data-theme="light"] .checkout-item-price {
  color: #0284c7;
}

.checkout-whatsapp-box {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
}

[data-theme="light"] .checkout-whatsapp-box {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
}

.checkout-whatsapp-desc {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .checkout-whatsapp-desc {
  color: #064e3b;
}

[data-theme="light"] .checkout-whatsapp-desc strong {
  color: #047857;
}



/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-label span.req {
  color: var(--brand-rose);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  color: var(--text-primary);
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 1rem 0 1.25rem;
  max-width: 320px;
}

.footer-title {
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

[data-theme="light"] .footer-links a:hover {
  color: var(--brand-cyan-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Empty search state */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-surface-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  margin: 2rem 0;
  color: var(--text-primary);
}

[data-theme="light"] .empty-state {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--brand-cyan);
}

[data-theme="light"] .empty-state-icon {
  color: var(--brand-cyan-dark);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

[data-theme="light"] .empty-state-title {
  color: #0f172a;
}

.empty-state-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

[data-theme="light"] .empty-state-desc {
  color: #334155;
}

[data-theme="light"] .empty-state-desc strong {
  color: #6b21a8;
  font-weight: 800;
}

/* ==========================================================================
   GEO (Generative Engine Optimization) Capsules & Answer Boxes
   ========================================================================== */
.geo-capsule {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2.5rem 0;
  position: relative;
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
}

[data-theme="light"] .geo-capsule {
  background: #f0f9ff;
  border: 1.5px solid #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.1);
}

.geo-capsule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-cyan);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.geo-direct-answer {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .geo-direct-answer {
  color: #0369a1;
}

.geo-key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.geo-fact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.geo-fact-item svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Accordion Components (<details> & Accessible Fallbacks)
   ========================================================================== */
.faq-section {
  padding: 4rem 0;
}

.faq-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.faq-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.faq-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.faq-item[open] {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .faq-item[open] {
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-summary-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-cyan);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 1rem;
}

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

.faq-content {
  padding: 0 1.5rem 1.35rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.7;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
}

[data-theme="light"] .faq-content {
  color: #334155;
}

/* ==========================================================================
   Entity & About Us Pages
   ========================================================================== */
.about-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.about-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-cyan);
}

[data-theme="light"] .about-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.15);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .about-card-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.about-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.team-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}

[data-theme="light"] .team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--grad-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-sm);
}

.team-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--brand-cyan);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .team-role {
  color: #0284c7;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Methodology 2x3 Steps */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.method-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

[data-theme="light"] .method-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.method-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-cyan);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .method-num {
  color: #0284c7;
  opacity: 0.5;
}

.method-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.method-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Article Prose & Pillar Layout Styles
   ========================================================================== */
.breadcrumbs-nav {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumbs-nav ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs-nav li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumbs-nav a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs-nav a:hover {
  color: var(--brand-cyan);
}

.article-hero {
  padding: 2.5rem 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.article-lead {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

[data-theme="light"] .article-lead {
  color: #334155;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto 5rem;
}

@media (min-width: 1100px) {
  .article-layout-with-toc {
    grid-template-columns: 260px 1fr;
    max-width: 1200px;
  }
}

.article-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.875rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

[data-theme="light"] .article-toc {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.article-toc-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-toc a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: block;
  line-height: 1.4;
}

.article-toc a:hover {
  color: var(--brand-cyan);
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body blockquote {
  border-left: 4px solid var(--brand-cyan);
  background: var(--bg-surface-elevated);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-style: italic;
}

[data-theme="light"] .article-body blockquote {
  background: #f1f5f9;
  border-left-color: #0284c7;
}

/* Stat Grid */
.stat-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-cyan);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .stat-number {
  color: #0284c7;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  font-weight: 800;
  color: var(--text-primary);
}

.comparison-table tr:hover td {
  background: var(--bg-surface-hover);
}

[data-theme="light"] .comparison-table th {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .comparison-table tr:hover td {
  background: #f8fafc;
}

/* Outbound Sources & Bibliography */
.sources-section {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
}

[data-theme="light"] .sources-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.sources-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.sources-list a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="light"] .sources-list a {
  color: #0284c7;
}

/* Hub of Articles Cards */
.article-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.article-hub-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.article-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .article-hub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.article-hub-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-hub-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-hub-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

