/**
 * SISCAP - Sistema de Gestión de Capacitaciones
 * Institutional Color Design System (Blue, Red, White)
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Institutional Color Palette - Blue, Red, White */
    --primary-color: #0052A3;        /* Azul institucional */
    --primary-dark: #003D7A;
    --primary-light: #1E6FBF;
    
    --secondary-color: #DC143C;      /* Rojo institucional */
    --secondary-dark: #B01030;
    --secondary-light: #E94560;
    
    --accent-color: #FFFFFF;         /* Blanco */
    --accent-dark: #F5F5F5;
    
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    
    /* Neutral Colors */
    --dark-bg: #0A1929;              /* Azul muy oscuro */
    --dark-card: #132F4C;            /* Azul oscuro para cards */
    --dark-hover: #1A3A52;
    
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --text-muted: #7A8FA8;
    
    /* Gradients - Blue and Red */
    --gradient-primary: linear-gradient(135deg, #0052A3 0%, #1E6FBF 100%);
    --gradient-secondary: linear-gradient(135deg, #DC143C 0%, #E94560 100%);
    --gradient-accent: linear-gradient(135deg, #0052A3 0%, #DC143C 100%);
    --gradient-dark: linear-gradient(135deg, #0A1929 0%, #132F4C 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 82, 163, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 82, 163, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 82, 163, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 82, 163, 0.25);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* ==================== Hero Section ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(0, 82, 163, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(220, 20, 60, 0.15) 0%,
      transparent 50%
    );
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);  /* Azul */
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary-color);  /* Rojo */
  bottom: 20%;
  right: 15%;
  animation-delay: 5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--primary-light);  /* Azul claro */
  top: 60%;
  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);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-buttons {
  animation: fadeInUp 0.6s ease 0.6s backwards;
}

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

.hero-illustration {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.illustration-card {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  animation: pulse 3s infinite ease-in-out;
}

.illustration-card i {
  font-size: 8rem;
  color: white;
}

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

/* ==================== Buttons ==================== */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-primary);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-animated {
  position: relative;
  overflow: hidden;
}

.btn-animated::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-animated:hover::before {
  width: 300px;
  height: 300px;
}

/* ==================== Features Section ==================== */
.features-section {
  background: var(--dark-card);
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(0, 82, 163, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==================== Problem Solution Section ==================== */
.problem-solution-section {
  background: var(--dark-bg);
}

.problem-card,
.solution-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-card {
  border-left: 4px solid var(--danger-color);
}

.solution-card {
  border-left: 4px solid var(--success-color);
}

.problem-icon,
.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.problem-icon {
  background: rgba(255, 107, 107, 0.2);
  color: var(--danger-color);
}

.solution-icon {
  background: rgba(107, 207, 127, 0.2);
  color: var(--success-color);
}

.problem-list,
.solution-list {
  list-style: none;
  padding: 0;
}

.problem-list li,
.solution-list li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.problem-list i {
  color: var(--danger-color);
  font-size: 1.25rem;
}

.solution-list i {
  color: var(--success-color);
  font-size: 1.25rem;
}

/* ==================== CTA Section ==================== */
.cta-section {
  background: var(--dark-card);
}

.cta-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: white;
}

.cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==================== Footer ==================== */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* ==================== Navbar ==================== */
.navbar-dark.bg-dark-custom {
  background: var(--dark-card) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.navbar-brand i {
  color: var(--primary-color);
}

/* ==================== Logo Styles ==================== */
/* Logo en el navbar del dashboard */
.navbar-logo {
  height: 40px;
  width: auto;
  transition: var(--transition-normal);
}

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

/* Logo en el landing page */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.6s ease;
}

.landing-logo {
  height: 120px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 8px 24px rgba(0, 82, 163, 0.3));
  transition: var(--transition-normal);
  animation: pulse 3s infinite ease-in-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-logo {
    height: 32px;
  }
  
  .landing-logo {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    height: 28px;
  }
  
  .landing-logo {
    height: 60px;
  }
}

/* ==================== Dashboard ==================== */
.dashboard-header {
  background: var(--dark-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
}

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

.stats-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

/* ==================== Capacitacion Cards ==================== */
.capacitaciones-section {
  background: var(--dark-bg);
}

.capacitacion-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.capacitacion-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 40px rgba(0, 82, 163, 0.35);
}

