/* Solicitud de Crédito Atahualpa - Estilos Profesionales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    color: #333;
}

.cra-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cra-header {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #0073aa;
}

.cra-header h1 {
    color: #0073aa;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.cra-header p {
    color: #666;
    font-size: 14px;
}

.cra-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cra-section h2 {
    color: #0073aa;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cra-section h3 {
    color: #0073aa;
    margin: 25px 0 20px 0;
    font-size: 16px;
    font-weight: 700;
}

.botones-credito {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.btn-credito {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    border: 2px solid #e0e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.btn-credito:hover {
    border-color: #0073aa;
    background: linear-gradient(135deg, #e8f1ff 0%, #f0f4f8 100%);
    box-shadow: 0 4px 12px rgba(0,115,170,0.15);
    transform: translateY(-2px);
}

.btn-credito .icono {
    font-size: 40px;
}

.btn-credito .titulo {
    font-weight: 600;
    color: #0073aa;
}

.formulario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #e0e8f0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.form-acciones {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-enviar {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
}

.btn-enviar:hover {
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
    transform: translateY(-2px);
}

.btn-cancelar {
    background: #f0f0f0;
    color: #666;
}

.btn-cancelar:hover {
    background: #e0e0e0;
}

.btn-crear {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    display: inline-block;
    margin-top: 10px;
}

.tabla-solicitudes {
    width: 100%;
    border-collapse: collapse;
}

.tabla-solicitudes th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #0073aa;
    border-bottom: 2px solid #e0e8f0;
    font-size: 13px;
}

.tabla-solicitudes td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.tabla-solicitudes tr:hover {
    background: #f8f9fa;
}

.estado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.estado-enviado {
    background: #e3f2fd;
    color: #0073aa;
}

.estado-preaprobado {
    background: #fff3e0;
    color: #f57c00;
}

.estado-formulario_lleno {
    background: #f3e5f5;
    color: #6f42c1;
}

.estado-pendiente_aprobacion {
    background: #fce4ec;
    color: #c2185b;
}

.estado-aprobado {
    background: #e8f5e9;
    color: #2e7d32;
}

.estado-rechazado {
    background: #ffebee;
    color: #c62828;
}

.btn-small {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #005a87;
    box-shadow: 0 2px 6px rgba(0,115,170,0.2);
}

.vacio {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.vacio p {
    margin: 10px 0;
}

@media (max-width: 768px) {
    .botones-credito {
        grid-template-columns: 1fr;
    }
    
    .formulario-grid {
        grid-template-columns: 1fr;
    }
    
    .form-acciones {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
    }
}
