/* ==========================================
   NIARUX TRADING - SAAS PLATFORM
   Modo Oscuro + Claro
   ========================================== */

/* ==========================================
   VARIABLES - TEMA OSCURO (DEFAULT)
   ========================================== */
:root {
  /* Colores Principales */
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --secondary: #3b82f6;
  --accent: #8b5cf6;
  
  /* Fondos */
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #242424;
  --bg-card: #1a1a1a;
  --card-bg: #1a1a1a;
  --secondary-bg: #242424;
  --input-bg: #242424;
  
  /* Textos */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  /* Bordes */
  --border: #2a2a2a;
  
  /* Estados */
  --success: #22c55e;
  --warning: #fbbf24;
  --danger: #ef4444;
  --error: #ef4444;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.7);
  
  --transition: 0.3s ease;
}

/* TEMA CLARO con data-theme */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --card-bg: #ffffff;
  --secondary-bg: #f1f5f9;
  --input-bg: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* TEMA CLARO con body.light (compatibilidad) */
body.light {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}



/* ==========================================
   RESET & BASE
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.btn-icon.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 20px;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  gap: 60px;
  position: relative;
}

.login-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -150px;
  left: -150px;
  animation-delay: 5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #000;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.login-header h1 {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  
  /* Degradado animado: blanco/texto → verde → verde claro → verde → blanco/texto */
  background: linear-gradient(90deg, 
    var(--text-primary) 0%, 
    #22c55e 25%,
    #4ade80 50%, 
    #22c55e 75%,
    var(--text-primary) 100%
  );
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  
  animation: brilloVerde 3s linear infinite;
  
  /* Resplandor verde sutil */
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
}

/* Animación del brillo verde */
@keyframes brilloVerde {
  0% { 
    background-position: 0%;
  }
  100% { 
    background-position: 200%;
  }
}

/* Clase específica para título con brillo (por si se usa) */
.login-title-mirror {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  
  background: linear-gradient(90deg, 
    var(--text-primary) 0%, 
    #22c55e 25%,
    #4ade80 50%, 
    #22c55e 75%,
    var(--text-primary) 100%
  );
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  
  animation: brilloVerde 3s linear infinite;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
}

.login-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.form-group label i {
  color: var(--primary);
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 5px;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

.checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-password {
  color: var(--primary);
  font-weight: 600;
}

.divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 13px;
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: 14px;
}

.login-footer a {
  color: var(--primary);
  font-weight: 600;
}

.login-info {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.info-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.info-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.feature-item i {
  color: var(--primary);
  font-size: 20px;
}

.stats-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
}

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

/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */
.dashboard-page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.logo i {
  font-size: 24px;
  color: var(--primary);
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  padding: 5px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 10px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 4px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.nav-item i {
  font-size: 18px;
  width: 20px;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #000;
  font-weight: 700;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--primary);
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  font-size: 32px;
  color: var(--primary);
}

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

.user-name {
  font-size: 14px;
  font-weight: 600;
}

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

.btn-logout {
  width: 100%;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.main-wrapper {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: 70px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  padding: 10px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  width: 400px;
}

.search-bar i {
  color: var(--text-muted);
}

.search-bar input {
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 16px;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--error);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-content {
  flex: 1;
  padding: 30px;
  background: var(--bg-secondary);
}

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

.page-title h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 5px;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 14px;
}

.page-actions {
  display: flex;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--error); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

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

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

.membership-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
}

.membership-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.membership-header i {
  font-size: 32px;
  color: var(--primary);
}

.membership-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.membership-body {
  padding: 24px;
}

.membership-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.membership-features {
  list-style: none;
  margin-bottom: 24px;
}

.membership-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}

.membership-features li i {
  color: var(--primary);
  font-size: 16px;
}

.membership-features li.locked {
  color: var(--text-muted);
}

.membership-features li.locked i {
  color: var(--text-muted);
}

