/* ================================
   RTCStream - Sistema de Diseño Unificado
   Archivo principal para mantener consistencia visual
   ================================ */

/* CSS Variables - Design Tokens */
:root {
  /* === COLORES PRINCIPALES === */
  --rtc-primary: #10b981;           /* Emerald 500 */
  --rtc-primary-light: #34d399;     /* Emerald 400 */
  --rtc-primary-dark: #059669;      /* Emerald 600 */
  --rtc-primary-darker: #047857;    /* Emerald 700 */
  --rtc-primary-darkest: #065f46;   /* Emerald 800 */
  --rtc-primary-subtle: #ecfdf5;    /* Emerald 50 */

  /* === COLORES SEMÁNTICOS === */
  --rtc-success: #10b981;
  --rtc-warning: #f59e0b;
  --rtc-danger: #ef4444;
  --rtc-info: #3b82f6;

  /* === ESCALA DE GRISES === */
  --rtc-white: #ffffff;
  --rtc-gray-50: #f8fafc;
  --rtc-gray-100: #f1f5f9;
  --rtc-gray-200: #e2e8f0;
  --rtc-gray-300: #cbd5e1;
  --rtc-gray-400: #94a3b8;
  --rtc-gray-500: #64748b;
  --rtc-gray-600: #475569;
  --rtc-gray-700: #334155;
  --rtc-gray-800: #1e293b;
  --rtc-gray-900: #0f172a;

  /* === SOMBRAS MODERNAS === */
  --rtc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --rtc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --rtc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --rtc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --rtc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --rtc-shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --rtc-shadow-primary: 0 4px 14px 0 rgba(16, 185, 129, 0.2);
  --rtc-shadow-hover: 0 12px 24px -6px rgba(0, 0, 0, 0.16);

  /* === RADIO DE BORDES === */
  --rtc-radius-sm: 0.375rem;        /* 6px */
  --rtc-radius-md: 0.5rem;          /* 8px */
  --rtc-radius-lg: 0.75rem;         /* 12px */
  --rtc-radius-xl: 1rem;            /* 16px */
  --rtc-radius-2xl: 1.5rem;         /* 24px */
  --rtc-radius-full: 9999px;

  /* === ESPACIADO === */
  --rtc-space-xs: 0.25rem;          /* 4px */
  --rtc-space-sm: 0.5rem;           /* 8px */
  --rtc-space-md: 1rem;             /* 16px */
  --rtc-space-lg: 1.5rem;           /* 24px */
  --rtc-space-xl: 2rem;             /* 32px */
  --rtc-space-2xl: 3rem;            /* 48px */
  --rtc-space-3xl: 4rem;            /* 64px */

  /* === TIPOGRAFÍA === */
  --rtc-font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --rtc-font-size-xs: 0.75rem;      /* 12px */
  --rtc-font-size-sm: 0.875rem;     /* 14px */
  --rtc-font-size-base: 1rem;       /* 16px */
  --rtc-font-size-lg: 1.125rem;     /* 18px */
  --rtc-font-size-xl: 1.25rem;      /* 20px */
  --rtc-font-size-2xl: 1.5rem;      /* 24px */
  --rtc-font-size-3xl: 1.875rem;    /* 30px */
  --rtc-font-size-4xl: 2.25rem;     /* 36px */
  --rtc-font-size-5xl: 3rem;        /* 48px */

  /* === TRANSICIONES === */
  --rtc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --rtc-transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --rtc-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --rtc-transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET Y BASE
   ================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--rtc-font-family);
  line-height: 1.6;
  color: var(--rtc-gray-700);
  background: var(--rtc-gray-50);
  margin: 0;
  padding: 0;
}

/* ================================
   COMPONENTES BASE
   ================================ */

/* === TARJETAS MODERNAS === */
.rtc-card {
  background: var(--rtc-white);
  border-radius: var(--rtc-radius-xl);
  box-shadow: var(--rtc-shadow-sm);
  border: 1px solid var(--rtc-gray-100);
  overflow: hidden;
  transition: all var(--rtc-transition-normal);
  position: relative;
}