.card-header-custom {
  padding: 1.5rem;
  background: var(--gradient-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.card-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  color: white;
  font-weight: 500;
}

.card-body-custom {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-title-custom {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.card-info i {
  color: var(--secondary-color);
}

.card-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-footer-custom {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.view-details {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background: var(--dark-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ==================== Detalle Page ==================== */
.detalle-header {
  background: var(--dark-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-custom a {
  color: var(--primary-color);
  transition: var(--transition-fast);
}

.breadcrumb-custom a:hover {
  color: var(--primary-light);
}

.detalle-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
}

.detalle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.meta-item i {
  color: var(--primary-color);
}

.stats-card-mini {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-mini-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-mini-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
}

/* ==================== Table ==================== */
.registros-section {
  background: var(--dark-bg);
}

.table-card {
  background: #FFFFFF; /* Fondo blanco para la tabla */
  border-radius: var(--radius-lg);
  border: 1px solid #E0E0E0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table-card-header {
  padding: 1.5rem;
  border-bottom: 2px solid #E0E0E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #F8F9FA;
}

.table-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #1A1A1A; /* Texto oscuro */
}

.search-box {
  position: relative;
  width: 350px;
  max-width: 100%;
}

.search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0052A3; /* Azul institucional */
  font-size: 1.125rem;
  pointer-events: none; /* Evita que el icono interfiera con el input */
}

.search-input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  background: #FFFFFF;
  border: 2px solid #D0D0D0;
  border-radius: var(--radius-md);
  color: #1A1A1A; /* Texto oscuro */
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
  color: #999999; /* Placeholder gris medio */
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 82, 163, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input:focus + i {
  color: var(--primary-color);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .table-responsive {
    border-radius: 0;
  }
  
  .table-modern {
    font-size: 0.875rem;
  }
  
  .table-modern thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .table-modern tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .search-box {
    width: 100%;
  }
  
  .table-card-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF; /* Fondo blanco */
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-modern thead {
  background: #FFFFFF; /* Fondo blanco */
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--primary-color);
}

.table-modern thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1A1A1A; /* Texto negro */
  border-bottom: 3px solid var(--primary-color);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.table-modern thead th:hover {
  color: var(--primary-color);
  background: #F8F9FA;
}

.table-modern tbody tr {
  background: #FFFFFF; /* Fondo blanco */
  border-bottom: 1px solid #E0E0E0;
  transition: var(--transition-fast);
}

.table-modern tbody tr:hover {
  background: #F5F8FA; /* Gris muy claro al hover */
  box-shadow: 0 2px 8px rgba(0, 82, 163, 0.1);
}

.table-modern tbody td {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  color: #2C3E50; /* Texto oscuro */
  vertical-align: middle;
}

/* Columna de nombres - más destacada */
.table-modern tbody td:nth-child(2) {
  font-weight: 700;
  color: #1A1A1A; /* Negro para nombres */
  font-size: 1rem;
}

/* Números de documento */
.table-modern tbody td:nth-child(3),
.table-modern tbody td:nth-child(4) {
  font-family: 'Courier New', monospace;
  color: #34495E;
  font-weight: 600;
}

/* Badges en la tabla */
.table-modern .badge {
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-block;
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
}

.badge-secondary {
  background: rgba(220, 20, 60, 0.15);
  color: #B01030;
  border: 1px solid var(--secondary-color);
}

.badge-info {
  background: rgba(0, 82, 163, 0.15);
  color: #003D7A;
  border: 1px solid var(--primary-color);
}

.table-custom {
  margin: 0;
}

.table-custom thead {
  background: var(--dark-bg);
}

.table-custom thead th {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}
/* ==================== Pagination ==================== */
.pagination {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0.5rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  border-radius: var(--radius-sm);
  color: #1A1A1A;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.page-link:hover {
  background: #F8F9FA;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
  font-weight: 600;
}

.page-item.disabled .page-link {
  background: #F8F9FA;
  border-color: #E0E0E0;
  color: #999999;
  cursor: not-allowed;
  pointer-events: none;
}

.table-card-footer {
  padding: 1rem 1.5rem;
  border-top: 2px solid #E0E0E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #F8F9FA;
}

.table-info {
  color: #2C3E50;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Mobile pagination */
@media (max-width: 768px) {
  .table-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pagination {
    justify-content: center;
  }
  
  .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
}
.table-custom thead th:hover {
  color: var(--primary-color);
}
/* ==================== Filters Section ==================== */
.filters-section {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.filter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-bg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--dark-card);
  box-shadow: 0 0 0 3px rgba(0, 82, 163, 0.1);
}

.filter-input::placeholder {
  color: var(--text-muted);
}

/* Date input styling */
.filter-input[type="date"] {
  cursor: pointer;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

@media (max-width: 768px) {
  .filters-section {
    padding: 1.5rem 0 !important;
  }
  
  .filter-group {
    margin-bottom: 0.5rem;
  }
}

/* ==================== End Filters ==================== */
.table-custom thead th i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  opacity: 0.5;
}

.table-custom tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.table-custom tbody tr:hover {
  background: rgba(255, 107, 53, 0.05);
}

.table-custom tbody td {
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  border: none;
}

.table-custom tbody td strong {
  color: var(--text-primary);
}

.table-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.empty-table {
  padding: 3rem;
}

.empty-table i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-table p {
  color: var(--text-secondary);
  margin: 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .illustration-card {
    width: 200px;
    height: 200px;
  }

  .illustration-card i {
    font-size: 5rem;
  }

  .search-box {
    width: 100%;
  }

  .table-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}

.landing-logo-img {
  max-height: 350px;
  filter: drop-shadow(0 0 40px rgba(0, 82, 163, 0.4));
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem; /* Más pequeño para móviles */
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .intro-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-lg {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0.75rem;
  }
  
  .landing-logo {
    max-height: 180px !important; /* Override inline style */
    filter: drop-shadow(0 0 20px rgba(0, 82, 163, 0.4)) !important; /* Menor glow */
  }
  
  .card-footer-custom {
    flex-direction: column;
    text-align: center;
  }
  
  .filter-group {
    margin-bottom: 1rem;
  }
  
  .empty-state h3 {
    font-size: 1.25rem;
  }
}

/* ==================== Utilities ==================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== Smooth Scrolling ==================== */
html {
  scroll-behavior: smooth;
}

/* ==================== Selection ==================== */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* ==================== Animations ==================== */
.floating-animation {
  animation: floatingLogo 6s ease-in-out infinite;
}

@keyframes floatingLogo {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}