.btn-upgrade {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.table-container {
  overflow-x: auto;
}

.signals-table {
  width: 100%;
  border-collapse: collapse;
}

.signals-table thead {
  background: var(--bg-secondary);
}

.signals-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signals-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.pair-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-icon {
  font-size: 18px;
}

.pair-name {
  font-weight: 600;
}

.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-buy {
  background: rgba(74, 222, 128, 0.2);
  color: var(--success);
}

.badge-sell {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.rr-value {
  font-weight: 600;
  color: var(--primary);
}

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

.status-active {
  background: rgba(59, 130, 246, 0.2);
  color: var(--secondary);
}

.status-closed {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.result {
  font-weight: 700;
}

.result-win { color: var(--success); }
.result-loss { color: var(--error); }
.result-pending { color: var(--text-muted); }



/* RESPONSIVE */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .search-bar {
    width: 200px;
  }
  .topbar {
    padding: 0 15px;
  }
  .main-content {
    padding: 20px 15px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .login-container {
    grid-template-columns: 1fr;
  }
  .login-info {
    display: none;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px 30px;
  text-align: center;
  margin-top: auto;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================
   CALENDARIO
   ========================================== */
.calendar-container {
  max-width: 100%;
}

.calendar-widget {
  padding: 0 !important;
  min-height: 600px;
}

.tradingview-widget-container {
  width: 100%;
  height: 100%;
  min-height: 550px;
}

.tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.tradingview-widget-copyright {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
}

.tradingview-widget-copyright a {
  color: var(--primary);
  text-decoration: none;
}

.tradingview-widget-copyright a:hover {
  text-decoration: underline;
}

/* Ajuste para que el widget se adapte al tema */
body.light .tradingview-widget-container iframe {
  background: var(--bg-card);
}

/* ==========================================
   AJUSTES MAIN-WRAPPER PARA FOOTER
   ========================================== */
.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ==========================================
   NOTICIAS Y RECURSOS
   ========================================== */
.news-container {
  max-width: 100%;
}

.section-block {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.section-title i {
  color: var(--primary);
  font-size: 32px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 36px;
  color: white;
  box-shadow: var(--shadow-lg);
}

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

.info-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.info-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px 24px;
}

/* Responsive para noticias */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
}

/* ==========================================
   ESTILOS PARA TARJETAS DE NOTICIAS
   ========================================== */

.news-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-cards-block {
  width: 100%;
}

.news-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.news-widget-block {
  width: 100%;
}

.news-source-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-source-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-source-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.news-source-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.news-source-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.news-source-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-source-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.news-source-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto 0;
}

.news-source-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.news-source-features li i {
  color: var(--success);
  font-size: 16px;
}

.news-source-footer {
  padding: 0 24px 24px 24px;
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Badge para indicador "En Vivo" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.badge-live {
  color: var(--success);
  border-color: var(--success);
  background: rgba(0, 255, 136, 0.1);
}

.badge-live i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Estilos para el widget de TradingView */
.news-widget-block .tradingview-widget-container {
  width: 100%;
  min-height: 800px;
  position: relative;
}

.news-widget-block .tradingview-widget-container__widget {
  width: 100%;
  height: 800px;
}

/* Responsive para tarjetas de noticias */
@media (max-width: 992px) {
  .news-sources-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .news-container {
    gap: 32px;
  }
  
  .news-source-header {
    padding: 20px;
  }
  
  .news-source-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .news-source-header h3 {
    font-size: 18px;
  }
  
  .news-widget-block .tradingview-widget-container {
    min-height: 600px;
  }
  
  .news-widget-block .tradingview-widget-container__widget {
    height: 600px;
  }
}

/* ==========================================
   ESTILOS PARA CALENDARIO ECONÓMICO
   ========================================== */

.calendar-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.calendar-cards-block {
  width: 100%;
}

.calendar-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calendar-widget-block {
  width: 100%;
}

.calendar-source-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-source-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.calendar-source-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.calendar-source-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.calendar-source-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.calendar-source-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.calendar-source-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.calendar-source-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto 0;
}

.calendar-source-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.calendar-source-features li i {
  color: var(--success);
  font-size: 16px;
}

.calendar-source-footer {
  padding: 0 24px 24px 24px;
}

/* Widget de TradingView para calendario */
.calendar-widget-block .tradingview-widget-container {
  width: 100%;
  min-height: 650px;
  position: relative;
}

.calendar-widget-block .tradingview-widget-container__widget {
  width: 100%;
  height: 650px;
}

/* Responsive para calendario */
@media (max-width: 992px) {
  .calendar-sources-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .calendar-container {
    gap: 32px;
  }
  
  .calendar-source-header {
    padding: 20px;
  }
  
  .calendar-source-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .calendar-source-header h3 {
    font-size: 18px;
  }
  
  .calendar-widget-block .tradingview-widget-container {
    min-height: 500px;
  }
  
  .calendar-widget-block .tradingview-widget-container__widget {
    height: 500px;
  }
}

/* ==========================================
   ESTILOS PARA HERRAMIENTAS DE TRADING
   ========================================== */

.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.tool-source-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-source-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tool-source-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.tool-source-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.tool-source-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.tool-source-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-source-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-source-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto 0;
}

.tool-source-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.tool-source-features li i {
  color: var(--success);
  font-size: 16px;
}

.tool-source-footer {
  padding: 0 24px 24px 24px;
}

/* Responsive para herramientas */
@media (max-width: 768px) {
  .tools-container {
    grid-template-columns: 1fr;
  }
  
  .tool-source-header {
    padding: 20px;
  }
  
  .tool-source-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .tool-source-header h3 {
    font-size: 18px;
  }
  
  .tool-source-body {
    padding: 20px;
  }
}

/* ==========================================
   ESTILOS PARA PLANTILLAS
   ========================================== */

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

.template-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.template-header {
  position: relative;
  padding: 32px 24px 24px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.template-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.template-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.template-badge i {
  font-size: 10px;
}

.template-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.template-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.template-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.template-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto 0;
}

.template-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.template-features li i {
  color: var(--success);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.template-footer {
  padding: 16px 24px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.template-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.template-type i {
  font-size: 16px;
}

.template-footer .btn {
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}

/* Responsive para plantillas */
@media (max-width: 768px) {
  .templates-container {
    grid-template-columns: 1fr;
  }
  
  .template-header {
    padding: 28px 20px 20px 20px;
  }
  
  .template-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
  
  .template-body {
    padding: 20px;
  }
  
  .template-body h3 {
    font-size: 18px;
  }
  
  .template-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .template-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   ESTILOS PARA PÁGINA DE BROKER
   ========================================== */

.broker-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sección de introducción */
.broker-intro-card {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 204, 106, 0.02) 100%);
  border: 1px solid var(--border);
}

.broker-intro-content {
  padding: 48px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.intro-icon-wrapper {
  flex-shrink: 0;
}

.intro-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: white;
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

.intro-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.intro-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* Título de sección centrado */
.section-title-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-center h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.section-title-center > p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

/* Cards de importancia */
.importance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.importance-card {
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.importance-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: var(--success);
}

.importance-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  margin: 0 auto 24px auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.importance-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.importance-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Tarjeta de Exness */
.broker-exness-card {
  overflow: hidden;
}

.exness-hero {
  padding: 48px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 204, 106, 0.03) 100%);
  border-bottom: 1px solid var(--border);
}

.exness-logo-section {
  display: flex;
  align-items: center;
  gap: 24px;
}

.exness-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 16px 48px rgba(0, 255, 136, 0.35);
}

.exness-info h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.exness-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pill {
  padding: 6px 14px;
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.exness-description {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}

.exness-description p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}

/* Features de Exness */
.exness-features-section {
  padding: 48px;
  border-bottom: 1px solid var(--border);
}

.features-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.features-title i {
  color: var(--success);
}

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

.exness-feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.exness-feature:hover {
  border-color: var(--success);
  transform: translateX(4px);
}

.feature-icon-small {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--success) 0%, #00cc6a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Beneficios */
.exness-benefits-section {
  padding: 48px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
  border-bottom: 1px solid var(--border);
}

.benefits-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.benefits-header i {
  font-size: 28px;
  color: #3b82f6;
}

.benefits-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.benefits-list {
  display: grid;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.benefit-item i {
  color: #3b82f6;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* CTA Section */
.exness-cta-section {
  padding: 48px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 204, 106, 0.06) 100%);
  border: 2px solid var(--success);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}

.cta-box h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.cta-box > p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 32px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 48px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--success) 0%, #00cc6a 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 32px rgba(0, 255, 136, 0.3);
  text-decoration: none;
  margin-bottom: 20px;
}