.rtc-card:hover {
  box-shadow: var(--rtc-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--rtc-gray-200);
}

.rtc-card-header {
  padding: var(--rtc-space-lg) var(--rtc-space-xl);
  border-bottom: 1px solid var(--rtc-gray-100);
  background: linear-gradient(to bottom, var(--rtc-white), var(--rtc-gray-50));
}

.rtc-card-body {
  padding: var(--rtc-space-xl);
}

.rtc-card-footer {
  padding: var(--rtc-space-lg) var(--rtc-space-xl);
  border-top: 1px solid var(--rtc-gray-100);
  background: var(--rtc-gray-50);
}

/* Variantes de tarjetas */
.rtc-card--elevated {
  box-shadow: var(--rtc-shadow-lg);
}

.rtc-card--interactive {
  cursor: pointer;
  transition: all var(--rtc-transition-fast);
}

.rtc-card--interactive:active {
  transform: scale(0.98);
}

.rtc-card--primary {
  border-color: var(--rtc-primary-light);
  background: linear-gradient(135deg, var(--rtc-white) 0%, var(--rtc-primary-subtle) 100%);
}

.rtc-card--stats {
  text-align: center;
  padding: var(--rtc-space-lg);
}

/* === BOTONES MODERNOS === */
.rtc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rtc-space-sm);
  padding: 0.625rem 1.25rem;
  border-radius: var(--rtc-radius-lg);
  font-weight: 600;
  font-size: var(--rtc-font-size-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--rtc-transition-normal);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.rtc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* Efecto ripple al hacer click */
.rtc-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.rtc-btn:active::before {
  width: 300px;
  height: 300px;
}

/* Variantes de botones */
.rtc-btn--primary {
  background: linear-gradient(135deg, var(--rtc-primary), var(--rtc-primary-dark));
  color: var(--rtc-white);
  box-shadow: var(--rtc-shadow-sm), var(--rtc-shadow-primary);
}

.rtc-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--rtc-primary-light), var(--rtc-primary));
  box-shadow: var(--rtc-shadow-md), var(--rtc-shadow-primary);
  transform: translateY(-1px);
}

.rtc-btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--rtc-shadow-sm), var(--rtc-shadow-primary);
}

.rtc-btn--secondary {
  background: var(--rtc-white);
  color: var(--rtc-gray-700);
  border: 1.5px solid var(--rtc-gray-200);
  box-shadow: var(--rtc-shadow-sm);
}

.rtc-btn--secondary:hover:not(:disabled) {
  background: var(--rtc-gray-50);
  border-color: var(--rtc-gray-300);
  box-shadow: var(--rtc-shadow-md);
  transform: translateY(-1px);
}

.rtc-btn--ghost {
  background: transparent;
  color: var(--rtc-primary);
  border: 1.5px solid var(--rtc-primary);
}

.rtc-btn--ghost:hover:not(:disabled) {
  background: var(--rtc-primary-subtle);
  border-color: var(--rtc-primary-dark);
  box-shadow: var(--rtc-shadow-sm);
}

.rtc-btn--danger {
  background: linear-gradient(135deg, var(--rtc-danger), #dc2626);
  color: var(--rtc-white);
}

.rtc-btn--danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: var(--rtc-shadow-md), 0 4px 14px 0 rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* Tamaños de botones */
.rtc-btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--rtc-font-size-xs);
  gap: 0.375rem;
}

.rtc-btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--rtc-font-size-base);
  border-radius: var(--rtc-radius-xl);
}

.rtc-btn--xl {
  padding: 1rem 2.5rem;
  font-size: var(--rtc-font-size-lg);
  border-radius: var(--rtc-radius-xl);
}

