/* styles.css - GiversHUB Official Promotional Web Theme */

:root {
  /* GiversHUB Corporate Light Colors */
  --bg-dark: #f8fafc; /* Sophisticated light grey body background */
  --bg-panel: #ffffff; /* Solid white card background */
  --text-primary: #0f172a; /* Slate 900 text */
  --text-secondary: #475569; /* Slate 600 text */
  --text-muted: #94a3b8; /* Slate 400 text */
  
  /* BNI Crimson Red Brand Identity */
  --bni-red: #c8102e;
  --bni-red-hover: #9c0c22;
  --bni-red-glow: rgba(200, 16, 46, 0.08);
  
  --accent-purple: #6d28d9;
  --accent-purple-glow: rgba(109, 40, 217, 0.08);
  
  --accent-gold: #d97706; /* Warm gold/amber */
  --accent-gold-glow: rgba(217, 119, 6, 0.08);
  
  --accent-green: #059669; /* Emerald Green */
  --accent-green-glow: rgba(5, 150, 105, 0.08);

  --accent-blue: #2563eb;
  --accent-blue-glow: rgba(37, 99, 235, 0.08);
  
  /* Card Styled Borders & Shadows */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-hover: #ffffff;
  --glass-border: #e2e8f0; /* Grey border */
  --glass-border-focus: #c8102e;
  --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Border radius and animations */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Dark Mode Theme Variables */
[data-theme="dark"] {
  --bg-dark: #0b0f19; /* Deep space slate */
  --bg-panel: #111827; /* Charcoal/Dark card background */
  --text-primary: #f9fafb; /* Off-white main text */
  --text-secondary: #9ca3af; /* Grey secondary text */
  --text-muted: #4b5563; /* Muted grey text */
  
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-bg-hover: #1f2937;
  --glass-border: #374151;
  --glass-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --hover-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.5), 0 15px 15px -5px rgba(0, 0, 0, 0.3);
  --glass-border-focus: #ff5e77;
}

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #374151;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Utilities */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-description,
.card-content p,
.faq-answer p,
.pitch-output-area p,
#sim-pitch-text,
.role-card p,
.footer-brand p,
.sim-table td,
.sim-note-input {
  text-align: justify;
}

