/* CSS Design System - Clarity Trading Intelligence */

/* Variables & Tokens */
:root {
  --color-bg: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-bg-card-hover: #F1F5F9;
  --color-primary: #1A3F6F;
  --color-primary-glow: rgba(26, 63, 111, 0.1);
  --color-secondary: #0F172A;
  --color-secondary-glow: rgba(15, 23, 42, 0.05);
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0; /* Notion style 1px border */
  --color-border-hover: #CBD5E1;
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-title: 'Outfit', var(--font-family-sans);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);

  /* Semantic Theme Variables */
  --navbar-bg: rgba(255, 255, 255, 0.8);
  --navbar-border: #E2E8F0;
  --logo-text-grad: linear-gradient(to right, #1A3F6F, #3B82F6);
  --hero-text-grad: linear-gradient(135deg, #1A3F6F 0%, #3B82F6 100%);
  --chart-fill-color: #F8FAFC;
  --grid-overlay-line: rgba(15, 23, 42, 0.03);
  --badge-bg: #FFFFFF;
  --badge-border: #E2E8F0;
  --badge-text: #0F172A;
  --phrase-bg: radial-gradient(circle at center, rgba(26, 63, 111, 0.04) 0%, transparent 60%);
  --phrase-text-grad: linear-gradient(135deg, #1A3F6F 0%, #3B82F6 100%);
  --comparative-bg: rgba(241, 245, 249, 0.6);
  --featured-comp-bg: linear-gradient(180deg, rgba(26, 63, 111, 0.04) 0%, rgba(59, 130, 246, 0.02) 100%), #FFFFFF;
  --featured-comp-border: rgba(26, 63, 111, 0.25);
  --step-card-bg: #FFFFFF;
  --step-visual-bg: #F8FAFC;
  --step-number-grad: linear-gradient(135deg, #1A3F6F 0%, #3B82F6 100%);
  --stat-number-grad: linear-gradient(135deg, #1A3F6F 0%, #3B82F6 100%);
  --mockup-bg: #FFFFFF;
  --mockup-border: #E2E8F0;
  --mockup-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 0 50px rgba(26, 63, 111, 0.03);
  --mockup-header-bg: #F8FAFC;
  --mockup-title-bg: #E2E8F0;
  --mockup-card-bg: #FFFFFF;
  --mockup-card-border: #E2E8F0;
  --mockup-chart-header: #0F172A;
  --mockup-table-border: #E2E8F0;
  --mockup-table-text: #0F172A;
  --mockup-badge-bg: #F1F5F9;
  --mockup-badge-border: #E2E8F0;
  --mockup-badge-text: #64748B;
  --mockup-chat-bg: #F8FAFC;
  --mockup-chat-msg-bg: #FFFFFF;
  --mockup-chat-msg-user-bg: rgba(26, 63, 111, 0.05);
  --mockup-chat-msg-user-border: rgba(26, 63, 111, 0.1);
  --stack-card-bg: #FFFFFF;
  --stack-card-border: #E2E8F0;
  --stack-card-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  --stack-progress-bg: #E2E8F0;
  --quote-mark-color: rgba(26, 63, 111, 0.08);
  --quote-text-color: #0F172A;
  --quote-bg: radial-gradient(circle at center, rgba(26, 63, 111, 0.03) 0%, transparent 60%);
  --switch-bg: #E2E8F0;
  --faq-item-bg: #FFFFFF;
  --footer-bg: #FFFFFF;
  --footer-border: #E2E8F0;
  --disclaimer-opacity: 0.8;
  --grid-dot-color: rgba(26, 63, 111, 0.08);
  --grid-line-color: rgba(26, 63, 111, 0.02);
}

body.dark-theme {
  --color-bg: #0A0F1E;
  --color-bg-card: #111625;
  --color-bg-card-hover: #161D2F;
  --color-primary: #3B82F6;          /* Vibrant blue in dark theme */
  --color-primary-glow: rgba(59, 130, 246, 0.25);
  --color-secondary: #8B5CF6;        /* Purple/Indigo in dark theme */
  --color-secondary-glow: rgba(139, 92, 246, 0.2);
  --color-text: #FFFFFF;
  --color-text-muted: #8E9AA8;
  --color-border: #1E293B;
  --color-border-hover: #334155;
  --navbar-bg: rgba(10, 15, 30, 0.7);
  --navbar-border: #1E293B;
  --logo-text-grad: linear-gradient(to right, #FFFFFF, #E2E8F0);
  --hero-text-grad: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  --chart-fill-color: #0A0F1E;
  --grid-overlay-line: rgba(255, 255, 255, 0.015);
  --badge-bg: rgba(255, 255, 255, 0.02);
  --badge-border: rgba(255, 255, 255, 0.05);
  --badge-text: #FFFFFF;
  --phrase-bg: radial-gradient(circle at center, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  --phrase-text-grad: linear-gradient(135deg, #FFFFFF 0%, #8E9AA8 100%);
  --comparative-bg: rgba(15, 23, 42, 0.4);
  --featured-comp-bg: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%), #111625;
  --featured-comp-border: rgba(59, 130, 246, 0.3);
  --step-card-bg: rgba(255, 255, 255, 0.02);
  --step-visual-bg: rgba(10, 15, 30, 0.4);
  --step-number-grad: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.1) 100%);
  --stat-number-grad: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
  --mockup-bg: #0B0F19;
  --mockup-border: rgba(255, 255, 255, 0.08);
  --mockup-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(59, 130, 246, 0.1);
  --mockup-header-bg: #111625;
  --mockup-title-bg: rgba(0, 0, 0, 0.2);
  --mockup-card-bg: rgba(255, 255, 255, 0.02);
  --mockup-card-border: rgba(255, 255, 255, 0.05);
  --mockup-chart-header: #FFFFFF;
  --mockup-table-border: rgba(255, 255, 255, 0.05);
  --mockup-table-text: #E2E8F0;
  --mockup-badge-bg: rgba(255, 255, 255, 0.05);
  --mockup-badge-border: rgba(255, 255, 255, 0.08);
  --mockup-badge-text: #8E9AA8;
  --mockup-chat-bg: rgba(0, 0, 0, 0.2);
  --mockup-chat-msg-bg: rgba(255, 255, 255, 0.03);
  --mockup-chat-msg-user-bg: rgba(59, 130, 246, 0.08);
  --mockup-chat-msg-user-border: rgba(59, 130, 246, 0.15);
  --stack-card-bg: rgba(17, 24, 39, 0.85);
  --stack-card-border: rgba(255, 255, 255, 0.08);
  --stack-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  --stack-progress-bg: rgba(255, 255, 255, 0.05);
  --quote-mark-color: rgba(59, 130, 246, 0.1);
  --quote-text-color: #FFFFFF;
  --quote-bg: radial-gradient(circle at center, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  --switch-bg: rgba(255, 255, 255, 0.1);
  --faq-item-bg: rgba(255, 255, 255, 0.01);
  --footer-bg: #060912;
  --footer-border: rgba(255, 255, 255, 0.05);
  --disclaimer-opacity: 0.3;
  --grid-dot-color: rgba(6, 182, 212, 0.12);
  --grid-line-color: rgba(6, 182, 212, 0.025);
}

body.dark-theme .features-section {
  --bg-principal: #111625;
  --bg-white: rgba(255, 255, 255, 0.02);
  --borde-notion: #1E293B;
  --text-main: #FFFFFF;
  --text-muted: #8E9AA8;
  --accent: #3B82F6;
  --accent-muted: rgba(59, 130, 246, 0.1);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: var(--transition-fast);
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
}

.theme-toggle-btn .sun-icon {
  display: none;
}
.theme-toggle-btn .moon-icon {
  display: block;
}

body.dark-theme .theme-toggle-btn .sun-icon {
  display: block;
}
body.dark-theme .theme-toggle-btn .moon-icon {
  display: none;
}

/* Language Selector Styling */
.lang-select {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.5rem 1.8rem 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-family-sans);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px;
}

body.dark-theme .lang-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238e9aa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-color: #0A0F1E;
}

.lang-select:hover {
  background-color: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
}

.lang-select option {
  background-color: var(--color-bg-card);
  color: var(--color-text);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #1A3F6F, #3B82F6);
  z-index: 2000;
  width: 0%;
  transition: width 0.1s ease;
}

/* Reveal Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.975rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Grid & Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-sans);
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Button sweep glow effect */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.btn:hover::after {
  left: 120%;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}


.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navbar-border);
  transition: var(--transition-smooth);
}

.navbar.navbar-scrolled {
  background: var(--navbar-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom-color: var(--navbar-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.logo-text {
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--logo-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}
.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.20));
  transition: filter 0.3s ease;
}
.logo:hover .logo-img { filter: drop-shadow(0 0 10px rgba(59,130,246,0.45)); }
html.dark .logo-img { filter: drop-shadow(0 0 10px rgba(59,130,246,0.40)) brightness(1.08); }
html.dark .logo:hover .logo-img { filter: drop-shadow(0 0 16px rgba(59,130,246,0.65)) brightness(1.12); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* SECCIÓN 1 — HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero-bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.03; /* clean subtle glow */
  animation: float-glows 20s infinite alternate ease-in-out;
}

.glow-blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -10%;
  left: 10%;
}

