html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /* margin-bottom removido - ahora usamos flexbox layout */
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  min-height: 600px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Gráfico de líneas - esquina superior izquierda */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><polyline points="10,120 40,100 70,80 100,60 130,70 160,50 190,40" fill="none" stroke="%231e40af" stroke-width="3" opacity="0.2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="120" r="3" fill="%231e40af" opacity="0.3"/><circle cx="190" cy="40" r="3" fill="%2306b6d4" opacity="0.3"/></svg>'),
    /* Gráfico de barras - esquina superior derecha */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><rect x="20" y="100" width="25" height="30" fill="%231e40af" opacity="0.2" rx="2"/><rect x="55" y="80" width="25" height="50" fill="%231e40af" opacity="0.25" rx="2"/><rect x="90" y="60" width="25" height="70" fill="%2306b6d4" opacity="0.25" rx="2"/><rect x="125" y="70" width="25" height="60" fill="%2306b6d4" opacity="0.2" rx="2"/><rect x="160" y="50" width="25" height="80" fill="%233b82f6" opacity="0.2" rx="2"/></svg>'),
    /* Línea de tendencia ascendente - centro izquierda */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><line x1="20" y1="180" x2="280" y2="20" stroke="%2306b6d4" stroke-width="4" opacity="0.15" stroke-dasharray="10,5"/><circle cx="20" cy="180" r="5" fill="%231e40af" opacity="0.2"/><circle cx="280" cy="20" r="5" fill="%2306b6d4" opacity="0.2"/></svg>'),
    /* Gráfico circular/pie chart abstracto - centro derecha */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="60" fill="none" stroke="%231e40af" stroke-width="8" opacity="0.15" stroke-dasharray="94,31"/><circle cx="100" cy="100" r="60" fill="none" stroke="%2306b6d4" stroke-width="8" opacity="0.15" stroke-dasharray="31,94" transform="rotate(75 100 100)"/></svg>'),
    /* Gráfico de área - esquina inferior izquierda */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 180"><polygon points="10,150 50,120 90,100 130,80 170,90 210,70 250,60 250,150 10,150" fill="%231e40af" opacity="0.1"/><polyline points="10,150 50,120 90,100 130,80 170,90 210,70 250,60" fill="none" stroke="%231e40af" stroke-width="3" opacity="0.2" stroke-linecap="round"/></svg>'),
    /* Gráfico de puntos dispersos - esquina inferior derecha */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><circle cx="30" cy="30" r="4" fill="%231e40af" opacity="0.25"/><circle cx="80" cy="50" r="4" fill="%2306b6d4" opacity="0.25"/><circle cx="130" cy="40" r="4" fill="%231e40af" opacity="0.25"/><circle cx="50" cy="80" r="4" fill="%233b82f6" opacity="0.25"/><circle cx="100" cy="70" r="4" fill="%2306b6d4" opacity="0.25"/><circle cx="150" cy="90" r="4" fill="%231e40af" opacity="0.25"/><circle cx="70" cy="110" r="4" fill="%2306b6d4" opacity="0.25"/><circle cx="120" cy="100" r="4" fill="%233b82f6" opacity="0.25"/><circle cx="170" cy="120" r="4" fill="%231e40af" opacity="0.25"/></svg>'),
    /* Grid de datos - fondo general */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%231e40af" stroke-width="0.5" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  background-size: 
    300px 225px,
    300px 225px,
    400px 267px,
    250px 250px,
    350px 252px,
    300px 225px,
    200px 200px;
  background-position: 
    5% 5%,
    92% 8%,
    8% 45%,
    88% 50%,
    5% 75%,
    90% 80%,
    0 0;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    transparent 15%,
    transparent 85%,
    rgba(255, 255, 255, 0.9) 100%
  );
  z-index: 1;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 80px 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  animation: fadeInUp 0.8s ease-out;
}

.hero-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: inherit;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: inherit;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-description {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: inherit;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.1s ease-out;
}

.hero-buttons {
  animation: fadeInUp 1.2s ease-out;
}

