/* Actualizar las variables al inicio del archivo */
:root {
  /* Colores principales */
  --color-primario: #013a55;
  --color-primario-hover: #02264d;
  --color-primario-light: #e3f2fd;
  --color-secundario: #6c757d;
  --color-terciario: #198754;
  --color-terciario-hover: #146c43;
  
  /* Colores de estado */
  --color-exito: #198754;
  --color-peligro: #dc3545;
  --color-advertencia: #ffc107;
  --color-info: #0dcaf0;
  
  /* Colores de fondo - Gradiente que combina con el primario */
  --bg-primario: linear-gradient(135deg, 
    rgba(2, 5, 189, 0.3) 0%,    /* color-primario-light con transparencia */
    rgba(0, 123, 255, 0.05) 50%,    /* color-primario muy transparente */
    rgba(214, 216, 219, 0.4) 100%   /* gris suave */
  );
  --bg-secundario: #ffffff;
  --bg-gris-claro: #f8f9fa;
  --bg-gris: #e9ecef;
  
  /* Colores de texto */
  --texto-primario: #333333;
  --texto-secundario: #6c757d;
  --texto-blanco: #ffffff;
  
  /* Bordes y sombras */
  --border-color: #dee2e6;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 4px 24px rgba(0, 123, 255, 0.13);
  
  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Tipografía */
  --font-family: 'Roboto', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  
  /* Transiciones */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

body {
    /* Eliminar estas líneas: */
    /* background-color: #f0f8ff; */
    /* background-image: url('../images/desk.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-attachment: fixed; */
    
    /* Reemplazar por gradiente usando las variables CSS: */
    font-family: var(--font-family);
    background: var(--bg-primario);
    background-attachment: fixed;
    background-size: cover;
    color: var(--texto-primario);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
  background-color: rgba(var(--bs-primary-rgb), 1) !important;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  margin-bottom: 25px;

}

/* Logo MisioWorks - Actualizado */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.logo-full {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 2.8rem;
  line-height: 1;
  color: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
}

.logo-misio {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: -0.2rem;
  letter-spacing: 0.1rem;
}

.logo-works {
  font-size: 1.6rem; /* Mismo tamaño que logo-misio */
  font-weight: 300;
  opacity: 0.95;
  letter-spacing: 0.15rem;
  text-transform: lowercase;
}

.logo-mobile {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.logo-mobile i {
  font-size: 1.8rem;
}

/* Header actualizado para centrado */
.header-main .container-fluid .d-flex {
  position: relative;
}

.header-main .flex-grow-1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  flex-grow: 0;
}

/* Navegación del header */
.header-subtitle {
  margin-top: 0.5rem;
  text-align: center;
}

.header-subtitle a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 1rem;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.header-subtitle a:hover {
  opacity: 0.8;
}

/* Menú lateral */
/* ===== MENÚ DESLIZABLE - VERSIÓN CORREGIDA ===== */
.menu-slide {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12) !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1050 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    border-left: 4px solid #007bff !important;
    backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
    transform: none !important;
    left: auto !important;
    margin: 0 !important;
}

/* Menú activo */
.menu-slide.active {
    right: 0 !important;
}

/* Header del menú */
.user-info {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 1.5rem 1.25rem !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Contenedor de enlaces */
.menu-slide > a,
.menu-slide > form {
    margin: 0.5rem 1rem !important;
}

/* Enlaces del menú */
.menu-slide a {
    display: flex !important;
    align-items: center !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 0.875rem 1rem !important;
    margin: 0.25rem 0 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    border: 1px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

.menu-slide a:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    transform: translateX(8px) scale(1.02) !important;
    border-color: #0056b3 !important;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3) !important;
    text-decoration: none !important;
}

.menu-slide a i {
    width: 22px !important;
    margin-right: 0.875rem !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    transition: transform 0.3s ease !important;
}

/* Separadores */
.menu-divider {
    margin: 1rem 1.5rem !important;
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, #dee2e6 50%, transparent 100%) !important;
    opacity: 0.6 !important;
}

/* Botón de cerrar sesión */
.menu-slide form {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
}

.menu-slide form button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    color: #dc3545 !important;
    background: none !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    padding: 0.875rem 1rem !important;
    margin: 0 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-align: left !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.menu-slide form button:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    transform: translateX(8px) scale(1.02) !important;
    border-color: #c82333 !important;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3) !important;
}

