/* ===== MEJORAS DE LEGIBILIDAD DE TEXTO - SISTEMA DE RIFAS ===== */

/* Variables para mejor contraste */
:root {
    --text-primary: #1a1a1a; /* Cambiado de #2c3e50 a #1a1a1a para mejor contraste */
    --text-secondary: #2d3748; /* Cambiado de #495057 a #2d3748 para mejor contraste */
    --text-muted: #4a5568; /* Cambiado de #6c757d a #4a5568 para mejor contraste */
    --text-light: #718096; /* Cambiado de #868e96 a #718096 para mejor contraste */
    --text-dark: #0f0f0f; /* Cambiado de #1a1a1a a #0f0f0f para mejor contraste */
    --text-white: #ffffff;
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== MEJORAS GENERALES DE TEXTO ===== */

body {
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
}

/* ===== MEJORAS PARA TÍTULOS ===== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: var(--text-shadow);
}

/* ===== MEJORAS PARA PÁRRAFOS ===== */

p {
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.7;
}

/* ===== MEJORAS PARA ENLACES ===== */

a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== MEJORAS PARA LISTAS ===== */

ul, ol {
    color: var(--text-secondary);
    font-weight: 500;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===== MEJORAS PARA FORMULARIOS ===== */

label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    color: var(--text-primary);
    font-weight: 500;
}

.form-control::placeholder, .form-select::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== MEJORAS PARA TABLAS ===== */

.table th {
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== MEJORAS PARA BADGES ===== */

.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== MEJORAS PARA ALERTS ===== */

.alert {
    font-weight: 500;
    line-height: 1.6;
}

.alert-success {
    color: #155724;
    font-weight: 600;
}

.alert-danger {
    color: #721c24;
    font-weight: 600;
}

.alert-warning {
    color: #856404;
    font-weight: 600;
}

.alert-info {
    color: #0c5460;
    font-weight: 600;
}

/* ===== MEJORAS PARA NAVBAR ===== */

.navbar-brand {
    font-weight: 700;
    text-shadow: var(--text-shadow);
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== MEJORAS PARA FOOTER ===== */

.footer {
    color: var(--text-white);
    font-weight: 500;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer a:hover {
    color: var(--text-white);
}

/* ===== MEJORAS PARA CARDS ===== */

.card-title {
    color: var(--text-dark);
    font-weight: 700;
    text-shadow: var(--text-shadow);
}

.card-text {
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.7;
}

.card-subtitle {
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== MEJORAS PARA BOTONES ===== */

.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: var(--text-shadow);
}

/* ===== MEJORAS PARA MODALES ===== */

.modal-title {
    color: var(--text-dark);
    font-weight: 700;
    text-shadow: var(--text-shadow);
}

.modal-body {
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.7;
}

/* ===== MEJORAS PARA DROPDOWNS ===== */

.dropdown-item {
    color: var(--text-secondary);
    font-weight: 500;
}

.dropdown-item:hover {
    color: var(--text-dark);
    font-weight: 600;
}

.dropdown-header {
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MEJORAS PARA PAGINACIÓN ===== */

.page-link {
    color: var(--text-secondary);
    font-weight: 600;
}

.page-link:hover {
    color: var(--text-dark);
    font-weight: 700;
}

.page-item.active .page-link {
    color: var(--text-white);
    font-weight: 700;
}

/* ===== MEJORAS PARA BREADCRUMBS ===== */

.breadcrumb-item {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 700;
}

/* ===== MEJORAS PARA PROGRESS BARS ===== */

.progress-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== MEJORAS PARA TOOLTIPS ===== */

.tooltip-inner {
    color: var(--text-white);
    font-weight: 500;
}

/* ===== MEJORAS PARA RESPONSIVE ===== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.95rem; }
}

/* ===== MEJORAS PARA ACCESIBILIDAD ===== */

@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
        --text-muted: #333333;
        --text-light: #4d4d4d;
        --text-dark: #000000;
    }
    
    body {
        font-weight: 600;
    }
    
    .btn {
        font-weight: 700;
    }
}

/* ===== MEJORAS PARA IMPRESIÓN ===== */

@media print {
    body {
        color: #000000;
        font-weight: 600;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000000;
        font-weight: 700;
    }
    
    p, li {
        color: #333333;
        font-weight: 500;
    }
}