.btn-inscribirme {
  background: var(--accent-color);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-inscribirme:hover {
  background: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
  color: white;
}

.btn-inscribirme:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FEATURES SECTION ========== */
.features-section {
  background: var(--background-subtle);
}

[data-bs-theme="dark"] .features-section {
  background: #1a1a1a;
}

.feature-card {
  padding: 30px 20px;
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 15px;
}

.feature-text {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--background-subtle);
  border-top: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .cta-section {
  background: #1a1a1a;
  border-top: 1px solid #404040;
}

/* ========== SUSCRIPCIÓN PAGE ========== */
.suscripcion-page {
  background: var(--background-subtle);
  min-height: calc(100vh - 200px);
}

.plan-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-color);
  color: white;
  padding: 5px 40px;
  font-size: 0.85rem;
  font-weight: 600;
  transform: rotate(45deg);
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.3);
  z-index: 10;
}

.plan-premium {
  border: 3px solid var(--primary-color);
}

.plan-header {
  background: var(--primary-color);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.plan-basico .plan-header {
  background: var(--secondary-color);
}

.plan-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.amount {
  font-size: 3.5rem;
}

.period {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
}

.plan-body {
  padding: 30px;
  flex-grow: 1;
}

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

.plan-features li {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features i {
  font-size: 1.5rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.plan-features span {
  color: #1f2937;
}

.plan-footer {
  padding: 30px;
  background: var(--background-subtle);
}

.btn-whatsapp {
  background: #25d366;
  border: none;
  color: white;
  font-weight: 600;
  padding: 15px 30px;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  color: white;
}

.btn-whatsapp i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.info-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
  color: var(--primary-color);
  font-weight: 600;
}

.info-card h4 i {
  margin-right: 10px;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  color: #6b7280;
  line-height: 1.6;
}

.info-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1;
}

/* ========== VARIABLES CSS ========== */
:root {
  --primary-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  --secondary-gradient: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #06b6d4;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --background-light: #ffffff;
  --background-subtle: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

/* ========== NAVBAR MEJORADO ========== */
header nav.navbar,
nav.navbar.bg-gradient-primary,
.navbar.bg-gradient-primary {
  background: var(--background-light) !important;
  border-bottom: 1px solid var(--border-color) !important;
  backdrop-filter: blur(10px);
  overflow: visible !important;
  position: relative;
  z-index: 1030;
}

.navbar-collapse {
  overflow: visible !important;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem;
  margin: 0 0.25rem;
}

.navbar-nav .dropdown {
  position: relative;
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5em;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: var(--background-subtle);
  transform: translateY(-1px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-color) !important;
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  z-index: 1050 !important;
  min-width: 200px;
  background: var(--background-light) !important;
}

.navbar-nav .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
}

.dropdown-item {
  transition: all 0.2s ease;
  padding: 0.75rem 1.25rem;
}

.dropdown-item:hover {
  background: var(--background-subtle);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
  margin-top: auto;
  position: relative !important; /* Override position: absolute del CSS antiguo */
  bottom: auto !important;
  width: 100% !important;
}

.footer a {
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color) !important;
}

/* ========== LOGIN PAGE MEJORADO ========== */
.login-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  background: var(--background-subtle);
  padding: 2rem 0;
}

.login-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-muted);
}

.form-floating > label {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--primary-dark);
  color: white;
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* ========== CARDS GENERALES MEJORADAS ========== */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.card-header {
  background: var(--background-subtle);
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  border-radius: 1rem 1rem 0 0 !important;
  font-weight: 600;
  padding: 1rem 1.5rem;
}

[data-bs-theme="dark"] .card-header {
  background: #404040 !important;
  color: #ffffff !important;
  border-bottom: 1px solid #505050 !important;
}

/* ========== TABLAS MEJORADAS ========== */
.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead {
  background: var(--background-subtle);
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: var(--background-subtle);
}

/* ========== BADGES Y ALERTAS ========== */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

.alert {
  border: none;
  border-radius: 0.75rem;
  border-left: 4px solid;
}

.alert-success {
  border-left-color: #198754;
  background: rgba(25, 135, 84, 0.1);
}