.glow-purple {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  bottom: 10%;
  right: 15%;
  animation-delay: -5s;
}

@keyframes float-glows {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(80px, 50px) scale(1.15);
  }
}

.hero-grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  opacity: 0.45;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
}

/* 3D perspective grid lines */
.hero-grid-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, var(--grid-overlay-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-overlay-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
}

.trading-chart-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animated-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-chart 4s forwards cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

@keyframes draw-chart {
  to {
    stroke-dashoffset: 0;
  }
}


.hero-container {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-container {
  margin-bottom: 1.5rem;
}

.hero-badge {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  max-width: 900px;
  color: var(--color-text);
}

/* Letter-by-letter animation utilities */
.hero-title .word {
  display: inline-block;
  white-space: nowrap;
}

.hero-title .word.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: initial;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-intro 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
}

.hero-title .word.gradient-text .char {
  background: var(--hero-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes char-intro {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 750px;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

.arrow-icon {
  transition: transform 0.2s ease;
}

.btn-secondary:hover .arrow-icon {
  transform: translateX(4px);
}

/* SECCIÓN 1.5 — PLATAFORMAS COMPATIBLES */
.compatibility-section {
  position: relative;
  z-index: 4;
  background-color: var(--navbar-bg);
  border-top: 1px solid var(--navbar-border);
  border-bottom: 1px solid var(--navbar-border);
  padding: 3rem 0;
  text-align: center;
}

.compatibility-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  font-weight: 600;
}

.platforms-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.platform-badge:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.platform-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.platform-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.platform-badge:hover .platform-logo {
  opacity: 1;
}

.platform-info {
  text-align: left;
}

.platform-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--badge-text);
}

.platform-status {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

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

/* SECCIÓN 2 — FRASE CENTRAL DESTACADA */
.highlight-phrase-section {
  padding: 8rem 0;
  text-align: center;
  background: var(--phrase-bg);
}

.phrase-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.phrase-text {
  font-size: 2.75rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--phrase-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SUB-TABS INTERACTIVOS - SECCIÓN FEATURES */
.features-section {
  --bg-principal: #F8FAFC;
  --bg-white: #FFFFFF;
  --accent: #1A3F6F;
  --accent-muted: rgba(26, 63, 111, 0.1);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --borde-notion: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  padding: 8rem 0;
  position: relative;
  background-color: var(--bg-principal);
  color: var(--text-main);
  border-top: 1px solid var(--borde-notion);
  border-bottom: 1px solid var(--borde-notion);
}

.features-section .section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 38px;
  margin: 10px 0 0;
  color: var(--text-main);
}

.features-section .section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 15px auto 0;
}

.features-section .section-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* BENTO GRID INTERACTIVE CATEGORIES SYSTEM */
/* HORIZONTAL SLIDER SYSTEM (Apple Style) */
.slider-outer-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: visible;
  margin-top: 3rem;
}

.slider-wrapper {
  display: flex;
  align-items: stretch; /* Stretch cards to have the exact same height */
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2.5rem;
  padding-top: 0.5rem;
  scroll-behavior: auto; /* Avoid conflicts with JS smooth scroll animations */
  /* Align first card with the main container grid limit */
  padding-left: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
  
  /* Hide scrollbar */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.slider-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Grabbing cursor during drag */
.slider-wrapper.grabbing {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none; /* Disable snap while dragging */
}

.slider-card {
  background: var(--bg-white);
  border: 1px solid var(--borde-notion);
  border-radius: 24px;
  padding: 2.5rem;
  width: 460px;
  flex-shrink: 0;
  scroll-snap-align: start;
  /* Easing custom transitions for brutal animations */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: flex-start;
  box-sizing: border-box;
  
  /* Focus custom variables, initialized in CSS, updated in JS */
  transform: scale(var(--card-scale, 0.96)) translateY(var(--card-translate-y, 0px));
  opacity: var(--card-opacity, 0.75);
}

body.dark-theme .slider-card {
  background: rgba(17, 24, 39, 0.45);
  border-color: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Focused active card glow styling */
.slider-card.focused-card {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.08);
}

body.dark-theme .slider-card.focused-card {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.06);
}

.slider-card:hover {
  --card-translate-y: -8px;
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 12px 30px var(--color-primary-glow);
}

body.dark-theme .slider-card:hover {
  box-shadow: var(--shadow-md), 0 12px 30px rgba(6, 182, 212, 0.05);
}

/* Wide card configuration (Calculator, IA, and Psychology) */
.slider-card.wide-card {
  width: 948px; /* 460px * 2 + 28px gap */
  flex-direction: row;
  gap: 2rem;
}

.slider-card.wide-card .card-left-col,
.slider-card.wide-card .card-right-col {
  width: 50%;
  flex: 1;
  margin-top: 0;
}

.slider-card.wide-card .card-right-col {
  border-top: none;
  border-left: 1px solid var(--borde-notion);
  padding-top: 0;
  padding-left: 2rem;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

body.dark-theme .slider-card.wide-card .card-right-col {
  border-left-color: rgba(30, 41, 59, 0.85);
}

/* Header layout for card */
.card-header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-box {
  width: 44px;
  height: 44px;
  background: var(--accent-muted);
  border: 1px solid rgba(26, 63, 111, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition);
  flex-shrink: 0;
}

body.dark-theme .icon-box {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
}

.slider-card:hover .icon-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.card-sys-code {
  font-family: monospace;
  font-size: 10px;
  color: var(--accent);
  opacity: 0.55;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}

.slider-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.015em;
}

.slider-card .card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Sub-modules for card description list items */
.sub-modules-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-module {
  background: transparent;
  border: none;
  border-left: 2px solid var(--accent-muted);
  border-radius: 0;
  padding: 0 0 0 14px;
  margin: 0;
  transition: var(--transition);
}

