/* ==============================================
   ESTILOS DE COMPONENTES: MODAL Y TARJETAS
   ============================================== */

/* Estilos para el select mejorado */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%206c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    background-color: #ffffff;
    color: var(--text-color);
}

/* Modal Emergente de Resumen */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 37, 69, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.25s ease-out;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}