/* === BADGES === */
.rtc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--rtc-radius-md);
  font-size: var(--rtc-font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rtc-badge--success {
  background: #d1fae5;
  color: #065f46;
}

.rtc-badge--warning {
  background: #fef3c7;
  color: #92400e;
}

.rtc-badge--danger {
  background: #fee2e2;
  color: #991b1b;
}

.rtc-badge--info {
  background: #dbeafe;
  color: #1e40af;
}

/* === HEADERS UNIFICADOS === */
.rtc-header {
  background: linear-gradient(135deg, var(--rtc-primary) 0%, var(--rtc-primary-dark) 50%, var(--rtc-primary-darker) 100%);
  color: var(--rtc-white);
  box-shadow: var(--rtc-shadow-md);
  position: relative;
  overflow: hidden;
}

.rtc-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.rtc-header-content {
  position: relative;
  z-index: 10;
  padding: var(--rtc-space-md) var(--rtc-space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rtc-header-brand {
  display: flex;
  align-items: center;
  gap: var(--rtc-space-md);
}

.rtc-header-logo {
  height: 2rem;
  width: auto;
}

.rtc-header-title {
  font-size: var(--rtc-font-size-xl);
  font-weight: 700;
  margin: 0;
}

.rtc-header-subtitle {
  font-size: var(--rtc-font-size-sm);
  opacity: 0.9;
  margin: 0;
}

.rtc-header-actions {
  display: flex;
  align-items: center;
  gap: var(--rtc-space-md);
}

/* === NAVEGACIÓN MÓVIL === */
.rtc-mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--rtc-white);
  padding: var(--rtc-space-sm);
  border-radius: var(--rtc-radius-md);
  cursor: pointer;
}

.rtc-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.rtc-mobile-menu-content {
  background: var(--rtc-white);
  width: 280px;
  height: 100%;
  padding: var(--rtc-space-lg);
  box-shadow: var(--rtc-shadow-xl);
  overflow-y: auto;
}

/* === RESPONSIVIDAD === */
@media (max-width: 768px) {
  .rtc-mobile-menu-toggle {
    display: flex;
  }
  
  .rtc-header-content {
    padding: var(--rtc-space-md);
  }
  
  .rtc-header-title {
    font-size: var(--rtc-font-size-lg);
  }
  
  .rtc-card-header,
  .rtc-card-body,
  .rtc-card-footer {
    padding: var(--rtc-space-md);
  }
}

/* === GRID SYSTEM === */
.rtc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--rtc-space-md);
}

.rtc-grid {
  display: grid;
  gap: var(--rtc-space-lg);
}

.rtc-grid--cols-1 { grid-template-columns: 1fr; }
.rtc-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.rtc-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.rtc-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .rtc-grid--cols-2,
  .rtc-grid--cols-3,
  .rtc-grid--cols-4 {
    grid-template-columns: 1fr;
  }
}

/* === UTILIDADES === */
.rtc-text-center { text-align: center; }
.rtc-text-right { text-align: right; }
.rtc-text-primary { color: var(--rtc-primary); }
.rtc-text-danger { color: var(--rtc-danger); }
.rtc-text-success { color: var(--rtc-success); }
.rtc-text-warning { color: var(--rtc-warning); }

.rtc-bg-primary { background-color: var(--rtc-primary); }
.rtc-bg-white { background-color: var(--rtc-white); }
.rtc-bg-gray-50 { background-color: var(--rtc-gray-50); }

.rtc-rounded { border-radius: var(--rtc-radius-md); }
.rtc-rounded-lg { border-radius: var(--rtc-radius-lg); }

.rtc-shadow { box-shadow: var(--rtc-shadow-md); }
.rtc-shadow-lg { box-shadow: var(--rtc-shadow-lg); }

.rtc-mt-md { margin-top: var(--rtc-space-md); }
.rtc-mb-md { margin-bottom: var(--rtc-space-md); }
.rtc-p-md { padding: var(--rtc-space-md); }
.rtc-p-lg { padding: var(--rtc-space-lg); }

/* === ANIMACIONES PROFESIONALES === */
@keyframes rtc-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rtc-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rtc-scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rtc-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes rtc-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.rtc-fade-in {
  animation: rtc-fade-in 0.4s ease-out;
}