.sub-module:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: none;
}

.sub-module h4 {
  margin: 0 0 4px 0;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
}

.sub-module p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Nav Controls styling inside header */
.features-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.slider-nav-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 5px;
}

.slider-nav-btn {
  background: var(--bg-white);
  border: 1px solid var(--borde-notion);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-sm);
}

body.dark-theme .slider-nav-btn {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(30, 41, 59, 0.8);
}

.slider-nav-btn:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  color: var(--accent);
  transform: scale(1.05);
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

/* Visual Bento Widgets */
.bento-widget-card {
  margin-top: auto;
  background: rgba(26, 63, 111, 0.03);
  border: 1px solid rgba(26, 63, 111, 0.06);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

body.dark-theme .bento-widget-card {
  background: rgba(30, 41, 59, 0.25);
  border-color: rgba(59, 130, 246, 0.1);
}

/* Drawdown Shield Widget */
.drawdown-widget .widget-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-bg {
  stroke: rgba(26, 63, 111, 0.08);
}

body.dark-theme .progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.progress-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.35s;
}

.progress-value {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.widget-logs {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  font-size: 12px;
  color: var(--text-muted);
}

.log-lbl {
  font-weight: 500;
}

.log-val {
  font-weight: 600;
  color: var(--text-main);
}

.text-green {
  color: #10B981 !important;
}

/* Connection Status Widget */
.status-indicator-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.sync-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot-green-bento 2s infinite;
}