.menu-slide form button i {
    width: 22px !important;
    margin-right: 0.875rem !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    transition: transform 0.3s ease !important;
}

/* Overlay del menú */
.menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 1040 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    pointer-events: none !important;
}

/* Overlay activo */
.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Botón del menú mejorado */
.menu-button {
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1060 !important;
}

.menu-button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.menu-button:active {
    transform: scale(0.95) !important;
}

.menu-button:focus {
    outline: 3px solid rgba(255,255,255,0.5) !important;
    outline-offset: 2px !important;
}

/* Imagen de perfil mejorada */
.profile-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    display: block !important;
}

.menu-button:hover .profile-img {
    border-color: rgba(255,255,255,0.8) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .menu-slide {
        width: 300px !important;
        max-width: 80vw !important;
    }
    
    .menu-button {
        width: 60px !important;
        height: 60px !important;
    }
    
    .profile-img {
        width: 60px !important;
        height: 60px !important;
        border-width: 2px !important;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .menu-slide {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw !important;
        border-left: none !important;
        border-top: 4px solid #007bff !important;
    }
    
    .user-info {
        padding: 1.25rem 1rem !important;
        font-size: 1rem !important;
    }
    
    .menu-slide a,
    .menu-slide form button {
        padding: 1rem 1rem !important;
        font-size: 0.9rem !important;
        margin: 0.2rem 0 !important;
    }
    
    .menu-slide > a,
    .menu-slide > form {
        margin: 0.3rem 0.75rem !important;
    }
    
    .menu-button {
        width: 50px !important;
        height: 50px !important;
    }
    
    .profile-img {
        width: 50px !important;
        height: 50px !important;
        border-width: 2px !important;
    }
}

/* ELIMINAR todas estas reglas viejas que causan conflicto: */
/*
.menu-slide.open {
    right: 0;
}

.menu-slide {
  position: fixed;
  top: 90px;
  right: -300px;
  width: 280px;
  height: calc(100vh - 90px);
}
*/

/* Botón de usuario - Actualizado */
.menu-button {
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  flex-shrink: 0; /* Evita que se reduzca */
}

.menu-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Perfil - Actualizado */
.profile-img {
  width: 80px; /* Cambiado de 60px a 80px para consistencia */
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Notificaciones para mantener proporción */
.notification-icon {
  font-size: 2.5rem; /* Mantener proporcionado con el botón de 80px */
}

/* Media queries actualizadas para consistencia */
@media (max-width: 767.98px) {
  .menu-button {
    width: 60px;
    height: 60px;
  }

  .profile-img {
    width: 60px !important;
    height: 60px !important;
  }

  .notification-icon {
    font-size: 2rem !important;
  }

  .header-controls {
    gap: 0.75rem !important;
  }
}

@media (max-width: 575.98px) {
  .menu-button {
    width: 50px;
    height: 50px;
  }

  .profile-img {
    width: 50px !important;
    height: 50px !important;
  }

  .notification-icon {
    font-size: 1.8rem !important;
  }

  .header-controls {
    gap: 0.5rem !important;
  }
}

/* Contenedor de perfil para otras páginas */
.profile-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid transparent;
  display: block;
}

/* Notificaciones - Unificado y corregido */
.notification-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-icon {
  font-size: 2.5rem;
  transition: transform 0.2s ease;
}

.notification-link:hover .notification-icon {
  transform: scale(1.1);
  color: #fff !important;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  text-align: center;
  border: 2px solid #fff;
  z-index: 15;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

/* Animación para notificaciones nuevas */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* Ajustes para el contenedor de controles del header */
.header-controls {
  gap: 1.2rem;
  align-items: center;
  z-index: 5;
}

.header-controls-guest {
  gap: 0.6rem;
  align-items: center;
  z-index: 5;
}

/* Media queries actualizadas para notificaciones */
@media (max-width: 767.98px) {
  .notification-icon {
    font-size: 2rem !important;
  }

  .notification-badge {
    top: -6px;
    right: -6px;
    padding: 2px 5px;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
  }

  .header-controls {
    gap: 0.8rem !important;
  }

  .header-controls-guest {
    gap: 0.4rem !important;
  }
}

@media (max-width: 575.98px) {
  .notification-icon {
    font-size: 1.8rem !important;
  }

  .notification-badge {
    top: -4px;
    right: -4px;
    padding: 1px 4px;
    font-size: 0.55rem;
    min-width: 14px;
    height: 14px;
  }

  .header-controls {
    gap: 0.6rem !important;
  }

  .header-controls-guest {
    gap: 0.3rem !important;
  }
}

/* Asegurar que las notificaciones no interfieran con otros elementos */
.notification-container {
  margin-right: 0.5rem;
}

/* Estados adicionales para la campana */
.notification-link:focus .notification-icon,
.notification-link:active .notification-icon {
  color: #fff !important;
  outline: none;
}

/* Tooltip para notificaciones */
.notification-badge:hover {
  transform: scale(1.1);
  background: #b02a37;
}

/* Estilos para cuando no hay notificaciones */
.notification-icon:not(.has-notifications) {
  opacity: 0.8;
}

.notification-icon.has-notifications {
  opacity: 1;
}

/* Ajustar espaciado del contenido principal */
.content {
    padding-top: 20px !important; /* Reducir de 80px o más a 20px */
    min-height: calc(100vh - 140px);
}

/* Reducir margen del primer contenedor */
.content .container:first-child {
    margin-top: 1rem !important; /* mt-3 equivalente */
}

/* Optimizar el cuadro de búsqueda */
.search-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.search-container h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    font-size: 2rem;
}

.search-container p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Formulario de búsqueda */
.search-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

/* Columnas flexibles */
.search-input-col {
    flex: 2;
    min-width: 0; /* Importante para que funcione el flex */
}

.search-select-col {
    flex: 2;
    min-width: 0;
}

.search-button-col {
    flex: 0 0 140px;
}

/* Grupos de input uniformes */
.search-group {
    position: relative;
    display: flex;
    width: 100%;
    height: 50px; /* Altura fija para todos */
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    background: #fff;
    border: 2px solid #e0e6ed;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #317EFB;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-input,
.search-select {
    flex: 1;
    height: 50px;
    padding: 0 1rem;
    border: 2px solid #e0e6ed;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #fff;
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.search-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Estados focus */
.search-group:focus-within .search-icon {
    border-color: #317EFB;
    color: #317EFB;
    background: #f0f7ff;
}

.search-group:focus-within .search-input,
.search-group:focus-within .search-select {
    border-color: #317EFB;
    box-shadow: 0 0 0 3px rgba(49, 126, 251, 0.1);
}

/* Botón de búsqueda */
.search-button {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #317EFB 0%, #4A90E2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3B7DD8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 126, 251, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

.search-button i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input-col,
    .search-select-col,
    .search-button-col {
        flex: none;
    }
    
    .search-container {
        padding: 1.5rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .search-container h2 {
        font-size: 1.6rem;
    }
    
    .search-container p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .search-container {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .search-group {
        height: 46px;
    }
    
    .search-icon {
        width: 46px;
        font-size: 1.1rem;
    }
    
    .search-input,
    .search-select,
    .search-button {
        height: 46px;
        font-size: 0.95rem;
    }
    
    .search-container h2 {
        font-size: 1.4rem;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA INICIO ===== */

/* Secciones con spacing consistente */
section {
    position: relative;
}

section.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Cards de estadísticas */
.bg-primary, .bg-success, .bg-warning, .bg-info {
    transition: all 0.3s ease;
    cursor: pointer;
}

.bg-primary:hover, .bg-success:hover, .bg-warning:hover, .bg-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Títulos de sección */
section h2 {
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #317EFB, #4A90E2);
    border-radius: 2px;
}

/* Animaciones para las cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive para inicio */
@media (max-width: 768px) {
    section {
        padding: 3rem 0 !important;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA BIENVENIDA ===== */

/* Card de bienvenida con gradiente */
.bg-gradient-primary {
    background: linear-gradient(135deg, #317EFB 0%, #4A90E2 100%) !important;
}

/* Alerta de CV incompleto mejorada */
.alert-warning {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

/* Card de filtros */
.card-header {
    border-bottom: 2px solid #e9ecef;
}

/* Botones de vista */
.btn-check:checked + .btn-outline-primary {
    background-color: #317EFB;
    border-color: #317EFB;
    color: white;
}

/* Paginación mejorada */
.pagination .page-link {
    color: #317EFB;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #ffffff;
    background-color: #317EFB;
    border-color: #317EFB;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #317EFB;
    border-color: #317EFB;
    box-shadow: 0 4px 8px rgba(49, 126, 251, 0.3);
}

/* Estadísticas en el header */
.text-center .h4 {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Responsive para bienvenida */
@media (max-width: 768px) {
    .bg-gradient-primary .row {
        text-align: center;
    }
    
    .bg-gradient-primary .col-md-4 {
        margin-top: 1rem;
    }
    
    .btn-group[role="group"] {
        width: 100%;
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-item {
        margin: 0.2rem;
    }
}

/* Animaciones para las cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading state para filtros */
.filtering {
    pointer-events: none;
    opacity: 0.7;
}

.filtering::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #317EFB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== LAYOUT DE 2 COLUMNAS PARA CARDS ===== */

/* Asegurar que las cards tengan altura uniforme en 2 columnas */
.oferta-card {
    min-height: 320px;
    transition: all 0.3s ease;
}

.oferta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Optimizar espaciado para 2 columnas */
@media (min-width: 768px) {
    .col-md-6.mb-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* En móviles, mantener 1 columna */
@media (max-width: 575.98px) {
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
}

/* Tablets y superiores: 2 columnas */
@media (min-width: 576px) {
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Pantallas muy grandes: mantener 2 columnas centradas */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px; /* Limitar el ancho para que las cards no se vean demasiado anchas */
    }
}

/* Mejorar el espaciado entre cards */
.row .col-md-6.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Cards más anchas para aprovechar mejor el espacio */
.col-md-6 .card {
    margin: 0 auto;
    max-width: none;
}

/* Ajustar el contenido de las cards para 2 columnas */
.oferta-card .card-body {
    padding: 1.5rem;
}

.oferta-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.oferta-card .text-muted.small {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Mejorar el espaciado del header sin logo */
.oferta-card .mb-3:first-child {
    margin-bottom: 1rem !important;
}

/* Badges más prominentes sin logo */
.oferta-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
}

/* ===== BOTONES DEL SIDEBAR ===== */
.btn-animated {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-animated:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-animated i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Colores específicos para cada botón */
.btn-primary.btn-animated {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-warning.btn-animated {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.btn-info.btn-animated {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .btn-animated {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* ===== ESTADÍSTICAS DEL ADMIN PANEL ===== */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    margin-bottom: 2rem;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dashboard-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.dashboard-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.btn-group-dashboard {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.btn-administrar {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

/* Cards de estadísticas */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
    padding: 1.25rem;
}

.progress {
    border-radius: 10px;
    background-color: #f8f9fa;
}

.progress-bar {
    border-radius: 10px;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .dashboard-card h2 {
        font-size: 2rem;
    }
    
    .btn-group-dashboard {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Resetear posibles conflictos */
.menu-slide {
    box-sizing: border-box;
    transform: none !important;
    left: auto !important;
    margin: 0 !important;
}

/* Asegurar que no se salga de pantalla */
@media screen {
    .menu-slide {
        max-width: calc(100vw - 20px);
        right: -100%;
    }
    
    .menu-slide.active {
        right: 0;
    }
}

/* ===== MENÚ DESLIZABLE - VERSIÓN ÚNICA Y LIMPIA ===== */
.menu-slide {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    padding: 1.5rem;
    overflow-y: auto;
    border-left: 3px solid #007bff;
    box-sizing: border-box;
}

/* Menú activo */
.menu-slide.active {
    right: 0;
}

/* Overlay del menú */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    pointer-events: none;
}

/* Overlay activo */
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Contenido del menú */
.user-info {
    color: #333;
    font-weight: 600;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1rem;
    text-align: center;
}

.menu-divider {
    margin: 1rem 0;
    border-color: #dee2e6;
    opacity: 0.5;
}

/* Enlaces del menú */
.menu-slide a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 0.875rem 1rem;
    margin: 0.25rem 0;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.menu-slide a:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateX(5px);
    border-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.menu-slide a i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Botón de cerrar sesión */
.menu-slide form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.menu-slide form button {
    display: flex;
    align-items: center;
    width: 100%;
    color: #dc3545;
    background: none;
    border: 1px solid transparent;
    text-decoration: none;
    padding: 0.875rem 1rem;
    margin: 0;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

/* BOTONES OUTLINE PERSONALIZADOS UNIFICADOS */
.custom-outline-btn {
    border: 2px solid;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    background: transparent !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.custom-outline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.custom-outline-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.custom-outline-btn:hover i {
    transform: scale(1.1);
}

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

.custom-outline-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Colores específicos para cada botón */
.btn-outline-primary.custom-outline-btn {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary.custom-outline-btn:hover {
    border-color: #0a58ca;
    color: #0a58ca;
    background: rgba(13, 110, 253, 0.05) !important;
}

.btn-outline-warning.custom-outline-btn {
    border-color: #ffc107;
    color: #ffc107;
}

.btn-outline-warning.custom-outline-btn:hover {
    border-color: #ffca2c;
    color: #ffca2c;
    background: rgba(255, 193, 7, 0.05) !important;
}

.btn-outline-info.custom-outline-btn {
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.btn-outline-info.custom-outline-btn:hover {
    border-color: #3dd5f3;
    color: #3dd5f3;
    background: rgba(13, 202, 240, 0.05) !important;
}

.btn-outline-success.custom-outline-btn {
    border-color: #198754;
    color: #198754;
}

.btn-outline-success.custom-outline-btn:hover {
    border-color: #20c997;
    color: #20c997;
    background: rgba(25, 135, 84, 0.05) !important;
}

.btn-outline-secondary.custom-outline-btn {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary.custom-outline-btn:hover {
    border-color: #5c636a;
    color: #5c636a;
    background: rgba(108, 117, 125, 0.05) !important;
}

/* Excepción: Botones activos con fondo sólido */
.btn-warning.custom-outline-btn {
    background: #ffc107 !important;
    border-color: #ffc107;
    color: white;
}

.btn-success.custom-outline-btn {
    background: #198754 !important;
    border-color: #198754;
    color: white;
}

/* Animación de entrada */
.custom-outline-btn {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.custom-outline-btn:nth-child(1) { animation-delay: 0.1s; }
.custom-outline-btn:nth-child(2) { animation-delay: 0.2s; }
.custom-outline-btn:nth-child(3) { animation-delay: 0.3s; }
.custom-outline-btn:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive */
@media (max-width: 768px) {
    .custom-outline-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .custom-outline-btn i {
        font-size: 1rem;
    }
}

/* Estilos para badges en botones */
.custom-outline-btn .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}