.rtc-slide-up {
  animation: rtc-slide-up 0.5s ease-out;
}

.rtc-scale-in {
  animation: rtc-scale-in 0.3s ease-out;
}

.rtc-pulse {
  animation: rtc-pulse 2s ease-in-out infinite;
}

/* Retrasos de animación */
.rtc-delay-100 { animation-delay: 100ms; }
.rtc-delay-200 { animation-delay: 200ms; }
.rtc-delay-300 { animation-delay: 300ms; }
.rtc-delay-400 { animation-delay: 400ms; }

/* === COMPONENTES ADICIONALES === */

/* Stats Cards */
.rtc-stat {
  background: var(--rtc-white);
  border-radius: var(--rtc-radius-xl);
  padding: var(--rtc-space-xl);
  box-shadow: var(--rtc-shadow-sm);
  border: 1px solid var(--rtc-gray-100);
  transition: all var(--rtc-transition-normal);
}

.rtc-stat:hover {
  box-shadow: var(--rtc-shadow-md);
  transform: translateY(-2px);
}

.rtc-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--rtc-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--rtc-space-md);
  font-size: 1.5rem;
}

.rtc-stat-icon--primary {
  background: var(--rtc-primary-subtle);
  color: var(--rtc-primary);
}

.rtc-stat-icon--success {
  background: #d1fae5;
  color: var(--rtc-success);
}

.rtc-stat-icon--warning {
  background: #fef3c7;
  color: var(--rtc-warning);
}

.rtc-stat-icon--danger {
  background: #fee2e2;
  color: var(--rtc-danger);
}

.rtc-stat-value {
  font-size: var(--rtc-font-size-3xl);
  font-weight: 700;
  color: var(--rtc-gray-900);
  line-height: 1;
  margin-bottom: var(--rtc-space-sm);
}

.rtc-stat-label {
  font-size: var(--rtc-font-size-sm);
  color: var(--rtc-gray-600);
  font-weight: 500;
}

.rtc-stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--rtc-space-xs);
  margin-top: var(--rtc-space-md);
  font-size: var(--rtc-font-size-sm);
  font-weight: 600;
}

.rtc-stat-change--up {
  color: var(--rtc-success);
}

.rtc-stat-change--down {
  color: var(--rtc-danger);
}

/* Forms modernos */
.rtc-form-group {
  margin-bottom: var(--rtc-space-lg);
}

.rtc-form-label {
  display: block;
  font-size: var(--rtc-font-size-sm);
  font-weight: 600;
  color: var(--rtc-gray-700);
  margin-bottom: var(--rtc-space-sm);
}

.rtc-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--rtc-font-size-base);
  border: 1.5px solid var(--rtc-gray-200);
  border-radius: var(--rtc-radius-lg);
  background: var(--rtc-white);
  transition: all var(--rtc-transition-fast);
  outline: none;
}

.rtc-form-input:hover {
  border-color: var(--rtc-gray-300);
}

.rtc-form-input:focus {
  border-color: var(--rtc-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.rtc-form-input::placeholder {
  color: var(--rtc-gray-400);
}

/* Alerts modernos */
.rtc-alert {
  padding: var(--rtc-space-md) var(--rtc-space-lg);
  border-radius: var(--rtc-radius-lg);
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: var(--rtc-space-md);
  font-size: var(--rtc-font-size-sm);
  margin-bottom: var(--rtc-space-lg);
}

.rtc-alert--success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #065f46;
}

.rtc-alert--warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.rtc-alert--danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.rtc-alert--info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

/* === SCROLLBAR PERSONALIZADO === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--rtc-gray-50);
  border-radius: var(--rtc-radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--rtc-gray-300);
  border-radius: var(--rtc-radius-sm);
  border: 2px solid var(--rtc-gray-50);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rtc-primary);
}

/* === EFECTOS HOVER GLOBALES === */
.rtc-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--rtc-shadow-lg);
}