.alert-danger {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.alert-info {
  border-left-color: var(--primary-color);
  background: rgba(30, 64, 175, 0.1);
}

.alert-warning {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}

/* ========== BOTONES MEJORADOS ========== */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn:not(.btn-link):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* ========== SCROLL SUAVE ========== */
html {
  scroll-behavior: smooth;
}

/* ========== ANIMACIONES ADICIONALES ========== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: slideInRight 0.5s ease-out;
}

/* ========== RESPONSIVE ========== */

/* Tablets (577px - 991px) */
@media (min-width: 577px) and (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

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

  .plan-header {
    padding: 35px 25px;
  }

  .plan-name {
    font-size: 1.75rem;
  }

  .plan-price {
    font-size: 2.75rem;
  }

  .amount {
    font-size: 3.25rem;
  }

  .feature-card {
    margin-bottom: 1.5rem;
  }

  .table th,
  .table td {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .card-header .row.g-3 > div {
    margin-bottom: 0.5rem;
  }
}

/* Móviles y tablets pequeñas (max-width: 768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .plan-price {
    font-size: 2.5rem;
  }

  .amount {
    font-size: 3rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-buttons .btn.me-3 {
    margin-right: 0 !important;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .login-card {
    padding: 1.5rem;
  }

  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Tablas responsive */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
    white-space: nowrap;
  }

  /* Ocultar columnas menos importantes en móviles */
  .table .d-none-mobile {
    display: none !important;
  }

  /* Mejorar cards en móviles */
  .card-header h5 {
    font-size: 1rem;
  }

  /* Filtros apilados en móviles */
  .card-header .row.g-3 > div {
    margin-bottom: 0.75rem;
  }

  /* Hero section mejorado */
  .hero-section {
    min-height: 500px;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }

  /* Cards de planes mejoradas en móviles */
  .plan-card {
    margin-bottom: 2rem;
  }

  .plan-header {
    padding: 30px 20px !important;
  }

  .plan-name {
    font-size: 1.5rem !important;
  }

  .plan-price {
    font-size: 2rem !important;
  }

  .amount {
    font-size: 2.5rem !important;
  }

  .plan-features li {
    padding: 12px 0 !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 576px) {
  .form-control,
  .form-select {
    font-size: 16px; /* Evita zoom en iOS */
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  /* Títulos y botones en móviles */
  .d-flex.justify-content-between h2 {
    font-size: 1.5rem;
  }

  /* Mejorar espaciado en formularios móviles */
  .form-floating {
    margin-bottom: 1rem;
  }
}

/* ========== MODO OSCURO PERSONALIZADO ========== */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #ffffff;
    color: #ffffff;
}

[data-bs-theme="dark"] body {
    background-color: #1a1a1a;
    color: #ffffff;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .card {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .card-header {
    background-color: #404040 !important;
    border-bottom-color: #505050 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .card-header form {
    color: #ffffff;
}

[data-bs-theme="dark"] .card-header .form-control,
[data-bs-theme="dark"] .card-header .form-select {
    background-color: #2d2d2d;
    border-color: #505050;
    color: #ffffff;
}

[data-bs-theme="dark"] .card-header .form-control::placeholder {
    color: #a0a0a0;
}

[data-bs-theme="dark"] .card-header .btn {
    color: #ffffff;
}

[data-bs-theme="dark"] .card-header .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .card-header .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .card-body {
    background-color: #2d2d2d;
    color: #ffffff;
}

[data-bs-theme="dark"] .card-header h5 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: #2d2d2d;
    --bs-table-color: #ffffff;
    --bs-table-striped-bg: #353535;
    --bs-table-hover-bg: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .table thead {
    background-color: #404040 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .table thead th {
    color: #ffffff !important;
    border-color: #505050 !important;
}

[data-bs-theme="dark"] .table tbody td {
    color: #ffffff !important;
    border-color: #404040 !important;
}

[data-bs-theme="dark"] .table tbody tr {
    background-color: #2d2d2d;
    color: #ffffff;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #353535;
    color: #ffffff;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

[data-bs-theme="dark"] .form-label {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .form-floating > label {
    color: #a0a0a0;
}

[data-bs-theme="dark"] .form-floating > .form-control:focus ~ label,
[data-bs-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #ffffff;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2d2d2d;
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #404040;
    color: white;
}

[data-bs-theme="dark"] .alert {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .alert-success {
    background: rgba(25, 135, 84, 0.2);
    border-left-color: #198754;
}

[data-bs-theme="dark"] .alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-left-color: #dc3545;
}

[data-bs-theme="dark"] .alert-info {
    background: rgba(30, 64, 175, 0.2);
    border-left-color: var(--primary-color);
}

[data-bs-theme="dark"] .alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left-color: #ffc107;
}

[data-bs-theme="dark"] .footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
}

[data-bs-theme="dark"] .page-link {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .page-link:hover {
    background-color: #404040;
    border-color: #404040;
    color: white;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .text-muted {
    color: #b0b0b0 !important;
}

[data-bs-theme="dark"] p {
    color: #ffffff;
}

[data-bs-theme="dark"] .lead {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .small,
[data-bs-theme="dark"] small {
    color: #b0b0b0;
}

[data-bs-theme="dark"] .badge {
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #ffffff;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

[data-bs-theme="dark"] .table-secondary {
    background-color: #404040 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] dl dt {
    color: #e0e0e0;
}

[data-bs-theme="dark"] dl dd {
    color: #ffffff;
}

/* ========== MODO OSCURO - HERO SECTION ========== */
[data-bs-theme="dark"] .hero-section {
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
}

[data-bs-theme="dark"] .hero-section::before {
  background-image: 
    /* Gráfico de líneas - esquina superior izquierda */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><polyline points="10,120 40,100 70,80 100,60 130,70 160,50 190,40" fill="none" stroke="%233b82f6" stroke-width="3" opacity="0.3" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="120" r="3" fill="%233b82f6" opacity="0.4"/><circle cx="190" cy="40" r="3" fill="%2306b6d4" opacity="0.4"/></svg>'),
    /* Gráfico de barras - esquina superior derecha */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><rect x="20" y="100" width="25" height="30" fill="%233b82f6" opacity="0.3" rx="2"/><rect x="55" y="80" width="25" height="50" fill="%233b82f6" opacity="0.35" rx="2"/><rect x="90" y="60" width="25" height="70" fill="%2306b6d4" opacity="0.35" rx="2"/><rect x="125" y="70" width="25" height="60" fill="%2306b6d4" opacity="0.3" rx="2"/><rect x="160" y="50" width="25" height="80" fill="%233b82f6" opacity="0.3" rx="2"/></svg>'),
    /* Línea de tendencia ascendente - centro izquierda */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><line x1="20" y1="180" x2="280" y2="20" stroke="%2306b6d4" stroke-width="4" opacity="0.25" stroke-dasharray="10,5"/><circle cx="20" cy="180" r="5" fill="%233b82f6" opacity="0.3"/><circle cx="280" cy="20" r="5" fill="%2306b6d4" opacity="0.3"/></svg>'),
    /* Gráfico circular/pie chart abstracto - centro derecha */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="60" fill="none" stroke="%233b82f6" stroke-width="8" opacity="0.25" stroke-dasharray="94,31"/><circle cx="100" cy="100" r="60" fill="none" stroke="%2306b6d4" stroke-width="8" opacity="0.25" stroke-dasharray="31,94" transform="rotate(75 100 100)"/></svg>'),
    /* Gráfico de área - esquina inferior izquierda */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 180"><polygon points="10,150 50,120 90,100 130,80 170,90 210,70 250,60 250,150 10,150" fill="%233b82f6" opacity="0.15"/><polyline points="10,150 50,120 90,100 130,80 170,90 210,70 250,60" fill="none" stroke="%233b82f6" stroke-width="3" opacity="0.3" stroke-linecap="round"/></svg>'),
    /* Gráfico de puntos dispersos - esquina inferior derecha */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><circle cx="30" cy="30" r="4" fill="%233b82f6" opacity="0.35"/><circle cx="80" cy="50" r="4" fill="%2306b6d4" opacity="0.35"/><circle cx="130" cy="40" r="4" fill="%233b82f6" opacity="0.35"/><circle cx="50" cy="80" r="4" fill="%233b82f6" opacity="0.35"/><circle cx="100" cy="70" r="4" fill="%2306b6d4" opacity="0.35"/><circle cx="150" cy="90" r="4" fill="%233b82f6" opacity="0.35"/><circle cx="70" cy="110" r="4" fill="%2306b6d4" opacity="0.35"/><circle cx="120" cy="100" r="4" fill="%233b82f6" opacity="0.35"/><circle cx="170" cy="120" r="4" fill="%233b82f6" opacity="0.35"/></svg>'),
    /* Grid de datos - fondo general */
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid-dark" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%233b82f6" stroke-width="0.5" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grid-dark)"/></svg>');
}

[data-bs-theme="dark"] .hero-section::after {
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.9) 0%,
    transparent 15%,
    transparent 85%,
    rgba(26, 26, 26, 0.9) 100%
  );
}

[data-bs-theme="dark"] .hero-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-bs-theme="dark"] .hero-highlight {
    background: rgba(45, 45, 45, 0.8);
    border-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .hero-highlight strong {
    color: #ffffff;
}

[data-bs-theme="dark"] .hero-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .hero-subtitle {
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .hero-highlight {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .hero-highlight strong {
    color: #ffffff;
}

/* ========== MODO OSCURO - FEATURES SECTION ========== */
[data-bs-theme="dark"] .features-section {
    background: #1a1a1a;
}

[data-bs-theme="dark"] .feature-card {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

[data-bs-theme="dark"] .feature-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .feature-text {
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .feature-icon {
    color: var(--primary-color);
}

/* ========== MODO OSCURO - NAVBAR ========== */
[data-bs-theme="dark"] header nav.navbar,
[data-bs-theme="dark"] nav.navbar.bg-gradient-primary,
[data-bs-theme="dark"] .navbar.bg-gradient-primary {
    background: #1a1a1a !important;
    border-bottom: 1px solid #404040 !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: #2d2d2d;
}

[data-bs-theme="dark"] .navbar-brand {
    color: var(--primary-color) !important;
}

/* ========== MODO OSCURO - BOTONES ========== */
[data-bs-theme="dark"] .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: #6c757d;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

/* ========== MODO OSCURO - WHY SUBSCRIBE SECTION ========== */
[data-bs-theme="dark"] .why-subscribe-section {
    background: #1a1a1a;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

[data-bs-theme="dark"] .benefit-item {
    background: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .benefit-item:hover {
    background: #353535;
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .benefit-item h5 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .subscribe-cta-card {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .cta-header h3 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .cta-plans-preview {
    background-color: #353535;
    border-color: #404040;
}

[data-bs-theme="dark"] .plan-preview-item {
    color: #ffffff !important;
}

/* ========== MODO OSCURO - CTA SECTION ========== */
[data-bs-theme="dark"] .cta-section.bg-light {
    background: #1a1a1a !important;
    border-top: 1px solid #404040;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #1a1a1a !important;
}

[data-bs-theme="dark"] h2 {
    color: #ffffff !important;
}

/* ========== MODO OSCURO - SUSCRIPCIÓN PAGE ========== */
[data-bs-theme="dark"] .suscripcion-page {
    background: #1a1a1a;
}

/* ========== MODO OSCURO - CONTACTO PAGE ========== */
[data-bs-theme="dark"] .contacto-page {
    background: #1a1a1a;
}

/* ========== PÁGINA DE CONTACTO ========== */
.contacto-page {
    background: var(--background-subtle);
    min-height: calc(100vh - 200px);
}

.contact-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 40px;
    height: 100%;
}

.contact-card h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.contact-info-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
}

.contact-info-card h4 {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

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

.contact-item h5 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.whatsapp-buttons .btn-whatsapp-contact {
    background: #25d366;
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.whatsapp-buttons .btn-whatsapp-contact:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

.info-box {
    background: var(--background-subtle);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 5px;
    color: var(--text-muted);
}

/* ========== SECCIÓN DE EXHORTACIÓN ========== */
.why-subscribe-section {
    background: var(--background-light);
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.why-subscribe-section h2,
.why-subscribe-section h5 {
    color: var(--text-dark);
}

.why-subscribe-section .text-muted {
    color: var(--text-muted) !important;
}

.subscribe-content h2 {
    margin-bottom: 2rem;
}

.benefits-list {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: var(--background-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.benefit-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.benefit-item h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.subscribe-cta-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.cta-header h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.cta-header .lead {
    color: var(--text-muted);
}

.cta-plans-preview {
    background: var(--background-subtle);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
}

.plan-preview-item {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.cta-buttons .btn {
    transition: all 0.3s ease;
}

.hero-highlight {
    background: var(--background-subtle);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    font-size: 1.1rem;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-highlight strong {
    color: var(--text-dark);
}

/* ========== FOOTER MEJORADO ========== */
.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer a.text-muted {
    transition: color 0.3s ease;
}

.footer a.text-muted:hover {
    color: var(--primary-color) !important;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.footer hr {
    opacity: 0.2;
}

/* ========== RESPONSIVE CONTACTO Y EXHORTACIÓN ========== */
@media (max-width: 768px) {
    .contact-card,
    .contact-info-card {
        padding: 25px;
        margin-bottom: 2rem;
    }

    .subscribe-cta-card {
        padding: 25px;
        margin-top: 2rem;
    }

    .why-subscribe-section h2 {
        font-size: 2rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-item i {
        margin-bottom: 10px;
    }

    .footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-highlight {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}

/* ========== MODO OSCURO PARA NUEVAS SECCIONES ========== */
[data-bs-theme="dark"] .contacto-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-bs-theme="dark"] .contact-card,
[data-bs-theme="dark"] .contact-info-card,
[data-bs-theme="dark"] .subscribe-cta-card {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .contact-card h3,
[data-bs-theme="dark"] .contact-info-card h4,
[data-bs-theme="dark"] .subscribe-cta-card h3 {
    color: #ffffff;
}

[data-bs-theme="dark"] .info-box {
    background-color: #404040;
    border-left-color: var(--primary-color);
    color: #e0e0e0;
}

[data-bs-theme="dark"] .cta-plans-preview {
    background-color: #404040;
}

[data-bs-theme="dark"] .plan-preview-item {
    color: #ffffff;
}

[data-bs-theme="dark"] .benefit-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== ABOUT SAMI SECTION ========== */
.about-sami-section {
    background: var(--background-subtle);
    position: relative;
}

.about-sami-content {
    padding: 1rem 0;
}

.about-sami-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: inherit;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.about-sami-text {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-dark);
    font-family: inherit;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-sami-text:last-of-type {
    margin-bottom: 0;
}

.about-sami-text strong {
    font-weight: 600;
    color: var(--primary-color);
    font-size: inherit;
}

.about-sami-features {
    padding: 1rem 0;
}

.feature-mini-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-mini-card i {
    transition: transform 0.3s ease;
}

.feature-mini-card:hover i {
    transform: scale(1.1);
}

[data-bs-theme="dark"] .about-sami-section {
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .feature-mini-card {
    background: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .feature-mini-card:hover {
    border-color: var(--primary-color);
    background: #353535;
}

[data-bs-theme="dark"] .feature-mini-card .text-muted {
    color: #b0b0b0 !important;
}

/* ========== SIMULACRO - CATEGORÍAS Y SUBCATEGORÍAS ========== */
.pregunta-categorias {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pregunta-categorias .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.pregunta-categorias .badge i {
    font-size: 0.75rem;
}

.card-header {
    background: var(--background-subtle);
    border-bottom: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .card-header {
    background: #2d2d2d;
    border-bottom-color: #404040;
}

[data-bs-theme="dark"] .pregunta-categorias .badge.bg-primary {
    background-color: var(--primary-color) !important;
}

[data-bs-theme="dark"] .pregunta-categorias .badge.bg-info {
    background-color: var(--accent-color) !important;
}

/* ========== RESULTADOS POR SUBCATEGORÍA ========== */
.categoria-group {
    margin-bottom: 2rem;
}

.categoria-title {
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.subcategoria-table {
    margin-bottom: 0;
}

.subcategoria-table thead th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.subcategoria-table tbody tr {
    transition: background-color 0.2s ease;
}

.subcategoria-table tbody tr:hover {
    background-color: var(--background-subtle);
}

.subcategoria-table tfoot tr {
    font-weight: 600;
    background-color: var(--background-subtle);
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3em;
}

/* Modo oscuro para resultados por subcategoría */
[data-bs-theme="dark"] .categoria-title {
    color: var(--secondary-color);
    border-bottom-color: #404040;
}

[data-bs-theme="dark"] .subcategoria-table thead {
    background-color: #2d2d2d !important;
    border-bottom-color: #404040;
}

[data-bs-theme="dark"] .subcategoria-table thead th {
    color: #ffffff;
}

[data-bs-theme="dark"] .subcategoria-table tbody tr:hover {
    background-color: #353535;
}

[data-bs-theme="dark"] .subcategoria-table tfoot tr {
    background-color: #2d2d2d;
    color: #ffffff;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: #353535;
    color: #ffffff;
}