/* ForoTV White Theme (PRO) - Versión Mejorada */
:root {
  --ftv-red: #c8102e;
  --ftv-red-dark: #a10c24;
  --ftv-red-soft: rgba(200, 16, 46, 0.08);
  --ftv-bg: #f6f7fb;
  --ftv-card: #ffffff;
  --ftv-text: #111827;
  --ftv-text-light: #4b5563;
  --ftv-muted: #6b7280;
  --ftv-line: #e5e7eb;
  --ftv-border: rgba(15, 23, 42, 0.08);
  --ftv-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  --ftv-shadow-hover: 0 20px 35px rgba(17, 24, 39, 0.1);
  --ftv-radius: 20px;
  --ftv-radius-sm: 14px;
}

body {
  background: var(--ftv-bg);
  color: var(--ftv-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Topbar premium */
.ftv-topbar {
  background: linear-gradient(135deg, var(--ftv-red) 0%, #a10c24 100%);
  border-radius: var(--ftv-radius);
  box-shadow: 0 15px 35px rgba(200, 16, 46, 0.25);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.ftv-topbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.ftv-badge {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.45rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Cards */
.ftv-card {
  background: var(--ftv-card);
  border: 1px solid var(--ftv-border);
  border-radius: var(--ftv-radius);
  box-shadow: var(--ftv-shadow);
  transition: all 0.2s ease;
}
.ftv-card:hover {
  box-shadow: var(--ftv-shadow-hover);
  border-color: rgba(200, 16, 46, 0.15);
}

/* Form controls premium */
.form-control, .form-select {
  border: 1px solid var(--ftv-line);
  border-radius: var(--ftv-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ftv-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
  outline: none;
}

/* Select2 custom */
.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--ftv-line);
  border-radius: var(--ftv-radius-sm);
  min-height: 42px;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--ftv-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--ftv-red-soft);
  border: 1px solid rgba(200, 16, 46, 0.2);
  color: var(--ftv-red-dark);
  border-radius: 30px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.8rem;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--ftv-red-dark);
  margin-right: 6px;
}

/* Botones */
.btn-ftv {
  background: var(--ftv-red);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.6rem 2rem;
  border-radius: 40px;
  transition: all 0.15s;
}
.btn-ftv:hover {
  background: var(--ftv-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(200, 16, 46, 0.25);
  color: white;
}
.btn-ftv:active {
  transform: translateY(0);
}

.btn-outline-secondary {
  border: 1px solid var(--ftv-line);
  color: var(--ftv-text);
  background: white;
  border-radius: 40px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}
.btn-outline-secondary:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Tablas DataTables */
table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
  margin-top: 6px !important;
}
table.dataTable thead th {
  background: #f9fafb;
  padding: 12px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ftv-muted);
  border-bottom: 2px solid var(--ftv-red);
}
table.dataTable tbody td {
  padding: 12px 10px;
  font-size: 0.9rem;
  background: white;
  border-bottom: 1px solid var(--ftv-line);
}
table.dataTable tbody tr:hover td {
  background: var(--ftv-red-soft);
}

/* Botones de DataTables */
.dt-buttons .btn {
  border-radius: 30px !important;
  margin-right: 6px;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  padding: 0.4rem 1rem !important;
  border: 1px solid var(--ftv-line) !important;
}

/* Badges y pills */
.badge-pill {
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --ftv-radius: 16px;
  }
  .ftv-topbar {
    padding: 12px !important;
  }
  table.dataTable thead th {
    font-size: 0.7rem;
    padding: 8px 6px;
  }
  table.dataTable tbody td {
    padding: 8px 6px;
    font-size: 0.8rem;
  }
}