.btn-cta-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 255, 136, 0.4);
}

.cta-disclaimer {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-disclaimer i {
  color: var(--success);
  font-size: 16px;
}

/* Warning */
.risk-warning {
  margin-top: 16px;
}

.warning-content {
  display: flex;
  gap: 20px;
  padding: 32px;
}

.warning-icon {
  flex-shrink: 0;
}

.warning-icon i {
  font-size: 32px;
  color: var(--warning);
}

.warning-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.warning-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .broker-container {
    gap: 32px;
  }
  
  .broker-intro-content {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }
  
  .intro-icon {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
  
  .intro-text h2 {
    font-size: 26px;
  }
  
  .intro-lead {
    font-size: 16px;
  }
  
  .section-title-center h2 {
    font-size: 26px;
  }
  
  .section-title-center > p {
    font-size: 16px;
  }
  
  .importance-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .exness-hero {
    padding: 32px 24px;
  }
  
  .exness-logo-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .exness-logo {
    width: 80px;
    height: 80px;
    font-size: 38px;
  }
  
  .exness-info h3 {
    font-size: 28px;
  }
  
  .exness-description {
    padding: 32px 24px;
  }
  
  .exness-features-section {
    padding: 32px 24px;
  }
  
  .exness-features-grid {
    grid-template-columns: 1fr;
  }
  
  .exness-benefits-section {
    padding: 32px 24px;
  }
  
  .exness-cta-section {
    padding: 32px 24px;
  }
  
  .cta-box {
    padding: 32px 24px;
  }
  
  .cta-box h3 {
    font-size: 24px;
  }
  
  .btn-cta-large {
    width: 100%;
    padding: 18px 32px;
    font-size: 16px;
  }
  
  .warning-content {
    flex-direction: column;
    padding: 24px;
  }
}