@keyframes pulse-dot-green-bento {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-label-txt {
  font-size: 12px;
  color: var(--text-muted);
}

/* Copy Trading Widget */
.copy-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.copy-acc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.acc-name {
  color: var(--text-main);
  font-weight: 500;
}

.acc-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.acc-status.master {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.acc-status.slave-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

/* Alerts Center Widget */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.alert-log-item {
  display: flex;
  gap: 10px;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
}

.alert-log-item.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 2px solid #f59e0b;
}

body.dark-theme .alert-log-item.warning {
  background: rgba(245, 158, 11, 0.15);
}

.alert-log-item.info {
  background: rgba(59, 130, 246, 0.08);
  border-left: 2px solid #3b82f6;
}

body.dark-theme .alert-log-item.info {
  background: rgba(59, 130, 246, 0.15);
}

.alert-time {
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.alert-msg {
  color: var(--text-muted);
}

/* AI Chat Widget */
.mini-chat-bubble {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-message {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg-white);
  padding: 8px 12px;
  border-radius: 4px 12px 12px 12px;
  border: 1px solid var(--borde-notion);
}

body.dark-theme .mini-message {
  background: rgba(17, 24, 39, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pulse-dot-ia {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot-blue-bento 2s infinite;
}

@keyframes pulse-dot-blue-bento {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.ai-status-txt {
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Stats Summary Widget */
.stats-mini-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.stat-mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.stat-mini-row .lbl {
  color: var(--text-muted);
}

.stat-mini-row .val {
  color: var(--text-main);
  font-weight: 600;
}

/* Health Score Widget */
.health-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  gap: 4px;
}

.health-num {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #10B981;
}

.health-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Economic Calendar Widget */
.calendar-events-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.cal-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.cal-time {
  font-weight: bold;
  color: var(--text-main);
}

.cal-currency {
  background: rgba(26, 63, 111, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
  color: var(--accent);
}

body.dark-theme .cal-currency {
  background: rgba(255, 255, 255, 0.08);
}

.cal-name {
  color: var(--text-muted);
  flex-grow: 1;
}

.cal-impact.high {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Prop Firm Progress Widget */
.prop-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.prop-progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prop-progress-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.prop-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

body.dark-theme .prop-progress-bar {
  background: rgba(255, 255, 255, 0.05);
}

.prop-progress-fill {
  height: 100%;
  background: #10B981;
}

.prop-progress-fill.alert {
  background: #ef4444;
}

.prop-progress-val {
  font-size: 10px;
  font-weight: bold;
  text-align: right;
  color: var(--text-main);
}

/* Psychology Emotional Bars Widget */
.emotions-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.emotion-bar-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emotion-bar-lbl {
  font-size: 11px;
  color: var(--text-main);
  font-weight: 500;
}

.emotion-bar-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

body.dark-theme .emotion-bar-track {
  background: rgba(255, 255, 255, 0.05);
}

.emotion-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.emotion-bar-fill.calm {
  background: #10B981;
}

.emotion-bar-fill.focus {
  background: var(--accent);
}

.emotion-bar-fill.greed {
  background: #ef4444;
}

/* Quick Manual Register Speed Widget */
.speed-time-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  gap: 4px;
}

.speed-number {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.speed-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* Economic & Sentiment News Widget */
.news-stream-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-dot.bearish {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

.news-sentiment.bearish {
  font-size: 9px;
  font-weight: bold;
  color: #ef4444;
}

.news-title {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-main);
}

/* Custom Themes Preview Widget */
.theme-bubbles-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

.theme-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}

.theme-bubble:hover {
  transform: scale(1.15);
}

.theme-bubble.active {
  border-color: var(--text-main);
}

.theme-bubble.slate { background: #3b82f6; }
.theme-bubble.emerald { background: #10b981; }
.theme-bubble.ocean { background: #0f766e; }
.theme-bubble.amber { background: #f59e0b; }
.theme-bubble.rose { background: #ec4899; }
.theme-bubble.obsidian { background: #1e293b; }

/* Visual Leverage Widget (inside Calculator Card) */
.visual-leverage-widget {
  background: rgba(26, 63, 111, 0.03);
  border: 1px solid rgba(26, 63, 111, 0.06);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}

body.dark-theme .visual-leverage-widget {
  background: rgba(30, 41, 59, 0.25);
  border-color: rgba(59, 130, 246, 0.1);
}

.leverage-bar-container {
  margin-bottom: 8px;
}

.leverage-bar-container:last-child {
  margin-bottom: 0;
}

.leverage-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.leverage-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

body.dark-theme .leverage-progress-bar {
  background: rgba(255, 255, 255, 0.05);
}

.leverage-fill {
  height: 100%;
  border-radius: 3px;
}

.leverage-fill.green {
  background: #10B981;
}

.leverage-fill.blue {
  background: var(--accent);
}

/* Pre-Trade Checklist Widget */
.checklist-widget {
  margin-top: auto;
  background: rgba(26, 63, 111, 0.03);
  border: 1px solid rgba(26, 63, 111, 0.06);
  border-radius: 16px;
  padding: 16px;
}

body.dark-theme .checklist-widget {
  background: rgba(30, 41, 59, 0.25);
  border-color: rgba(59, 130, 246, 0.1);
}

.checklist-items-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.chk-item-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.chk-icon-mini {
  color: #10B981;
  font-weight: bold;
}

.chk-txt-mini {
  color: var(--text-main);
}

/* Economic Curve Widget */
.recap-sparkline {
  margin-top: 10px;
  width: 100%;
}

/* Responsiveness overrides for Slider system */
@media (max-width: 1024px) {
  .slider-wrapper {
    gap: 24px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
  .slider-card {
    width: 85vw;
    padding: 1.75rem;
    gap: 1rem;
    transform: none !important;
    opacity: 1 !important;
  }
  .slider-card.wide-card {
    width: 85vw !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
  .slider-card.wide-card .card-left-col,
  .slider-card.wide-card .card-right-col {
    width: 100% !important;
    margin-top: 0 !important;
  }
  .slider-card.wide-card .card-right-col {
    border-left: none !important;
    border-top: 1px solid var(--borde-notion) !important;
    padding-left: 0 !important;
    padding-top: 1.25rem !important;
    margin-top: auto !important;
  }
  body.dark-theme .slider-card.wide-card .card-right-col {
    border-top-color: rgba(30, 41, 59, 0.85) !important;
  }
  .slider-wrapper {
    gap: 20px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .features-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .slider-nav-controls {
    display: none; /* Ocultar flechas en pantallas tactiles */
  }
}

/* CALCULADORA INTERACTIVA RE-ESTILIZADA */
.calc-container-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.calc-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-field input, .calc-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--borde-notion);
  border-radius: 8px;
  font-size: 13px;
  box-sizing: border-box;
  background: var(--bg-white);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

body.dark-theme .calc-field input, body.dark-theme .calc-field select {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(30, 41, 59, 0.8);
}

.calc-field input:focus, .calc-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.calc-results-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.calc-results-panel {
  background: var(--accent-muted);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  box-sizing: border-box;
}

body.dark-theme .calc-results-panel {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.res-box span {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.res-box strong {
  font-size: 20px;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

/* MICRO WIDGETS CSS DE ALTA FIDELIDAD */
.bento-widget-card {
  background: var(--bg-principal);
  border: 1px solid var(--borde-notion);
  border-radius: 14px;
  padding: 1.15rem;
  font-family: var(--font-family-sans);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
  margin-top: auto;
  transition: var(--transition);
}

body.dark-theme .bento-widget-card {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bento-widget-card:hover {
  border-color: var(--accent);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.widget-tag {
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
  opacity: 0.85;
}

/* Widget 1: Escudo de Drawdown */
.drawdown-widget {
  border-left: 3px solid #EF4444;
}

.drawdown-widget .widget-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-bg {
  stroke: var(--borde-notion);
}

.progress-ring-fill {
  stroke: #EF4444;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.35s;
}

.progress-value {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-family-title);
  color: var(--text-main);
}

.widget-logs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: monospace;
  font-size: 0.75rem;
}

.log-line {
  display: flex;
  gap: 0.5rem;
}

.log-lbl {
  color: var(--text-muted);
}

.log-val {
  color: var(--text-main);
  font-weight: 600;
}

.text-green { color: #10B981; }
.text-red { color: #EF4444; }

/* Widget 2: Chat de IA */
.ai-chat-widget {
  border-left: 3px solid var(--accent);
}

.mini-chat-bubble {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-white);
  border: 1px solid var(--borde-notion);
  padding: 0.75rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-main);
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #3B82F6);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pulse-dot-ia {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse-dot-glow-ia 1.5s infinite alternate;
}

@keyframes pulse-dot-glow-ia {
  0% { opacity: 0.4; }
  100% { opacity: 1; filter: drop-shadow(0 0 4px var(--accent)); }
}

.ai-status-txt {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Widget 3: Apalancamiento Visual */
.visual-leverage-widget {
  border-left: 3px solid #10B981;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leverage-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.leverage-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.leverage-progress-bar {
  background: var(--borde-notion);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.leverage-fill {
  height: 100%;
  border-radius: 3px;
}

.leverage-fill.green { background: #10B981; }
.leverage-fill.blue { background: #3B82F6; }

/* Widget 4: Calendario Económico */
.calendar-widget {
  border-left: 3px solid #F59E0B;
}

.calendar-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cal-event-item {
  display: grid;
  grid-template-columns: 50px 40px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--borde-notion);
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-main);
}

.cal-event-item:last-child {
  border-bottom: none;
}

.cal-time {
  color: var(--text-muted);
}

.cal-currency {
  font-weight: 700;
}

.cal-name {
  font-family: var(--font-family-sans);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-impact {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.cal-impact.high { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.cal-impact.mid { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.cal-impact.low { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }

/* Widget 5: Terminal de Noticias */
.news-widget {
  border-left: 3px solid #8B5CF6;
}

.news-stream-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--borde-notion);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.news-dot.bearish { background: #EF4444; box-shadow: 0 0 6px #EF4444; }
.news-dot.bullish { background: #10B981; box-shadow: 0 0 6px #10B981; }

.news-sentiment {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
}

.news-sentiment.bearish { color: #EF4444; }
.news-sentiment.bullish { color: #10B981; }

.news-title {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-main);
}

/* Widget 6: Psicología & Checks Dashboard */
.psycho-results-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.psycho-widget {
  border-left: 3px solid #10B981;
}

.emotions-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.emotion-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.emotion-bar-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.emotion-bar-track {
  background: var(--borde-notion);
  height: 5px;
  border-radius: 2.5px;
  overflow: hidden;
}

.emotion-bar-fill {
  height: 100%;
  border-radius: 2.5px;
}

.emotion-bar-fill.calm { background: #10B981; }
.emotion-bar-fill.focus { background: #3B82F6; }
.emotion-bar-fill.greed { background: #EF4444; }

.checklist-widget {
  border-left: 3px solid #3B82F6;
}

.checklist-items-mini {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chk-item-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-main);
}

.chk-icon-mini {
  color: #10B981;
  font-weight: bold;
}

.chk-txt-mini {
  line-height: 1.3;
}

/* Widget 7: Progreso de Fondeo (Cuentas Fondeo) */
.prop-widget {
  border-left: 3px solid #3B82F6;
}

.prop-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prop-progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prop-progress-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.prop-progress-bar {
  background: var(--borde-notion);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

body.dark-theme .prop-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

.prop-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10B981, #34D399); /* Green for completed/positive */
}

.prop-progress-fill.alert {
  background: linear-gradient(90deg, #EF4444, #F87171); /* Red for alert/drawdown */
}

.prop-progress-val {
  font-size: 0.7rem;
  color: var(--text-main);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Widget 8: Copy Trading integrado */
.copy-widget {
  border-left: 3px solid #06B6D4;
}

.copy-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copy-acc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--borde-notion);
}

.copy-acc-item:last-child {
  border-bottom: none;
}

.acc-name {
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
}

.acc-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.acc-status.master {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.acc-status.slave-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

@media (max-width: 768px) {
  .bento-card.span-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.detail-drawer .feature-card h3 {
  color: #0A0F1E;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.detail-drawer .feature-card p {
  color: #475569;
  font-size: 0.9rem;
}

.detail-drawer .feature-card .card-icon-wrapper {
  background: rgba(26, 63, 111, 0.05);
  border-color: rgba(26, 63, 111, 0.1);
  color: #1A3F6F;
}

/* Featured cards within drawer (no neons) */
.detail-drawer .featured-risk-card, 
.detail-drawer .featured-ai-card {
  border-color: #E2E8F0;
}

.detail-drawer .featured-risk-card:hover, 
.detail-drawer .featured-ai-card:hover {
  border-color: #1A3F6F;
}

.detail-drawer .card-glow-bg {
  display: none; /* remove glows */
}

/* Interactive Calculator Style (Light Theme) */
.detail-drawer .calc-card {
  background: #F8FAFC;
}

.detail-drawer .interactive-calc {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}

.detail-drawer .calc-field input, 
.detail-drawer .calc-field select {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #0A0F1E;
}

.detail-drawer .calc-field input:focus, 
.detail-drawer .calc-field select:focus {
  border-color: #1A3F6F;
  box-shadow: 0 0 8px rgba(26, 63, 111, 0.15);
}

.detail-drawer .calc-result {
  border-top: 1px solid #E2E8F0;
}

.detail-drawer .result-value {
  color: #1A3F6F;
  text-shadow: none;
}

/* Responsive Overrides for Bento Grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bento-grid, .sub-modules-grid, .calc-container-layout {
    grid-template-columns: 1fr;
  }
  .calc-container-layout {
    grid-column: span 1;
  }
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(59, 130, 246, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  background-color: var(--color-bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card-icon-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.feature-card:hover .card-icon-wrapper {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #FFFFFF;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

/* Featured glow cards styling */
.featured-risk-card, .featured-ai-card {
  grid-column: span 2;
  border-color: rgba(59, 130, 246, 0.15);
}

.card-glow-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  pointer-events: none;
  top: -150px;
  right: -150px;
}

.featured-risk-card .card-glow-bg {
  background: var(--color-primary);
}

.featured-ai-card .card-glow-bg {
  background: var(--color-secondary);
}

.featured-risk-card:hover, .featured-ai-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

/* Card 9 - Interactive Calculator */
.calc-card {
  display: flex;
  flex-direction: column;
}

/* Bento Grid col-span helpers */
@media (min-width: 1025px) {
  .col-span-2 {
    grid-column: span 2 !important;
  }
  .col-span-1 {
    grid-column: span 1 !important;
  }
}


.calc-desc-text {
  margin-bottom: 1.5rem;
}

.interactive-calc {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.calc-field input, .calc-field select {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-family-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.calc-field input:focus, .calc-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.calc-result {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
  gap: 1.5rem;
}

.result-box {
  flex: 1;
}

.result-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.result-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-family-title);
  color: var(--color-primary);
  text-shadow: none;
}

/* SECCIÓN 4 — DIFERENCIADORES VS COMPETENCIA */
.comparative-section {
  padding: 8rem 0;
  background-color: var(--comparative-bg);
  position: relative;
}

.comparative-table-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.comp-col {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.comp-col:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.comp-header {
  padding: 2.25rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.01);
}

.comp-header h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.price-indicator {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.comp-body {
  padding: 2.25rem;
  flex-grow: 1;
}

.comp-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comp-body li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.925rem;
  align-items: flex-start;
  line-height: 1.4;
}

.comp-body li.negative {
  color: var(--color-text-muted);
}

.comp-body li.positive {
  color: var(--color-text);
}

.comp-body li .icon {
  font-weight: bold;
  font-size: 0.9rem;
}

.comp-body li.negative .icon {
  color: #EF4444;
}

.comp-body li.positive .icon {
  color: #10B981;
}

/* Featured Column */
.featured-comp {
  border-color: var(--featured-comp-border);
  background: var(--featured-comp-bg);
  position: relative;
  box-shadow: 0 10px 30px rgba(26, 63, 111, 0.05);
}

.featured-comp:hover {
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(26, 63, 111, 0.1);
}

.badge-featured-pro {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

/* SECCIÓN 5 — CÓMO FUNCIONA */
.how-it-works-section {
  padding: 8rem 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--step-card-bg);
  border: 1px solid var(--color-border);
  padding: 3rem 2.25rem;
  border-radius: 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--color-border-hover);
  background: var(--step-card-bg);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 3.5rem;
  font-family: var(--font-family-title);
  font-weight: 800;
  background: var(--step-number-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.step-visual {
  margin-top: 2rem;
  background: var(--step-visual-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-svg rect {
  fill: #FFFFFF;
}

/* Step Animations */
.pulse-dot {
  animation: pulse-dot-glow 2s infinite alternate;
}

@keyframes pulse-dot-glow {
  0% {
    r: 5;
    fill-opacity: 0.8;
  }
  100% {
    r: 8;
    fill-opacity: 1;
    filter: drop-shadow(0 0 8px #3B82F6);
  }
}

/* SECCIÓN 6 — ESTADÍSTICAS */
.stats-section {
  background: linear-gradient(to right, rgba(26, 63, 111, 0.03), rgba(59, 130, 246, 0.03));
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-number {
  font-family: var(--font-family-title);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--stat-number-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

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

/* SECCIÓN 7 — PREVIEW DEL DASHBOARD */
.dashboard-preview-section {
  padding: 8rem 0;
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  background: var(--switch-bg);
  border: 1px solid var(--color-border);
  padding: 0.4rem;
  border-radius: 9999px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  font-family: var(--font-family-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

/* Mockup Design (Apple Style) */
.mockup-wrapper {
  background: var(--mockup-bg);
  border: 1px solid var(--mockup-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--mockup-shadow);
  max-width: 1050px;
  margin: 0 auto;
}

.mockup-header {
  background: var(--mockup-header-bg);
  border-bottom: 1px solid var(--mockup-border);
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  justify-content: space-between;
}

.mockup-dots {
  display: flex;
  gap: 0.5rem;
  width: 80px;
}

.mockup-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots .red { background: #FF5F56; }
.mockup-dots .yellow { background: #FFBD2E; }
.mockup-dots .green { background: #27C93F; }

.mockup-title {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-family: var(--font-family-sans);
  background: var(--mockup-title-bg);
  padding: 0.25rem 3rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.mockup-sync-status {
  font-size: 0.7rem;
  color: #10B981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
}

.sync-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
  animation: pulse-dot-glow 1.5s infinite alternate;
}

.mockup-content {
  padding: 2rem;
  min-height: 400px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fade-in-up 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard General Styling */
.db-grid-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--mockup-card-bg);
  border: 1px solid var(--mockup-card-border);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.card-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-title);
  color: var(--color-text);
}

.card-change {
  font-size: 0.75rem;
  font-weight: 500;
}

.card-change.positive { color: #10B981; }
.card-limit { font-size: 0.75rem; color: #EF4444; }
.text-glow-green {
  color: #10B981;
}

.db-chart-section {
  background: var(--mockup-card-bg);
  border: 1px solid var(--mockup-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-header h4 {
  font-size: 1rem;
  color: var(--color-text);
}

.chart-legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-color.blue { background-color: #3b82f6; }
.dot-color.purple { background-color: #8b5cf6; }

.chart-visual-simulation {
  padding: 1rem 0;
}

/* Dashboard Trades Table styling */
.table-container {
  overflow-x: auto;
}

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

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

.trades-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.trades-table td {
  color: var(--mockup-table-text);
}

.text-green { color: #10B981; }
.text-red { color: #EF4444; }
.text-glow {
  text-shadow: none;
}
.font-bold { font-weight: 600; }

.badge-setup {
  background: var(--mockup-badge-bg);
  border: 1px solid var(--mockup-badge-border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--mockup-badge-text);
}

/* Dashboard AI Assistant tab styles */
.ia-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.ia-chat {
  background: var(--mockup-chat-bg);
  border: 1px solid var(--mockup-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-message {
  display: flex;
  gap: 1rem;
}

.chat-message .avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.chat-message .user-avatar {
  background: #4B5563;
}

.chat-message .message-content {
  background: var(--mockup-chat-msg-bg);
  border: 1px solid var(--mockup-card-border);
  padding: 0.85rem 1.1rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-message.user .message-content {
  border-radius: 12px 0 12px 12px;
  background: var(--mockup-chat-msg-user-bg);
  border-color: var(--mockup-chat-msg-user-border);
  color: var(--color-text);
}

.ia-insights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ia-insights h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.insight-item {
  background: var(--mockup-card-bg);
  border: 1px solid var(--mockup-card-border);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  box-shadow: var(--shadow-sm);
}

.insight-item.green-border {
  border-left-color: #10B981;
}

.insight-item.red-border {
  border-left-color: #EF4444;
}

.insight-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.insight-item.green-border .insight-label { color: #10B981; }
.insight-item.red-border .insight-label { color: #EF4444; }

.insight-item p {
  font-size: 0.825rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* SECCIÓN 8 — PARA QUIÉN ES CLARITY */
.audience-section {
  padding: 8rem 0;
  position: relative;
}

.audience-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.text-left {
  text-align: left;
  margin-left: 0;
}

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.audience-list li {
  display: flex;
  gap: 1rem;
  font-size: 1.05rem;
  align-items: flex-start;
  color: var(--color-text);
}

.audience-list li span {
  line-height: 1.4;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.audience-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-stack {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 300px;
}

.stack-card {
  position: absolute;
  width: 90%;
  background: var(--stack-card-bg);
  border: 1px solid var(--stack-card-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--stack-card-shadow);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.stack-card .tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.stack-card h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card-top {
  top: 0;
  left: 0;
  z-index: 3;
}

.card-mid {
  top: 70px;
  left: 30px;
  z-index: 2;
  border-color: var(--color-border);
}

.card-top:hover {
  transform: translate(-10px, -10px) scale(1.02);
  z-index: 4;
}

.card-mid:hover {
  transform: translate(10px, -10px) scale(1.02);
  z-index: 4;
}

.progress-bar-container {
  background: var(--stack-progress-bg);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  background: linear-gradient(to right, var(--color-primary), #3B82F6);
  height: 100%;
}

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

.emotions-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 500;
}

.badge.happy { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.badge.neutral { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.badge.alert { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

/* SECCIÓN 9 — QUOTE ESTOICA DESTACADA */
.stoic-quote-section {
  padding: 10rem 0;
  background: var(--quote-bg);
  text-align: center;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.quote-mark {
  font-family: var(--font-family-title);
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--quote-mark-color);
  display: block;
  height: 50px;
  margin-bottom: -1rem;
}

.quote-body {
  font-family: var(--font-family-title);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--quote-text-color);
  line-height: 1.4;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.quote-author {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* SECCIÓN 10 — PRICING */
.pricing-section {
  padding: 8rem 0;
}

.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.toggle-label.active {
  color: var(--color-text);
}

.toggle-switch-btn {
  width: 50px;
  height: 28px;
  background: var(--switch-bg);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.toggle-switch-btn::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  top: 3px;
  left: 4px;
  transition: var(--transition-smooth);
}

.toggle-switch-btn.active::before {
  left: 24px;
  background: var(--color-primary);
}

.discount-badge {
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 4rem;
  align-items: stretch; /* Esto obliga a que todas las tarjetas tengan la misma altura vertical */
}

.price-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  transition: var(--transition-smooth);
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.plan-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: auto;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.card-plan-header {
  margin-bottom: 2rem;
}

.card-plan-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.plan-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.price-value-container {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-family-title);
}

.price-num {
  font-family: var(--font-family-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.plan-features {
  margin-bottom: 3rem;
  flex-grow: 1;
}

.plan-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-features li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text);
  align-items: center;
}

.plan-features .bullet {
  color: var(--color-primary);
  font-weight: bold;
}

/* Featured Price Card styling */
.featured-pricing-card {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), 0 20px 40px rgba(26, 63, 111, 0.08) !important;
  transform: translateY(-4px);
}

body.dark-theme .featured-pricing-card {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.featured-pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.3), 0 20px 40px rgba(26, 63, 111, 0.12) !important;
}

/* Standalone Lifetime Deal Banner */
.lifetime-deal-standalone {
  position: relative;
  background: var(--featured-comp-bg);
  border: 1px solid var(--color-secondary);
  border-radius: 24px;
  padding: 40px;
  margin-top: 3.5rem;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15), 0 20px 40px rgba(26, 63, 111, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

body.dark-theme .lifetime-deal-standalone {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lifetime-deal-standalone:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.22), 0 20px 40px rgba(26, 63, 111, 0.12);
  transition: var(--transition-smooth);
}

.lifetime-deal-standalone .lifetime-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

body.dark-theme .lifetime-deal-standalone .lifetime-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
}

.lifetime-deal-standalone .lifetime-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.lifetime-deal-standalone .lifetime-info {
  flex: 1;
  text-align: left;
}

.lifetime-deal-standalone .lifetime-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15);
}

.lifetime-limit-badge {
  --limit-badge-bg: rgba(239, 68, 68, 0.08);
  --limit-badge-border: rgba(239, 68, 68, 0.3);
  --limit-badge-shadow: rgba(239, 68, 68, 0.15);
  
  --limit-badge-bg-active: rgba(239, 68, 68, 0.15);
  --limit-badge-border-active: rgba(239, 68, 68, 0.8);
  --limit-badge-shadow-active: rgba(239, 68, 68, 0.4);

  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--limit-badge-bg);
  color: #ef4444;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--limit-badge-border);
  box-shadow: 0 0 12px var(--limit-badge-shadow);
  animation: badge-glow-pulse 1.5s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-2px);
}

body.dark-theme .lifetime-limit-badge {
  --limit-badge-bg: rgba(239, 68, 68, 0.15);
  --limit-badge-border: rgba(239, 68, 68, 0.4);
  --limit-badge-shadow: rgba(239, 68, 68, 0.2);
  
  --limit-badge-bg-active: rgba(239, 68, 68, 0.25);
  --limit-badge-border-active: rgba(239, 68, 68, 1);
  --limit-badge-shadow-active: rgba(239, 68, 68, 0.6);
}

.pulse-dot-red {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444, 0 0 4px #ef4444;
  animation: pulse-red-badge 1.5s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-red-badge {
  0% { transform: scale(0.85); opacity: 0.8; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px rgba(239, 68, 68, 0.9), 0 0 6px rgba(239, 68, 68, 0.8); }
}

@keyframes badge-glow-pulse {
  0% {
    box-shadow: 0 0 12px var(--limit-badge-shadow);
    border-color: var(--limit-badge-border);
    background: var(--limit-badge-bg);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 0 22px var(--limit-badge-shadow-active);
    border-color: var(--limit-badge-border-active);
    background: var(--limit-badge-bg-active);
    transform: translateY(-4px);
  }
}

.lifetime-deal-standalone .lifetime-title {
  font-family: var(--font-family-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.lifetime-deal-standalone .lifetime-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 750px;
}

.lifetime-deal-standalone .lifetime-action-box {
  width: 300px;
  flex-shrink: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  gap: 15px;
}

.lifetime-deal-standalone .lifetime-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lifetime-deal-standalone .lifetime-price {
  font-family: var(--font-family-title);
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lifetime-deal-standalone .lifetime-price-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

@media (max-width: 991px) {
  .lifetime-deal-standalone {
    padding: 30px;
  }
  .lifetime-deal-standalone .lifetime-content {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .lifetime-deal-standalone .lifetime-info {
    text-align: center;
  }
  .lifetime-deal-standalone .lifetime-description {
    margin-left: auto;
    margin-right: auto;
  }
  .lifetime-deal-standalone .lifetime-action-box {
    width: 100%;
    box-sizing: border-box;
  }
}

.featured-card-border-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(26, 63, 111, 0.15);
}

/* Lifetime Deal Banner Styling */
.lifetime-deal-banner {
  position: relative;
  background: var(--featured-comp-bg);
  border: 1px solid var(--featured-comp-border);
  border-radius: 24px;
  padding: 40px;
  margin-top: 3.5rem;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(26, 63, 111, 0.05);
}

.lifetime-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

body.dark-theme .lifetime-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

.lifetime-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

@media (max-width: 991px) {
  .lifetime-content {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
}

.lifetime-info {
  flex: 1;
}

.lifetime-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(26, 63, 111, 0.15);
}

.lifetime-title {
  font-family: var(--font-family-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.lifetime-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.lifetime-action-box {
  width: 340px;
  flex-shrink: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
  .lifetime-action-box {
    width: 100%;
    box-sizing: border-box;
  }
}

.lifetime-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.lifetime-price {
  font-family: var(--font-family-title);
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lifetime-price-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.lifetime-progress-container {
  margin-bottom: 1.5rem;
  text-align: left;
}

.lifetime-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.progress-lbl-right {
  color: var(--color-primary);
}

.lifetime-progress-bar-bg {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.lifetime-progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: 4px;
}

.lifetime-progress-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  text-align: center;
}

.lifetime-btn {
  width: 100%;
}

/* Plan Disclaimers & Notes */
.plan-tech-note {
  font-size: 0.8rem !important;
  color: var(--color-text-muted) !important;
  line-height: 1.45;
  margin-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.75rem;
  align-items: flex-start !important;
}

.plan-tech-note .bullet {
  color: var(--color-text-muted) !important;
}

.plan-cloud-highlight {
  color: #10B981 !important;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.06);
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px dashed rgba(16, 185, 129, 0.3);
  margin-top: 0.5rem;
}

.plan-cloud-highlight svg {
  color: #10B981;
  flex-shrink: 0;
}

body.dark-theme .plan-cloud-highlight {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Anti-IP Platform Note */
.compatibility-security-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 14px 24px;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  text-align: left;
}

.compatibility-security-note svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

body.dark-theme .compatibility-security-note {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

@media (max-width: 768px) {
  .compatibility-security-note {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
}

/* SECCIÓN 11 — FAQ ACCORDION */
.faq-section {
  padding: 8rem 0;
  background-color: var(--color-bg);
}

.faq-container-inner {
  max-width: 800px;
}

.faq-accordion {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--faq-item-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
  background: var(--faq-item-bg);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--color-text);
  padding: 1.5rem 2rem;
  text-align: left;
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  outline: none;
}

.faq-toggle-icon {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 2rem 1.5rem 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer Section */
.main-footer {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  padding: 6rem 0 3rem 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.footer-links-col a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.disclaimer {
  color: var(--color-text-muted);
  line-height: 1.5;
  opacity: var(--disclaimer-opacity);
}

/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-risk-card, .featured-ai-card, .calc-card, .col-span-2 {
    grid-column: span 2 !important;
  }
  .comparative-table-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: flex;
    gap: 0.5rem;
  }
  .nav-cta .btn {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .platforms-grid {
    gap: 1.5rem;
  }
  .phrase-text {
    font-size: 1.8rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .featured-risk-card, .featured-ai-card, .calc-card, .col-span-2 {
    grid-column: span 1 !important;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .steps-container {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .db-grid-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .ia-layout {
    grid-template-columns: 1fr;
  }
  .audience-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   CLARITY REDESIGN - FUTURISTIC TECHNICAL TRADING THEME (CYBER-COCKPIT)
   ========================================================================== */

/* Technical Grid Background Layer */
.technical-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(var(--grid-dot-color, rgba(15, 23, 42, 0.04)) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line-color, rgba(15, 23, 42, 0.012)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color, rgba(15, 23, 42, 0.012)) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 50px 50px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}



/* 3. Bento Grid "Radar Console" Custom Tags */
.card-sys-code {
  display: block;
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
  opacity: 0.75;
}

body.dark-theme .card-sys-code {
  color: #06B6D4;
  opacity: 0.9;
}

.bento-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.bento-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 15px 35px var(--color-primary-glow) !important;
}

.bento-card.active {
  border-color: var(--color-primary) !important;
  box-shadow: 0 20px 40px var(--color-primary-glow) !important;
}

/* 4. 3D Dashboard Platform Preview with Dynamic Tilt Parallax */
.mockup-3d-perspective-container {
  position: relative;
  perspective: 2500px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 4rem 0;
  width: 100%;
  transform-style: preserve-3d;
}

#parallax-mockup {
  transform: rotateX(12deg) rotateY(-12deg) rotateZ(3deg);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}

/* Interactive overlay cards */
.floating-widget {
  position: absolute;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), 0 0 20px var(--color-primary-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.2, 1), border-color 0.3s ease;
  pointer-events: none; /* Let pointer events fall through to container */
}

body.dark-theme .floating-widget {
  background: rgba(17, 22, 37, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.floating-widget .w-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.widget-drawdown .w-icon {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

.widget-checklist .w-icon {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

.floating-widget .w-info {
  display: flex;
  flex-direction: column;
}

.floating-widget .w-title {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.floating-widget .w-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Target positions */
.widget-drawdown {
  top: 12%;
  left: -8%;
  transform: translateZ(90px) rotateX(12deg) rotateY(-12deg) rotateZ(3deg);
}

.widget-checklist {
  bottom: 20%;
  right: -8%;
  transform: translateZ(130px) rotateX(12deg) rotateY(-12deg) rotateZ(3deg);
}

/* Hover fallback for non-JS/touch devices */
.mockup-3d-perspective-container:hover .widget-drawdown {
  border-color: #EF4444;
}

.mockup-3d-perspective-container:hover .widget-checklist {
  border-color: #10B981;
}

/* 5. Comparative Column glass effect & contrast */
.comp-col {
  opacity: 0.75;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.comp-col:hover {
  opacity: 0.95;
  transform: translateY(-5px);
}

.featured-comp {
  opacity: 1 !important;
  transform: scale(1.02);
  box-shadow: 0 20px 40px var(--color-primary-glow), 0 0 30px var(--color-primary-glow) !important;
  border-color: var(--color-primary) !important;
}

.featured-comp:hover {
  transform: scale(1.04) translateY(-5px) !important;
  box-shadow: 0 25px 50px var(--color-primary-glow), 0 0 40px var(--color-primary-glow) !important;
}

/* 6. Pricing Pro card flow border */
.featured-pricing-card {
  position: relative;
  overflow: visible !important;
}

.featured-card-border-glow {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  background: linear-gradient(90deg, #06B6D4, #2563EB, #6366F1, #06B6D4);
  background-size: 400% 400%;
  animation: border-flow-glow 8s linear infinite;
  z-index: -1;
  opacity: 0.35;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.featured-pricing-card:hover .featured-card-border-glow {
  opacity: 0.95;
  filter: blur(8px);
}

@keyframes border-flow-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .widget-drawdown {
    left: -2%;
  }
  .widget-checklist {
    right: -2%;
  }
}

@media (max-width: 1024px) {
  .mockup-3d-perspective-container {
    perspective: none;
    padding: 2rem 0;
  }
  #parallax-mockup {
    transform: none !important;
  }
  .floating-widget {
    position: static;
    transform: none !important;
    margin: 1rem auto;
    max-width: 450px;
    pointer-events: auto;
  }
  .widget-drawdown, .widget-checklist {
    transform: none !important;
  }
  .cockpit-widget {
    transform: none !important;
    animation: none;
    margin: 0 auto;
  }
}

/* 7. Privacy Section */
.privacy-section {
  padding: 8rem 0;
  position: relative;
  background-color: var(--color-bg);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.privacy-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .privacy-card {
  background: rgba(17, 22, 37, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 1;
}

body.dark-theme .privacy-card::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(6, 182, 212, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.privacy-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px var(--color-primary-glow), 
              0 0 30px rgba(59, 130, 246, 0.05);
}

body.dark-theme .privacy-card:hover {
  border-color: #06B6D4;
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1),
              0 0 30px rgba(6, 182, 212, 0.05);
}

.privacy-card:hover::after {
  left: 150%;
  transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-card .icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--color-primary-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .privacy-card .icon-wrapper {
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.08);
}

.privacy-card:hover .icon-wrapper {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

body.dark-theme .privacy-card:hover .icon-wrapper {
  background: #06B6D4;
  color: #0F172A;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.privacy-card:hover .icon-wrapper svg {
  animation: privacy-icon-pulse 1s ease-in-out infinite;
}

@keyframes privacy-icon-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.12) rotate(6deg);
  }
}

.privacy-sys-tag {
  display: block;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.8;
  margin-top: 0.25rem;
}

body.dark-theme .privacy-sys-tag {
  color: #06B6D4;
  opacity: 0.95;
}

.privacy-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.privacy-card p {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

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

/* Disable browser automatic hyphenation */
* {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
}

/* Success alert log item */
.alert-log-item.success {
  background: rgba(16, 185, 129, 0.08);
  border-left: 2px solid #10b981;
}
body.dark-theme .alert-log-item.success {
  background: rgba(16, 185, 129, 0.15);
}

/* Theme Preview UI Mock */
.theme-preview-ui-mock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .theme-preview-ui-mock {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.mock-theme-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
}

.mock-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-mode-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.mock-toggle-switch {
  position: relative;
  width: 28px;
  height: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

body.dark-theme .mock-toggle-switch {
  background: rgba(255, 255, 255, 0.15);
}

.mock-toggle-switch.active {
  background: var(--accent);
}

.mock-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.mock-toggle-switch.active::after {
  transform: translateX(12px);
}

/* Recap Stats Row inside recap widget */
.recap-stats-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .recap-stats-row {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.recap-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.recap-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.recap-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}



/* ==========================================
   APPLE PREMIUM ANIMATIONS SYSTEM
   ========================================== */

/* 1. Ambient Glow Blobs */
.features-section, .pricing-section {
  position: relative;
  overflow: hidden; /* Evitar desbordes de los blobs en scroll */
}

.ambient-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  -webkit-filter: blur(140px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  mix-blend-mode: screen;
}

/* Ajustes de fusión para modo claro */
body:not(.dark-theme) .ambient-glow-blob {
  opacity: 0.06;
  filter: blur(160px);
  -webkit-filter: blur(160px);
  mix-blend-mode: multiply;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--accent); /* azul */
  top: 10%;
  left: -10%;
  animation: ambientOrbit 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 550px;
  height: 550px;
  background: #a855f7; /* violeta/púrpura */
  bottom: 15%;
  right: -10%;
  animation: ambientOrbit 30s infinite alternate-reverse ease-in-out;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: #06b6d4; /* cian */
  top: 20%;
  right: -15%;
  animation: ambientOrbit 28s infinite alternate ease-in-out;
}

.blob-4 {
  width: 480px;
  height: 480px;
  background: var(--accent); /* azul */
  bottom: 10%;
  left: -12%;
  animation: ambientOrbit 26s infinite alternate-reverse ease-in-out;
}

@keyframes ambientOrbit {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -40px) scale(1.08);
  }
  66% {
    transform: translate(-30px, 50px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* 2. 3D Tilt Card Support */
.slider-outer-container {
  perspective: 1200px; /* Habilitar profundidad 3D */
}

.slider-card {
  transform-style: preserve-3d; /* Permitir renderizado 3D para hijos */
  /* Combina el foco dinámico del scroll, hover de CSS y rotación de ratón */
  transform: scale(var(--card-scale, 0.96)) 
             translateY(var(--card-translate-y, 0px)) 
             rotateX(var(--card-tilt-x, 0deg)) 
             rotateY(var(--card-tilt-y, 0deg));
  
  /* Sombra dinámica controlada por JS */
  box-shadow: var(--card-shadow, var(--shadow-sm));
  
  /* Transición rápida para foco de scroll, pero inercia elástica para resets de tilt */
  transition: transform var(--card-transition-duration, 0.4s) cubic-bezier(0.16, 1, 0.3, 1),
              opacity var(--card-transition-duration, 0.4s) cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--card-transition-duration, 0.4s) ease,
              border-color 0.4s ease;
}

/* Los widgets se elevan tridimensionalmente al inclinar la tarjeta */
.slider-card .bento-widget-card {
  transform: translateZ(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-card:hover .bento-widget-card {
  transform: translateZ(35px); /* Empuje Z en hover */
}

/* Bento Widget Height & Distribution Fixes */
.slider-card .bento-widget-card {
  flex-grow: 1; /* Stretch widgets to fill card height */
  margin-top: 1rem; /* Group tightly below description */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-card .calendar-events-list,
.slider-card .news-stream-list,
.slider-card .copy-accounts-list,
.slider-card .alerts-list {
  flex-grow: 0; /* Do not stretch lists, keep items packed tightly */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Pack tightly at the top of the widget box */
  gap: 10px; /* Sane tight gap */
  margin-top: 0.5rem;
}

/* Ensure drawdown widget centers progress vertically inside the stretched widget */
.slider-card .drawdown-widget {
  display: flex;
  flex-direction: column;
}

.slider-card .drawdown-widget .widget-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 8px;
}

/* ─── SECCIÓN PWA ──────────────────────────────────────────────────────────── */
.pwa-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.pwa-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.pwa-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pwa-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
  color: var(--text-primary);
}
.pwa-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
/* Botón instalar PWA */
.btn-pwa-install {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #1A3F6F 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: var(--font-family-title);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(37,99,235,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-direction: row;
  gap: 10px;
  position: relative;
}
.btn-pwa-install:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,99,235,0.5); }
.btn-pwa-install:active { transform: translateY(0); }
.pwa-install-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--text-secondary);
}
.pwa-actions { margin-bottom: 48px; }
/* Store badges */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--borde-notion);
  background: var(--surface-notion);
  transition: all 0.2s;
}
.store-badge.coming-soon { opacity: 0.55; cursor: not-allowed; }
.store-badge svg { flex-shrink: 0; color: var(--text-primary); }
.store-info { display: flex; flex-direction: column; gap: 1px; }
.store-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.store-status { font-size: 0.7rem; color: var(--accent); font-weight: 600; letter-spacing: 0.03em; }
/* Devices card */
.devices-card {
  background: var(--surface-notion);
  border: 1px solid var(--borde-notion);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.05);
}
.devices-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.device-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.device-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.15s;
}
.device-item:hover { background: var(--hover-notion); }
.device-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-light, rgba(37,99,235,0.08));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.device-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.device-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.device-how { font-size: 0.75rem; color: var(--text-secondary); }
.device-badge.ok {
  width: 24px; height: 24px;
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  flex-shrink: 0;
}
/* PWA feature badges */
.pwa-badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pwa-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}
@media (max-width: 900px) {
  .pwa-inner { grid-template-columns: 1fr; gap: 40px; }
  .pwa-devices { order: -1; }
}
