.mask-card {
    position: relative;
}
.mask-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.ponderaciones-simulator .card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.ponderaciones-simulator .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.ponderaciones-simulator .card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}
.ponderaciones-simulator #ponderaciones-display .badge {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}
.ponderaciones-simulator #ponderaciones-display .fw-bold {
    font-size: 1.2rem;
    color: #2c3e50;
}   
.ponderaciones-simulator .puntaje-input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.ponderaciones-simulator .puntaje-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}
.ponderaciones-simulator #resultado-section .card {
    background: #ffffff;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.ponderaciones-simulator #resultado-section .card:hover {
    border-color: #e9ecef;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.ponderaciones-simulator #resultado-section .card .card-title {
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}
.ponderaciones-simulator #resultado-section .card .display-4 {
    font-weight: 600;
    color: #212529;
    text-shadow: none;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.ponderaciones-simulator #resultado-section .card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}
.ponderaciones-simulator .btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.ponderaciones-simulator .btn.btn-primary {
    background: #e74c3c;
    border: none;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}
.ponderaciones-simulator .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
.ponderaciones-simulator .btn.btn-secondary {
    background: transparent;
    color: #2c3e50;
    border: none;
    box-shadow: 0 4px 16px rgba(149, 165, 166, 0.3);
}
.ponderaciones-simulator .btn.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}
.ponderaciones-simulator .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.ponderaciones-simulator .modal-content .modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #2980b9 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}
.ponderaciones-simulator .modal-content .modal-header .btn-close {
    filter: invert(1);
}
.ponderaciones-simulator .fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .ponderaciones-simulator .card-title {
        font-size: 1.1rem;
    }
    .ponderaciones-simulator .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .ponderaciones-simulator #ponderaciones-display .col-md-2 {
        margin-bottom: 1rem;
    }
    .ponderaciones-simulator .puntaje-input {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}
.ponderaciones-simulator .loading {
    position: relative;
    pointer-events: none;
}
.ponderaciones-simulator .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.ponderaciones-simulator .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.ponderaciones-simulator #ponderaciones-display .col-md-2:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.ponderaciones-simulator #mensaje-resultado {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Estilos para tabla responsive con primera columna fija */
@media (max-width: 767px) {
    .table-responsive-sm {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    #tabla-ponderaciones {
        min-width: 800px;
        margin-bottom: 0;
    }
    
    #tabla-ponderaciones thead tr td:first-child,
    #tabla-ponderaciones tbody tr td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }
    
    #tabla-ponderaciones thead tr td:first-child {
        z-index: 11;
        background-color: #f8f9fa;
        font-weight: bold;
    }
    
    /* Efecto visual para indicar que hay más contenido */
    .table-responsive-sm::after {
        content: '→';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
        padding: 10px;
        font-size: 24px;
        pointer-events: none;
        opacity: 0.5;
        transition: opacity 0.3s;
    }
    
    .table-responsive-sm.scrolled::after {
        opacity: 0;
    }
}
