/**
 * MEJORAS GLOBALES
 * Estilos que mejoran la experiencia general del sitio
 */

/* ============================================
   SCROLLBAR MODERNA
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
    background: rgba(102,126,234,0.3);
    color: #111827;
}

::-moz-selection {
    background: rgba(102,126,234,0.3);
    color: #111827;
}

/* ============================================
   FOCUS STYLES MEJORADOS
   ============================================ */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid rgba(102,126,234,0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   LINKS MODERNOS
   ============================================ */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.link-modern {
    color: #667eea;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-modern:hover::after {
    width: 100%;
}

.link-modern:hover {
    color: #764ba2;
}

/* ============================================
   IMAGES MODERNAS
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

.image-modern {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-modern:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

/* ============================================
   TABLES MODERNAS
   ============================================ */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.table-modern thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table-modern thead th {
    padding: 16px;
    font-weight: 600;
    text-align: left;
    border: none;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
    background: white;
}

.table-modern tbody tr:hover {
    background: rgba(102,126,234,0.05);
    transform: scale(1.01);
}

.table-modern tbody td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   CARDS MEJORADAS GLOBALMENTE
   ============================================ */
.card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
}

/* ============================================
   BREADCRUMBS MODERNOS
   ============================================ */
.breadcrumb-modern {
    background: transparent;
    padding: 12px 0;
    margin-bottom: 24px;
}

.breadcrumb-modern .breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: #9ca3af;
    font-size: 1.2rem;
    padding: 0 8px;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #6b7280;
    transition: color 0.2s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #667eea;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

/* ============================================
   SEPARADORES MODERNOS
   ============================================ */
.divider-modern {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
}

.divider-modern::before,
.divider-modern::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider-modern span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ============================================
   BADGES GLOBALES MEJORADOS
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   UTILITIES ADICIONALES
   ============================================ */
.text-shadow {
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .card {
        border-radius: 12px;
    }
    
    .table-modern {
        font-size: 0.875rem;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 12px 8px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
