.rtc-hover-grow:hover {
  transform: scale(1.05);
}

.rtc-hover-bright:hover {
  filter: brightness(1.1);
}

/* === COMPONENTES === */

/* === ESTILOS ESPECÍFICOS DE DASHBOARDS === */

/* Dashboard Emisora */
.rtc-dashboard-emisora {
    --dashboard-accent: var(--rtc-primary);
    --dashboard-accent-light: var(--rtc-primary-light);
    --dashboard-accent-dark: var(--rtc-primary-dark);
}

/* Dashboard Demo */
.rtc-dashboard-demo {
    --dashboard-accent: var(--rtc-warning);
    --dashboard-accent-light: #fbbf24;
    --dashboard-accent-dark: #d97706;
}

/* Navegación con colores específicos */
.rtc-nav-primary {
    background: linear-gradient(135deg, var(--rtc-primary) 0%, var(--rtc-primary-dark) 100%);
}

.rtc-nav-demo {
    background: linear-gradient(135deg, var(--rtc-warning) 0%, #d97706 100%);
}

/* Cards con acentos de color */
.rtc-card-accent-primary {
    border-top: 3px solid var(--rtc-primary);
}

.rtc-card-accent-warning {
    border-top: 3px solid var(--rtc-warning);
}

/* Stat cards con colores */
.rtc-stat-card {
    background: white;
    border-radius: var(--rtc-radius-xl);
    box-shadow: var(--rtc-shadow-md);
    overflow: hidden;
    transition: all var(--rtc-transition-normal);
}

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

.rtc-stat-card-primary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.rtc-stat-card-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.rtc-stat-card-secondary {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.rtc-stat-card-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.rtc-stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.rtc-stat-card-icon {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: var(--rtc-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--rtc-shadow-sm);
}

.rtc-stat-card-primary .rtc-stat-card-icon {
    color: var(--rtc-primary);
    background: rgba(16, 185, 129, 0.1);
}

.rtc-stat-card-info .rtc-stat-card-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.rtc-stat-card-secondary .rtc-stat-card-icon {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.rtc-stat-card-info {
    flex: 1;
    margin-left: 1rem;
}

.rtc-stat-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.rtc-stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.rtc-stat-card-footer {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rtc-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.rtc-stat-trend-up {
    color: var(--rtc-success);
}

.rtc-stat-trend-down {
    color: var(--rtc-danger);
}

.rtc-stat-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #374151;
}

/* Player cards con temas */
.rtc-player-card {
    background: white;
    border-radius: var(--rtc-radius-xl);
    box-shadow: var(--rtc-shadow-lg);
    overflow: hidden;
}

.rtc-player-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.rtc-player-body {
    padding: 1.5rem;
    text-align: center;
}

.rtc-player-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--rtc-primary) 0%, var(--rtc-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rtc-shadow-md);
}

.rtc-player-icon-warning {
    background: linear-gradient(135deg, var(--rtc-warning) 0%, #d97706 100%);
}

.rtc-player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rtc-player-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
}

.rtc-player-btn-play {
    background: linear-gradient(135deg, var(--rtc-primary) 0%, var(--rtc-primary-dark) 100%);
    color: white;
    box-shadow: var(--rtc-shadow-lg);
}

.rtc-player-btn-play:hover {
    transform: scale(1.1);
    box-shadow: var(--rtc-shadow-xl);
}

.rtc-player-btn-stop {
    background: linear-gradient(135deg, var(--rtc-danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: var(--rtc-shadow-lg);
}

.rtc-player-btn-stop:hover {
    transform: scale(1.1);
    box-shadow: var(--rtc-shadow-xl);
}

.rtc-player-info {
    text-align: center;
}

.rtc-player-status {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.rtc-player-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

/* Navegación mejorada */
.rtc-nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--rtc-transition-fast);
}

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

.rtc-nav-link-active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Decoración de blobs */
.rtc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.rtc-blob-1 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.3);
    top: -100px;
    right: -100px;
}