.gradient-text {
  background: linear-gradient(135deg, var(--bni-red) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #ff5e77 30%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section-badge {
  display: inline-block;
  background: var(--bni-red-glow);
  color: var(--bni-red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(200, 16, 46, 0.15);
}
[data-theme="dark"] .section-badge {
  background: rgba(255, 94, 119, 0.1);
  color: #ff5e77;
  border-color: rgba(255, 94, 119, 0.2);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   HEADER & NAVBAR
------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(200, 16, 46, 0.95);
  border-bottom: 4px solid #f59e0b; /* BNI signature gold line */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}
[data-theme="dark"] .main-header {
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 4px solid #d97706;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--bni-red);
  font-size: 1.4rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: #000000;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

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

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Selector de Idioma Multilingüe */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
[data-theme="dark"] .lang-switcher {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
}
.lang-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn.active {
  background: #ffffff;
  color: var(--bni-red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .lang-btn.active {
  background: var(--bni-red);
  color: #ffffff;
}
.lang-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.tag-new {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.tag-ai {
  background: rgba(109, 40, 217, 0.15);
  color: #a855f7;
  border: 1px solid rgba(109, 40, 217, 0.3);
}


.cta-header-btn {
  background: #ffffff;
  color: var(--bni-red);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: #f9fafb;
}

[data-theme="dark"] .cta-header-btn {
  background: var(--bni-red);
  color: #ffffff;
}
[data-theme="dark"] .cta-header-btn:hover {
  background: var(--bni-red-hover);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background-image: linear-gradient(180deg, rgba(200, 16, 46, 0.03) 0%, rgba(248, 250, 252, 0) 100%);
}
[data-theme="dark"] .hero-section {
  background-image: linear-gradient(180deg, rgba(200, 16, 46, 0.05) 0%, rgba(11, 15, 25, 0) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--bni-red);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-display);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--glass-border);
}
[data-theme="dark"] .hero-badge {
  background: #111827;
  color: #ff5e77;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  width: 100%;
}

.btn-primary {
  background: var(--bni-red);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 16px var(--bni-red-glow);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover {
  background: var(--bni-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(200, 16, 46, 0.25);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-secondary:hover {
  background: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}
[data-theme="dark"] .btn-secondary {
  background: #111827;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bni-red);
}
[data-theme="dark"] .stat-num {
  color: #ff5e77;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  background: var(--bg-panel);
  transition: var(--transition-smooth);
}
.mockup-frame:hover {
  transform: scale(1.02) rotate(0.5deg);
  box-shadow: 0 35px 60px -10px rgba(0, 0, 0, 0.25);
}

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

/* -------------------------------------------------------------
   BENTO GRID SECTION
------------------------------------------------------------- */
.bento-section {
  background: var(--bg-dark);
}

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

.bento-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--text-muted);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.icon-red { background: var(--bni-red-glow); color: var(--bni-red); }
.icon-purple { background: var(--accent-purple-glow); color: var(--accent-purple); }
.icon-gold { background: var(--accent-gold-glow); color: var(--accent-gold); }
.icon-green { background: var(--accent-green-glow); color: var(--accent-green); }
.icon-blue { background: var(--accent-blue-glow); color: var(--accent-blue); }

[data-theme="dark"] .icon-red { background: rgba(255, 94, 119, 0.1); color: #ff5e77; }
[data-theme="dark"] .icon-purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
[data-theme="dark"] .icon-gold { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
[data-theme="dark"] .icon-green { background: rgba(52, 211, 153, 0.1); color: #34d399; }
[data-theme="dark"] .icon-blue { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }

.card-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bni-red);
  cursor: pointer;
  font-family: var(--font-display);
  text-decoration: none;
}
[data-theme="dark"] .card-link {
  color: #ff5e77;
}

.card-large {
  grid-column: span 2;
}

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

/* Visual ornaments inside bento cards */
.card-visual {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.08;
  pointer-events: none;
  transition: var(--transition-smooth);
}
.bento-card:hover .card-visual {
  opacity: 0.15;
  transform: scale(1.05);
}

.visual-waveform {
  bottom: 20px;
  right: 30px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}
.wave-bar {
  width: 4px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
}
.wave-bar:nth-child(1) { height: 20px; }
.wave-bar:nth-child(2) { height: 45px; }
.wave-bar:nth-child(3) { height: 30px; }
.wave-bar:nth-child(4) { height: 55px; }
.wave-bar:nth-child(5) { height: 40px; }
.wave-bar:nth-child(6) { height: 25px; }
.wave-bar:nth-child(7) { height: 15px; }

.visual-match {
  bottom: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.match-node {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-line {
  width: 50px;
  height: 2px;
  background: dashed var(--text-primary);
  border-bottom: 2px dashed var(--text-primary);
}

/* -------------------------------------------------------------
   INTERACTIVE SIMULATORS SECTION
------------------------------------------------------------- */
.simulator-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.sim-tab-navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.sim-tab-btn {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-tab-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.sim-tab-btn.active {
  background: var(--bni-red);
  color: #ffffff;
  border-color: var(--bni-red);
  box-shadow: 0 4px 12px var(--bni-red-glow);
}

.sim-tab-content {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.sim-panel {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.sim-panel.active {
  display: block;
}

/* Panel Pitch Generator */
.sim-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.sim-sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--glass-border);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-sidebar h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group select, .form-group textarea, .form-group input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group select:focus, .form-group textarea:focus, .form-group input[type="text"]:focus {
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 0 2px var(--bni-red-glow);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
}

.btn-generate-sim {
  background: var(--bni-red);
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px var(--bni-red-glow);
}
.btn-generate-sim:hover {
  background: var(--bni-red-hover);
  transform: translateY(-1px);
}

.sim-main-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-header-sim {
  display: flex;
  justify-content: justify;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 14px;
}

.card-title-sim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-badge-sim {
  background: var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pitch-output-area {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 140px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Speech Trainer Box */
.speech-trainer-box {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.trainer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.trainer-header h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.trainer-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.trainer-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.metric {
  background: var(--bg-dark);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* Visualizador de Audio (Waves) */
.audio-visualizer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 35px;
  margin-bottom: 20px;
}

.audio-visualizer span {
  width: 4px;
  height: 5px;
  background: var(--bni-red);
  border-radius: var(--radius-full);
  transition: transform 0.1s ease;
}

/* Activando ondas con CSS */
.audio-visualizer.active span {
  animation: audioPulse 1.2s infinite ease-in-out;
}
.audio-visualizer.active span:nth-child(2) { animation-delay: 0.15s; }
.audio-visualizer.active span:nth-child(3) { animation-delay: 0.3s; }
.audio-visualizer.active span:nth-child(4) { animation-delay: 0.45s; }
.audio-visualizer.active span:nth-child(5) { animation-delay: 0.6s; }
.audio-visualizer.active span:nth-child(6) { animation-delay: 0.75s; }
.audio-visualizer.active span:nth-child(7) { animation-delay: 0.9s; }
.audio-visualizer.active span:nth-child(8) { animation-delay: 1.05s; }
.audio-visualizer.active span:nth-child(9) { animation-delay: 0.5s; }
.audio-visualizer.active span:nth-child(10) { animation-delay: 0.25s; }

@keyframes audioPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(5); }
}

.trainer-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-trainer-control {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-trainer-control.start {
  background: var(--accent-green);
  color: #ffffff;
}
.btn-trainer-control.start:hover:not(:disabled) {
  background: #047857;
}

.btn-trainer-control.stop {
  background: var(--bni-red);
  color: #ffffff;
}
.btn-trainer-control.stop:hover:not(:disabled) {
  background: var(--bni-red-hover);
}

.btn-trainer-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.trainer-feedback-msg {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}

/* Panel Notes Simulator */
.sim-notes-container {
  padding: 30px;
}

.notes-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.notes-info h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.notes-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-wa {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-copy-wa:hover {
  background: #047857;
  transform: translateY(-1px);
}

.sim-table-wrapper {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sim-table th {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 20px;
  border-bottom: 2px solid var(--glass-border);
}

.sim-table td {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.tag-sphere {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.tag-sphere.text-red { color: var(--bni-red); }
.tag-sphere.text-blue { color: var(--accent-blue); }

.textarea-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-note-input {
  width: 100%;
  height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: none;
  outline: none;
  transition: var(--transition-fast);
}
.sim-note-input:focus {
  border-color: var(--glass-border-focus);
}

.btn-ai-assist {
  align-self: flex-end;
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  border: 1px solid rgba(109, 40, 217, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.btn-ai-assist:hover {
  background: var(--accent-purple);
  color: #ffffff;
}

[data-theme="dark"] .btn-ai-assist {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.2);
}
[data-theme="dark"] .btn-ai-assist:hover {
  background: #a855f7;
  color: #ffffff;
}

/* -------------------------------------------------------------
   ROLES SECTION
------------------------------------------------------------- */
.roles-section {
  background: var(--bg-dark);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.role-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  transition: var(--transition-smooth);
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.role-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
}

.role-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.role-card.admin .role-type {
  background: var(--bni-red-glow);
  color: var(--bni-red);
}
[data-theme="dark"] .role-card.admin .role-type {
  background: rgba(255, 94, 119, 0.1);
  color: #ff5e77;
}

.role-header h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
}

.role-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-features li {
  font-size: 0.98rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.role-features li i {
  color: var(--accent-green);
  margin-top: 4px;
}

/* -------------------------------------------------------------
   TESTIMONIALS SECTION
------------------------------------------------------------- */
.testimonials-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--text-muted);
}

.stars-rating {
  color: #fbbf24; /* Warm gold stars */
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.avatar-red { background: linear-gradient(135deg, var(--bni-red) 0%, #9c0c22 100%); }
.avatar-purple { background: linear-gradient(135deg, var(--accent-purple) 0%, #4c1d95 100%); }
.avatar-blue { background: linear-gradient(135deg, var(--accent-blue) 0%, #1e3a8a 100%); }

.user-details {
  display: flex;
  flex-direction: column;
}

.user-details strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.user-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   FAQS SECTION
------------------------------------------------------------- */
.faqs-section {
  background: var(--bg-panel);
}

.faqs-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

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

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Open FAQ State handled via JS class */
.faq-item.active .faq-answer {
  max-height: 300px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* -------------------------------------------------------------
   CREATOR SECTION
------------------------------------------------------------- */
.creator-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
}

.creator-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--glass-shadow);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  align-items: center;
}

.creator-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--bni-red-glow);
  color: var(--bni-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .creator-icon {
  background: rgba(255, 94, 119, 0.1);
  color: #ff5e77;
}

.creator-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.creator-content p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: justify;
}

.creator-content p:last-child {
  margin-bottom: 0;
}

.creator-link {
  color: var(--bni-red);
  text-decoration: underline;
  font-weight: 700;
  transition: var(--transition-fast);
}
.creator-link:hover {
  color: var(--bni-red-hover);
}
[data-theme="dark"] .creator-link {
  color: #ff5e77;
}
[data-theme="dark"] .creator-link:hover {
  color: #ff8b9e;
}

@media (max-width: 768px) {
  .creator-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 20px;
  }
}

/* -------------------------------------------------------------
   CTA FOOTER BANNER
------------------------------------------------------------- */
.cta-footer-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  text-align: center;
}
[data-theme="dark"] .cta-footer-section {
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

.cta-footer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-footer-container h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.cta-footer-container p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 650px;
  margin-bottom: 16px;
}

.btn-primary-large {
  background: var(--bni-red);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-primary-large:hover {
  background: var(--bni-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.45);
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.main-footer {
  background: #111827;
  color: #9ca3af;
  border-top: 1px solid #1f2937;
}
[data-theme="dark"] .main-footer {
  background: #030712;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.footer-brand .logo-text {
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.9rem;
}

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

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group h5 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-group a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.link-group a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 0.82rem;
}

/* -------------------------------------------------------------
   TOAST NOTIFICATION SYSTEM
------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast i {
  color: var(--accent-green);
  font-size: 1.15rem;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-large {
    grid-column: span 2;
  }
  
  .sim-grid {
    grid-template-columns: 1fr;
  }
  
  .sim-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--bni-red);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 4px solid #f59e0b;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
  }
  [data-theme="dark"] .nav-menu {
    background: #111827;
    border-bottom-color: #d97706;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .card-large, .card-wide {
    grid-column: span 1;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