.rtc-blob-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -75px;
    left: -75px;
    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);
    }
}

/* Badges mejorados */
.rtc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--rtc-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
}

.rtc-badge-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
}

.rtc-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.rtc-badge-dot-static {
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.rtc-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.rtc-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.rtc-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.rtc-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.rtc-badge-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.rtc-badge-light {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 1);
}

/* Botones mejorados */
.rtc-btn {
    position: relative;
    overflow: hidden;
}

.rtc-btn-success {
    background: linear-gradient(135deg, var(--rtc-success) 0%, #059669 100%);
    color: white;
    box-shadow: var(--rtc-shadow-sm), 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.rtc-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--rtc-shadow-md), 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.rtc-btn-warning {
    background: linear-gradient(135deg, var(--rtc-warning) 0%, #d97706 100%);
    color: white;
    box-shadow: var(--rtc-shadow-sm), 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.rtc-btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: var(--rtc-shadow-md), 0 6px 20px 0 rgba(245, 158, 11, 0.4);
}

.rtc-btn-danger {
    background: linear-gradient(135deg, var(--rtc-danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: var(--rtc-shadow-sm), 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.rtc-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--rtc-shadow-md), 0 6px 20px 0 rgba(239, 68, 68, 0.4);
}

.rtc-btn-primary {
    background: linear-gradient(135deg, var(--rtc-primary) 0%, var(--rtc-primary-dark) 100%);
    color: white;
    box-shadow: var(--rtc-shadow-sm), var(--rtc-shadow-primary);
}

.rtc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--rtc-shadow-md), 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.rtc-btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
}

.rtc-btn-light:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.rtc-btn-ghost {
    background: transparent;
    color: #6b7280;
    border: none;
}

.rtc-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.rtc-btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
}

.rtc-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.rtc-btn-md {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.rtc-btn-block {
    width: 100%;
}

/* Tabs modernos */
.rtc-tabs {
    border-bottom: 1px solid #e5e7eb;
}

.rtc-tabs-list {
    display: flex;
    gap: 0.5rem;
    margin-bottom: -1px;
}

.rtc-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--rtc-transition-fast);
    position: relative;
}

.rtc-tab:hover {
    color: #374151;
    background: #f9fafb;
}

.rtc-tab-active {
    color: var(--rtc-primary);
    border-bottom-color: var(--rtc-primary);
    font-weight: 600;
}

/* Iconos circulares */
.rtc-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.rtc-icon-circle-lg {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
}

.rtc-icon-circle-primary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--rtc-primary);
}

.rtc-icon-circle-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.rtc-icon-circle-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--rtc-warning);
}

/* Alertas mejoradas */
.rtc-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--rtc-radius-lg);
    border: 1px solid;
    animation: rtc-fade-in 0.3s ease-out;
}

.rtc-alert-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rtc-alert-content {
    flex: 1;
}

.rtc-alert-success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #065f46;
}

.rtc-alert-success .rtc-alert-icon {
    color: #10b981;
}

.rtc-alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.rtc-alert-warning .rtc-alert-icon {
    color: #f59e0b;
}

.rtc-alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.rtc-alert-danger .rtc-alert-icon {
    color: #ef4444;
}

.rtc-alert-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.rtc-alert-info .rtc-alert-icon {
    color: #3b82f6;
}

/* Status banners */
.rtc-status-banner {
    padding: 1rem 1.5rem;
    border-radius: var(--rtc-radius-lg);
    display: flex;
    align-items: center;
    animation: rtc-fade-in 0.5s ease-out;
}

.rtc-status-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #86efac;
    color: #065f46;
}

.rtc-status-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #10b981;
    box-shadow: var(--rtc-shadow-sm);
}

/* Links */
.rtc-link {
    color: var(--rtc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--rtc-transition-fast);
}

.rtc-link:hover {
    color: var(--rtc-primary-dark);
    text-decoration: underline;
}

/* Input groups */
.rtc-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.rtc-input-addon {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: var(--rtc-radius-lg) 0 0 var(--rtc-radius-lg);
    color: #6b7280;
}

.rtc-input-addon-warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.rtc-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 0.875rem;
    transition: all var(--rtc-transition-fast);
}

.rtc-input:focus {
    outline: none;
    border-color: var(--rtc-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.rtc-input-readonly {
    background: #f9fafb;
    color: #374151;
}

.rtc-input-group .rtc-btn {
    border-radius: 0 var(--rtc-radius-lg) var(--rtc-radius-lg) 0;
}

/* Info cards */
.rtc-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--rtc-radius-lg);
    transition: all var(--rtc-transition-fast);
}

.rtc-info-card:hover {
    background: #f3f4f6;
}

.rtc-info-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rtc-primary);
    box-shadow: var(--rtc-shadow-sm);
}

.rtc-info-card-content {
    flex: 1;
}

.rtc-info-card-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.rtc-info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.rtc-info-card-highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #86efac;
    padding: 1.25rem;
}

.rtc-info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

/* Code blocks */
.rtc-code-inline {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: var(--rtc-radius-sm);
    font-family: monospace;
    font-size: 0.875rem;
    color: #374151;
}

.rtc-code-block {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--rtc-radius-lg);
    overflow: hidden;
}

.rtc-code-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rtc-code-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.rtc-code-content {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
}

.rtc-code-footer {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Labels */
.rtc-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Info groups */
.rtc-info-group {
    margin-bottom: 1.5rem;
}

.rtc-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* Card headers con gradiente */
.rtc-card-header-gradient {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
}

/* Footer */
.rtc-footer {
    background: #1f2937;
    color: #e5e7eb;
    padding: 2rem 0;
    margin-top: auto;
}

.rtc-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rtc-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .rtc-footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.rtc-footer-brand {
    flex-shrink: 0;
}

.rtc-footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.rtc-footer-tagline {
    font-size: 0.875rem;
    color: #9ca3af;
}

.rtc-footer-info {
    text-align: center;
}

@media (min-width: 768px) {
    .rtc-footer-info {
        text-align: right;
    }
}

.rtc-footer-copyright {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 0.25rem;
}

.rtc-footer-note {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Charts */
.rtc-chart-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--rtc-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--rtc-shadow-sm);
}

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

.rtc-chart-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.rtc-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.rtc-chart-legend-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--rtc-radius-sm);
}

.rtc-chart-container {
    position: relative;
    height: 12rem;
    background: #f9fafb;
    border-radius: var(--rtc-radius-lg);
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.rtc-chart-wrapper {
    position: absolute;
    inset: 0;
    padding: 1rem;
}

.rtc-chart-bars {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 0.125rem;
}

.rtc-chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.rtc-chart-bar {
    width: 100%;
    background: var(--rtc-primary);
    border-radius: var(--rtc-radius-sm) var(--rtc-radius-sm) 0 0;
    position: relative;
    overflow: hidden;
    animation: grow-up 0.5s ease-out forwards;
}

@keyframes grow-up {
    from {
        height: 0 !important;
    }
}

.rtc-chart-bar-total {
    background: linear-gradient(to top, var(--rtc-primary) 0%, var(--rtc-primary-light) 100%);
}

.rtc-chart-bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.rtc-chart-timeline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.rtc-chart-time {
    font-size: 0.625rem;
    color: #9ca3af;
}

.rtc-chart-time-now {
    font-weight: 600;
    color: #6b7280;
}

/* Empty states */
.rtc-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.rtc-empty-state-icon {
    width: 4rem;
    height: 4rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.rtc-empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.rtc-empty-state-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Utility classes */
.rtc-hover-scale {
    transition: transform var(--rtc-transition-fast);
}

.rtc-hover-scale:hover {
    transform: scale(1.05);
}

/* Animaciones */
.rtc-animation-pulse {
    animation: rtc-pulse 2s ease-in-out infinite;
}

/* Card footer */
.rtc-card-footer {
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}